1/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */ 2(function(Drupal,drupalSettings,once){Drupal.behaviors.broadstreetAds={attach(context){once('broadstreet-ads-watch','body',context).forEach(()=>{const bsSettings=drupalSettings.broadstreet||{};const placements=bsSettings.placements||{};const hasEnabledMappedPlacement=Object.values(placements).some((placement)=>placement.enabled);const showFooterAd=bsSettings.footer&&bsSettings.footer.showFooterAd;const hasEnabledPlacement=hasEnabledMappedPlacement||bsSettings.showHeaderAd||showFooterAd;if(!hasEnabledPlacement)return;if(typeof broadstreet==='undefined'||typeof broadstreet.watch!=='function'){console.warn('Broadstreet Ads: Broadstreet script was not available, so enabled ad placements could not be initialized.');return;}const configuredNetworkIds=Array.isArray(bsSettings.networkIds)?bsSettings.networkIds:[];const placementNetworkIds=Object.values(placements).filter((placement)=>placement.enabled&&placement.networkId&&placement.zoneId).map((placement)=>placement.networkId);const networkIds=configuredNetworkIds.length>0?configuredNetworkIds:placementNetworkIds;const watchNetworkIds=[...new Set(networkIds.length>0?networkIds:[bsSettings.networkId])].filter(Boolean);if(watchNetworkIds.length>1&&typeof broadstreet.loadNetworkJS==='function'){watchNetworkIds.forEach((networkId)=>{broadstreet.loadNetworkJS(networkId);});broadstreet.watch();}else broadstreet.watch({networkId:watchNetworkIds[0]});});}};})(Drupal,drupalSettings,once);; 3(function($,Drupal){Drupal.theme.progressBar=function(id){const escapedId=Drupal.checkPlain(id);return (`<div id="${escapedId}" class="progress" aria-live="polite">`+'<div class="progress__label"> </div>'+'<div class="progress__track"><div class="progress__bar"></div></div>'+'<div class="progress__percentage"></div>'+'<div class="progress__description"> </div>'+'</div>');};Drupal.ProgressBar=function(id,updateCallback,method,errorCallback){this.id=id;this.method=method||'GET';this.updateCallback=updateCallback;this.errorCallback=errorCallback;this.element=$(Drupal.theme('progressBar',id));};$.extend(Drupal.ProgressBar.prototype,{setProgress(percentage,message,label){if(percentage>=0&&percentage<=100){$(this.element).find('div.progress__bar').each(function(){this.style.width=`${percentage}%`;});$(this.element).find('div.progress__percentage').html(`${percentage}%`);}$('div.progress__description',this.element).html(message);$('div.progress__label',this.element).html(label);if(this.updateCallback)this.updateCallback(percentage,message,this);},startMonitoring(uri,delay){this.delay=delay;this.uri=uri;this.sendPing();},stopMonitoring(){clearTimeout(this.timer);this.uri=null;},sendPing(){if(this.timer)clearTimeout(this.timer);if(this.uri){const pb=this;let uri=this.uri;if(!uri.includes('?'))uri+='?';else uri+='&';uri+='_format=json';$.ajax({type:this.method,url:uri,data:'',dataType:'json',success(progress){if(progress.status===0){pb.displayError(progress.data);return;}pb.setProgress(progress.percentage,progress.message,progress.label);pb.timer=setTimeout(()=>{pb.sendPing();},pb.delay);},error(xmlhttp){const e=new Drupal.AjaxError(xmlhttp,pb.uri);pb.displayError(`<pre>${e.message}</pre>`);}});}},displayError(string){const error=$('<div class="messages messages--error"></div>').html(string);$(this.element).before(error).hide();if(this.errorCallback)this.errorCallback(this);}});})(jQuery,Drupal);; 4/* @license MIT https://raw.githubusercontent.com/muicss/loadjs/4.3.0/LICENSE.txt */ 5loadjs=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}
5function s(n,t){!function(e,r,n){var t,i,s=(e=e.push?e:[e]).length,o=s,u=[];for(t=function(e,n,t){if("e"==n&&u.push(e),"b"==n){if(!t)return;u.push(e)}--s||r(u)},i=0;i<o;i++)p(e[i],t,n)}(e,function(e){l(i,e),n&&l({success:n,error:t},e),u(r,e)},i)}if(i.returnPromise)return new Promise(s);s()}return t.ready=function(e,n){return function(e,t){e=e.push?e:[e];var n,r,i,s=[],o=e.length,u=o;for(n=function(e,n){n.length&&s.push(e),--u||t(s)};o--;)r=e[o],(i=c[r])?n(r,i):(f[r]=f[r]||[]).push(n)}(e,function(e){l(n,e)}),t},t.done=function(e){u(e,[])},t.reset=function(){o={},c={},f={}},t.isDefined=function(e){return e in o},t}();; 6/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */ 7Drupal.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;};};; 8(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);; 9((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})=>
9{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);; 10(function($,window,Drupal,drupalSettings,loadjs,{isFocusable,tabbable}){Drupal.behaviors.AJAX={attach(context,settings){function loadAjaxBehavior(base){const elementSettings=settings.ajax[base];if(typeof elementSettings.selector==='undefined')elementSettings.selector=`#${base}`;once('drupal-ajax',$(elementSettings.selector)).forEach((el)=>{elementSettings.element=el;elementSettings.base=base;Drupal.ajax(elementSettings);});}Object.keys(settings.ajax||{}).forEach(loadAjaxBehavior);Drupal.ajax.bindAjaxLinks(document.body);once('ajax','.use-ajax-submit').forEach((el)=>{const elementSettings={url:$(el.form).attr('action'),setClick:true,event:'click',progress:{type:'throbber'},base:el.id,element:el};Drupal.ajax(elementSettings);});},detach(context,settings,trigger){if(trigger==='unload')Drupal.ajax.expired().forEach((instance)=>{Drupal.ajax.instances[instance.instanceIndex]=null;});}};Drupal.AjaxError=function(xmlhttp,uri,customMessage){let statusCode;let statusText;let responseText;if(xmlhttp.status)statusCode=`\n${Drupal.t('An AJAX HTTP error occurred.')}\n${Drupal.t('HTTP Result Code: !status',{'!status':xmlhttp.status})}`;else statusCode=`\n${Drupal.t('An AJAX HTTP request terminated abnormally.')}`;statusCode+=`\n${Drupal.t('Debugging information follows.')}`;const pathText=`\n${Drupal.t('Path: !uri',{'!uri':uri})}`;statusText='';try{statusText=`\n${Drupal.t('StatusText: !statusText',{'!statusText':xmlhttp.statusText.trim()})}`;}catch(e){}responseText='';try{responseText=`\n${Drupal.t('ResponseText: !responseText',{'!responseText':xmlhttp.responseText.trim()})}`;}catch(e){}responseText=responseText.replace(/<("[^"]*"|'[^']*'|[^'">])*>/gi,'');responseText=responseText.replace(/[\n]+\s+/g,'\n');const readyStateText=xmlhttp.status===0?`\n${Drupal.t('ReadyState: !readyState',{'!readyState':xmlhttp.readyState})}`:'';customMessage=customMessage?`\n${Drupal.t('CustomMessage: !customMessage',{'!customMessage':customMessage})}`:'';this.message=statusCode+pathText+statusText+customMessage+responseText+readyStateText;this.name='AjaxError';if(!Drupal.AjaxError.messages)Drupal.AjaxError.messages=new Drupal.Message();Drupal.AjaxError.messages.add(Drupal.t("Oops, something went wrong. Check your browser's developer console for more details."),{type:'error'});};Drupal.AjaxError.prototype=new Error();Drupal.AjaxError.prototype.constructor=Drupal.AjaxError;Drupal.ajax=function(settings){if(arguments.length!==1)throw new Error('Drupal.ajax() function must be called with one configuration object only');const base=settings.base||false;const element=settings.element||false;delete settings.base;delete settings.element;if(!settings.progress&&!element)settings.progress=false;const ajax=new Drupal.Ajax(base,element,settings);ajax.instanceIndex=Drupal.ajax.instances.length;Drupal.ajax.instances.push(ajax);return ajax;};Drupal.ajax.instances=[];Drupal.ajax.expired=function(){return Drupal.ajax.instances.filter((instance)=>instance&&instance.element!==false&&!document.body.contains(instance.element));};Drupal.ajax.bindAjaxLinks=(element)=>{once('ajax','.use-ajax',element).forEach((ajaxLink)=>{const $linkElement=$(ajaxLink);const elementSettings={progress:{type:'throbber'},dialogType:$linkElement.data('dialog-type'),dialog:$linkElement.data('dialog-options'),dialogRenderer:$linkElement.data('dialog-renderer'),base:$linkElement.attr('id'),element:ajaxLink};const href=$linkElement.attr('href');if(href){elementSettings.url=href;elementSettings.event='click';}const httpMethod=$linkElement.data('ajax-http-method');if(httpMethod)elementSettings.httpMethod=httpMethod;Drupal.ajax(elementSettings);});};Drupal.Ajax=function(base,element,elementSettings){const defaults={httpMethod:'POST',event:element?'mousedown':null,keypress:true,selector:base?`#${base}`:null,effect:'none',speed:'none',method:'replaceWith',progress:{type:'throbber',message:Drupal.t('Processing...')},submit:{js:true}};$.extend(this,defaults,elementSettings);this.commands=new Drupal.AjaxCommands();this.instanceIndex=false;if(this.wrapper)this.wrapper=`#${this.wrapper}`;this.element=element;this.preCommandsFocusedElementSelector=null;this.elementSettings=elementSettings;if(this.element?.form)this.$form=$(this.element.form);if(!this.url){const $element=$(this.element);if(this.element.tagName==='A')this.url=$element.attr('href');else{if(this.element&&element.form)this.url=this.$form.attr('action');}}const originalUrl=this.url;this.url=this.url.replace(/\/nojs(\/|$|\?|#)/,'/ajax$1');if(drupalSettings.ajaxTrustedUrl[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;
10$(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"> </div>';return `<div class="ajax-progress ajax-progress-throbber">${throbber}${messageMarkup}</div>`;};Drupal.theme.ajaxProgressIndicatorFullscreen=()=>'<div class="ajax-progress ajax-progress-fullscreen"> </div>';Drupal.theme.ajaxProgressMessage=(message)=>`<div class="message">${message}</div>`;Drupal.theme.ajaxProgressBar=($element)=>$('<div class="ajax-progress ajax-progress-bar"></div>').append($element);Drupal.Ajax.prototype.setProgressIndicatorBar=function(){const progressBar=new Drupal.ProgressBar(`ajax-progress-${this.element.i
10d}`,$.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));
10$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);; 11(function(Drupal){Drupal.AjaxCommands.prototype.gtagEvent=function(ajax,response){gtag('event',response.event_name,response.data);};})(Drupal);; 12(()=>{function pr(t,e){t.indexOf(e)===-1&&t.push(e)}function ge(t,e){let r=t.indexOf(e);r>-1&&t.splice(r,1)}var N=(t,e,r)=>r>e?e:r<t?t:r;var Y=()=>{},_=()=>{};var K={};var Ue=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);var ur=t=>typeof t=="object"&&t!==null;var qe=t=>/^0[^.\s]+$/u.test(t);function Ye(t){let e;return()=>(e===void 0&&(e=t()),e)}var L=t=>t;var xe=(...t)=>t.reduce((e,r)=>o=>r(e(o)));var ye=(t,e,r)=>{let o=e-t;return o?(r-t)/o:1};var be=class{constructor(){this.subscriptions=[]}add(e){return pr(this.subscriptions,e),()=>ge(this.subscriptions,e)}notify(e,r,o){let i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,r,o);else for(let n=0;n<i;n++){let s=this.subscriptions[n];s&&s(e,r,o)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};var R=t=>t*1e3,k=t=>t/1e3;var Xe=(t,e)=>e?t*(1e3/e):0;var so=(t,e,r)=>{let o=e-t;return((r-t)%o+o)%o+t};var ao=(t,e,r)=>(((1-3*r+3*e)*t+(3*r-6*e))*t+3*e)*t,qi=1e-7,Yi=12;function Xi(t,e,r,o,i){let n,s,a=0;do s=e+(r-e)/2,n=ao(s,o,i)-t,n>0?r=s:e=s;while(Math.abs(n)>
12qi&&++a<Yi);return s}function le(t,e,r,o){if(t===e&&r===o)return L;let i=n=>Xi(n,0,1,t,r);return n=>n===0||n===1?n:ao(i(n),e,o)}var wt=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2;var Te=t=>e=>1-t(1-e);var Ct=le(.33,1.53,.69,.99),Ee=Te(Ct),He=wt(Ee);var Ze=t=>t>=1?1:(t*=2)<1?.5*Ee(t):.5*(2-Math.pow(2,-10*(t-1)));var Je=t=>1-Math.sin(Math.acos(t)),cr=Te(Je),Qe=wt(Je);var dr=le(.42,0,1,1),hr=le(0,0,.58,1),et=le(.42,0,.58,1);var tt=t=>Array.isArray(t)&&typeof t[0]!="number";function rt(t,e){return tt(t)?t[so(0,t.length,e)]:t}var ot=t=>Array.isArray(t)&&typeof t[0]=="number";var lo={linear:L,easeIn:dr,easeInOut:et,easeOut:hr,circIn:Je,circInOut:Qe,circOut:cr,backIn:Ee,backInOut:He,backOut:Ct,anticipate:Ze},Hi=t=>typeof t=="string",Dt=t=>{if(ot(t)){_(t.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[e,r,o,i]=t;return le(e,r,o,i)}else if(Hi(t))return _(lo[t]!==void 0,`Invalid easing type '${t}'`,"invalid-easing-type"),lo[t];return t};var it=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];var Fe={value:null,addProjectionMetrics:null};function mo(t,e){let r=new Set,o=new Set,i=!1,n=!1,s=new WeakSet,a={delta:0,timestamp:0,isProcessing:!1},f=0;function p(m){s.has(m)&&(l.schedule(m),t()),f++,m(a)}let l={schedule:(m,u=!1,d=!1)=>{let h=d&&i?r:o;return u&&s.add(m),h.add(m),m},cancel:m=>{o.delete(m),s.delete(m)},process:m=>{if(a=m,i){n=!0;return}i=!0;let u=r;r=o,o=u,r.forEach(p),e&&Fe.value&&Fe.value.frameloop[e].push(f),f=0,r.clear(),i=!1,n&&(n=!1,l.process(m))}};return l}var Zi=40;function Et(t,e){let r=!1,o=!0,i={delta:0,timestamp:0,isProcessing:!1},n=()=>r=!0,s=it.reduce((M,v)=>(M[v]=mo(n,e?v:void 0),M),{}),{setup:a,read:f,resolveKeyframes:p,preUpdate:l,update:m,preRender:u,render:d,postRender:x}=s,h=()=>{let M=K.useManualTiming,v=M?i.timestamp:performance.now();r=!1,M||(i.delta=o?1e3/60:Math.max(Math.min(v-i.timestamp,Zi),1)),i.timestamp=v,i.isProcessing=!0,a.process(i),f.process(i),p.process(i),l.process(i),m.process(i),u.process(i),d.process(i),x.process(i),i.isProcessing=!1,r&&e&&(o=!1,t(h))},g=()=>{r=!0,o=!0,i.isProcessing||t(h)};return{schedule:it.reduce((M,v)=>{let T=s[v];return M[v]=(w,P=!1,V=!1)=>(r||g(),T.schedule(w,P,V)),M},{}),cancel:M=>{for(let v=0;v<it.length;v++)s[it[v]].cancel(M)},state:i,steps:s}}var{schedule:I,cancel:nt,state:Pe,steps:Qa}=Et(typeof requestAnimationFrame<"u"?requestAnimationFrame:L,!0);var Ft;function Ji(){Ft=void 0}var B={now:()=>(Ft===void 0&&B.set(Pe.isProcessing||K.useManualTiming?Pe.timestamp:performance.now()),Ft),set:t=>{Ft=t,queueMicrotask(Ji)}};var Re={layout:0,mainThread:0,waapi:0};var fo=t=>e=>typeof e=="string"&&e.startsWith(t),Pt=fo("--"),Qi=fo("var(--"),Be=t=>Qi(t)?en.test(t.split("/*")[0].trim()):!1,en=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function gr(t){return typeof t!="string"?!1:t.split("/*")[0].includes("var(--")}var H={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},re={...H,transform:t=>N(0,1,t)},st={...H,default:1};var me=t=>Math.round(t*1e5)/1e5;var Oe=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function po(t){return t==null}var uo=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;var ke=(t,e)=>r=>!!(typeof r=="string"&&uo.test(r)&&r.startsWith(t)||e&&!po(r)&&Object.prototype.hasOwnProperty.call(r,e)),Rt=(t,e,r)=>o=>{if(typeof o!="string")return o;let[i,n,s,a]=o.match(Oe);return{[t]:parseFloat(i),[e]:parseFloat(n),[r]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}};var tn=t=>N(0,255,t),xr={...H,transform:t=>Math.round(tn(t))},Z={test:ke("rgb","red"),parse:Rt("red","green","blue"),transform:({red:t,green:e,blue:r,alpha:o=1})=>"rgba("+xr.transform(t)+", "+xr.transform(e)+", "+xr.transform(r)+", "+me(re.transform(o))+")"};function rn(t){let e="",r="",o="",i="";return t.length>5?(e=t.substring(1,3),r=t.substring(3,5),o=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),r=t.substring(2,3),o=t.substring(3,4),i=t.substring(4,5),e+=e,r+=r,o+=o,i+=i),{red:parseInt(e,16),green:parseInt(r,16),blue:parseInt(o,16),alph
vendor: 4,211 bytes, line 12
12a:i?parseInt(i,16)/255:1}}var at={test:ke("#"),parse:rn,transform:Z.transform};var lt=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),X=lt("deg"),fe=lt("%"),c=lt("px"),co=lt("vh"),ho=lt("vw"),yr={...fe,parse:t=>fe.parse(t)/100,transform:t=>fe.transform(t*100)};var pe={test:ke("hsl","hue"),parse:Rt("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:r,alpha:o=1})=>"hsla("+Math.round(t)+", "+fe.transform(me(e))+", "+fe.transform(me(r))+", "+me(re.transform(o))+")"};var E={test:t=>Z.test(t)||at.test(t)||pe.test(t),parse:t=>Z.test(t)?Z.parse(t):pe.test(t)?pe.parse(t):at.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?Z.transform(t):pe.transform(t),getAnimatableNone:t=>{let e=E.parse(t);return e.alpha=0,E.transform(e)}};var go=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function on(t){return isNaN(t)&&typeof t=="string"&&(t.match(Oe)?.length||0)+(t.match(go)?.length||0)>0}var yo="number",bo="color",nn="var",sn="var(",xo="${}",an=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function ue(t){let e=t.toString(),r=[],o={color:[],number:[],var:[]},i=[],n=0,a=e.replace(an,f=>(E.test(f)?(o.color.push(n),i.push(bo),r.push(E.parse(f))):f.startsWith(sn)?(o.var.push(n),i.push(nn),r.push(f)):(o.number.push(n),i.push(yo),r.push(parseFloat(f))),++n,xo)).split(xo);return{values:r,split:a,indexes:o,types:i}}function ln(t){return ue(t).values}function To({split:t,types:e}){let r=t.length;return o=>{let i="";for(let n=0;n<r;n++)if(i+=t[n],o[n]!==void 0){let s=e[n];s===yo?i+=me(o[n]):s===bo?i+=E.transform(o[n]):i+=o[n]}return i}}function mn(t){return To(ue(t))}var fn=t=>typeof t=="number"?0:E.test(t)?E.getAnimatableNone(t):t,pn=(t,e)=>typeof t=="number"?e?.trim().endsWith("/")?t:0:fn(t);function un(t){let e=ue(t);return To(e)(e.values.map((o,i)=>pn(o,e.split[i])))}var O={test:on,parse:ln,createTransformer:mn,getAnimatableNone:un};function br(t,e,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+(e-t)*6*r:r<1/2?e:r<2/3?t+(e-t)*(2/3-r)*6:t}function Vo({hue:t,saturation:e,lightness:r,alpha:o}){t/=360,e/=100,r/=100;let i=0,n=0,s=0;if(!e)i=n=s=r;else{let a=r<.5?r*(1+e):r+e-r*e,f=2*r-a;i=br(f,a,t+1/3),n=br(f,a,t),s=br(f,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(n*255),blue:Math.round(s*255),alpha:o}}function Ie(t,e){return r=>r>0?e:t}var W=(t,e,r)=>t+(e-t)*r;var Tr=(t,e,r)=>{let o=t*t,i=r*(e*e-o)+o;return i<0?0:Math.sqrt(i)},cn=[at,Z,pe],dn=t=>cn.find(e=>e.test(t));function vo(t){let e=dn(t);if(Y(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!e)return!1;let r=e.parse(t);return e===pe&&(r=Vo(r)),r}var Vr=(t,e)=>{let r=vo(t),o=vo(e);if(!r||!o)return Ie(t,e);let i={...r};return n=>(i.red=Tr(r.red,o.red,n),i.green=Tr(r.green,o.green,n),i.blue=Tr(r.blue,o.blue,n),i.alpha=W(r.alpha,o.alpha,n),Z.transform(i))};var Bt=new Set(["none","hidden"]);function So(t,e){return Bt.has(t)?r=>r<=0?t:e:r=>r>=1?e:t}function hn(t,e){return r=>W(t,e,r)}function Ot(t){return typeof t=="number"?hn:typeof t=="string"?Be(t)?Ie:E.test(t)?Vr:yn:Array.isArray(t)?Mo:typeof t=="object"?E.test(t)?Vr:gn:Ie}function Mo(t,e){let r=[...t],o=r.length,i=t.map((n,s)=>Ot(n)(n,e[s]));return n=>{for(let s=0;s<o;s++)r[s]=i[s](n);return r}}function gn(t,e){let r={...t,...e},o={};for(let i in r)t[i]!==void 0&&e[i]!==void 0&&(o[i]=Ot(t[i])(t[i],e[i]));return i=>{for(let n in o)r[n]=o[n](i);return r}}function xn(t,e){let r=[],o={color:0,var:0,number:0};for(let i=0;i<e.values.length;i++){let n=e.types[i],s=t.indexes[n][o[n]],a=t.values[s]??0;r[i]=a,o[n]++}return r}var yn=(t,e)=>{let r=O.createTransformer(e),o=ue(t),i=ue(e);return o.indexes.var.length===i.indexes.var.length&&o.indexes.color.length===i.indexes.color.length&&o.indexes.number.length>=i.indexes.number.length?Bt.has(t)&&!i.values.length||Bt.has(e)&&!o.values.length?So(t,e):xe(Mo(xn(o,i),i.values),r):(Y(!0,`Complex values '${t}' and '${e}
12' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),Ie(t,e))};function kt(t,e,r){return typeof t=="number"&&typeof e=="number"&&typeof r=="number"?W(t,e,r):Ot(t)(t,e)}var Ao=t=>{let e=({timestamp:r})=>t(r);return{start:(r=!0)=>I.update(e,r),stop:()=>nt(e),now:()=>Pe.isProcessing?Pe.timestamp:B.now()}};var It=(t,e,r=10)=>{let o="",i=Math.max(Math.round(e/r),2);for(let n=0;n<i;n++)o+=Math.round(t(n/(i-1))*1e4)/1e4+", ";return`linear(${o.substring(0,o.length-2)})`};function Ne(t){let e=0,r=50,o=t.next(e);for(;!o.done&&e<2e4;)e+=r,o=t.next(e);return e>=2e4?1/0:e}function mt(t,e=100,r){let o=r({...t,keyframes:[0,e]}),i=Math.min(Ne(o),2e4);return{type:"keyframes",ease:n=>o.next(i*n).value/e,duration:k(i)}}var F={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function Mr(t,e){return t*Math.sqrt(1-e*e)}var bn=12;function Tn(t,e,r){let o=r;for(let i=1;i<bn;i++)o=o-t(o)/e(o);return o}var Sr=.001;function Vn({duration:t=F.duration,bounce:e=F.bounce,velocity:r=F.velocity,mass:o=F.mass}){let i,n;Y(t<=R(F.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let s=1-e;s=N(F.minDamping,F.maxDamping,s),t=N(F.minDuration,F.maxDuration,k(t)),s<1?(i=p=>{let l=p*s,m=l*t,u=l-r,d=Mr(p,s),x=Math.exp(-m);return Sr-u/d*x},n=p=>{let m=p*s*t,u=m*r+r,d=Math.pow(s,2)*Math.pow(p,2)*t,x=Math.exp(-m),h=Mr(Math.pow(p,2),s);return(-i(p)+Sr>0?-1:1)*((u-d)*x)/h}):(i=p=>{let l=Math.exp(-p*t),m=(p-r)*t+1;return-Sr+l*m},n=p=>{let l=Math.exp(-p*t),m=(r-p)*(t*t);return l*m});let a=5/t,f=Tn(i,n,a);if(t=R(t),isNaN(f))return{stiffness:F.stiffness,damping:F.damping,duration:t};{let p=Math.pow(f,2)*o;return{stiffness:p,damping:s*2*Math.sqrt(o*p),duration:t}}}var vn=["duration","bounce"],Sn=["stiffness","damping","mass"];function wo(t,e){return e.some(r=>t[r]!==void 0)}function Mn(t){let e={velocity:F.velocity,stiffness:F.stiffness,damping:F.damping,mass:F.mass,isResolvedFromDuration:!1,...t};if(!wo(t,Sn)&&wo(t,vn))if(e.velocity=0,t.visualDuration){let r=t.visualDuration,o=2*Math.PI/(r*1.2),i=o*o,n=2*N(.05,1,1-(t.bounce||0))*Math.sqrt(i);e={...e,mass:F.mass,stiffness:i,damping:n}}else{let r=Vn({...t,velocity:0});e={...e,...r,mass:F.mass},e.isResolvedFromDuration=!0}return e}function oe(t=F.visualDuration,e=F.bounce){let r=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:o,restDelta:i}=r,n=r.keyframes[0],s=r.keyframes[r.keyframes.length-1],a={done:!1,value:n},{stiffness:f,damping:p,mass:l,duration:m,velocity:u,isResolvedFromDuration:d}=Mn({...r,velocity:-k(r.velocity||0)}),x=u||0,h=p/(2*Math.sqrt(f*l)),g=s-n,y=k(Math.sqrt(f/l)),C=Math.abs(g)<5;o||(o=C?F.restSpeed.granular:F.restSpeed.default),i||(i=C?F.restDelta.granular:F.restDelta.default);let M,v,T,w,P,V;if(h<1)T=Mr(y,h),w=(x+h*y*g)/T,M=b=>{let A=Math.exp(-h*y*b);return s-A*(w*Math.sin(T*b)+g*Math.cos(T*b))},P=h*y*w+g*T,V=h*y*g-w*T,v=b=>Math.exp(-h*y*b)*(P*Math.sin(T*b)+V*Math.cos(T*b));else if(h===1){M=A=>s-Math.exp(-y*A)*(g+(x+y*g)*A);let b=x+y*g;v=A=>Math.exp(-y*A)*(y*b*A-x)}else{let b=y*Math.sqrt(h*h-1);M=$=>{let Q=Math.exp(-h*y*$),ee=Math.min(b*$,300);return s-Q*((x+h*y*g)*Math.sinh(ee)+b*g*Math.cosh(ee))/b};let A=(x+h*y*g)/b,j=h*y*A-g*b,G=h*y*g-A*b;v=$=>{let Q=Math.exp(-h*y*$),ee=Math.min(b*$,300);return Q*(j*Math.sinh(ee)+G*Math.cosh(ee))}}let S={calculatedDuration:d&&m||null,velocity:b=>R(v(b)),next:b=>{if(!d&&h<1){let j=Math.exp(-h*y*b),G=Math.sin(T*b),$=Math.cos(T*b),Q=s-j*(w*G+g*$),ee=R(j*(P*G+V*$));return a.done=Math.abs(ee)<=o&&Math.abs(s-Q)<=i,a.value=a.done?s:Q,a}let A=M(b);if(d)a.done=b>=m;else{let j=R(v(b));a.done=Math.abs(j)<=o&&Math.abs(s-A)<=i}return a.value=a.done?s:A,a},toString:()=>{let b=Math.min(Ne(S),2e4),A=It(j=>S.next(b*j).value,b,30);return b+"ms "+A},toTransition:()=>{}};return S}oe.applyToOptions=t=>{let e=mt(t,100,oe);return t.ease=e.ease,t.duration=R(e.duration),t.type="keyframes",t};var An=5;function Nt(t,e,r){let o=Math.max(e-An,0);return Xe(r-t(o),e-o)}function ft({keyframes:t,velocity:e=0,power:r=.8,timeConstant:o=325,bounceDamping:i=10,bounceStiffness:n=500,modifyTarget:s,min:a,max:f,restDelta:p=.5,restSpeed:l}){let m=t[0],u={done:!1,value:m},d=V=>a!==void 0&&V<a||f!==void 0&&V>f,x=V=>a===void 0?f:f===void 0||Math.abs(a-V)<Math.abs(f-V)?a:f,h=r*e,g=m+h,y=s===void 0?g:s(g);y!==g&&(h=y-m);let C=V=>-h*Math.exp(-V/o),M=V=>y+C(V),v=V=>{let S=C(V),b=M(V);u.done=Math.abs(S)<=p,u.value=u.done?y:b},T,w,P=V=>{d(u.value)&&(T=V,w=oe({keyframes:[u.value,x(u.value)],velocity:Nt(M,V,u.value),damping:i,stiffness:n,restDelta:p,restSpeed:l}))};return P(0),{calculatedDuration:null,next:V=>{let S=!1;return!w&&T===void 0&&(S=!0,v(V),P(V)),T!==void 0&&V>=T?w.next(V-T):(!S&&v(V),u)}}}function wn(t,e,r){let o=[],i=r||K.mix||kt,n=t.length-1;for(let s=0;s<n;s++){let a=i(t[s],t[s+1]);if(e){let f=Array.isArray(e)?e[s]||L:e;a=xe(f,a)}o.push(a)}return o}function Co(t,e,{clamp:r=!0,ease:o,mixer:i}={}){let n=t.length;if(_(n===e.length,"Both input and output ranges must be the same length","range-length"),n===1)return()=>e[0];if(n===2&&e[0]===e[1])return()=>e[1];let s=t[0]===t[1];t[0]>t[n-1]&&(t=[...t].reverse(),e=[...e].reverse());let a=wn(e,o,i),f=a.length,p=l=>{if(s&&l<t[0])return e[0];let m=0;if(f>1)for(;m<t.length-2&&!(l<t[m+1]);m++);let u=ye(t[m],t[m+1],l);return a[m](u)};return r?l=>p(N(t[0],t[n-1],l)):p}function pt(t,e){let r=t[t.length-1];for(let o=1;o<=e;o++){let i=ye(0,e,o);t.push(W(r,1,i))}}function ut(t){let e=[0];return pt(e,t.length-1),e}function Do(t,e){return t.map(r=>r*e)}function Cn(t,e){return t.map(()=>e||et).splice(0,t.length-1)}function Ve({duration:t=300,keyframes:e,times:r,ease:o="easeInOut"}){let i=tt(o)?o.map(Dt):Dt(o),n={done:!1,value:e[0]},s=Do(r&&r.length===e.length?r:ut(e),t),a=Co(s,e,{ease:Array.isArray(i)?i:Cn(e,i)});return{calculatedDuration:t,next:f=>(n.value=a(f),n.done=f>=t,n)}}var Dn=t=>t!==null;function ce(t,{repeat:e,repeatType:r="loop"},o,i=1){let n=t.filter(Dn),a=i<0||e&&r!=="loop"&&e%2===1?0:n.length-1;return!a||o===void 0?n[a]:o}var En={decay:ft,inertia:ft,tween:Ve,keyframes:Ve,spring:oe};function Kt(t){typeof t.type=="string"&&(t.type=En[t.type])}var de=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,r){return this.finished.then(e,r)}};var Fn=t=>t/100,ie=class extends de{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:r}=this.options;r&&r.updatedAt!==B.now()&&this.tick(B.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},Re.mainThread++,this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){let{options:e}=this;Kt(e);let{type:r=Ve,repeat:o=0,repeatDelay:i=0,repeatType:n,velocity:s=0}=e,{keyframes:a}=e,f=r||Ve;
vendor: 5,296 bytes, line 12
12f!==Ve&&typeof a[0]!="number"&&(this.mixKeyframes=xe(Fn,kt(a[0],a[1])),a=[0,100]);let p=f({...e,keyframes:a});n==="mirror"&&(this.mirroredGenerator=f({...e,keyframes:[...a].reverse(),velocity:-s})),p.calculatedDuration===null&&(p.calculatedDuration=Ne(p));let{calculatedDuration:l}=p;this.calculatedDuration=l,this.resolvedDuration=l+i,this.totalDuration=this.resolvedDuration*(o+1)-i,this.generator=p}updateTime(e){let r=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=r}tick(e,r=!1){let{generator:o,totalDuration:i,mixKeyframes:n,mirroredGenerator:s,resolvedDuration:a,calculatedDuration:f}=this;if(this.startTime===null)return o.next(0);let{delay:p=0,keyframes:l,repeat:m,repeatType:u,repeatDelay:d,type:x,onUpdate:h,finalKeyframe:g}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-i/this.speed,this.startTime)),r?this.currentTime=e:this.updateTime(e);let y=this.currentTime-p*(this.playbackSpeed>=0?1:-1),C=this.playbackSpeed>=0?y<0:y>i;this.currentTime=Math.max(y,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let M=this.currentTime,v=o;if(m){let V=Math.min(this.currentTime,i)/a,S=Math.floor(V),b=V%1;!b&&V>=1&&(b=1),b===1&&S--,S=Math.min(S,m+1),S%2&&(u==="reverse"?(b=1-b,d&&(b-=d/a)):u==="mirror"&&(v=s)),M=N(0,1,b)*a}let T;C?(this.delayState.value=l[0],T=this.delayState):T=v.next(M),n&&!C&&(T.value=n(T.value));let{done:w}=T;!C&&f!==null&&(w=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);let P=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&w);return P&&x!==ft&&(T.value=ce(l,this.options,g,this.speed)),h&&h(T.value),P&&this.finish(),T}then(e,r){return this.finished.then(e,r)}get duration(){return k(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+k(e)}get time(){return k(this.currentTime)}set time(e){e=R(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=e,this.tick(e))}getGeneratorVelocity(){let e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);let r=this.generator.next(e).value;return Nt(o=>this.generator.next(o).value,e,r)}get speed(){return this.playbackSpeed}set speed(e){let r=this.playbackSpeed!==e;r&&this.driver&&this.updateTime(B.now()),this.playbackSpeed=e,r&&this.driver&&(this.time=k(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=Ao,startTime:r}=this.options;this.driver||(this.driver=e(i=>this.tick(i))),this.options.onPlay?.();let o=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=o):this.holdTime!==null?this.startTime=o-this.holdTime:this.startTime||(this.startTime=r??o),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(B.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,Re.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}};function Eo(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}var ve=t=>t*180/Math.PI,Ar=t=>{let e=ve(Math.atan2(t[1],t[0]));return wr(e)},Pn={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:Ar,rotateZ:Ar,skewX:t=>ve(Math.atan(t[1])),skewY:t=>ve(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},wr=t=>(t=t%360,t<0&&(t+=360),t),Fo=Ar,Po=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),Ro=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),Rn={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Po,scaleY:Ro,scale:t=>(Po(t)+Ro(t))/2,rotateX:t=>wr(ve(Math.atan2(t[6],t[5]))),rotateY:t=>wr(ve(Math.atan2(-t[2],t[0]))),rotateZ:Fo,rotate:Fo,skewX:t=>ve(Math.atan(t[4])),skewY:t=>ve(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function Gt(t){return t.includes("scale")?1:0}function Lt(t,e){if(!t||t==="none")return Gt(e);let r=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),o,i;if(r)o=Rn,i=r;else{let a=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);o=Pn,i=a}if(!i)return Gt(e);let n=o[e],s=i[1].split(",").map(Bn);return typeof n=="function"?n(s):s[n]}var Bo=(t,e)=>{let{transform:r="none"}=getComputedStyle(t);return Lt(r,e)};function Bn(t){return parseFloat(t.trim())}var J=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],z=new Set([...J,"pathRotation"]);
12var Cr=t=>t===H||t===c,On=new Set(["x","y","z"]),kn=J.filter(t=>!On.has(t));function Oo(t){let e=[];return kn.forEach(r=>{let o=t.getValue(r);o!==void 0&&(e.push([r,o.get()]),o.set(r.startsWith("scale")?1:0))}),e}var ne={width:({x:t},{paddingLeft:e="0",paddingRight:r="0",boxSizing:o})=>{let i=t.max-t.min;return o==="border-box"?i:i-parseFloat(e)-parseFloat(r)},height:({y:t},{paddingTop:e="0",paddingBottom:r="0",boxSizing:o})=>{let i=t.max-t.min;return o==="border-box"?i:i-parseFloat(e)-parseFloat(r)},top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>Lt(e,"x"),y:(t,{transform:e})=>Lt(e,"y")};ne.translateX=ne.x;ne.translateY=ne.y;var Se=new Set,Dr=!1,Er=!1,Fr=!1;function ko(){if(Er){let t=Array.from(Se).filter(o=>o.needsMeasurement),e=new Set(t.map(o=>o.element)),r=new Map;e.forEach(o=>{let i=Oo(o);i.length&&(r.set(o,i),o.render())}),t.forEach(o=>o.measureInitialState()),e.forEach(o=>{o.render();let i=r.get(o);i&&i.forEach(([n,s])=>{o.getValue(n)?.set(s)})}),t.forEach(o=>o.measureEndState()),t.forEach(o=>{o.suspendedScrollY!==void 0&&window.scrollTo(0,o.suspendedScrollY)})}Er=!1,Dr=!1,Se.forEach(t=>t.complete(Fr)),Se.clear()}function Io(){Se.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(Er=!0)})}function No(){Fr=!0,Io(),ko(),Fr=!1}var he=class{constructor(e,r,o,i,n,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=r,this.name=o,this.motionValue=i,this.element=n,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(Se.add(this),Dr||(Dr=!0,I.read(Io),I.resolveKeyframes(ko))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:r,element:o,motionValue:i}=this;if(e[0]===null){let n=i?.get(),s=e[e.length-1];if(n!==void 0)e[0]=n;else if(o&&r){let a=o.readValue(r,s);a!=null&&(e[0]=a)}e[0]===void 0&&(e[0]=s),i&&n===void 0&&i.set(e[0])}Eo(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),Se.delete(this)}cancel(){this.state==="scheduled"&&(Se.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}};var Ko=t=>t.startsWith("--");function Wt(t,e,r){Ko(e)?t.style.setProperty(e,r):t.style[e]=r}var Go={};function jt(t,e){let r=Ye(t);return()=>Go[e]??r()}var Lo=jt(()=>window.ScrollTimeline!==void 0,"scrollTimeline");var $t=jt(()=>{try{document.createElement("div").animate({opacity:0}
12,{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");var Me=([t,e,r,o])=>`cubic-bezier(${t}, ${e}, ${r}, ${o})`;var Pr={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Me([0,.65,.55,1]),circOut:Me([.55,0,1,.45]),backIn:Me([.31,.01,.66,-.59]),backOut:Me([.33,1.53,.69,.99])};function Rr(t,e){if(t)return typeof t=="function"?$t()?It(t,e):"ease-out":ot(t)?Me(t):Array.isArray(t)?t.map(r=>Rr(r,e)||Pr.easeOut):Pr[t]}function Wo(t,e,r,{delay:o=0,duration:i=300,repeat:n=0,repeatType:s="loop",ease:a="easeOut",times:f}={},p=void 0){let l={[e]:r};f&&(l.offset=f);let m=Rr(a,i);Array.isArray(m)&&(l.easing=m),Fe.value&&Re.waapi++;let u={delay:o,duration:i,easing:Array.isArray(m)?"linear":m,fill:"both",iterations:n+1,direction:s==="reverse"?"alternate":"normal"};p&&(u.pseudoElement=p);let d=t.animate(l,u);return Fe.value&&d.finished.finally(()=>{Re.waapi--}),d}function Ae(t){return typeof t=="function"&&"applyToOptions"in t}function jo({type:t,...e}){return Ae(t)&&$t()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}var Ke=class extends de{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:r,name:o,keyframes:i,pseudoElement:n,allowFlatten:s=!1,finalKeyframe:a,onComplete:f}=e;this.isPseudoElement=!!n,this.allowFlatten=s,this.options=e,_(typeof e.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");let p=jo(e);this.animation=Wo(r,o,i,p,n),p.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!n){let l=ce(i,this.options,a,this.speed);this.updateMotionValue&&this.updateMotionValue(l),Wt(r,o,l),this.animation.cancel()}f?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;e==="idle"||e==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return k(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+k(e)}get time(){return k(Number(this.animation.currentTime)||0)}set time(e){let r=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=R(e),r&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:r,rangeEnd:o,observe:i}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&Lo()?(this.animation.timeline=e,r&&(this.animation.rangeStart=r),o&&(this.animation.rangeEnd=o),L):i(this)}};var $o={anticipate:Ze,backInOut:He,circInOut:Qe};function In(t){return t in $o}function _o(t){typeof t.ease=="string"&&In(t.ease)&&(t.ease=$o[t.ease])}var Br=10,_t=class extends Ke{constructor(e){_o(e),Kt(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:r,onUpdate:o,onComplete:i,element:n,...s}=this.options;if(!r)return;if(e!==void 0){r.set(e);return}let a=new ie({...s,autoplay:!1}),f=Math.max(Br,B.now()-this.startTime),p=N(0,Br,f-Br),l=a.sample(f).value,{name:m}=this.options;n&&m&&Wt(n,m,l),r.setWithVelocity(a.sample(Math.max(0,f-p)).value,l,p),a.stop()}};var Or=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(O.test(t)||t==="0")&&!t.startsWith("url("));function Nn(t){let e=t[0];if(t.length===1)return!0;for(let r=0;r<t.length;r++)if(t[r]!==e)return!0}function zo(t,e,r,o){let i=t[0];if(i===null)return!1;if(e==="display"||e==="visibility")return!0;let n=t[t.length-1],s=Or(i,e),a=Or(n,e);return Y(s===a,`You are trying to animate ${e} from "${i}" to "${n}". "${s?n:i}" is not an animatable value.`,"value-not-animatable"),!s||!a?!1:Nn(t)||(r==="spring"||Ae(r))&&o}function ct(t){t.duration=0,t.type="keyframes"}var zt=new Set(["opacity","clipPath","filter","transform"]);var Kn=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function Uo(t){for(let e=0;e<t.length;e++)if(typeof t[e]=="string"&&Kn.test(t[e]))return!0;return!1}var Gn=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),Ln=Ye(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function qo(t){let{motionValue:e,name:r,repeatDelay:o,repeatType:i,damping:n,type:s,keyframes:a}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;
12let{onUpdate:p,transformTemplate:l}=e.owner.getProps();return Ln()&&r&&(zt.has(r)||Gn.has(r)&&Uo(a))&&(r!=="transform"||!l)&&!p&&!o&&i!=="mirror"&&n!==0&&s!=="inertia"}var Wn=40,Ut=class extends de{constructor({autoplay:e=!0,delay:r=0,type:o="keyframes",repeat:i=0,repeatDelay:n=0,repeatType:s="loop",keyframes:a,name:f,motionValue:p,element:l,...m}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=B.now();let u={autoplay:e,delay:r,type:o,repeat:i,repeatDelay:n,repeatType:s,name:f,motionValue:p,element:l,...m},d=l?.KeyframeResolver||he;this.keyframeResolver=new d(a,(x,h,g)=>this.onKeyframesResolved(x,h,u,!g),f,p,l),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,r,o,i){this.keyframeResolver=void 0;let{name:n,type:s,velocity:a,delay:f,isHandoff:p,onUpdate:l}=o;this.resolvedAt=B.now();let m=!0;zo(e,n,s,a)||(m=!1,(K.instantAnimations||!f)&&l?.(ce(e,o,r)),e[0]=e[e.length-1],ct(o),o.repeat=0);let d={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>Wn?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:r,...o,keyframes:e},x=m&&!p&&qo(d),h=d.motionValue?.owner?.current,g;if(x)try{g=new _t({...d,element:h})}catch{g=new ie(d)}else g=new ie(d);g.finished.then(()=>{this.notifyFinished()}).catch(L),this.pendingTimeline&&(this.stopTimeline=g.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=g}get finished(){return this._animation?this.animation.finished:this._finished}then(e,r){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),No()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}};var qt=class{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>e.finished))}getAll(e){return this.animations[0][e]}setAll(e,r){for(let o=0;o<this.animations.length;o++)this.animations[o][e]=r}attachTimeline(e){let r=this.animations.map(o=>o.attachTimeline(e));return()=>{r.forEach((o,i)=>{o&&o(),this.animations[i].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get state(){return this.getAll("state")}get startTime(){return this.getAll("startTime")}get duration(){return Yo(this.animations,"duration")}get iterationDuration(){return Yo(this.animations,"iterationDuration")}runAll(e){this.animations.forEach(r=>r[e]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}};function Yo(t,e){let r=0;for(let o=0;o<t.length;o++){let i=t[o][e];i!==null&&i>r&&(r=i)}return r}var dt=class extends qt{then(e,r){return this.finished.finally(e).then(()=>{})}};var Xo=30,jn=t=>!isNaN(parseFloat(t)),kr={current:void 0},Yt=class{constructor(e,r={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=o=>{let i=B.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(o),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let n of this.dependents)n.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=r.owner}setCurrent(e){this.current=e,this.updatedAt=B.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=jn(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,r){this.events[e]||(this.events[e]=new be);let o=this.events[e].add(r);return e==="change"?()=>{o(),I.read(()=>{this.events.change.getSize()||this.stop()})}:o}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,r){this.passiveEffect=e,this.stopPassiveEffect=r}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,r,o){this.set(r),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-o}jump(e,r=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,r&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return kr.current&&kr.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=B.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>Xo)return 0;let r=Math.min(this.updatedAt-this.prevUpdatedAt,Xo);return Xe(parseFloat(this.current)-parseFloat(this.prevFrameValue),r)}start(e){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=e(r),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function U(t,e){return new Yt(t,e)}function Xt(t,e){if(t?.inherit&&e){let{inherit:r,...o}=t;return{...e,...o}}return t}function Ht(t,e){let r=t?.[e]??t?.default??t;return r!==t?Xt(r,t):r}var $n={type:"spring",stiffness:500,damping:25,restSpeed:10},_n=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),zn={type:"keyframes",duration:.8},Un={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Ho=(t,{keyframes:e})=>e.length>2?zn:z.has(t)?t.startsWith("scale")?_n(e[1]):$n:Un;var qn=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function Zo(t){for(let e in t)if(!qn.has(e))return!0;return!1}var Zt=(t,e,r,o={},i,n)=>s=>{let a=Ht(o,t)||{},f=a.delay||o.delay||0,{elapsed:p=0}=o;p=p-R(f);let l={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-p,onUpdate:u=>{e.set(u),a.onUpdate&&a.onUpdate(u)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:n?void 0:i};Zo(a)||Object.assign(l,Ho(t,l)),l.duration&&(l.duration=R(l.duration)),l.repeatDelay&&(l.repeatDelay=R(l.repeatDelay)),l.from!==void 0&&(l.keyframes[0]=l.from);let m=!1;if((l.type===!1||l.duration===0&&!l.repeatDelay)&&(ct(l),l.delay===0&&(m=!0)),(K.instantAnimations||K.skipAnimations||i?.shouldSkipAnimations||a.skipAnimations)&&(m=!0,ct(l),l.delay=0),l.allowFlatten=!a.type&&!a.ease,m&&!n&&e.get()!==void 0){let u=ce(l.keyframes,a);if(u!==void 0){I.update(()=>{l.onUpdate(u),l.onComplete()});return}}return a.isSync?new ie(l):new Ut(l)};var Yn=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Xn(t){let e=Yn.exec(t);if(!e)return[,];let[,r,o,i]=e;return[`--${r??o}`,i]}var Hn=4;function Ir(t,e,r=1){_(r<=Hn,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[o,i]=Xn(t);if(!o)return;let n=window.getComputedStyle(e).getPropertyValue(o);if(n){let s=n.trim();return Ue(s)?parseFloat(s):s}return Be(i)?Ir(i,e,r+1):i}function Jo(t){let e=[{},{}];
12return t?.values.forEach((r,o)=>{e[0][o]=r.get(),e[1][o]=r.getVelocity()}),e}function Jt(t,e,r,o){if(typeof e=="function"){let[i,n]=Jo(o);e=e(r!==void 0?r:t.custom,i,n)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){let[i,n]=Jo(o);e=e(r!==void 0?r:t.custom,i,n)}return e}function Qo(t,e,r){let o=t.getProps();return Jt(o,e,r!==void 0?r:o.custom,t)}var Qt=new Set(["width","height","top","left","right","bottom",...J]);var ei=t=>Array.isArray(t);function Zn(t,e,r){t.hasValue(e)?t.getValue(e).set(r):t.addValue(e,U(r))}function Jn(t){return ei(t)?t[t.length-1]||0:t}function ti(t,e){let r=Qo(t,e),{transitionEnd:o={},transition:i={},...n}=r||{};n={...n,...o};for(let s in n){let a=Jn(n[s]);Zn(t,s,a)}}var D=t=>!!(t&&t.getVelocity);function ri(t){return!!(D(t)&&t.add)}function oi(t,e){let r=t.getValue("willChange");if(ri(r))return r.add(e);if(!r&&K.WillChange){let o=new K.WillChange("auto");t.addValue("willChange",o),o.add(e)}}function Ge(t){return t.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}var Qn="framerAppearId",ii="data-"+Ge(Qn);function ni(t){return t.props[ii]}function es({protectedKeys:t,needsAnimating:e},r){let o=t.hasOwnProperty(r)&&e[r]!==!0;return e[r]=!1,o}function Nr(t,e,{delay:r=0,transitionOverride:o,type:i}={}){let{transition:n,transitionEnd:s,...a}=e,f=t.getDefaultTransition();n=n?Xt(n,f):f;let p=n?.reduceMotion,l=n?.skipAnimations;o&&(n=o);let m=[],u=i&&t.animationState&&t.animationState.getState()[i],d=n?.path;d&&d.animateVisualElement(t,a,n,r,m);for(let x in a){let h=t.getValue(x,t.latestValues[x]??null),g=a[x];if(g===void 0||u&&es(u,x))continue;let y={delay:r,...Ht(n||{},x)};l&&(y.skipAnimations=!0);let C=h.get();if(C!==void 0&&!h.isAnimating()&&!Array.isArray(g)&&g===C&&!y.velocity){I.update(()=>h.set(g));continue}let M=!1;if(window.MotionHandoffAnimation){let w=ni(t);if(w){let P=window.MotionHandoffAnimation(w,x,I);P!==null&&(y.startTime=P,M=!0)}}oi(t,x);let v=p??t.shouldReduceMotion;h.start(Zt(x,h,g,v&&Qt.has(x)?{type:!1}:y,t,M));let T=h.animation;T&&m.push(T)}if(s){let x=()=>I.update(()=>{s&&ti(t,s)});m.length?Promise.all(m).then(x):x()}return m}var si={test:t=>t==="auto",parse:t=>t};var er=t=>e=>e.test(t);var Kr=[H,c,fe,X,ho,co,si],Gr=t=>Kr.find(er(t));function ai(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||qe(t):!0}var ts=new Set(["brightness","contrast","saturate","opacity"]);function rs(t){let[e,r]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;let[o]=r.match(Oe)||[];if(!o)return t;let i=r.replace(o,""),n=ts.has(e)?1:0;return o!==r&&(n*=100),e+"("+n+i+")"}var os=/\b([a-z-]*)\(.*?\)/gu,ht={...O,getAnimatableNone:t=>{let e=t.match(os);return e?e.map(rs).join(" "):t}};var gt={...O,getAnimatableNone:t=>{let e=O.parse(t);return O.createTransformer(t)(e.map(o=>typeof o=="number"?0:typeof o=="object"?{...o,alpha:1}:o))}};var Lr={...H,transform:Math.round};var li={rotate:X,pathRotation:X,rotateX:X,rotateY:X,rotateZ:X,scale:st,scaleX:st,scaleY:st,scaleZ:st,skew:X,skewX:X,skewY:X,distance:c,translateX:c,translateY:c,translateZ:c,x:c,y:c,z:c,perspective:c,transformPerspective:c,opacity:re,originX:yr,originY:yr,originZ:c};var we={borderWidth:c,borderTopWidth:c,borderRightWidth:c,borderBottomWidth:c,borderLeftWidth:c,borderRadius:c,borderTopLeftRadius:c,borderTopRightRadius:c,borderBottomRightRadius:c,borderBottomLeftRadius:c,width:c,maxWidth:c,height:c,maxHeight:c,top:c,right:c,bottom:c,left:c,inset:c,insetBlock:c,insetBlockStart:c,insetBlockEnd:c,insetInline:c,insetInlineStart:c,insetInlineEnd:c,padding:c,paddingTop:c,paddingRight:c,paddingBottom:c,paddingLeft:c,paddingBlock:c,paddingBlockStart:c,paddingBlockEnd:c,paddingInline:c,paddingInlineStart:c,paddingInlineEnd:c,margin:c,marginTop:c,marginRight:c,marginBottom:c,marginLeft:c,marginBlock:c,marginBlockStart:c,marginBlockEnd:c,marginInline:c,marginInlineStart:c,marginInlineEnd:c,fontSize:c,backgroundPositionX:c,backgroundPositionY:c,...li,zIndex:Lr,fillOpacity:re,strokeOpacity:re,numOctaves:Lr};var is={...we,color:E,backgroundColor:E,outlineColor:E,fill:E,stroke:E,borderColor:E,borderTopColor:E,borderRightColor:E,borderBottomColor:E,borderLeftColor:E,filter:ht,WebkitFilter:ht,mask:gt,WebkitMask:gt},tr=t=>is[t];var ns=new Set([ht,gt]);function rr(t,e){let r=tr(t);return ns.has(r)||(r=O),r.getAnimatableNone?r.getAnimatableNone(e):void 0}
12var ss=new Set(["auto","none","0"]);function mi(t,e,r){let o=0,i;for(;o<t.length&&!i;){let n=t[o];typeof n=="string"&&!ss.has(n)&&ue(n).values.length&&(i=t[o]),o++}if(i&&r)for(let n of e)t[n]=rr(r,i)}var or=class extends he{constructor(e,r,o,i,n){super(e,r,o,i,n,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:r,name:o}=this;if(!r||!r.current)return;super.readKeyframes();for(let l=0;l<e.length;l++){let m=e[l];if(typeof m=="string"&&(m=m.trim(),Be(m))){let u=Ir(m,r.current);u!==void 0&&(e[l]=u),l===e.length-1&&(this.finalKeyframe=m)}}if(this.resolveNoneKeyframes(),!Qt.has(o)||e.length!==2)return;let[i,n]=e,s=Gr(i),a=Gr(n),f=gr(i),p=gr(n);if(f!==p&&ne[o]){this.needsMeasurement=!0;return}if(s!==a)if(Cr(s)&&Cr(a))for(let l=0;l<e.length;l++){let m=e[l];typeof m=="string"&&(e[l]=parseFloat(m))}else ne[o]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:r}=this,o=[];for(let i=0;i<e.length;i++)(e[i]===null||ai(e[i]))&&o.push(i);o.length&&mi(e,o,r)}measureInitialState(){let{element:e,unresolvedKeyframes:r,name:o}=this;if(!e||!e.current)return;o==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=ne[o](e.measureViewportBox(),window.getComputedStyle(e.current)),r[0]=this.measuredOrigin;let i=r[r.length-1];i!==void 0&&e.getValue(o,i).jump(i,!1)}measureEndState(){let{element:e,name:r,unresolvedKeyframes:o}=this;if(!e||!e.current)return;let i=e.getValue(r);i&&i.jump(this.measuredOrigin,!1);let n=o.length-1,s=o[n];o[n]=ne[r](e.measureViewportBox(),window.getComputedStyle(e.current)),s!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=s),this.removedTransforms?.length&&this.removedTransforms.forEac
12h(([a,f])=>{e.getValue(a).set(f)}),this.resolveNoneKeyframes()}};function xt(t,e,r){if(t==null)return[];if(t instanceof EventTarget)return[t];if(typeof t=="string"){let o=document;e&&(o=e.current);let i=r?.[t]??o.querySelectorAll(t);return i?Array.from(i):[]}return Array.from(t).filter(o=>o!=null)}var yt=(t,e)=>e&&typeof t=="number"?e.transform(t):t;var{schedule:fi,cancel:kc}=Et(queueMicrotask,!1);function bt(t){return ur(t)&&"ownerSVGElement"in t}function Wr(t){return bt(t)&&t.tagName==="svg"}var as=[...Kr,E,O],pi=t=>as.find(er(t));var ui=()=>({min:0,max:0}),Le=()=>({x:ui(),y:ui()});var se=new WeakMap;function ci(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function di(t){return typeof t=="string"||Array.isArray(t)}var ls=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],hi=["initial",...ls];function jr(t){return ci(t.animate)||hi.some(e=>di(t[e]))}function gi(t){return!!(jr(t)||t.variants)}function xi(t,e,r){for(let o in e){let i=e[o],n=r[o];if(D(i))t.addValue(o,i);else if(D(n))t.addValue(o,U(i,{owner:t}));else if(n!==i)if(t.hasValue(o)){let s=t.getValue(o);s.liveStyle===!0?s.jump(i):s.hasAnimated||s.set(i)}else{let s=t.getStaticValue(o);t.addValue(o,U(s!==void 0?s:i,{owner:t}))}}for(let o in r)e[o]===void 0&&t.removeValue(o);return e}var Tt={current:null},ir={current:!1};var ms=typeof window<"u";function yi(){if(ir.current=!0,!!ms)if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Tt.current=t.matches;t.addEventListener("change",e),e()}else Tt.current=!1}var bi=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],Ti={};var We=class{scrapeMotionValuesFromProps(e,r,o){return{}}constructor({parent:e,props:r,presenceContext:o,reducedMotionConfig:i,skipAnimations:n,blockInitialAnimation:s,visualState:a},f={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=he,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let d=B.now();this.renderScheduledAt<d&&(this.renderScheduledAt=d,I.render(this.render,!1,!0))};let{latestValues:p,renderState:l}=a;this.latestValues=p,this.baseTarget={...p},this.initialValues=r.initial?{...p}:{},this.renderState=l,this.parent=e,this.props=r,this.presenceContext=o,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.skipAnimationsConfig=n,this.options=f,this.blockInitialAnimation=!!s,this.isControllingVariants=jr(r),this.isVariantNode=gi(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:m,...u}=this.scrapeMotionValuesFromProps(r,{},this);for(let d in u){let x=u[d];p[d]!==void 0&&D(x)&&x.set(p[d])}}mount(e){if(this.hasBeenMounted)for(let r in this.initialValues)this.values.get(r)?.jump(this.initialValues[r]),this.latestValues[r]=this.initialValues[r];this.current=e,se.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,o)=>this.bindToMotionValue(o,r)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(ir.current||yi(),this.shouldReduceMotion=Tt.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),nt(this.notifyUpdate),nt(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(let e in this.events)this.events[e].clear();for(let e in this.features){let r=this.features[e];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,r){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),r.accelerate&&zt.has(e)&&this.current instanceof HTMLElement){let{factory:s,keyframes:a,times:f,ease:p,duration:l}=r.accelerate,m=new Ke({element:this.current,name:e,keyframes:a,times:f,ease:p,duration:R(l)}),u=s(m);this.valueSubscriptions.set(e,()=>{u(),m.cancel()});return}let o=z.has(e);o&&this.onBindTransform&&this.onBindTransform();let i=r.on("change",s=>{this.latestValues[e]=s,this.props.onUpdate&&I.preRender(this.notifyUpdate),o&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}),n;typeof window<"u"&&window.MotionCheckAppearSync&&(n=window.MotionCheckAppearSync(this,e,r)),this.valueSubscriptions.set(e,()=>{i(),n&&n()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in Ti){let r=Ti[e];if(!r)continue;let{isEnabled:o,Feature:i}=r;if(!this.features[e]&&i&&o(this.props)&&(this.features[e]=new i(this)),this.features[e]){let n=this.features[e];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Le()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,r){this.latestValues[e]=r}update(e,r){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;
12for(let o=0;o<bi.length;o++){let i=bi[o];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let n="on"+i,s=e[n];s&&(this.propEventSubscriptions[i]=this.on(i,s))}this.prevMotionValues=xi(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let r=this.getClosestVariantNode();if(r)return r.variantChildren&&r.variantChildren.add(e),()=>r.variantChildren.delete(e)}addValue(e,r){let o=this.values.get(e);r!==o&&(o&&this.removeValue(e),this.bindToMotionValue(e,r),this.values.set(e,r),this.latestValues[e]=r.get())}removeValue(e){this.values.delete(e);let r=this.valueSubscriptions.get(e);r&&(r(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,r){if(this.props.values&&this.props.values[e])return this.props.values[e];let o=this.values.get(e);return o===void 0&&r!==void 0&&(o=U(r===null?void 0:r,{owner:this}),this.addValue(e,o)),o}readValue(e,r){let o=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return o!=null&&(typeof o=="string"&&(Ue(o)||qe(o))?o=parseFloat(o):!pi(o)&&O.test(r)&&(o=rr(e,r)),this.setBaseTarget(e,D(o)?o.get():o)),D(o)?o.get():o}setBaseTarget(e,r){this.baseTarget[e]=r}getBaseTarget(e){let{initial:r}=this.props,o;if(typeof r=="string"||typeof r=="object"){let n=Jt(this.props,r,this.presenceContext?.custom);n&&(o=n[e])}if(r&&o!==void 0)return o;let i=this.getBaseTargetFromProps(this.props,e);return i!==void 0&&!D(i)?i:this.initialValues[e]!==void 0&&o===void 0?void 0:this.baseTarget[e]}on(e,r){return this.events[e]||(this.events[e]=new be),this.events[e].add(r)}notify(e,...r){this.events[e]&&this.events[e].notify(...r)}scheduleRenderMicrotask(){fi.render(this.render)}};var je=class extends We{constructor(){super(...arguments),this.KeyframeResolver=or}sortInstanceNodePosition(e,r){return e.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(e,r){let o=e.style;return o?o[r]:void 0}removeValueFromRenderState(e,{vars:r,style:o}){delete r[e],delete o[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;D(e)&&(this.childSubscription=e.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}};function Vi({top:t,left:e,right:r,bottom:o}){return{x:{min:e,max:r},y:{min:t,max:o}}}function vi(t,e){if(!e)return t;let r=e({x:t.left,y:t.top}),o=e({x:t.right,y:t.bottom});return{top:r.y,left:r.x,bottom:o.y,right:o.x}}function Si(t,e){return Vi(vi(t.getBoundingClientRect(),e))}var fs={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},ps=J.length;function Mi(t,e,r){let o="",i=!0;for(let s=0;s<ps;s++){let a=J[s],f=t[a];if(f===void 0)continue;let p=!0;if(typeof f=="number")p=f===(a.startsWith("scale")?1:0);else{let l=parseFloat(f);p=a.startsWith("scale")?l===1:l===0}if(!p||r){let l=yt(f,we[a]);if(!p){i=!1;let m=fs[a]||a;o+=`${m}(${l}) `}r&&(e[a]=l)}}let n=t.pathRotation;return n&&(i=!1,o+=`rotate(${yt(n,we.pathRotation)}) `),o=o.trim(),r?o=r(e,i?"":o):i&&(o="none"),o}function nr(t,e,r){let{style:o,vars:i,transformOrigin:n}=t,s=!1,a=!1;for(let f in e){let p=e[f];if(z.has(f)){s=!0;continue}else if(Pt(f)){i[f]=p;continue}else{let l=yt(p,we[f]);f.startsWith("origin")?(a=!0,n[f]=l):o[f]=l}}if(e.transform||(s||r?o.transform=Mi(e,t.transform,r):o.transform&&(o.transform="none")),a){let{originX:f="50%",originY:p="50%",originZ:l=0}=n;o.transformOrigin=`${f} ${p} ${l}`}}function sr(t,{style:e,vars:r},o,i){let n=t.style,s;for(s in e)n[s]=e[s];i?.applyProjectionStyles(n,o);for(s in r)n.setProperty(s,r[s])}function Ai(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}var $e={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(c.test(t))t=parseFloat(t);else return t;let r=Ai(t,e.target.x),o=Ai(t,e.target.y);return`${r}% ${o}%`}};var wi={correct:(t,{treeScale:e,projectionDelta:r})=>{let o=t,i=O.parse(t);if(i.length>5)return o;let n=O.createTransformer(t),s=typeof i[0]!="number"?1:0,a=r.x.scale*e.x,f=r.y.scale*e.y;i[0+s]/=a,i[1+s]/=f;let p=W(a,f,.5);return typeof i[2+s]=="number"&&(i[2+s]/=p),typeof i[3+s]=="number"&&(i[3+s]/=p),n(i)}};var Ci={borderRadius:{...$e,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:$e,borderTopRightRadius:$e,borderBottomLeftRadius:$e,borderBottomRightRadius:$e,boxShadow:wi};function Di(t,{layout:e,layoutId:r}){return z.has(t)||t.startsWith("origin")||(e||r!==void 0)&&(!!Ci[t]||t==="opacity")}function ar(t,e,r){let o=t.style,i=e?.style,n={};if(!o)return n;for(let s in o)(D(o[s])||i&&D(i[s])||Di(s,t)||r?.getValue(s)?.liveStyle!==void 0)&&(n[s]=o[s]);return n}function us(t){return window.getComputedStyle(t)}var Vt=class extends je{constructor(){super(...arguments),this.type="html",this.renderInstance=sr}readValueFromInstance(e,r){if(z.has(r))return this.projection?.isProjecting?Gt(r):Bo(e,r);{let o=us(e),i=(Pt(r)?o.getPropertyValue(r):o[r])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:r}){return Si(e,r)}build(e,r,o){nr(e,r,o.transformTemplate)}scrapeMotionValuesFromProps(e,r,o){return ar(e,r,o)}};function cs(t,e){return t in e}var vt=class extends We{constructor(){super(...arguments),this.type="object"}readValueFromInstance(e,r){if(cs(r,e)){let o=e[r];
12if(typeof o=="string"||typeof o=="number")return o}}getBaseTargetFromProps(){}removeValueFromRenderState(e,r){delete r.output[e]}measureInstanceViewportBox(){return Le()}build(e,r){Object.assign(e.output,r)}renderInstance(e,{output:r}){Object.assign(e,r)}sortInstanceNodePosition(){return 0}};var ds={offset:"stroke-dashoffset",array:"stroke-dasharray"},hs={offset:"strokeDashoffset",array:"strokeDasharray"};function Ei(t,e,r=1,o=0,i=!0){t.pathLength=1;let n=i?ds:hs;t[n.offset]=`${-o}`,t[n.array]=`${e} ${r}`}var gs=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Fi(t,{attrX:e,attrY:r,attrScale:o,pathLength:i,pathSpacing:n=1,pathOffset:s=0,...a},f,p,l){if(nr(t,a,p),f){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:m,style:u}=t;m.transform&&(u.transform=m.transform,delete m.transform),(u.transform||m.transformOrigin)&&(u.transformOrigin=m.transformOrigin??"50% 50%",delete m.transformOrigin),u.transform&&(u.transformBox=l?.transformBox??"fill-box",delete m.transformBox);for(let d of gs)m[d]!==void 0&&(u[d]=m[d],delete m[d]);e!==void 0&&(m.x=e),r!==void 0&&(m.y=r),o!==void 0&&(m.scale=o),i!==void 0&&Ei(m,i,n,s,!1)}var lr=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);var Pi=t=>typeof t=="string"&&t.toLowerCase()==="svg";function Ri(t,e,r,o){sr(t,e,void 0,o);for(let i in e.attrs)t.setAttribute(lr.has(i)?i:Ge(i),e.attrs[i])}function Bi(t,e,r){let o=ar(t,e,r);for(let i in t)if(D(t[i])||D(e[i])){let n=J.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;o[n]=t[i]}return o}var St=class extends je{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Le}getBaseTargetFromProps(e,r){return e[r]}readValueFromInstance(e,r){if(z.has(r)){let o=tr(r);return o&&o.default||0}return r=lr.has(r)?r:Ge(r),e.getAttribute(r)}scrapeMotionValuesFromProps(e,r,o){return Bi(e,r,o)}build(e,r,o){Fi(e,r,this.isSVGTag,o.transformTemplate,o.style)}renderInstance(e,r,o,i){Ri(e,r,o,i)}mount(e){this.isSVGTag=Pi(e.tagName),super.mount(e)}};function $r(t,e,r){let o=D(t)?t:U(t);return o.start(Zt("",o,e,r)),o.animation}function Mt(t){return typeof t=="object"&&!Array.isArray(t)}function mr(t,e,r,o){return t==null?[]:typeof t=="string"&&Mt(e)?xt(t,r,o):t instanceof NodeList?Array.from(t):Array.isArray(t)?t.filter(i=>i!=null):[t]}function Oi(t,e,r){return t*(e+1)+r*e}function _r(t,e,r,o){return typeof e=="number"?e:e.startsWith("-")||e.startsWith("+")?Math.max(0,t+parseFloat(e)):e==="<"?r:e.startsWith("<")?Math.max(0,r+parseFloat(e.slice(1))):o.get(e)??t}function xs(t,e,r){for(let o=0;o<t.length;o++){let i=t[o];i.at>e&&i.at<r&&(ge(t,i),o--)}}function ki(t,e,r,o,i,n){xs(t,i,n);for(let s=0;s<e.length;s++)t.push({value:e[s],at:W(i,n,o[s]),easing:rt(r,s)})}function Ii(t,e,r=0){let o=e+1+e*r;for(let i=0;i<t.length;i++)t[i]=t[i]/o}function Ni(t,e){return t.at===e.at?t.value===null?1:e.value===null?-1:0:t.at-e.at}var ys="easeInOut",zr=20;function Li(t,{defaultTransition:e={},...r}={},o,i){let n=e.duration||.3,s=new Map,a=new Map,f={},p=new Map,l=0,m=0,u=0;for(let d=0;d<t.length;d++){let x=t[d];if(typeof x=="string"){p.set(x,m);continue}else if(!Array.isArray(x)){p.set(x.name,_r(m,x.at,l,p));continue}let[h,g,y={}]=x;y.at!==void 0&&(m=_r(m,y.at,l,p));let C=0,M=(v,T,w,P=0,V=0)=>{let S=bs(v),{delay:b=0,times:A=ut(S),type:j=e.type||"keyframes",repeat:G,repeatType:$,repeatDelay:Q=0,...ee}=T,{ease:te=e.ease||"easeOut",duration:q}=T,Yr=typeof b=="function"?b(P,V):b,Xr=S.length,Hr=Ae(j)?j:i?.[j||"keyframes"];if(Xr<=2&&Hr){let Ce=100;if(Xr===2&&vs(S)){let _e=S[1]-S[0];Ce=Math.abs(_e)}let De={...e,...ee};q!==void 0&&(De.duration=R(q));let At=mt(De,Ce,Hr);te=At.ease,q=At.duration}q??(q=n);let Zr=m+Yr;A.length===1&&A[0]===0&&(A[1]=1);let Jr=A.length-S.length;if(Jr>0&&pt(A,Jr),S.length===1&&S.unshift(null),G&&Y(G<zr,`Sequence segments can't repeat ${G} times \u2014 ignoring repeat option. Use a value below ${zr} or apply repeat at the sequence level instead.`),G&&G<zr){let Ce=q>0?Q/q:0;q=Oi(q,G,Q);let De=[...S],At=[...A];te=Array.isArray(te)?[...te]:[te];let _e=[...te],eo=$==="reverse"||$==="mirror",to=De,ro=_e;eo&&(to=[...De].reverse(),$==="reverse"&&(ro=[..._e].reverse().map(ae=>typeof ae=="function"?Te(ae):ae)));for(let ae=0;ae<G;ae++){let oo=eo&&ae%2===0,io=oo?to:De,Ui=oo?ro:_e,no=(ae+1)*(1+Ce);Ce>0&&(S.push(S[S.length-1]),A.push(no),te.push("linear")),S.push(...io);for(let ze=0;ze<io.length;ze++)A.push(At[ze]+no),te.push(ze===0?"linear":rt(Ui,ze-1))}Ii(A,G,Ce)}let Qr=Zr+q;ki(w,S,te,A,Zr,Qr),C=Math.max(Yr+q,C),u=Math.max(Qr,u)};if(D(h)){let v=Ki(h,a);M(g,y,Gi("default",v))}else{let v=mr(h,g,o,f),T=v.length;for(let w=0;w<T;w++){g=g,y=y;let P=v[w],V=Ki(P,a);for(let S in g)M(g[S],Ts(y,S),Gi(S,V),w,T)}}l=m,m+=C}return a.forEach((d,x)=>{for(let h in d){let g=d[h];g.sort(Ni);let y=[],C=[],M=[];for(let P=0;P<g.length;P++){let{at:V,value:S,easing:b}=g[P];y.push(S),C.push(ye(0,u,V)),M.push(b||"easeOut")}C[0]!==0&&(C.unshift(0),y.unshift(y[0]),M.unshift(ys)),C[C.length-1]!==1&&(C.push(1),y.push(null)),s.has(x)||s.set(x,{keyframes:{},transition:{}});let v=s.get(x);v.keyframes[h]=y;let{type:T,...w}=e;v.transition[h]={...w,duration:u,ease:M,times:C,...r}}}),s}function Ki(t,e){return!e.has(t)&&e.set(t,{}),e.get(t)}function Gi(t,e){return e[t]||(e[t]=[]),e[t]}function bs(t){return Array.isArray(t)?t:[t]}function Ts(t,e){return t&&t[e]?{...t,...t[e]}:{...t}}var Vs=t=>typeof t=="number",vs=t=>t.every(Vs);function Wi(t){let e={presenceContext:null,props:{}
12,visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},r=bt(t)&&!Wr(t)?new St(e):new Vt(e);r.mount(t),se.set(t,r)}function ji(t){let e={presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}},r=new vt(e);r.mount(t),se.set(t,r)}function Ss(t,e){return D(t)||typeof t=="number"||typeof t=="string"&&!Mt(e)}function fr(t,e,r,o){let i=[];if(Ss(t,e))i.push($r(t,Mt(e)&&e.default||e,r&&(r.default||r)));else{if(t==null)return i;let n=mr(t,e,o),s=n.length;_(!!s,"No valid elements provided.","no-valid-elements");for(let a=0;a<s;a++){let f=n[a],p=f instanceof Element?Wi:ji;se.has(f)||p(f);let l=se.get(f),m={...r};"delay"in m&&typeof m.delay=="function"&&(m.delay=m.delay(a,s)),i.push(...Nr(l,{...e,transition:m},{}))}}return i}function $i(t,e,r){let o=[],i=t.map(s=>{if(Array.isArray(s)&&typeof s[0]=="function"){let a=s[0],f=U(0);return f.on("change",a),s.length===1?[f,[0,1]]:s.length===2?[f,[0,1],s[1]]:[f,s[1],s[2]]}return s});return Li(i,e,r,{spring:oe}).forEach(({keyframes:s,transition:a},f)=>{o.push(...fr(f,s,a))}),o}function Ms(t){return Array.isArray(t)&&t.some(Array.isArray)}function _i(t={}){let{scope:e,reduceMotion:r,skipAnimations:o}=t;function i(n,s,a){let f=[],p,l={};if(r!==void 0&&(l.reduceMotion=r),o!==void 0&&(l.skipAnimations=o),Ms(n)){let{onComplete:u,...d}=s||{};typeof u=="function"&&(p=u),f=$i(n,{...l,...d},e)}else{let{onComplete:u,...d}=a||{};typeof u=="function"&&(p=u),f=fr(n,s,{...l,...d},e)}let m=new dt(f);return p&&m.finished.then(p),e&&(e.animations.push(m),m.finished.then(()=>{ge(e.animations,m)})),m}return i}var Ur=_i();var As={some:0,all:1};function qr(t,e,{root:r,margin:o,amount:i="some"}={}){let n=xt(t),s=new WeakMap,a=p=>{p.forEach(l=>{let m=s.get(l.target);if(l.isIntersecting!==!!m)if(l.isIntersecting){let u=e(l.target,l);typeof u=="function"?s.set(l.target,u):f.unobserve(l.target)}else typeof m=="function"&&(m(l),s.delete(l.target))})},f=new IntersectionObserver(a,{root:r,rootMargin:o,threshold:typeof i=="number"?i:As[i]});return n.forEach(p=>f.observe(p)),()=>f.disconnect()}var ws=document.querySelectorAll("[data-animation]"),zi={fade_up:["translateY(100px)","translateY(0px)"],fade_down:["translateY(-100px)","translateY(0px)"],fade_left:["translateX(100px)","translateX(0px)"],fade_right:["translateX(-100px)","translateX(0px)"]};qr(ws,t=>{let e=t.dataset.animation||"fade_up",r=zi[e]||zi.fade_up,o=(parseFloat(t.dataset.delay)||0)/1e3,i=(parseFloat(t.dataset.duration)||300)/1e3;Ur(t,{opacity:1,transform:r},{delay:o,duration:i,ease:"easeOut"})},{amount:1});})(); 13;
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.