1/*! For license information please see app.c8ac7875.js.LICENSE.txt */ 2(self.webpackChunkmarketphase=self.webpackChunkmarketphase||[]).push([[524],{9283(e,t,n){const r={"./account-switcher-controller.ts":9441,"./autosubmit_controller.ts":4349,"./bounded-number_controller.ts":6203,"./catalogue-rate-rows_controller.ts":4200,"./combobox-filter_controller.ts":9520,"./copyable-controller.ts":4709,"./date-controller.ts":7018,"./date-range-controller.ts":6750,"./daterangepicker-controller.ts":2775,"./division-picker_controller.ts":2972,"./dropzone-controller.ts":8619,"./epr-document-dropzone-controller.ts":3439,"./epr-filing-type-template-dropzone-controller.ts":9231,"./epr-jotform-submit-controller.ts":9248,"./feedback-fab_controller.ts":9697,"./form-collection-controller.ts":6501,"./groupings_order_controller.ts":3751,"./help-fab_controller.ts":1205,"./invoice-dropzone-controller.ts":2749,"./invoice-review-controller.ts":7084,"./live-file-controller.ts":7943,"./modal-controller.ts":4393,"./phone-input-controller.js":8365,"./popper-tooltip-controller.ts":6682,"./prevent-enter-submit-controller.ts":5734,"./prevent-multiple-submits-controller.ts":4989,"./refresh-controller.ts":4855,"./swiper-controller.ts":2075,"./usage-modal-controller.ts":4971,"./vat-export_controller.js":7280,"./vat-filings-filter_controller.js":5703,"./vat-override-collection_controller.ts":4379};function i(e){const t=o(e);return n(t)}function o(e){if(!n.o(r,e)){const t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=o,e.exports=i,i.id=9283},2891(e,t,n){"use strict";n.d(t,{lg:()=>Z,xI:()=>ce});class r{constructor(e,t,n){this.eventTarget=e,this.eventName=t,this.eventOptions=n,this.unorderedBindings=new Set}connect(){this.eventTarget.addEventListener(this.eventName,this,this.eventOptions)}disconnect(){this.eventTarget.removeEventListener(this.eventName,this,this.eventOptions)}bindingConnected(e){this.unorderedBindings.add(e)}bindingDisconnected(e){this.unorderedBindings.delete(e)}handleEvent(e){const t=function(e){if("immediatePropagationStopped"in e)return e;{const{stopImmediatePropagation:t}=e;return Object.assign(e,{immediatePropagationStopped:!1,stopImmediatePropagation(){this.immediatePropagationStopped=!0,t.call(this)}})}}(e);for(const e of this.bindings){if(t.immediatePropagationStopped)break;e.handleEvent(t)}}hasBindings(){return this.unorderedBindings.size>0}get bindings(){return Array.from(this.unorderedBindings).sort((e,t)=>{const n=e.index,r=t.index;return n<r?-1:n>r?1:0})}}class i{constructor(e){this.application=e,this.eventListenerMaps=new Map,this.started=!1}start(){this.started||(this.started=!0,this.eventListeners.forEach(e=>e.connect()))}stop(){this.started&&(this.started=!1,this.eventListeners.forEach(e=>e.disconnect()))}get eventListeners(){return Array.from(this.eventListenerMaps.values()).reduce((e,t)=>e.concat(Array.from(t.values())),[])}bindingConnected(e){this.fetchEventListenerForBinding(e).bindingConnected(e)}bindingDisconnected(e,t=!1){this.fetchEventListenerForBinding(e).bindingDisconnected(e),t&&this.clearEventListenersForBinding(e)}handleError(e,t,n={}){this.application.handleError(e,`Error ${t}`,n)}clearEventListenersForBinding(e){const t=this.fetchEventListenerForBinding(e);t.hasBindings()||(t.disconnect(),this.removeMappedEventListenerFor(e))}removeMappedEventListenerFor(e){const{eventTarget:t,eventName:n,eventOptions:r}=e,i=this.fetchEventListenerMapForEventTarget(t),o=this.cacheKey(n,r);i.delete(o),0==i.size&&this.eventListenerMaps.delete(t)}fetchEventListenerForBinding(e){const{eventTarget:t,eventName:n,eventOptions:r}=e;return this.fetchEventListener(t,n,r)}fetchEventListener(e,t,n){const r=this.fetchEventListenerMapForEventTarget(e),i=this.cacheKey(t,n);let o=r.get(i);return o||(o=this.createEventListener(e,t,n),r.set(i,o)),o}createEventListener(e,t,n){const i=new r(e,t,n);return this.started&&i.connect(),i}fetchEventListenerMapForEventTarget(e){let t=this.eventListenerMaps.get(e);return t||(t=new Map,this.eventListenerMaps.set(e,t)),t}cacheKey(e,t){const n=[e];
vendor: 34,771 bytes, line 2
2return Object.keys(t).sort().forEach(e=>{n.push(`${t[e]?"":"!"}${e}`)}),n.join(":")}}const o={stop:({event:e,value:t})=>(t&&e.stopPropagation(),!0),prevent:({event:e,value:t})=>(t&&e.preventDefault(),!0),self:({event:e,value:t,element:n})=>!t||n===e.target},s=/^(?:(?:([^.]+?)\+)?(.+?)(?:\.(.+?))?(?:@(window|document))?->)?(.+?)(?:#([^:]+?))(?::(.+))?$/;function a(e){return"window"==e?window:"document"==e?document:void 0}function l(e){return e.replace(/(?:[_-])([a-z0-9])/g,(e,t)=>t.toUpperCase())}function c(e){return l(e.replace(/--/g,"-").replace(/__/g,"_"))}function u(e){return e.charAt(0).toUpperCase()+e.slice(1)}function d(e){return e.replace(/([A-Z])/g,(e,t)=>`-${t.toLowerCase()}`)}function f(e){return null!=e}function p(e,t){return Object.prototype.hasOwnProperty.call(e,t)}const h=["meta","ctrl","alt","shift"];class m{constructor(e,t,n,r){this.element=e,this.index=t,this.eventTarget=n.eventTarget||e,this.eventName=n.eventName||function(e){const t=e.tagName.toLowerCase();if(t in v)return v[t](e)}(e)||g("missing event name"),this.eventOptions=n.eventOptions||{},this.identifier=n.identifier||g("missing identifier"),this.methodName=n.methodName||g("missing method name"),this.keyFilter=n.keyFilter||"",this.schema=r}static forToken(e,t){return new this(e.element,e.index,function(e){const t=e.trim().match(s)||[];let n=t[2],r=t[3];return r&&!["keydown","keyup","keypress"].includes(n)&&(n+=`.${r}`,r=""),{eventTarget:a(t[4]),eventName:n,eventOptions:t[7]?(i=t[7],i.split(":").reduce((e,t)=>Object.assign(e,{[t.replace(/^!/,"")]:!/^!/.test(t)}),{})):{},identifier:t[5],methodName:t[6],keyFilter:t[1]||r};var i}(e.content),t)}toString(){const e=this.keyFilter?`.${this.keyFilter}`:"",t=this.eventTargetName?`@${this.eventTargetName}`:"";return`${this.eventName}${e}${t}->${this.identifier}#${this.methodName}`}shouldIgnoreKeyboardEvent(e){if(!this.keyFilter)return!1;const t=this.keyFilter.split("+");if(this.keyFilterDissatisfied(e,t))return!0;const n=t.filter(e=>!h.includes(e))[0];return!!n&&(p(this.keyMappings,n)||g(`contains unknown key filter: ${this.keyFilter}`),this.keyMappings[n].toLowerCase()!==e.key.toLowerCase())}shouldIgnoreMouseEvent(e){if(!this.keyFilter)return!1;const t=[this.keyFilter];return!!this.keyFilterDissatisfied(e,t)}get params(){const e={},t=new RegExp(`^data-${this.identifier}-(.+)-param$`,"i");for(const{name:n,value:r}of Array.from(this.element.attributes)){const i=n.match(t),o=i&&i[1];o&&(e[l(o)]=y(r))}return e}get eventTargetName(){return(e=this.eventTarget)==window?"window":e==document?"document":void 0;var e}get keyMappings(){return this.schema.keyMappings}keyFilterDissatisfied(e,t){const[n,r,i,o]=h.map(e=>t.includes(e));return e.metaKey!==n||e.ctrlKey!==r||e.altKey!==i||e.shiftKey!==o}}const v={a:()=>"click",button:()=>"click",form:()=>"submit",details:()=>"toggle",input:e=>"submit"==e.getAttribute("type")?"click":"input",select:()=>"change",textarea:()=>"input"};function g(e){throw new Error(e)}function y(e){try{return JSON.parse(e)}catch(t){return e}}class b{constructor(e,t){this.context=e,this.action=t}get index(){return this.action.index}get eventTarget(){return this.action.eventTarget}get eventOptions(){return this.action.eventOptions}get identifier(){return this.context.identifier}handleEvent(e){const t=this.prepareActionEvent(e);this.willBeInvokedByEvent(e)&&this.applyEventModifiers(t)&&this.invokeWithEvent(t)}get eventName(){return this.action.eventName}get method(){const e=this.controller[this.methodName];if("function"==typeof e)return e;throw new Error(`Action "${this.action}" references undefined method "${this.methodName}"`)}applyEventModifiers(e){const{element:t}=this.action,{actionDescriptorFilters:n}=this.context.application,{controller:r}=this.context;let i=!0;for(const[o,s]of Object.entries(this.eventOptions))if(o in n){const a=n[o];i=i&&a({name:o,value:s,event:e,element:t,controller:r})}return i}prepareActionEvent(e){return Object.assign(e,{params:this.action.params})}invokeWithEvent(e){const{target:t,currentTarget:n}=e;try{this.method.call(this.controller,e),this.context.logDebugActivity(this.methodName,{event:e,target:t,currentTarget:n,action:this.methodName})}catch(t){const{identifier:n,controller:r,element:i,index:o}=this,s={identifier:n,controller:r,element:i,index:o,event:e};this.context.handleError(t,`invoking action "${this.action}"`,s)}}willBeInvokedByEvent(e){const t=e.target;return!(e instanceof KeyboardEvent&&this.action.shouldIgnoreKeyboardEvent(e))&&(!(e instanceof MouseEvent&&this.action.shouldIgnoreMouseEvent(e))&&(this.element===t||(t instanceof Element&&this.element.contains(t)?this.scope.containsElement(t):this.scope.containsElement(this.action.element))))}get controller(){return this.context.controller}get methodName(){return this.action.methodName}get element(){return this.scope.element}get scope(){return this.context.scope}}class w{constructor(e,t){this.mutationObserverInit={attributes:!0,childList:!0,subtree:!0},this.element=e,this.started=!1,this.delegate=t,this.elements=new Set,this.mutationObserver=new MutationObserver(e=>this.processMutations(e))}start(){this.started||(this.started=!0,this.mutationObserver.observe(this.element,this.mutationObserverInit),this.refresh())}pause(e){this.started&&(this.mutationObserver.disconnect(),this.started=!1),e(),this.started||(this.mutationObserver.observe(this.element,this.mutationObserverInit),this.started=!0)}stop(){this.started&&(this.mutationObserver.takeRecords(),this.mutationObserver.disconnect(),this.started=!1)}refresh(){if(this.started){const e=new Set(this.matchElementsInTree());for(const t of Array.from(this.elements))e.has(t)||this.removeElement(t);for(const t of Array.from(e))this.addElement(t)}}processMutations(e){if(this.started)for(const t of e)this.processMutation(t)}processMutation(e){"attributes"==e.type?this.processAttributeChange(e.target,e.attributeName):"childList"==e.type&&(this.processRemovedNodes(e.removedNodes),this.processAddedNodes(e.addedNodes))}processAttributeChange(e,t){this.elements.has(e)?this.delegate.elementAttributeChanged&&this.matchElement(e)?this.delegate.elementAttributeChanged(e,t):this.removeElement(e):this.matchElement(e)&&this.addElement(e)}processRemovedNodes(e){for(const t of Array.from(e)){const e=this.elementFromNode(t);e&&this.processTree(e,this.removeElement)}}processAddedNodes(e){for(const t of Array.from(e)){const e=this.elementFromNode(t);e&&this.elementIsActive(e)&&this.processTree(e,this.addElement)}}matchElement(e){return this.delegate.matchElement(e)}matchElementsInTree(e=this.element){return this.delegate.matchElementsInTree(e)}processTree(e,t){for(const n of this.matchElementsInTree(e))t.call(this,n)}elementFromNode(e){if(e.nodeType==Node.ELEMENT_NODE)return e}elementIsActive(e){return e.isConnected==this.element.isConnected&&this.element.contains(e)}addElement(e){this.elements.has(e)||this.elementIsActive(e)&&(this.elements.add(e),this.delegate.elementMatched&&this.delegate.elementMatched(e))}removeElement(e){this.elements.has(e)&&(this.elements.delete(e),this.delegate.elementUnmatched&&this.delegate.elementUnmatched(e))}}class E{constructor(e,t,n){this.attributeName=t,this.delegate=n,this.elementObserver=new w(e,this)}get element(){return this.elementObserver.element}get selector(){return`[${this.attributeName}]`}start(){this.elementObserver.start()}pause(e){this.elementObserver.pause(e)}stop(){this.elementObserver.stop()}refresh(){this.elementObserver.refresh()}get started(){return this.elementObserver.started}matchElement(e){return e.hasAttribute(this.attributeName)}matchElementsInTree(e){const t=this.matchElement(e)?[e]:[],n=Array.from(e.querySelectorAll(this.selector));return t.concat(n)}elementMatched(e){this.delegate.elementMatchedAttribute&&this.delegate.elementMatchedAttribute(e,this.attributeName)}elementUnmatched(e){this.delegate.elementUnmatchedAttribute&&this.delegate.elementUnmatchedAttribute(e,this.attributeName)}elementAttributeChanged(e,t){this.delegate.elementAttributeValueChanged&&this.attributeName==t&&this.delegate.elementAttributeValueChanged(e,t)}}function S(e,t,n){O(e,t).add(n)}function x(e,t,n){O(e,t).delete(n),function(e,t){const n=e.get(t);null!=n&&0==n.size&&e.delete(t)}(e,t)}function O(e,t){let n=e.get(t);return n||(n=new Set,e.set(t,n)),n}class T{constructor(){this.valuesByKey=new Map}get keys(){return Array.from(this.valuesByKey.keys())}get values(){return Array.from(this.valuesByKey.values()).reduce((e,t)=>e.concat(Array.from(t)),[])}get size(){return Array.from(this.valuesByKey.values()).reduce((e,t)=>e+t.size,0)}add(e,t){S(this.valuesByKey,e,t)}delete(e,t){x(this.valuesByKey,e,t)}has(e,t){const n=this.valuesByKey.get(e);return null!=n&&n.has(t)}hasKey(e){return this.valuesByKey.has(e)}hasValue(e){return Array.from(this.valuesByKey.values()).some(t=>t.has(e))}getValuesForKey(e){const t=this.valuesByKey.get(e);return t?Array.from(t):[]}getKeysForValue(e){return Array.from(this.valuesByKey).filter(([t,n])=>n.has(e)).map(([e,t])=>e)}}class k{constructor(e,t,n,r){this._selector=t,this.details=r,this.elementObserver=new w(e,this),this.delegate=n,this.matchesByElement=new T}get started(){return this.elementObserver.started}get selector(){return this._selector}set selector(e){this._selector=e,this.refresh()}start(){this.elementObserver.start()}pause(e){this.elementObserver.pause(e)}stop(){this.elementObserver.stop()}refresh(){this.elementObserver.refresh()}get element(){return this.elementObserver.element}matchElement(e){const{selector:t}=this;if(t){const n=e.matches(t);return this.delegate.selectorMatchElement?n&&this.delegate.selectorMatchElement(e,this.details):n}return!1}matchElementsInTree(e){const{selector:t}=this;if(t){const n=this.matchElement(e)?[e]:[],r=Array.from(e.querySelectorAll(t)).filter(e=>this.matchElement(e));return n.concat(r)}return[]}elementMatched(e){const{selector:t}=this;t&&this.selectorMatched(e,t)}elementUnmatched(e){const t=this.matchesByElement.getKeysForValue(e);for(const n of t)this.selectorUnmatched(e,n)}elementAttributeChanged(e,t){const{selector:n}=this;if(n){const t=this.matchElement(e),r=this.matchesByElement.has(n,e);t&&!r?this.selectorMatched(e,n):!t&&r&&this.selectorUnmatched(e,n)}}selectorMatched(e,t){this.delegate.selectorMatched(e,t,this.details),this.matchesByElement.add(t,e)}selectorUnmatched(e,t){this.delegate.selectorUnmatched(e,t,this.details),this.matchesByElement.delete(t,e)}}class C{constructor(e,t){this.element=e,this.delegate=t,this.started=!1,this.stringMap=new Map,this.mutationObserver=new MutationObserver(e=>this.processMutations(e))}start(){this.started||(this.started=!0,this.mutationObserver.observe(this.element,{attributes:!0,attributeOldValue:!0}),this.refresh())}stop(){this.started&&(this.mutationObserver.takeRecords(),this.mutationObserver.disconnect(),this.started=!1)}refresh(){if(this.started)for(const e of this.knownAttributeNames)this.refreshAttribute(e,null)}processMutations(e){if(this.started)for(const t of e)this.processMutation(t)}processMutation(e){const t=e.attributeName;t&&this.refreshAttribute(t,e.oldValue)}refreshAttribute(e,t){const n=this.delegate.getStringMapKeyForAttribute(e);if(null!=n){this.stringMap.has(e)||this.stringMapKeyAdded(n,e);const r=this.element.getAttribute(e);if(this.stringMap.get(e)!=r&&this.stringMapValueChanged(r,n,t),null==r){const t=this.stringMap.get(e);this.stringMap.delete(e),t&&this.stringMapKeyRemoved(n,e,t)}else this.stringMap.set(e,r)}}stringMapKeyAdded(e,t){this.delegate.stringMapKeyAdded&&this.delegate.stringMapKeyAdded(e,t)}stringMapValueChanged(e,t,n){this.delegate.stringMapValueChanged&&this.delegate.stringMapValueChanged(e,t,n)}stringMapKeyRemoved(e,t,n){this.delegate.stringMapKeyRemoved&&this.delegate.stringMapKeyRemoved(e,t,n)}get knownAttributeNames(){return Array.from(new Set(this.currentAttributeNames.concat(this.recordedAttributeNames)))}get currentAttributeNames(){return Array.from(this.element.attributes).map(e=>e.name)}get recordedAttributeNames(){return Array.from(this.stringMap.keys())}}class A{constructor(e,t,n){this.attributeObserver=new E(e,t,this),this.delegate=n,this.tokensByElement=new T}get started(){return this.attributeObserver.started}start(){this.attributeObserver.start()}pause(e){this.attributeObserver.pause(e)}stop(){this.attributeObserver.stop()}refresh(){this.attributeObserver.refresh()}get element(){return this.attributeObserver.element}get attributeName(){return this.attributeObserver.attributeName}elementMatchedAttribute(e){this.tokensMatched(this.readTokensForElement(e))}elementAttributeValueChanged(e){const[t,n]=this.refreshTokensForElement(e);this.tokensUnmatched(t),this.tokensMatched(n)}elementUnmatchedAttribute(e){this.tokensUnmatched(this.tokensByElement.getValuesForKey(e))}tokensMatched(e){e.forEach(e=>this.tokenMatched(e))}tokensUnmatched(e){e.forEach(e=>this.tokenUnmatched(e))}tokenMatched(e){this.delegate.tokenMatched(e),this.tokensByElement.add(e.element,e)}tokenUnmatched(e){this.delegate.tokenUnmatched(e),this.tokensByElement.delete(e.element,e)}refreshTokensForElement(e){const t=this.tokensByElement.getValuesForKey(e),n=this.readTokensForElement(e),r=function(e,t){const n=Math.max(e.length,t.length);return Array.from({length:n},(n,r)=>[e[r],t[r]])}(t,n).findIndex(([e,t])=>{return r=t,!((n=e)&&r&&n.index==r.index&&n.content==r.content);var n,r});return-1==r?[[],[]]:[t.slice(r),n.slice(r)]}readTokensForElement(e){const t=this.attributeName;return function(e,t,n){return e.trim().split(/\s+/).filter(e=>e.length).map((e,r)=>({element:t,attributeName:n,content:e,index:r}))}(e.getAttribute(t)||"",e,t)}}class _{constructor(e,t,n){this.tokenListObserver=new A(e,t,this),this.delegate=n,this.parseResultsByToken=new WeakMap,this.valuesByTokenByElement=new WeakMap}get started(){return this.tokenListObserver.started}start(){this.tokenListObserver.start()}stop(){this.tokenListObserver.stop()}refresh(){this.tokenListObserver.refresh()}get element(){return this.tokenListObserver.element}get attributeName(){return this.tokenListObserver.attributeName}tokenMatched(e){const{element:t}=e,{value:n}=this.fetchParseResultForToken(e);n&&(this.fetchValuesByTokenForElement(t).set(e,n),this.delegate.elementMatchedValue(t,n))}tokenUnmatched(e){const{element:t}=e,{value:n}=this.fetchParseResultForToken(e);n&&(this.fetchValuesByTokenForElement(t).delete(e),this.delegate.elementUnmatchedValue(t,n))}fetchParseResultForToken(e){let t=this.parseResultsByToken.get(e);return t||(t=this.parseToken(e),this.parseResultsByToken.set(e,t)),t}fetchValuesByTokenForElement(e){let t=this.valuesByTokenByElement.get(e);return t||(t=new Map,this.valuesByTokenByElement.set(e,t)),t}parseToken(e){try{return{value:this.delegate.parseValueForToken(e)}}catch(e){return{error:e}}}}class P{constructor(e,t){this.context=e,this.delegate=t,this.bindingsByAction=new Map}start(){this.valueListObserver||(this.valueListObserver=new _(this.element,this.actionAttribute,this),this.valueListObserver.start())}stop(){this.valueListObserver&&(this.valueListObserver.stop(),delete this.valueListObserver,this.disconnectAllActions())}get element(){return this.context.element}get identifier(){return this.context.identifier}get actionAttribute(){return this.schema.actionAttribute}get schema(){return this.context.schema}get bindings(){return Array.from(this.bindingsByAction.values())}connectAction(e){const t=new b(this.context,e);this.bindingsByAction.set(e,t),this.delegate.bindingConnected(t)}disconnectAction(e){const t=this.bindingsByAction.get(e);t&&(this.bindingsByAction.delete(e),this.delegate.bindingDisconnected(t))}disconnectAllActions(){this.bindings.forEach(e=>this.delegate.bindingDisconnected(e,!0)),this.bindingsByAction.clear()}parseValueForToken(e){const t=m.forToken(e,this.schema);if(t.identifier==this.identifier)return t}elementMatchedValue(e,t){this.connectAction(t)}elementUnmatchedValue(e,t){this.disconnectAction(t)}}class L{constructor(e,t){this.context=e,this.receiver=t,this.stringMapObserver=new C(this.element,this),this.valueDescriptorMap=this.controller.valueDescriptorMap}start(){this.stringMapObserver.start(),this.invokeChangedCallbacksForDefaultValues()}stop(){this.stringMapObserver.stop()}get element(){return this.context.element}get controller(){return this.context.controller}getStringMapKeyForAttribute(e){if(e in this.valueDescriptorMap)return this.valueDescriptorMap[e].name}stringMapKeyAdded(e,t){const n=this.valueDescriptorMap[t];this.hasValue(e)||this.invokeChangedCallback(e,n.writer(this.receiver[e]),n.writer(n.defaultValue))}stringMapValueChanged(e,t,n){const r=this.valueDescriptorNameMap[t];null!==e&&(null===n&&(n=r.writer(r.defaultValue)),this.invokeChangedCallback(t,e,n))}stringMapKeyRemoved(e,t,n){const r=this.valueDescriptorNameMap[e];this.hasValue(e)?this.invokeChangedCallback(e,r.writer(this.receiver[e]),n):this.invokeChangedCallback(e,r.writer(r.defaultValue),n)}invokeChangedCallbacksForDefaultValues(){for(const{key:e,name:t,defaultValue:n,writer:r}of this.valueDescriptors)null==n||this.controller.data.has(e)||this.invokeChangedCallback(t,r(n),void 0)}invokeChangedCallback(e,t,n){const r=`${e}Changed`,i=this.receiver[r];if("function"==typeof i){const r=this.valueDescriptorNameMap[e];try{const e=r.reader(t);let o=n;n&&(o=r.reader(n)),i.call(this.receiver,e,o)}catch(e){throw e instanceof TypeError&&(e.message=`Stimulus Value "${this.context.identifier}.${r.name}" - ${e.message}`),e}}}get valueDescriptors(){const{valueDescriptorMap:e}=this;return Object.keys(e).map(t=>e[t])}get valueDescriptorNameMap(){const e={};return Object.keys(this.valueDescriptorMap).forEach(t=>{const n=this.valueDescriptorMap[t];e[n.name]=n}),e}hasValue(e){const t=`has${u(this.valueDescriptorNameMap[e].name)}`;return this.receiver[t]}}class j{constructor(e,t){this.context=e,this.delegate=t,this.targetsByName=new T}start(){this.tokenListObserver||(this.tokenListObserver=new A(this.element,this.attributeName,this),this.tokenListObserver.start())}stop(){this.tokenListObserver&&(this.disconnectAllTargets(),this.tokenListObserver.stop(),delete this.tokenListObserver)}tokenMatched({element:e,content:t}){this.scope.containsElement(e)&&this.connectTarget(e,t)}tokenUnmatched({element:e,content:t}){this.disconnectTarget(e,t)}connectTarget(e,t){var n;this.targetsByName.has(t,e)||(this.targetsByName.add(t,e),null===(n=this.tokenListObserver)||void 0===n||n.pause(()=>this.delegate.targetConnected(e,t)))}disconnectTarget(e,t){var n;this.targetsByName.has(t,e)&&(this.targetsByName.delete(t,e),null===(n=this.tokenListObserver)||void 0===n||n.pause(()=>this.delegate.targetDisconnected(e,t)))}disconnectAllTargets(){for(const e of this.targetsByName.keys)for(const t of this.targetsByName.getValuesForKey(e))this.disconnectTarget(t,e)}get attributeName(){return`data-${this.context.identifier}-target`}get element(){return this.context.element}get scope(){return this.context.scope}}function M(e,t){const n=I(e);return Array.from(n.reduce((e,n)=>(function(e,t){const n=e[t];return Array.isArray(n)?n:[]}(n,t).forEach(t=>e.add(t)),e),new Set))}function R(e,t){return I(e).reduce((e,n)=>(e.push(...function(e,t){const n=e[t];return n?Object.keys(n).map(e=>[e,n[e]]):[]}(n,t)),e),[])}function I(e){const t=[];for(;e;)t.push(e),e=Object.getPrototypeOf(e);return t.reverse()}class N{constructor(e,t){this.started=!1,this.context=e,this.delegate=t,this.outletsByName=new T,this.outletElementsByName=new T,this.selectorObserverMap=new Map,this.attributeObserverMap=new Map}start(){this.started||(this.outletDefinitions.forEach(e=>{this.setupSelectorObserverForOutlet(e),this.setupAttributeObserverForOutlet(e)}),this.started=!0,this.dependentContexts.forEach(e=>e.refresh()))}refresh(){this.selectorObserverMap.forEach(e=>e.refresh()),this.attributeObserverMap.forEach(e=>e.refresh())}stop(){this.started&&(this.started=!1,this.disconnectAllOutlets(),this.stopSelectorObservers(),this.stopAttributeObservers())}stopSelectorObservers(){this.selectorObserverMap.size>0&&(this.selectorObserverMap.forEach(e=>e.stop()),this.selectorObserverMap.clear())}stopAttributeObservers(){this.attributeObserverMap.size>0&&(this.attributeObserverMap.forEach(e=>e.stop()),this.attributeObserverMap.clear())}selectorMatched(e,t,{outletName:n}){const r=this.getOutlet(e,n);r&&this.connectOutlet(r,e,n)}selectorUnmatched(e,t,{outletName:n}){const r=this.getOutletFromMap(e,n);r&&this.disconnectOutlet(r,e,n)}selectorMatchElement(e,{outletName:t}){const n=this.selector(t),r=this.hasOutlet(e,t),i=e.matches(`[${this.schema.controllerAttribute}~=${t}]`);return!!n&&(r&&i&&e.matches(n))}elementMatchedAttribute(e,t){const n=this.getOutletNameFromOutletAttributeName(t);n&&this.updateSelectorObserverForOutlet(n)}elementAttributeValueChanged(e,t){const n=this.getOutletNameFromOutletAttributeName(t);n&&this.updateSelectorObserverForOutlet(n)}elementUnmatchedAttribute(e,t){const n=this.getOutletNameFromOutletAttributeName(t);n&&this.updateSelectorObserverForOutlet(n)}connectOutlet(e,t,n){var r;this.outletElementsByName.has(n,t)||(this.outletsByName.add(n,e),this.outletElementsByName.add(n,t),null===(r=this.selectorObserverMap.get(n))||void 0===r||r.pause(()=>this.delegate.outletConnected(e,t,n)))}disconnectOutlet(e,t,n){var r;this.outletElementsByName.has(n,t)&&(this.outletsByName.delete(n,e),this.outletElementsByName.delete(n,t),null===(r=this.selectorObserverMap.get(n))||void 0===r||r.pause(()=>this.delegate.outletDisconnected(e,t,n)))}disconnectAllOutlets(){for(const e of this.outletElementsByName.keys)for(const t of this.outletElementsByName.getValuesForKey(e))for(const n of this.outletsByName.getValuesForKey(e))this.disconnectOutlet(n,t,e)}updateSelectorObserverForOutlet(e){const t=this.selectorObserverMap.get(e);t&&(t.selector=this.selector(e))}setupSelectorObserverForOutlet(e){const t=this.selector(e),n=new k(document.body,t,this,{outletName:e});this.selectorObserverMap.set(e,n),n.start()}setupAttributeObserverForOutlet(e){const t=this.attributeNameForOutletName(e),n=new E(this.scope.element,t,this);this.attributeObserverMap.set(e,n),n.start()}selector(e){return this.scope.outlets.getSelectorForOutletName(e)}attributeNameForOutletName(e){return this.scope.schema.outletAttributeForScope(this.identifier,e)}getOutletNameFromOutletAttributeName(e){return this.outletDefinitions.find(t=>this.attributeNameForOutletName(t)===e)}get outletDependencies(){const e=new T;return this.router.modules.forEach(t=>{M(t.definition.controllerConstructor,"outlets").forEach(n=>e.add(n,t.identifier))}),e}get outletDefinitions(){return this.outletDependencies.getKeysForValue(this.identifier)}get dependentControllerIdentifiers(){return this.outletDependencies.getValuesForKey(this.identifier)}get dependentContexts(){const e=this.dependentControllerIdentifiers;return this.router.contexts.filter(t=>e.includes(t.identifier))}hasOutlet(e,t){return!!this.getOutlet(e,t)||!!this.getOutletFromMap(e,t)}getOutlet(e,t){return this.application.getControllerForElementAndIdentifier(e,t)}getOutletFromMap(e,t){return this.outletsByName.getValuesForKey(t).find(t=>t.element===e)}get scope(){return this.context.scope}get schema(){return this.context.schema}get identifier(){return this.context.identifier}get application(){return this.context.application}get router(){return this.application.router}}class D{constructor(e,t){this.logDebugActivity=(e,t={})=>{const{identifier:n,controller:r,element:i}=this;t=Object.assign({identifier:n,controller:r,element:i},t),this.application.logDebugActivity(this.identifier,e,t)},this.module=e,this.scope=t,this.controller=new e.controllerConstructor(this),this.bindingObserver=new P(this,this.dispatcher),this.valueObserver=new L(this,this.controller),this.targetObserver=new j(this,this),this.outletObserver=new N(this,this);try{this.controller.initialize(),this.logDebugActivity("initialize")}catch(e){this.handleError(e,"initializing controller")}}connect(){this.bindingObserver.start(),this.valueObserver.start(),this.targetObserver.start(),this.outletObserver.start();try{this.controller.connect(),this.logDebugActivity("connect")}catch(e){this.handleError(e,"connecting controller")}}refresh(){this.outletObserver.refresh()}disconnect(){try{this.controller.disconnect(),this.logDebugActivity("disconnect")}catch(e){this.handleError(e,"disconnecting controller")}this.outletObserver.stop(),this.targetObserver.stop(),this.valueObserver.stop(),this.bindingObserver.stop()}get application(){return this.module.application}get identifier(){return this.module.identifier}get schema(){return this.application.schema}get dispatcher(){return this.application.dispatcher}get element(){return this.scope.element}get parentElement(){return this.element.parentElement}handleError(e,t,n={}){const{identifier:r,controller:i,element:o}=this;n=Object.assign({identifier:r,controller:i,element:o},n),this.application.handleError(e,`Error ${t}`,n)}targetConnected(e,t){this.invokeControllerMethod(`${t}TargetConnected`,e)}targetDisconnected(e,t){this.invokeControllerMethod(`${t}TargetDisconnected`,e)}outletConnected(e,t,n){this.invokeControllerMethod(`${c(n)}OutletConnected`,e,t)}outletDisconnected(e,t,n){this.invokeControllerMethod(`${c(n)}OutletDisconnected`,e,t)}invokeControllerMethod(e,...t){const n=this.controller;"function"==typeof n[e]&&n[e](...t)}}function F(e){return function(e,t){const n=q(e),r=function(e,t){return B(t).reduce((n,r)=>{const i=function(e,t,n){const r=Object.getOwnPropertyDescriptor(e,n);if(!r||!("value"in r)){const e=Object.getOwnPropertyDescriptor(t,n).value;return r&&(e.get=r.get||e.get,e.set=r.set||e.set),e}}(e,t,r);return i&&Object.assign(n,{[r]:i}),n},{})}(e.prototype,t);return Object.defineProperties(n.prototype,r),n}(e,function(e){const t=M(e,"blessings");return t.reduce((t,n)=>{const r=n(e);for(const e in r){const n=t[e]||{};t[e]=Object.assign(n,r[e])}return t},{})}(e))}const B="function"==typeof Object.getOwnPropertySymbols?e=>[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)]:Object.getOwnPropertyNames,q=(()=>{function e(e){function t(){return Reflect.construct(e,arguments,new.target)}return t.prototype=Object.create(e.prototype,{constructor:{value:t}}),Reflect.setPrototypeOf(t,e),t}try{return function(){const t=e(function(){this.a.call(this)});t.prototype.a=function(){},new t}(),e}catch(e){return e=>class extends e{}}})();class H{constructor(e,t){this.application=e,this.definition=function(e){return{identifier:e.identifier,controllerConstructor:F(e.controllerConstructor)}}(t),this.contextsByScope=new WeakMap,this.connectedContexts=new Set}get identifier(){return this.definition.identifier}get controllerConstructor(){return this.definition.controllerConstructor}get contexts(){return Array.from(this.connectedContexts)}connectContextForScope(e){const t=this.fetchContextForScope(e);this.connectedContexts.add(t),t.connect()}disconnectContextForScope(e){const t=this.contextsByScope.get(e);t&&(this.connectedContexts.delete(t),t.disconnect())}fetchContextForScope(e){let t=this.contextsByScope.get(e);return t||(t=new D(this,e),this.contextsByScope.set(e,t)),t}}class ${constructor(e){this.scope=e}has(e){return this.data.has(this.getDataKey(e))}get(e){return this.getAll(e)[0]}getAll(e){const t=this.data.get(this.getDataKey(e))||"";return t.match(/[^\s]+/g)||[]}getAttributeName(e){return this.data.getAttributeNameForKey(this.getDataKey(e))}getDataKey(e){return`${e}-class`}get data(){return this.scope.data}}class V{constructor(e){this.scope=e}get element(){return this.scope.element}get identifier(){return this.scope.identifier}get(e){const t=this.getAttributeNameForKey(e);return this.element.getAttribute(t)}set(e,t){const n=this.getAttributeNameForKey(e);return this.element.setAttribute(n,t),this.get(e)}has(e){const t=this.getAttributeNameForKey(e);return this.element.hasAttribute(t)}delete(e){if(this.has(e)){const t=this.getAttributeNameForKey(e);return this.element.removeAttribute(t),!0}return!1}getAttributeNameForKey(e){return`data-${this.identifier}-${d(e)}`}}class z{constructor(e){this.warnedKeysByObject=new WeakMap,this.logger=e}warn(e,t,n){let r=this.warnedKeysByObject.get(e);r||(r=new Set,this.warnedKeysByObject.set(e,r)),r.has(t)||(r.add(t),this.logger.warn(n,e))}}function U(e,t){return`[${e}~="${t}"]`}class W{constructor(e){this.scope=e}get element(){return this.scope.element}get identifier(){return this.scope.identifier}get schema(){return this.scope.schema}has(e){return null!=this.find(e)}find(...e){return e.reduce((e,t)=>e||this.findTarget(t)||this.findLegacyTarget(t),void 0)}findAll(...e){return e.reduce((e,t)=>[...e,...this.findAllTargets(t),...this.findAllLegacyTargets(t)],[])}findTarget(e){const t=this.getSelectorForTargetName(e);return this.scope.findElement(t)}findAllTargets(e){const t=this.getSelectorForTargetName(e);return this.scope.findAllElements(t)}getSelectorForTargetName(e){return U(this.schema.targetAttributeForScope(this.identifier),e)}findLegacyTarget(e){const t=this.getLegacySelectorForTargetName(e);return this.deprecate(this.scope.findElement(t),e)}findAllLegacyTargets(e){const t=this.getLegacySelectorForTargetName(e);return this.scope.findAllElements(t).map(t=>this.deprecate(t,e))}getLegacySelectorForTargetName(e){const t=`${this.identifier}.${e}`;return U(this.schema.targetAttribute,t)}deprecate(e,t){if(e){const{identifier:n}=this,r=this.schema.targetAttribute,i=this.schema.targetAttributeForScope(n);this.guide.warn(e,`target:${t}`,`Please replace ${r}="${n}.${t}" with ${i}="${t}". The ${r} attribute is deprecated and will be removed in a future version of Stimulus.`)}return e}get guide(){return this.scope.guide}}class G{constructor(e,t){this.scope=e,this.controllerElement=t}get element(){return this.scope.element}get identifier(){return this.scope.identifier}get schema(){return this.scope.schema}has(e){return null!=this.find(e)}find(...e){return e.reduce((e,t)=>e||this.findOutlet(t),void 0)}findAll(...e){return e.reduce((e,t)=>[...e,...this.findAllOutlets(t)],[])}getSelectorForOutletName(e){const t=this.schema.outletAttributeForScope(this.identifier,e);return this.controllerElement.getAttribute(t)}findOutlet(e){const t=this.getSelectorForOutletName(e);if(t)return this.findElement(t,e)}findAllOutlets(e){const t=this.getSelectorForOutletName(e);return t?this.findAllElements(t,e):[]}findElement(e,t){return this.scope.queryElements(e).filter(n=>this.matchesElement(n,e,t))[0]}findAllElements(e,t){return this.scope.queryElements(e).filter(n=>this.matchesElement(n,e,t))}matchesElement(e,t,n){const r=e.getAttribute(this.scope.schema.controllerAttribute)||"";return e.matches(t)&&r.split(" ").includes(n)}}class K{constructor(e,t,n,r){this.targets=new W(this),this.classes=new $(this),this.data=new V(this),this.containsElement=e=>e.closest(this.controllerSelector)===this.element,this.schema=e,this.element=t,this.identifier=n,this.guide=new z(r),this.outlets=new G(this.documentScope,t)}findElement(e){return this.element.matches(e)?this.element:this.queryElements(e).find(this.containsElement)}findAllElements(e){return[...this.element.matches(e)?[this.element]:[],...this.queryElements(e).filter(this.containsElement)]}queryElements(e){return Array.from(this.element.querySelectorAll(e))}get controllerSelector(){return U(this.schema.controllerAttribute,this.identifier)}get isDocumentScope(){return this.element===document.documentElement}get documentScope(){return this.isDocumentScope?this:new K(this.schema,document.documentElement,this.identifier,this.guide.logger)}}class X{constructor(e,t,n){this.element=e,this.schema=t,this.delegate=n,this.valueListObserver=new _(this.element,this.controllerAttribute,this),this.scopesByIdentifierByElement=new WeakMap,this.scopeReferenceCounts=new WeakMap}start(){this.valueListObserver.start()}stop(){this.valueListObserver.stop()}get controllerAttribute(){return this.schema.controllerAttribute}parseValueForToken(e){const{element:t,content:n}=e;return this.parseValueForElementAndIdentifier(t,n)}parseValueForElementAndIdentifier(e,t){const n=this.fetchScopesByIdentifierForElement(e);let r=n.get(t);return r||(r=this.delegate.createScopeForElementAndIdentifier(e,t),n.set(t,r)),r}elementMatchedValue(e,t){const n=(this.scopeReferenceCounts.get(t)||0)+1;this.scopeReferenceCounts.set(t,n),1==n&&this.delegate.scopeConnected(t)}elementUnmatchedValue(e,t){const n=this.scopeReferenceCounts.get(t);n&&(this.scopeReferenceCounts.set(t,n-1),1==n&&this.delegate.scopeDisconnected(t))}fetchScopesByIdentifierForElement(e){let t=this.scopesByIdentifierByElement.get(e);return t||(t=new Map,this.scopesByIdentifierByElement.set(e,t)),t}}class J{constructor(e){this.application=e,this.scopeObserver=new X(this.element,this.schema,this),this.scopesByIdentifier=new T,this.modulesByIdentifier=new Map}get element(){return this.application.element}get schema(){return this.application.schema}get logger(){return this.application.logger}get controllerAttribute(){return this.schema.controllerAttribute}get modules(){return Array.from(this.modulesByIdentifier.values())}get contexts(){return this.modules.reduce((e,t)=>e.concat(t.contexts),[])}start(){this.scopeObserver.start()}stop(){this.scopeObserver.stop()}loadDefinition(e){this.unloadIdentifier(e.identifier);const t=new H(this.application,e);this.connectModule(t);const n=e.controllerConstructor.afterLoad;n&&n.call(e.controllerConstructor,e.identifier,this.application)}unloadIdentifier(e){const t=this.modulesByIdentifier.get(e);t&&this.disconnectModule(t)}getContextForElementAndIdentifier(e,t){const n=this.modulesByIdentifier.get(t);if(n)return n.contexts.find(t=>t.element==e)}proposeToConnectScopeForElementAndIdentifier(e,t){const n=this.scopeObserver.parseValueForElementAndIdentifier(e,t);n?this.scopeObserver.elementMatchedValue(n.element,n):console.error(`Couldn't find or create scope for identifier: "${t}" and element:`,e)}handleError(e,t,n){this.application.handleError(e,t,n)}createScopeForElementAndIdentifier(e,t){return new K(this.schema,e,t,this.logger)}scopeConnected(e){this.scopesByIdentifier.add(e.identifier,e);const t=this.modulesByIdentifier.get(e.identifier);t&&t.connectContextForScope(e)}scopeDisconnected(e){this.scopesByIdentifier.delete(e.identifier,e);const t=this.modulesByIdentifier.get(e.identifier);t&&t.disconnectContextForScope(e)}connectModule(e){this.modulesByIdentifier.set(e.identifier,e);this.scopesByIdentifier.getValuesForKey(e.identifier).forEach(t=>e.connectContextForScope(t))}disconnectModule(e){this.modulesByIdentifier.delete(e.identifier);this.scopesByIdentifier.getValuesForKey(e.identifier).forEach(t=>e.disconnectContextForScope(t))}}const Y={controllerAttribute:"data-controller",actionAttribute:"data-action",targetAttribute:"data-target",targetAttributeForScope:e=>`data-${e}-target`,outletAttributeForScope:(e,t)=>`data-${e}-${t}
2-outlet`,keyMappings:Object.assign(Object.assign({enter:"Enter",tab:"Tab",esc:"Escape",space:" ",up:"ArrowUp",down:"ArrowDown",left:"ArrowLeft",right:"ArrowRight",home:"Home",end:"End",page_up:"PageUp",page_down:"PageDown"},Q("abcdefghijklmnopqrstuvwxyz".split("").map(e=>[e,e]))),Q("0123456789".split("").map(e=>[e,e])))};function Q(e){return e.reduce((e,[t,n])=>Object.assign(Object.assign({},e),{[t]:n}),{})}class Z{constructor(e=document.documentElement,t=Y){this.logger=console,this.debug=!1,this.logDebugActivity=(e,t,n={})=>{this.debug&&this.logFormattedMessage(e,t,n)},this.element=e,this.schema=t,this.dispatcher=new i(this),this.router=new J(this),this.actionDescriptorFilters=Object.assign({},o)}static start(e,t){const n=new this(e,t);return n.start(),n}async start(){await new Promise(e=>{"loading"==document.readyState?document.addEventListener("DOMContentLoaded",()=>e()):e()}),this.logDebugActivity("application","starting"),this.dispatcher.start(),this.router.start(),this.logDebugActivity("application","start")}stop(){this.logDebugActivity("application","stopping"),this.dispatcher.stop(),this.router.stop(),this.logDebugActivity("application","stop")}register(e,t){this.load({identifier:e,controllerConstructor:t})}registerActionOption(e,t){this.actionDescriptorFilters[e]=t}load(e,...t){(Array.isArray(e)?e:[e,...t]).forEach(e=>{e.controllerConstructor.shouldLoad&&this.router.loadDefinition(e)})}unload(e,...t){(Array.isArray(e)?e:[e,...t]).forEach(e=>this.router.unloadIdentifier(e))}get controllers(){return this.router.contexts.map(e=>e.controller)}getControllerForElementAndIdentifier(e,t){const n=this.router.getContextForElementAndIdentifier(e,t);return n?n.controller:null}handleError(e,t,n){var r;this.logger.error("%s\n\n%o\n\n%o",t,e,n),null===(r=window.onerror)||void 0===r||r.call(window,t,"",0,0,e)}logFormattedMessage(e,t,n={}){n=Object.assign({application:this},n),this.logger.groupCollapsed(`${e} #${t}`),this.logger.log("details:",Object.assign({},n)),this.logger.groupEnd()}}function ee(e,t,n){return e.application.getControllerForElementAndIdentifier(t,n)}function te(e,t,n){let r=ee(e,t,n);return r||(e.application.router.proposeToConnectScopeForElementAndIdentifier(t,n),r=ee(e,t,n),r||void 0)}function ne([e,t],n){return function(e){const{token:t,typeDefinition:n}=e,r=`${d(t)}-value`,i=function(e){const{controller:t,token:n,typeDefinition:r}=e,i={controller:t,token:n,typeObject:r},o=function(e){const{controller:t,token:n,typeObject:r}=e,i=f(r.type),o=f(r.default),s=i&&o,a=i&&!o,l=!i&&o,c=re(r.type),u=ie(e.typeObject.default);if(a)return c;if(l)return u;if(c!==u){throw new Error(`The specified default value for the Stimulus Value "${t?`${t}.${n}`:n}" must match the defined type "${c}". The provided default value of "${r.default}" is of type "${u}".`)}if(s)return c}(i),s=ie(r),a=re(r),l=o||s||a;if(l)return l;const c=t?`${t}.${r}`:n;throw new Error(`Unknown value type "${c}" for "${n}" value`)}(e);return{type:i,key:r,name:l(r),get defaultValue(){return function(e){const t=re(e);if(t)return oe[t];const n=p(e,"default"),r=p(e,"type"),i=e;if(n)return i.default;if(r){const{type:e}=i,t=re(e);if(t)return oe[t]}return e}(n)},get hasCustomDefaultValue(){return void 0!==ie(n)},reader:se[i],writer:ae[i]||ae.default}}({controller:n,token:e,typeDefinition:t})}function re(e){switch(e){case Array:return"array";case Boolean:return"boolean";case Number:return"number";case Object:return"object";case String:return"string"}}function ie(e){switch(typeof e){case"boolean":return"boolean";case"number":return"number";case"string":return"string"}return Array.isArray(e)?"array":"[object Object]"===Object.prototype.toString.call(e)?"object":void 0}const oe={get array(){return[]},boolean:!1,number:0,get object(){return{}},string:""},se={array(e){const t=JSON.parse(e);if(!Array.isArray(t))throw new TypeError(`expected value of type "array" but instead got value "${e}" of type "${ie(t)}"`);return t},boolean:e=>!("0"==e||"false"==String(e).toLowerCase()),number:e=>Number(e.replace(/_/g,"")),object(e){const t=JSON.parse(e);if(null===t||"object"!=typeof t||Array.isArray(t))throw new TypeError(`expected value of type "object" but instead got value "${e}" of type "${ie(t)}"`);return t},string:e=>e},ae={default:function(e){return`${e}`},array:le,object:le};function le(e){return JSON.stringify(e)}class ce{constructor(e){this.context=e}static get shouldLoad(){return!0}static afterLoad(e,t){}get application(){return this.context.application}get scope(){return this.context.scope}
2get element(){return this.scope.element}get identifier(){return this.scope.identifier}get targets(){return this.scope.targets}get outlets(){return this.scope.outlets}get classes(){return this.scope.classes}get data(){return this.scope.data}initialize(){}connect(){}disconnect(){}dispatch(e,{target:t=this.element,detail:n={},prefix:r=this.identifier,bubbles:i=!0,cancelable:o=!0}={}){const s=new CustomEvent(r?`${r}:${e}`:e,{detail:n,bubbles:i,cancelable:o});return t.dispatchEvent(s),s}}ce.blessings=[function(e){return M(e,"classes").reduce((e,t)=>{return Object.assign(e,(n=t,{[`${n}Class`]:{get(){const{classes:e}=this;if(e.has(n))return e.get(n);{const t=e.getAttributeName(n);throw new Error(`Missing attribute "${t}"`)}}},[`${n}Classes`]:{get(){return this.classes.getAll(n)}},[`has${u(n)}Class`]:{get(){return this.classes.has(n)}}}));var n},{})},function(e){return M(e,"targets").reduce((e,t)=>{return Object.assign(e,(n=t,{[`${n}Target`]:{get(){const e=this.targets.find(n);if(e)return e;throw new Error(`Missing target element "${n}" for "${this.identifier}" controller`)}},[`${n}Targets`]:{get(){return this.targets.findAll(n)}},[`has${u(n)}Target`]:{get(){return this.targets.has(n)}}}));var n},{})},function(e){const t=R(e,"values"),n={valueDescriptorMap:{get(){return t.reduce((e,t)=>{const n=ne(t,this.identifier),r=this.data.getAttributeNameForKey(n.key);return Object.assign(e,{[r]:n})},{})}}};return t.reduce((e,t)=>Object.assign(e,function(e,t){const n=ne(e,t),{key:r,name:i,reader:o,writer:s}=n;return{[i]:{get(){const e=this.data.get(r);return null!==e?o(e):n.defaultValue},set(e){void 0===e?this.data.delete(r):this.data.set(r,s(e))}},[`has${u(i)}`]:{get(){return this.data.has(r)||n.hasCustomDefaultValue}}}}(t)),n)},function(e){return M(e,"outlets").reduce((e,t)=>Object.assign(e,function(e){const t=c(e);return{[`${t}Outlet`]:{get(){const t=this.outlets.find(e),n=this.outlets.getSelectorForOutletName(e);if(t){const n=te(this,t,e);if(n)return n;throw new Error(`The provided outlet element is missing an outlet controller "${e}" instance for host controller "${this.identifier}"`)}throw new Error(`Missing outlet element "${e}" for host controller "${this.identifier}". Stimulus couldn't find a matching outlet element using selector "${n}".`)}},[`${t}Outlets`]:{get(){const t=this.outlets.findAll(e);return t.length>0?t.map(t=>{const n=te(this,t,e);if(n)return n;console.warn(`The provided outlet element is missing an outlet controller "${e}" instance for host controller "${this.identifier}"`,t)}).filter(e=>e):[]}},[`${t}OutletElement`]:{get(){const t=this.outlets.find(e),n=this.outlets.getSelectorForOutletName(e);if(t)return t;throw new Error(`Missing outlet element "${e}" for host controller "${this.identifier}". Stimulus couldn't find a matching outlet element using selector "${n}".`)}},[`${t}OutletElements`]:{get(){return this.outlets.findAll(e)}},[`has${u(t)}Outlet`]:{get(){return this.outlets.has(e)}}}}(t)),{})}],ce.targets=[],ce.outlets=[],ce.values={}},89(e,t,n){"use strict";n.d(t,{K:()=>At,QS:()=>_t,aM:()=>Pt});const r="eager",i="lazy";class o extends HTMLElement{static delegateConstructor=void 0;loaded=Promise.resolve();static get observedAttributes(){return["disabled","loading","src"]}constructor(){super(),this.delegate=new o.delegateConstructor(this)}connectedCallback(){this.delegate.connect()}disconnectedCallback(){this.delegate.disconnect()}reload(){return this.delegate.sourceURLReloaded()}attributeChangedCallback(e){"loading"==e?this.delegate.loadingStyleChanged():"src"==e?this.delegate.sourceURLChanged():"disabled"==e&&this.delegate.disabledChanged()}get src(){return this.getAttribute("src")}set src(e){e?this.setAttribute("src",e):this.removeAttribute("src")}get refresh(){return this.getAttribute("refresh")}set refresh(e){e?this.setAttribute("refresh",e):this.removeAttribute("refresh")}get shouldReloadWithMorph(){return this.src&&"morph"===this.refresh}get loading(){return function(e){if("lazy"===e.toLowerCase())return i;return r}(this.getAttribute("loading")||"")}set loading(e){e?this.setAttribute("loading",e):this.removeAttribute("loading")}get disabled(){return this.hasAttribute("disabled")}set disabled(e){e?this.setAttribute("disabled",""):this.removeAttribute("disabled")}get autoscroll(){return this.hasAttribute("autoscroll")}set autoscroll(e){e?this.setAttribute("autoscroll",""):this.removeAttribute("autoscroll")}get complete(){return!this.delegate.isLoading}get isActive(){return this.ownerDocument===document&&!this.isPreview}get isPreview(){return this.ownerDocument?.documentElement?.hasAttribute("data-turbo-preview")}}const s={enabled:!0,progressBarDelay:500,unvisitableExtensions:new Set([".7z",".aac",".apk",".avi",".bmp",".bz2",".css",".csv",".deb",".dmg",".doc",".docx",".exe",".gif",".gz",".heic",".heif",".ico",".iso",".jpeg",".jpg",".js",".json",".m4a",".mkv",".mov",".mp3",".mp4",".mpeg",".mpg",".msi",".ogg",".ogv",".pdf",".pkg",".png",".ppt",".pptx",".rar",".rtf",".svg",".tar",".tif",".tiff",".txt",".wav",".webm",".webp",".wma",".wmv",".xls",".xlsx",".xml",".zip"])};function a(e){if("false"==e.getAttribute("data-turbo-eval"))return e;{const t=document.createElement("script"),n=O();return n&&(t.nonce=n),t.textContent=e.textContent,t.async=!1,function(e,t){for(const{name:n,value:r}of t.attributes)e.setAttribute(n,r)}(t,e),t}}function l(e,{target:t,cancelable:n,detail:r}={}){const i=new CustomEvent(e,{cancelable:n,bubbles:!0,composed:!0,detail:r});return t&&t.isConnected?t.dispatchEvent(i):document.documentElement.dispatchEvent(i),i}function c(e){e.preventDefault(),e.stopImmediatePropagation()}function u(){return"hidden"===document.visibilityState?f():d()}function d(){return new Promise(e=>requestAnimationFrame(()=>e()))}function f(){return new Promise(e=>setTimeout(()=>e(),0))}function p(e=""){return(new DOMParser).parseFromString(e,"text/html")}function h(e,...t){const n=function(e,t){return e.reduce((e,n,r)=>e+n+(null==t[r]?"":t[r]),"")}(e,t).replace(/^\n/,"").split("\n"),r=n[0].match(/^\s+/),i=r?r[0].length:0;return n.map(e=>e.slice(i)).join("\n")}function m(){return Array.from({length:36}).map((e,t)=>8==t||13==t||18==t||23==t?"-":14==t?"4":19==t?(Math.floor(4*Math.random())+8).toString(16):Math.floor(16*Math.random()).toString(16)).join("")}function v(e,...t){for(const n of t.map(t=>t?.getAttribute(e)))if("string"==typeof n)return n;return null}function g(...e){for(const t of e)"turbo-frame"==t.localName&&t.setAttribute("busy",""),t.setAttribute("aria-busy","true")}function y(...e){for(const t of e)"turbo-frame"==t.localName&&t.removeAttribute("busy"),t.removeAttribute("aria-busy")}function b(e,t=2e3){return new Promise(n=>{const r=()=>{e.removeEventListener("error",r),e.removeEventListener("load",r),n()};e.addEventListener("load",r,{once:!0}),e.addEventListener("error",r,{once:!0}),setTimeout(n,t)})}function w(e){switch(e){case"replace":return history.replaceState;case"advance":case"restore":return history.pushState}}function E(...e){const t=v("data-turbo-action",...e);return function(e){return"advance"==e||"replace"==e||"restore"==e}(t)?t:null}function S(e){return document.querySelector(`meta[name="${e}"]`)}function x(e){const t=S(e);return t&&t.content}function O(){const e=S("csp-nonce");if(e){const{nonce:t,content:n}=e;return""==t?n:t}}function T(e,t){if(e instanceof Element)return e.closest(t)||T(e.assignedSlot||e.getRootNode()?.host,t)}function k(e){return!!e&&null==e.closest("[inert], :disabled, [hidden], details:not([open]), dialog:not([open])")&&"function"==typeof e.focus}function C(e){return Array.from(e.querySelectorAll("[autofocus]")).find(k)}function A(e){if("_blank"===e)return!1;if(e){for(const t of document.getElementsByName(e))if(t instanceof HTMLIFrameElement)return!1;return!0}return!0}function _(e){const t=T(e,"a[href], a[xlink\\:href]");if(!t)return null;if(t.href.startsWith("#"))return null;if(t.hasAttribute("download"))return null;const n=t.getAttribute("target");return n&&"_self"!==n?null:t}const P={"aria-disabled":{beforeSubmit:e=>{e.setAttribute("aria-disabled","true"),e.addEventListener("click",c)},afterSubmit:e=>{e.removeAttribute("aria-disabled"),e.removeEventListener("click",c)}},disabled:{beforeSubmit:e=>e.disabled=!0,afterSubmit:e=>e.disabled=!1}};const L=new class{#e=null;constructor(e){Object.assign(this,e)}get submitter(){return this.#e}set submitter(e){this.#e=P[e]||e}}({mode:"on",submitter:"disabled"}),j={drive:s,forms:L};function M(e){return new URL(e.toString(),document.baseURI)}function R(e){let t;return e.hash?e.hash.slice(1):(t=e.href.match(/#(.*)$/))?t[1]:void 0}function I(e,t){return M(t?.getAttribute("formaction")||e.getAttribute("action")||e.action)}function N(e){return(function(e){return function(e){return e.pathname.split("/").slice(1)}(e).slice(-1)[0]}(e).match(/\.[^.]*$/)||[])[0]||""}function D(e,t){return function(e,t){const n=H(t.origin+t.pathname);return H(e.href)===n||e.href.startsWith(n)}(e,t)&&!j.drive.unvisitableExtensions.has(N(e))}function F(e){return M(e.getAttribute("href")||"")}function B(e){return function(e){const t=R(e);return null!=t?e.href.slice(0,-(t.length+1)):e.href}(e)}function q(e,t){return M(e).href==M(t).href}function H(e){return e.endsWith("/")?e:e+"/"}class ${constructor(e){this.response=e}get succeeded(){return this.response.ok}get failed(){return!this.succeeded}get clientError(){return this.statusCode>=400&&this.statusCode<=499}get serverError(){return this.statusCode>=500&&this.statusCode<=599}get redirected(){return this.response.redirected}get location(){return M(this.response.url)}get isHTML(){return this.contentType&&this.contentType.match(/^(?:text\/([^\s;,]+\b)?html|application\/xhtml\+xml)\b/)}get statusCode(){return this.response.status}get contentType(){return this.header("Content-Type")}get responseText(){return this.response.clone().text()}get responseHTML(){return this.isHTML?this.response.clone().text():Promise.resolve(void 0)}header(e){return this.response.headers.get(e)}}class V extends Set{constructor(e){super(),this.maxSize=e}add(e){if(this.size>=this.maxSize){const e=this.values().next().value;this.delete(e)}super.add(e)}}const z=new V(20);function U(e,t={}){const n=new Headers(t.headers||{}),r=m();return z.add(r),n.append("X-Turbo-Request-Id",r),window.fetch(e,{...t,headers:n})}function W(e){switch(e.toLowerCase()){case"get":return G.get;case"post":return G.post;case"put":return G.put;case"patch":return G.patch;case"delete":return G.delete}}const G={get:"get",post:"post",put:"put",patch:"patch",delete:"delete"};const K={urlEncoded:"application/x-www-form-urlencoded",multipart:"multipart/form-data",plain:"text/plain"};class X{abortController=new AbortController;#t=e=>{};
2constructor(e,t,n,r=new URLSearchParams,i=null,o=K.urlEncoded){const[s,a]=Y(M(n),t,r,o);this.delegate=e,this.url=s,this.target=i,this.fetchOptions={credentials:"same-origin",redirect:"follow",method:t.toUpperCase(),headers:{...this.defaultHeaders},body:a,signal:this.abortSignal,referrer:this.delegate.referrer?.href},this.enctype=o}get method(){return this.fetchOptions.method}set method(e){const t=this.isSafe?this.url.searchParams:this.fetchOptions.body||new FormData,n=W(e)||G.get;this.url.search="";const[r,i]=Y(this.url,n,t,this.enctype);this.url=r,this.fetchOptions.body=i,this.fetchOptions.method=n.toUpperCase()}get headers(){return this.fetchOptions.headers}set headers(e){this.fetchOptions.headers=e}get body(){return this.isSafe?this.url.searchParams:this.fetchOptions.body}set body(e){this.fetchOptions.body=e}get location(){return this.url}get params(){return this.url.searchParams}get entries(){return this.body?Array.from(this.body.entries()):[]}cancel(){this.abortController.abort()}async perform(){const{fetchOptions:e}=this;this.delegate.prepareRequest(this);const t=await this.#n(e);try{this.delegate.requestStarted(this),t.detail.fetchRequest?this.response=t.detail.fetchRequest.response:this.response=U(this.url.href,e);const n=await this.response;return await this.receive(n)}catch(e){if("AbortError"!==e.name)throw this.#r(e)&&this.delegate.requestErrored(this,e),e}finally{this.delegate.requestFinished(this)}}async receive(e){const t=new $(e);return l("turbo:before-fetch-response",{cancelable:!0,detail:{fetchResponse:t},target:this.target}).defaultPrevented?this.delegate.requestPreventedHandlingResponse(this,t):t.succeeded?this.delegate.requestSucceededWithResponse(this,t):this.delegate.requestFailedWithResponse(this,t),t}get defaultHeaders(){return{Accept:"text/html, application/xhtml+xml"}}get isSafe(){return J(this.method)}get abortSignal(){return this.abortController.signal}acceptResponseType(e){this.headers.Accept=[e,this.headers.Accept].join(", ")}async#n(e){const t=new Promise(e=>this.#t=e),n=l("turbo:before-fetch-request",{cancelable:!0,detail:{fetchOptions:e,url:this.url,resume:this.#t},target:this.target});return this.url=n.detail.url,n.defaultPrevented&&await t,n}#r(e){return!l("turbo:fetch-request-error",{target:this.target,cancelable:!0,detail:{request:this,error:e}}).defaultPrevented}}function J(e){return W(e)==G.get}function Y(e,t,n,r){const i=Array.from(n).length>0?new URLSearchParams(Q(n)):e.searchParams;return J(t)?[Z(e,i),null]:r==K.urlEncoded?[e,i]:[e,n]}function Q(e){const t=[];for(const[n,r]of e)r instanceof File||t.push([n,r]);return t}function Z(e,t){const n=new URLSearchParams(Q(t));return e.search=n.toString(),e}class ee{started=!1;constructor(e,t){this.delegate=e,this.element=t,this.intersectionObserver=new IntersectionObserver(this.intersect)}start(){this.started||(this.started=!0,this.intersectionObserver.observe(this.element))}stop(){this.started&&(this.started=!1,this.intersectionObserver.unobserve(this.element))}intersect=e=>{const t=e.slice(-1)[0];t?.isIntersecting&&this.delegate.elementAppearedInViewport(this.element)}}class te{static contentType="text/vnd.turbo-stream.html";static wrap(e){return"string"==typeof e?new this(function(e){const t=document.createElement("template");return t.innerHTML=e,t.content}(e)):e}constructor(e){this.fragment=function(e){for(const t of e.querySelectorAll("turbo-stream")){const e=document.importNode(t,!0);for(const t of e.templateElement.content.querySelectorAll("script"))t.replaceWith(a(t));t.replaceWith(e)}return e}(e)}}const ne=e=>e;class re{keys=[];entries={};#i;constructor(e,t=ne){this.size=e,this.#i=t}has(e){return this.#i(e)in this.entries}get(e){if(this.has(e)){const t=this.read(e);return this.touch(e),t}}put(e,t){return this.write(e,t),this.touch(e),t}clear(){for(const e of Object.keys(this.entries))this.evict(e)}read(e){return this.entries[this.#i(e)]}write(e,t){this.entries[this.#i(e)]=t}touch(e){e=this.#i(e);const t=this.keys.indexOf(e);t>-1&&this.keys.splice(t,1),this.keys.unshift(e),this.trim()}trim(){for(const e of this.keys.splice(this.size))this.evict(e)}evict(e){delete this.entries[e]}}const ie=1e4,oe=new class extends re{#o=null;#s={};constructor(e=1,t=100){super(e,B),this.prefetchDelay=t}putLater(e,t,n){this.#o=setTimeout(()=>{t.perform(),this.put(e,t,n),this.#o=null},this.prefetchDelay)}put(e,t,n=ie){super.put(e,t),this.#s[B(e)]=new Date((new Date).getTime()+n)}clear(){super.clear(),this.#o&&clearTimeout(this.#o)}evict(e){super.evict(e),delete this.#s[e]}has(e){if(super.has(e)){const t=this.#s[B(e)];return t&&t>Date.now()}return!1}},se={initialized:"initialized",requesting:"requesting",waiting:"waiting",receiving:"receiving",stopping:"stopping",stopped:"stopped"};class ae{state=se.initialized;static confirmMethod(e){return Promise.resolve(confirm(e))}constructor(e,t,n,r=!1){const i=function(e,t){const n=t?.getAttribute("formmethod")||e.getAttribute("method")||"";return W(n.toLowerCase())||G.get}(t,n),o=function(e,t){const n=M(e);J(t)&&(n.search="");return n}(function(e,t){const n="string"==typeof e.action?e.action:null;return t?.hasAttribute("formaction")?t.getAttribute("formaction")||"":e.getAttribute("action")||n||""}(t,n),i),s=function(e,t){const n=new FormData(e),r=t?.getAttribute("name"),i=t?.getAttribute("value");r&&n.append(r,i||"");return n}(t,n),a=function(e,t){return function(e){switch(e.toLowerCase()){case K.multipart:return K.multipart;case K.plain:return K.plain;default:return K.urlEncoded}}(t?.getAttribute("formenctype")||e.enctype)}(t,n);this.delegate=e,this.formElement=t,this.submitter=n,this.fetchRequest=new X(this,i,o,s,t,a),this.mustRedirect=r}get method(){return this.fetchRequest.method}set method(e){this.fetchRequest.method=e}get action(){return this.fetchRequest.url.toString()}set action(e){this.fetchRequest.url=M(e)}get body(){return this.fetchRequest.body}get enctype(){return this.fetchRequest.enctype}get isSafe(){return this.fetchRequest.isSafe}get location(){return this.fetchRequest.url}async start(){const{initialized:e,requesting:t}=se,n=v("data-turbo-confirm",this.submitter,this.formElement);if("string"==typeof n){const e="function"==typeof j.forms.confirm?j.forms.confirm:ae.confirmMethod;if(!await e(n,this.formElement,this.submitter))return}if(this.state==e)return this.state=t,this.fetchRequest.perform()}stop(){const{stopping:e,stopped:t}=se;if(this.state!=e&&this.state!=t)return this.state=e,this.fetchRequest.cancel(),!0}prepareRequest(e){if(!e.isSafe){const t=function(e){if(null!=e){const t=(document.cookie?document.cookie.split("; "):[]).find(t=>t.startsWith(e));if(t){const e=t.split("=").slice(1).join("=");return e?decodeURIComponent(e):void 0}}}(x("csrf-param"))||x("csrf-token");t&&(e.headers["X-CSRF-Token"]=t)}this.requestAcceptsTurboStreamResponse(e)&&e.acceptResponseType(te.contentType)}requestStarted(e){this.state=se.waiting,this.submitter&&j.forms.submitter.beforeSubmit(this.submitter),this.setSubmitsWith(),g(this.formElement),l("turbo:submit-start",{target:this.formElement,detail
2:{formSubmission:this}}),this.delegate.formSubmissionStarted(this)}requestPreventedHandlingResponse(e,t){oe.clear(),this.result={success:t.succeeded,fetchResponse:t}}requestSucceededWithResponse(e,t){if(t.clientError||t.serverError)this.delegate.formSubmissionFailedWithResponse(this,t);else if(oe.clear(),this.requestMustRedirect(e)&&function(e){return 200==e.statusCode&&!e.redirected}(t)){const e=new Error("Form responses must redirect to another location");this.delegate.formSubmissionErrored(this,e)}else this.state=se.receiving,this.result={success:!0,fetchResponse:t},this.delegate.formSubmissionSucceededWithResponse(this,t)}requestFailedWithResponse(e,t){this.result={success:!1,fetchResponse:t},this.delegate.formSubmissionFailedWithResponse(this,t)}requestErrored(e,t){this.result={success:!1,error:t},this.delegate.formSubmissionErrored(this,t)}requestFinished(e){this.state=se.stopped,this.submitter&&j.forms.submitter.afterSubmit(this.submitter),this.resetSubmitterText(),y(this.formElement),l("turbo:submit-end",{target:this.formElement,detail:{formSubmission:this,...this.result}}),this.delegate.formSubmissionFinished(this)}setSubmitsWith(){if(this.submitter&&this.submitsWith)if(this.submitter.matches("button"))this.originalSubmitText=this.submitter.innerHTML,this.submitter.innerHTML=this.submitsWith;else if(this.submitter.matches("input")){const e=this.submitter;this.originalSubmitText=e.value,e.value=this.submitsWith}}resetSubmitterText(){if(this.submitter&&this.originalSubmitText)if(this.submitter.matches("button"))this.submitter.innerHTML=this.originalSubmitText;else if(this.submitter.matches("input")){this.submitter.value=this.originalSubmitText}}requestMustRedirect(e){return!e.isSafe&&this.mustRedirect}requestAcceptsTurboStreamResponse(e){return!e.isSafe||function(e,...t){return t.some(t=>t&&t.hasAttribute(e))}("data-turbo-stream",this.submitter,this.formElement)}get submitsWith(){return this.submitter?.getAttribute("data-turbo-submits-with")}}class le{constructor(e){this.element=e}get activeElement(){return this.element.ownerDocument.activeElement}get children(){return[...this.element.children]}hasAnchor(e){return null!=this.getElementForAnchor(e)}getElementForAnchor(e){return e?this.element.querySelector(`[id='${e}'], a[name='${e}']`):null}get isConnected(){return this.element.isConnected}get firstAutofocusableElement(){return C(this.element)}get permanentElements(){return ue(this.element)}getPermanentElementById(e){return ce(this.element,e)}getPermanentElementMapForSnapshot(e){const t={};for(const n of this.permanentElements){const{id:r}=n,i=e.getPermanentElementById(r);i&&(t[r]=[n,i])}return t}}function ce(e,t){return e.querySelector(`#${t}[data-turbo-permanent]`)}function ue(e){return e.querySelectorAll("[id][data-turbo-permanent]")}class de{started=!1;constructor(e,t){this.delegate=e,this.eventTarget=t}start(){this.started||(this.eventTarget.addEventListener("submit",this.submitCaptured,!0),this.started=!0)}stop(){this.started&&(this.eventTarget.removeEventListener("submit",this.submitCaptured,!0),this.started=!1)}submitCaptured=()=>{this.eventTarget.removeEventListener("submit",this.submitBubbled,!1),this.eventTarget.addEventListener("submit",this.submitBubbled,!1)};submitBubbled=e=>{if(!e.defaultPrevented){const t=e.target instanceof HTMLFormElement?e.target:void 0,n=e.submitter||void 0;t&&function(e,t){const n=t?.getAttribute("formmethod")||e.getAttribute("method");return"dialog"!=n}(t,n)&&function(e,t){const n=t?.getAttribute("formtarget")||e.getAttribute("target");return A(n)}(t,n)&&this.delegate.willSubmitForm(t,n)&&(e.preventDefault(),e.stopImmediatePropagation(),this.delegate.formSubmitted(t,n))}}}class fe{#a=e=>{};#l=e=>{};constructor(e,t){this.delegate=e,this.element=t}scrollToAnchor(e){const t=this.snapshot.getElementForAnchor(e);t?(this.focusElement(t),this.scrollToElement(t)):this.scrollToPosition({x:0,y:0})}scrollToAnchorFromLocation(e){this.scrollToAnchor(R(e))}scrollToElement(e){e.scrollIntoView()}focusElement(e){e instanceof HTMLElement&&(e.hasAttribute("tabindex")?e.focus():(e.setAttribute("tabindex","-1"),e.focus(),e.removeAttribute("tabindex")))}scrollToPosition({x:e,y:t}){this.scrollRoot.scrollTo(e,t)}scrollToTop(){this.scrollToPosition({x:0,y:0})}get scrollRoot(){return window}
2async render(e){const{isPreview:t,shouldRender:n,willRender:r,newSnapshot:i}=e,o=r;if(n)try{this.renderPromise=new Promise(e=>this.#a=e),this.renderer=e,await this.prepareToRenderSnapshot(e);const n=new Promise(e=>this.#l=e),r={resume:this.#l,render:this.renderer.renderElement,renderMethod:this.renderer.renderMethod};this.delegate.allowsImmediateRender(i,r)||await n,await this.renderSnapshot(e),this.delegate.viewRenderedSnapshot(i,t,this.renderer.renderMethod),this.delegate.preloadOnLoadLinksForView(this.element),this.finishRenderingSnapshot(e)}finally{delete this.renderer,this.#a(void 0),delete this.renderPromise}else o&&this.invalidate(e.reloadReason)}invalidate(e){this.delegate.viewInvalidated(e)}async prepareToRenderSnapshot(e){this.markAsPreview(e.isPreview),await e.prepareToRender()}markAsPreview(e){e?this.element.setAttribute("data-turbo-preview",""):this.element.removeAttribute("data-turbo-preview")}markVisitDirection(e){this.element.setAttribute("data-turbo-visit-direction",e)}unmarkVisitDirection(){this.element.removeAttribute("data-turbo-visit-direction")}async renderSnapshot(e){await e.render()}finishRenderingSnapshot(e){e.finishRendering()}}class pe extends fe{missing(){this.element.innerHTML='<strong class="turbo-frame-error">Content missing</strong>'}get snapshot(){return new le(this.element)}}class he{constructor(e,t){this.delegate=e,this.element=t}start(){this.element.addEventListener("click",this.clickBubbled),document.addEventListener("turbo:click",this.linkClicked),document.addEventListener("turbo:before-visit",this.willVisit)}stop(){this.element.removeEventListener("click",this.clickBubbled),document.removeEventListener("turbo:click",this.linkClicked),document.removeEventListener("turbo:before-visit",this.willVisit)}clickBubbled=e=>{this.clickEventIsSignificant(e)?this.clickEvent=e:delete this.clickEvent};linkClicked=e=>{this.clickEvent&&this.clickEventIsSignificant(e)&&this.delegate.shouldInterceptLinkClick(e.target,e.detail.url,e.detail.originalEvent)&&(this.clickEvent.preventDefault(),e.preventDefault(),this.delegate.linkClickIntercepted(e.target,e.detail.url,e.detail.originalEvent)),delete this.clickEvent};willVisit=e=>{delete this.clickEvent};clickEventIsSignificant(e){const t=e.composed?e.target?.parentElement:e.target,n=_(t)||t;return n instanceof Element&&n.closest("turbo-frame, html")==this.element}}class me{started=!1;constructor(e,t){this.delegate=e,this.eventTarget=t}start(){this.started||(this.eventTarget.addEventListener("click",this.clickCaptured,!0),this.started=!0)}stop(){this.started&&(this.eventTarget.removeEventListener("click",this.clickCaptured,!0),this.started=!1)}clickCaptured=()=>{this.eventTarget.removeEventListener("click",this.clickBubbled,!1),this.eventTarget.addEventListener("click",this.clickBubbled,!1)};clickBubbled=e=>{if(e instanceof MouseEvent&&this.clickEventIsSignificant(e)){const t=_(e.composedPath&&e.composedPath()[0]||e.target);if(t&&A(t.target)){const n=F(t);this.delegate.willFollowLinkToLocation(t,n,e)&&(e.preventDefault(),this.delegate.followedLinkToLocation(t,n))}}};clickEventIsSignificant(e){return!(e.target&&e.target.isContentEditable||e.defaultPrevented||e.which>1||e.altKey||e.ctrlKey||e.metaKey||e.shiftKey)}}class ve{constructor(e,t){this.delegate=e,this.linkInterceptor=new me(this,t)}start(){this.linkInterceptor.start()}stop(){this.linkInterceptor.stop()}canPrefetchRequestToLocation(e,t){return!1}prefetchAndCacheRequestToLocation(e,t){}willFollowLinkToLocation(e,t,n){return this.delegate.willSubmitFormLinkToLocation(e,t,n)&&(e.hasAttribute("data-turbo-method")||e.hasAttribute("data-turbo-stream"))}followedLinkToLocation(e,t){const n=document.createElement("form");for(const[e,r]of t.searchParams)n.append(Object.assign(document.createElement("input"),{type:"hidden",name:e,value:r}));const r=Object.assign(t,{search:""});n.setAttribute("data-turbo","true"),n.setAttribute("action",r.href),n.setAttribute("hidden","");const i=e.getAttribute("data-turbo-method");i&&n.setAttribute("method",i);const o=e.getAttribute("data-turbo-frame");o&&n.setAttribute("data-turbo-frame",o);const s=E(e);s&&n.setAttribute("data-turbo-action",s);const a=e.getAttribute("data-turbo-confirm");a&&n.setAttribute("data-turbo-confirm",a);e.hasAttribute("data-turbo-stream")&&n.setAttribute("data-turbo-stream",""),this.delegate.submittedFormLinkToLocation(e,t,n),document.body.appendChild(n),n.addEventListener("turbo:submit-end",()=>n.remove(),{once:!0}),requestAnimationFrame(()=>n.requestSubmit())}}
2class ge{static async preservingPermanentElements(e,t,n){const r=new this(e,t);r.enter(),await n(),r.leave()}constructor(e,t){this.delegate=e,this.permanentElementMap=t}enter(){for(const e in this.permanentElementMap){const[t,n]=this.permanentElementMap[e];this.delegate.enteringBardo(t,n),this.replaceNewPermanentElementWithPlaceholder(n)}}leave(){for(const e in this.permanentElementMap){const[t]=this.permanentElementMap[e];this.replaceCurrentPermanentElementWithClone(t),this.replacePlaceholderWithPermanentElement(t),this.delegate.leavingBardo(t)}}replaceNewPermanentElementWithPlaceholder(e){const t=function(e){const t=document.createElement("meta");return t.setAttribute("name","turbo-permanent-placeholder"),t.setAttribute("content",e.id),t}(e);e.replaceWith(t)}replaceCurrentPermanentElementWithClone(e){const t=e.cloneNode(!0);e.replaceWith(t)}replacePlaceholderWithPermanentElement(e){const t=this.getPlaceholderById(e.id);t?.replaceWith(e)}getPlaceholderById(e){return this.placeholders.find(t=>t.content==e)}get placeholders(){return[...document.querySelectorAll("meta[name=turbo-permanent-placeholder][content]")]}}class ye{#c=null;static renderElement(e,t){}constructor(e,t,n,r=!0){this.currentSnapshot=e,this.newSnapshot=t,this.isPreview=n,this.willRender=r,this.renderElement=this.constructor.renderElement,this.promise=new Promise((e,t)=>this.resolvingFunctions={resolve:e,reject:t})}get shouldRender(){return!0}get shouldAutofocus(){return!0}get reloadReason(){}prepareToRender(){}render(){}finishRendering(){this.resolvingFunctions&&(this.resolvingFunctions.resolve(),delete this.resolvingFunctions)}async preservingPermanentElements(e){await ge.preservingPermanentElements(this,this.permanentElementMap,e)}focusFirstAutofocusableElement(){if(this.shouldAutofocus){const e=this.connectedSnapshot.firstAutofocusableElement;e&&e.focus()}}enteringBardo(e){this.#c||e.contains(this.currentSnapshot.activeElement)&&(this.#c=this.currentSnapshot.activeElement)}leavingBardo(e){e.contains(this.#c)&&this.#c instanceof HTMLElement&&(this.#c.focus(),this.#c=null)}get connectedSnapshot(){return this.newSnapshot.isConnected?this.newSnapshot:this.currentSnapshot}get currentElement(){return this.currentSnapshot.element}get newElement(){return this.newSnapshot.element}get permanentElementMap(){return this.currentSnapshot.getPermanentElementMapForSnapshot(this.newSnapshot)}get renderMethod(){return"replace"}}class be extends ye{static renderElement(e,t){const n=document.createRange();n.selectNodeContents(e),n.deleteContents();const r=t,i=r.ownerDocument?.createRange();i&&(i.selectNodeContents(r),e.appendChild(i.extractContents()))}constructor(e,t,n,r,i,o=!0){super(t,n,r,i,o),this.delegate=e}get shouldRender(){return!0}async render(){await u(),this.preservingPermanentElements(()=>{this.loadFrameElement()}),this.scrollFrameIntoView(),await u(),this.focusFirstAutofocusableElement(),await u(),this.activateScriptElements()}loadFrameElement(){this.delegate.willRenderFrame(this.currentElement,this.newElement),this.renderElement(this.currentElement,this.newElement)}scrollFrameIntoView(){if(this.currentElement.autoscroll||this.newElement.autoscroll){const n=this.currentElement.firstElementChild,r=(e=this.currentElement.getAttribute("data-autoscroll-block"),t="end","end"==e||"start"==e||"center"==e||"nearest"==e?e:t),i=function(e,t){return"auto"==e||"smooth"==e?e:t}(this.currentElement.getAttribute("data-autoscroll-behavior"),"auto");if(n)return n.scrollIntoView({block:r,behavior:i}),!0}var e,t;return!1}activateScriptElements(){for(const e of this.newScriptElements){const t=a(e);e.replaceWith(t)}}get newScriptElements(){return this.currentElement.querySelectorAll("script")}}var we=function(){const e=()=>{},t={morphStyle:"outerHTML",callbacks:{beforeNodeAdded:e,afterNodeAdded:e,beforeNodeMorphed:e,afterNodeMorphed:e,beforeNodeRemoved:e,afterNodeRemoved:e,beforeAttributeUpdated:e},head:{style:"merge",shouldPreserve:e=>"true"===e.getAttribute("im-preserve"),shouldReAppend:e=>"true"===e.getAttribute("im-re-append"),shouldRemove:e,afterHeadMorphed:e},restoreFocus:!0};const n=function(){function e(e,t,n,i){if(!1===i.callbacks.beforeNodeAdded(t))return null;if(i.idMap.has(t)){const o=document.createElement(t.tagName);return e.insertBefore(o,n),r(o,t,i),i.callbacks.afterNodeAdded(o),o}{const r=document.importNode(t,!0);return e.insertBefore(r,n),i.callbacks.afterNodeAdded(r),r}}const t=function(){function e(e,t,n){let r=e.idMap.get(t),i=e.idMap.get(n);if(!i||!r)return!1;for(const e of r)if(i.has(e))return!0;return!1}function t(e,t){const n=e,r=t;return n.nodeType===r.nodeType&&n.tagName===r.tagName&&(!n.getAttribute?.("id")||n.getAttribute?.("id")===r.getAttribute?.("id"))}return function(n,r,i,o){let s=null,a=r.nextSibling,l=0,c=i;for(;c&&c!=o;){if(t(c,r)){if(e(n,c,r))return c;null===s&&(n.idMap.has(c)||(s=c))}if(null===s&&a&&t(c,a)&&(l++,a=a.nextSibling,l>=2&&(s=void 0)),n.activeElementAndParents.includes(c))break;c=c.nextSibling}return s||null}}();function n(e,t){if(e.idMap.has(t))s(e.pantry,t,null);else{if(!1===e.callbacks.beforeNodeRemoved(t))return;t.parentNode?.removeChild(t),e.callbacks.afterNodeRemoved(t)}}function i(e,t,r){let i=t;for(;i&&i!==r;){let t=i;i=i.nextSibling,n(e,t)}return i}function o(e,t,n,r){const i=r.target.getAttribute?.("id")===t&&r.target||r.target.querySelector(`[id="${t}"]`)||r.pantry.querySelector(`[id="${t}"]`);return function(e,t){const n=e.getAttribute("id");for(;e=e.parentNode;){let r=t.idMap.get(e);r&&(r.delete(n),r.size||t.idMap.delete(e))}}(i,r),s(e,i,n),i}function s(e,t,n){if(e.moveBefore)try{e.moveBefore(t,n)}catch(r){e.insertBefore(t,n)}else e.insertBefore(t,n)}return function(s,a,l,c=null,u=null){a instanceof HTMLTemplateElement&&l instanceof HTMLTemplateElement&&(a=a.content,l=l.content),c||=a.firstChild;for(const n of l.childNodes){if(c&&c!=u){const e=t(s,n,c,u);if(e){e!==c&&i(s,c,e),r(e,n,s),c=e.nextSibling;continue}}if(n instanceof Element){const e=n.getAttribute("id");if(s.persistentIds.has(e)){const t=o(a,e,c,s);r(t,n,s),c=t.nextSibling;continue}}const l=e(a,n,c,s);l&&(c=l.nextSibling)}for(;c&&c!=u;){const e=c;c=c.nextSibling,n(s,e)}}}(),r=function(){function e(e,n,r,i){const o=n[r];if(o!==e[r]){const s=t(r,e,"update",i);s||(e[r]=n[r]),o?s||e.setAttribute(r,""):t(r,e,"remove",i)||e.removeAttribute(r)}}function t(e,t,n,r){return!("value"!==e||!r.ignoreActiveValue||t!==document.activeElement)||!1===r.callbacks.beforeAttributeUpdated(e,t,n)}function r(e,t){return!!t.ignoreActiveValue&&e===document.activeElement&&e!==document.body}return function(o,s,a){return a.ignoreActive&&o===document.activeElement?null:(!1===a.callbacks.beforeNodeMorphed(o,s)||(o instanceof HTMLHeadElement&&a.head.ignore||(o instanceof HTMLHeadElement&&"morph"!==a.head.style?i(o,s,a):(!function(n,i,o){let s=i.nodeType;if(1===s){const s=n,a=i,l=s.attributes,c=a.attributes;for(const e of c)t(e.name,s,"update",o)||s.getAttribute(e.name)!==e.value&&s.setAttribute(e.name,e.value);for(let e=l.length-1;0<=e;e--){const n=l[e];
2if(n&&!a.hasAttribute(n.name)){if(t(n.name,s,"remove",o))continue;s.removeAttribute(n.name)}}r(s,o)||function(n,r,i){if(n instanceof HTMLInputElement&&r instanceof HTMLInputElement&&"file"!==r.type){let o=r.value,s=n.value;e(n,r,"checked",i),e(n,r,"disabled",i),r.hasAttribute("value")?s!==o&&(t("value",n,"update",i)||(n.setAttribute("value",o),n.value=o)):t("value",n,"remove",i)||(n.value="",n.removeAttribute("value"))}else if(n instanceof HTMLOptionElement&&r instanceof HTMLOptionElement)e(n,r,"selected",i);else if(n instanceof HTMLTextAreaElement&&r instanceof HTMLTextAreaElement){let e=r.value,o=n.value;if(t("value",n,"update",i))return;e!==o&&(n.value=e),n.firstChild&&n.firstChild.nodeValue!==e&&(n.firstChild.nodeValue=e)}}(s,a,o)}8!==s&&3!==s||n.nodeValue!==i.nodeValue&&(n.nodeValue=i.nodeValue)}(o,s,a),r(o,a)||n(a,o,s))),a.callbacks.afterNodeMorphed(o,s)),o)}}();function i(e,t,n){let r=[],i=[],o=[],s=[],a=new Map;for(const e of t.children)a.set(e.outerHTML,e);for(const t of e.children){let e=a.has(t.outerHTML),r=n.head.shouldReAppend(t),l=n.head.shouldPreserve(t);e||l?r?i.push(t):(a.delete(t.outerHTML),o.push(t)):"append"===n.head.style?r&&(i.push(t),s.push(t)):!1!==n.head.shouldRemove(t)&&i.push(t)}s.push(...a.values());let l=[];for(const t of s){let i=document.createRange().createContextualFragment(t.outerHTML).firstChild;if(!1!==n.callbacks.beforeNodeAdded(i)){if("href"in i&&i.href||"src"in i&&i.src){let e,t=new Promise(function(t){e=t});i.addEventListener("load",function(){e()}),l.push(t)}e.appendChild(i),n.callbacks.afterNodeAdded(i),r.push(i)}}for(const t of i)!1!==n.callbacks.beforeNodeRemoved(t)&&(e.removeChild(t),n.callbacks.afterNodeRemoved(t));return n.head.afterHeadMorphed(e,{added:r,kept:o,removed:i}),l}const o=function(){function e(){const e=document.createElement("div");return e.hidden=!0,document.body.insertAdjacentElement("afterend",e),e}function n(e){let t=[],n=document.activeElement;if("BODY"!==n?.tagName&&e.contains(n))for(;n&&(t.push(n),n!==e);)n=n.parentElement;return t}function r(e){let t=Array.from(e.querySelectorAll("[id]"));return e.getAttribute?.("id")&&t.push(e),t}function i(e,t,n,r){for(const i of r){const r=i.getAttribute("id");if(t.has(r)){let t=i;for(;t;){let i=e.get(t);if(null==i&&(i=new Set,e.set(t,i)),i.add(r),t===n)break;t=t.parentElement}}}}return function(o,s,a){const{persistentIds:l,idMap:c}=function(e,t){const n=r(e),o=r(t),s=function(e,t){let n=new Set,r=new Map;for(const{id:t,tagName:i}of e)r.has(t)?n.add(t):r.set(t,i);let i=new Set;for(const{id:e,tagName:o}of t)i.has(e)?n.add(e):r.get(e)===o&&i.add(e);for(const e of n)i.delete(e);return i}(n,o);let a=new Map;i(a,s,e,n);const l=t.__idiomorphRoot||t;return i(a,s,l,o),{persistentIds:s,idMap:a}}(o,s),u=function(e){let n=Object.assign({},t);return Object.assign(n,e),n.callbacks=Object.assign({},t.callbacks,e.callbacks),n.head=Object.assign({},t.head,e.head),n}(a),d=u.morphStyle||"outerHTML";if(!["innerHTML","outerHTML"].includes(d))throw`Do not understand how to morph style ${d}`;return{target:o,newContent:s,config:u,morphStyle:d,ignoreActive:u.ignoreActive,ignoreActiveValue:u.ignoreActiveValue,restoreFocus:u.restoreFocus,idMap:c,persistentIds:l,pantry:e(),activeElementAndParents:n(o),callbacks:u.callbacks,head:u.head}}}(),{normalizeElement:s,normalizeParent:a}=function(){const e=new WeakSet;class t{constructor(e){this.originalNode=e,this.realParentNode=e.parentNode,this.previousSibling=e.previousSibling,this.nextSibling=e.nextSibling}get childNodes(){const e=[];let t=this.previousSibling?this.previousSibling.nextSibling:this.realParentNode.firstChild;for(;t&&t!=this.nextSibling;)e.push(t),t=t.nextSibling;return e}querySelectorAll(e){return this.childNodes.reduce((t,n)=>{if(n instanceof Element){n.matches(e)&&t.push(n);const r=n.querySelectorAll(e);for(let e=0;e<r.length;e++)t.push(r[e])}return t},[])}insertBefore(e,t){return this.realParentNode.insertBefore(e,t)}moveBefore(e,t){return this.realParentNode.moveBefore(e,t)}get __idiomorphRoot(){return this.originalNode}}return{normalizeElement:function(e){return e instanceof Document?e.documentElement:e},normalizeParent:function n(r){if(null==r)return document.createElement("div");if("string"==typeof r)return n(function(t){let n=new DOMParser,r=t.replace(/<svg(\s[^>]*>|>)([\s\S]*?)<\/svg>/gim,"");if(r.match(/<\/html>/)||r.match(/<\/head>/)||r.match(/<\/body>/)){let i=n.parseFromString(t,"text/html");if(r.match(/<\/html>/))return e.add(i),i;{let t=i.firstChild;return t&&e.add(t),t}}{let r=n.parseFromString("<body><template>"+t+"</template></body>","text/html").body.querySelector("template").content;return e.add(r),r}}(r));if(e.has(r))return r;if(r instanceof Node){if(r.parentNode)return new t(r);{const e=document.createElement("div");return e.append(r),e}}{const e=document.createElement("div");for(const t of[...r])e.append(t);return e}}}}();return{morph:function(e,t,r={}){e=s(e);const l=a(t),c=o(e,l,r),u=function(e,t){if(!e.config.restoreFocus)return t();let n=document.activeElement;if(!(n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement))return t();const{id:r,selectionStart:i,selectionEnd:o}=n,s=t();r&&r!==document.activeElement?.getAttribute("id")&&(n=e.target.querySelector(`[id="${r}
2"]`),n?.focus());n&&!n.selectionEnd&&o&&n.setSelectionRange(i,o);return s}(c,()=>function(e,t,n,r){if(e.head.block){const o=t.querySelector("head"),s=n.querySelector("head");if(o&&s){const t=i(o,s,e);return Promise.all(t).then(()=>{const t=Object.assign(e,{head:{block:!1,ignore:!0}});return r(t)})}}return r(e)}(c,e,l,t=>"innerHTML"===t.morphStyle?(n(t,e,l),Array.from(e.childNodes)):function(e,t,r){const i=a(t);return n(e,i,r,t,t.nextSibling),Array.from(i.childNodes)}(t,e,l)));return c.pantry.remove(),u},defaults:t}}();function Ee(e,t,{callbacks:n,...r}={}){we.morph(e,t,{...r,callbacks:new Te(n)})}function Se(e,t,n={}){Ee(e,t.childNodes,{...n,morphStyle:"innerHTML"})}function xe(e,t){return e instanceof o&&e.shouldReloadWithMorph&&(!t||function(e,t){return t instanceof Element&&"TURBO-FRAME"===t.nodeName&&e.id===t.id&&(!t.getAttribute("src")||q(e.src,t.getAttribute("src")))}(e,t))&&!e.closest("[data-turbo-permanent]")}function Oe(e){return e.parentElement.closest("turbo-frame[src][refresh=morph]")}class Te{#u;constructor({beforeNodeMorphed:e}={}){this.#u=e||(()=>!0)}beforeNodeAdded=e=>!(e.id&&e.hasAttribute("data-turbo-permanent")&&document.getElementById(e.id));beforeNodeMorphed=(e,t)=>{if(e instanceof Element){if(!e.hasAttribute("data-turbo-permanent")&&this.#u(e,t)){return!l("turbo:before-morph-element",{cancelable:!0,target:e,detail:{currentElement:e,newElement:t}}).defaultPrevented}return!1}};beforeAttributeUpdated=(e,t,n)=>!l("turbo:before-morph-attribute",{cancelable:!0,target:t,detail:{attributeName:e,mutationType:n}}).defaultPrevented;beforeNodeRemoved=e=>this.beforeNodeMorphed(e);afterNodeMorphed=(e,t)=>{e instanceof Element&&l("turbo:morph-element",{target:e,detail:{currentElement:e,newElement:t}})}}class ke extends be{static renderElement(e,t){l("turbo:before-frame-morph",{target:e,detail:{currentElement:e,newElement:t}}),Se(e,t,{callbacks:{beforeNodeMorphed:(t,n)=>!xe(t,n)||Oe(t)!==e||(t.reload(),!1)}})}async preservingPermanentElements(e){return await e()}}class Ce{static animationDuration=300;static get defaultCSS(){return h` 3 .turbo-progress-bar { 4 position: fixed; 5 display: block; 6 top: 0; 7 left: 0; 8 height: 3px; 9 background: #0076ff; 10 z-index: 2147483647; 11 transition: 12 width ${Ce.animationDuration}ms ease-out, 13 opacity ${Ce.animationDuration/2}ms ${Ce.animationDuration/2}ms ease-in; 14 transform: translate3d(0, 0, 0); 15 } 16 `}hiding=!1;value=0;visible=!1;constructor(){this.stylesheetElement=this.createStylesheetElement(),this.progressElement=this.createProgressElement(),this.installStylesheetElement(),this.setValue(0)}show(){this.visible||(this.visible=!0,this.installProgressElement(),this.startTrickling())}hide(){this.visible&&!this.hiding&&(this.hiding=!0,this.fadeProgressElement(()=>{this.uninstallProgressElement(),this.stopTrickling(),this.visible=!1,this.hiding=!1}))}setValue(e){this.value=e,this.refresh()}installStylesheetElement(){document.head.insertBefore(this.stylesheetElement,document.head.firstChild)}installProgressElement(){this.progressElement.style.width="0",this.progressElement.style.opacity="1",document.documentElement.insertBefore(this.progressElement,document.body),this.refresh()}fadeProgressElement(e){this.progressElement.style.opacity="0",setTimeout(e,1.5*Ce.animationDuration)}uninstallProgressElement(){this.progressElement.parentNode&&document.documentElement.removeChild(this.progressElement)}startTrickling(){this.trickleInterval||(this.trickleInterval=window.setInterval(this.trickle,Ce.animationDuration))}stopTrickling(){window.clearInterval(this.trickleInterval),delete this.trickleInterval}trickle=()=>{this.setValue(this.value+Math.random()/100)};refresh(){requestAnimationFrame(()=>{this.progressElement.style.width=10+90*this.value+"%"})}createStylesheetElement(){const e=document.createElement("style");e.type="text/css",e.textContent=Ce.defaultCSS;const t=O();return t&&(e.nonce=t),e}createProgressElement(){const e=document.createElement("div");return e.className="turbo-progress-bar",e}}class Ae extends le{detailsByOuterHTML=this.children.filter(e=>!function(e){const t=e.localName;return"noscript"==t}(e)).map(e=>function(e){e.hasAttribute("nonce")&&e.setAttribute("nonce","");return e}(e)).reduce((e,t)=>
16{const{outerHTML:n}=t,r=n in e?e[n]:{type:_e(t),tracked:Pe(t),elements:[]};return{...e,[n]:{...r,elements:[...r.elements,t]}}},{});get trackedElementSignature(){return Object.keys(this.detailsByOuterHTML).filter(e=>this.detailsByOuterHTML[e].tracked).join("")}getScriptElementsNotInSnapshot(e){return this.getElementsMatchingTypeNotInSnapshot("script",e)}getStylesheetElementsNotInSnapshot(e){return this.getElementsMatchingTypeNotInSnapshot("stylesheet",e)}getElementsMatchingTypeNotInSnapshot(e,t){return Object.keys(this.detailsByOuterHTML).filter(e=>!(e in t.detailsByOuterHTML)).map(e=>this.detailsByOuterHTML[e]).filter(({type:t})=>t==e).map(({elements:[e]})=>e)}get provisionalElements(){return Object.keys(this.detailsByOuterHTML).reduce((e,t)=>{const{type:n,tracked:r,elements:i}=this.detailsByOuterHTML[t];return null!=n||r?i.length>1?[...e,...i.slice(1)]:e:[...e,...i]},[])}getMetaValue(e){const t=this.findMetaElementByName(e);return t?t.getAttribute("content"):null}findMetaElementByName(e){return Object.keys(this.detailsByOuterHTML).reduce((t,n)=>{const{elements:[r]}=this.detailsByOuterHTML[n];return function(e,t){const n=e.localName;return"meta"==n&&e.getAttribute("name")==t}(r,e)?r:t},0)}}function _e(e){return function(e){const t=e.localName;return"script"==t}
16(e)?"script":function(e){const t=e.localName;return"style"==t||"link"==t&&"stylesheet"==e.getAttribute("rel")}(e)?"stylesheet":void 0}function Pe(e){return"reload"==e.getAttribute("data-turbo-track")}class Le extends le{static fromHTMLString(e=""){return this.fromDocument(p(e))}static fromElement(e){return this.fromDocument(e.ownerDocument)}static fromDocument({documentElement:e,body:t,head:n}){return new this(e,t,new Ae(n))}constructor(e,t,n){super(t),this.documentElement=e,this.headSnapshot=n}clone(){const e=this.element.cloneNode(!0),t=this.element.querySelectorAll("select"),n=e.querySelectorAll("select");for(const[e,r]of t.entries()){const t=n[e];for(const e of t.selectedOptions)e.selected=!1;for(const e of r.selectedOptions)t.options[e.index].selected=!0}for(const t of e.querySelectorAll('input[type="password"]'))t.value="";for(const t of e.querySelectorAll("noscript"))t.remove();return new Le(this.documentElement,e,this.headSnapshot)}get lang(){return this.documentElement.getAttribute("lang")}get dir(){return this.documentElement.getAttribute("dir")}get headElement(){return this.headSnapshot.element}get rootLocation(){return M(this.getSetting("root")??"/")}get cacheControlValue(){return this.getSetting("cache-control")}get isPreviewable(){return"no-preview"!=this.cacheControlValue}get isCacheable(){return"no-cache"!=this.cacheControlValue}get isVisitable(){return"reload"!=this.getSetting("visit-control")}get prefersViewTransitions(){return("true"===this.getSetting("view-transition")||"same-origin"===this.headSnapshot.getMetaValue("view-transition"))&&!window.matchMedia("(prefers-reduced-motion: reduce)").matches}get refreshMethod(){return this.getSetting("refresh-method")}get refreshScroll(){return this.getSetting("refresh-scroll")}getSetting(e){return this.headSnapshot.getMetaValue(`turbo-${e}`)}}class je{#d=!1;#f=Promise.resolve();renderChange(e,t){return e&&this.viewTransitionsAvailable&&!this.#d?(this.#d=!0,this.#f=this.#f.then(async()=>{await document.startViewTransition(t).finished})):this.#f=this.#f.then(t),this.#f}get viewTransitionsAvailable(){return document.startViewTransition}}const Me={action:"advance",historyChanged:!1,visitCachedSnapshot:()=>{},willRender:!0,updateHistory:!0,shouldCacheSnapshot:!0,acceptsStreamResponse:!1,refresh:{}},Re="visitStart",Ie="requestStart",Ne="requestEnd",De="visitEnd",Fe="initialized",Be="started",qe="canceled",He="failed",$e="completed",Ve=0,ze=-1,Ue=-2,We={advance:"forward",restore:"back",replace:"none"};class Ge{identifier=m();timingMetrics={};followedRedirect=!1;historyChanged=!1;scrolled=!1;shouldCacheSnapshot=!0;acceptsStreamResponse=!1;snapshotCached=!1;state=Fe;viewTransitioner=new je;constructor(e,t,n,r={}){this.delegate=e,this.location=t,this.restorationIdentifier=n||m();const{action:i,historyChanged:o,referrer:s,snapshot:a,snapshotHTML:l,response:c,visitCachedSnapshot:u,willRender:d,updateHistory:f,shouldCacheSnapshot:p,acceptsStreamResponse:h,direction:v,refresh:g}={...Me,...r};this.action=i,this.historyChanged=o,this.referrer=s,this.snapshot=a,this.snapshotHTML=l,this.response=c,this.isPageRefresh=this.view.isPageRefresh(this),this.visitCachedSnapshot=u,this.willRender=d,this.updateHistory=f,this.scrolled=!d,this.shouldCacheSnapshot=p,this.acceptsStreamResponse=h,this.direction=v||We[i],this.refresh=g}get adapter(){return this.delegate.adapter}get view(){return this.delegate.view}get history(){return this.delegate.history}get restorationData(){return this.history.getRestorationDataForIdentifier(this.restorationIdentifier)}start(){this.state==Fe&&(this.recordTimingMetric(Re),this.state=Be,this.adapter.visitStarted(this),this.delegate.visitStarted(this))}cancel(){this.state==Be&&(this.request&&this.request.cancel(),this.cancelRender(),this.state=qe)}complete(){this.state==Be&&(this.recordTimingMetric(De),this.adapter.visitCompleted(this),this.state=$e,this.followRedirect(),this.followedRedirect||this.delegate.visitCompleted(this))}fail(){this.state==Be&&(this.state=He,this.adapter.visitFailed(this),this.delegate.visitCompleted(this))}changeHistory(){if(!this.historyChanged&&this.updateHistory){const e=w(this.location.href===this.referrer?.href?"replace":this.action);this.history.update(e,this.location,this.restorationIdentifier),this.historyChanged=!0}}issueRequest(){this.hasPreloadedResponse()?this.simulateRequest():this.shouldIssueRequest()&&!this.request&&(this.request=new X(this,G.get,this.location),this.request.perform())}
16simulateRequest(){this.response&&(this.startRequest(),this.recordResponse(),this.finishRequest())}startRequest(){this.recordTimingMetric(Ie),this.adapter.visitRequestStarted(this)}recordResponse(e=this.response){if(this.response=e,e){const{statusCode:t}=e;Ke(t)?this.adapter.visitRequestCompleted(this):this.adapter.visitRequestFailedWithStatusCode(this,t)}}finishRequest(){this.recordTimingMetric(Ne),this.adapter.visitRequestFinished(this)}loadResponse(){if(this.response){const{statusCode:e,responseHTML:t}=this.response;this.render(async()=>{if(this.shouldCacheSnapshot&&this.cacheSnapshot(),this.view.renderPromise&&await this.view.renderPromise,Ke(e)&&null!=t){const e=Le.fromHTMLString(t);await this.renderPageSnapshot(e,!1),this.adapter.visitRendered(this),this.complete()}else await this.view.renderError(Le.fromHTMLString(t),this),this.adapter.visitRendered(this),this.fail()})}}getCachedSnapshot(){const e=this.view.getCachedSnapshotForLocation(this.location)||this.getPreloadedSnapshot();if(e&&(!R(this.location)||e.hasAnchor(R(this.location)))&&("restore"==this.action||e.isPreviewable))return e}getPreloadedSnapshot(){if(this.snapshotHTML)return Le.fromHTMLString(this.snapshotHTML)}hasCachedSnapshot(){return null!=this.getCachedSnapshot()}loadCachedSnapshot(){const e=this.getCachedSnapshot();if(e){const t=this.shouldIssueRequest();this.render(async()=>{this.cacheSnapshot(),this.isPageRefresh?this.adapter.visitRendered(this):(this.view.renderPromise&&await this.view.renderPromise,await this.renderPageSnapshot(e,t),this.adapter.visitRendered(this),t||this.complete())})}}followRedirect(){this.redirectedToLocation&&!this.followedRedirect&&this.response?.redirected&&(this.adapter.visitProposedToLocation(this.redirectedToLocation,{action:"replace",response:this.response,shouldCacheSnapshot:!1,willRender:!1}),this.followedRedirect=!0)}prepareRequest(e){this.acceptsStreamResponse&&e.acceptResponseType(te.contentType)}requestStarted(){this.startRequest()}requestPreventedHandlingResponse(e,t){}async requestSucceededWithResponse(e,t){const n=await t.responseHTML,{redirected:r,statusCode:i}=t;null==n?this.recordResponse({statusCode:Ue,redirected:r}):(this.redirectedToLocation=t.redirected?t.location:void 0,this.recordResponse({statusCode:i,responseHTML:n,redirected:r}))}async requestFailedWithResponse(e,t){const n=await t.responseHTML,{redirected:r,statusCode:i}=t;null==n?this.recordResponse({statusCode:Ue,redirected:r}):this.recordResponse({statusCode:i,responseHTML:n,redirected:r})}requestErrored(e,t){this.recordResponse({statusCode:Ve,redirected:!1})}requestFinished(){this.finishRequest()}performScroll(){this.scrolled||this.view.forceReloaded||this.view.shouldPreserveScrollPosition(this)||("restore"==this.action?this.scrollToRestoredPosition()||this.scrollToAnchor()||this.view.scrollToTop():this.scrollToAnchor()||this.view.scrollToTop(),this.scrolled=!0)}scrollToRestoredPosition(){const{scrollPosition:e}=this.restorationData;if(e)return this.view.scrollToPosition(e),!0}scrollToAnchor(){const e=R(this.location);if(null!=e)return this.view.scrollToAnchor(e),!0}recordTimingMetric(e){this.timingMetrics[e]=(new Date).getTime()}getTimingMetrics(){return{...this.timingMetrics}}hasPreloadedResponse(){return"object"==typeof this.response}shouldIssueRequest(){return"restore"==this.action?!this.hasCachedSnapshot():this.willRender}cacheSnapshot(){this.snapshotCached||(this.view.cacheSnapshot(this.snapshot).then(e=>e&&this.visitCachedSnapshot(e)),this.snapshotCached=!0)}async render(e){this.cancelRender(),await new Promise(e=>{this.frame="hidden"===document.visibilityState?setTimeout(()=>e(),0):requestAnimationFrame(()=>e())}),await e(),delete this.frame}async renderPageSnapshot(e,t){await this.viewTransitioner.renderChange(this.view.shouldTransitionTo(e),async()=>{await this.view.renderPage(e,t,this.willRender,this),this.performScroll()})}cancelRender(){this.frame&&(cancelAnimationFrame(this.frame),delete this.frame)}}function Ke(e){return e>=200&&e<300}class Xe{progressBar=new Ce;constructor(e){this.session=e}visitProposedToLocation(e,t){D(e,this.navigator.rootLocation)?this.navigator.startVisit(e,t?.restorationIdentifier||m(),t):window.location.href=e.toString()}visitStarted(e){this.location=e.location,this.redirectedToLocation=null,e.loadCachedSnapshot(),e.issueRequest()}visitRequestStarted(e){this.progressBar.setValue(0),e.hasCachedSnapshot()||"restore"!=e.action?this.showVisitProgressBarAfterDelay():this.showProgressBar()}visitRequestCompleted(e){e.loadResponse(),e.response.redirected&&(this.redirectedToLocation=e.redirectedToLocation)}visitRequestFailedWithStatusCode(e,t){switch(t){case Ve:case ze:case Ue:return this.reload({reason:"request_failed",context:{statusCode:t}});default:return e.loadResponse()}}visitRequestFinished(e){}visitCompleted(e){this.progressBar.setValue(1),this.hideVisitProgressBar()}pageInvalidated(e){this.reload(e)}visitFailed(e){this.progressBar.setValue(1),this.hideVisitProgressBar()}visitRendered(e){}linkPrefetchingIsEnabledForLocation(e){return!0}
16formSubmissionStarted(e){this.progressBar.setValue(0),this.showFormProgressBarAfterDelay()}formSubmissionFinished(e){this.progressBar.setValue(1),this.hideFormProgressBar()}showVisitProgressBarAfterDelay(){this.visitProgressBarTimeout=window.setTimeout(this.showProgressBar,this.session.progressBarDelay)}hideVisitProgressBar(){this.progressBar.hide(),null!=this.visitProgressBarTimeout&&(window.clearTimeout(this.visitProgressBarTimeout),delete this.visitProgressBarTimeout)}showFormProgressBarAfterDelay(){null==this.formProgressBarTimeout&&(this.formProgressBarTimeout=window.setTimeout(this.showProgressBar,this.session.progressBarDelay))}hideFormProgressBar(){this.progressBar.hide(),null!=this.formProgressBarTimeout&&(window.clearTimeout(this.formProgressBarTimeout),delete this.formProgressBarTimeout)}showProgressBar=()=>{this.progressBar.show()};reload(e){l("turbo:reload",{detail:e}),window.location.href=(this.redirectedToLocation||this.location)?.toString()||window.location.href}get navigator(){return this.session.navigator}}class Je{selector="[data-turbo-temporary]";started=!1;start(){this.started||(this.started=!0,addEventListener("turbo:before-cache",this.removeTemporaryElements,!1))}stop(){this.started&&(this.started=!1,removeEventListener("turbo:before-cache",this.removeTemporaryElements,!1))}removeTemporaryElements=e=>{for(const e of this.temporaryElements)e.remove()};get temporaryElements(){return[...document.querySelectorAll(this.selector)]}}class Ye{constructor(e,t){this.session=e,this.element=t,this.linkInterceptor=new he(this,t),this.formSubmitObserver=new de(this,t)}start(){this.linkInterceptor.start(),this.formSubmitObserver.start()}stop(){this.linkInterceptor.stop(),this.formSubmitObserver.stop()}shouldInterceptLinkClick(e,t,n){return this.#p(e)}linkClickIntercepted(e,t,n){const r=this.#h(e);r&&r.delegate.linkClickIntercepted(e,t,n)}willSubmitForm(e,t){return null==e.closest("turbo-frame")&&this.#m(e,t)&&this.#p(e,t)}formSubmitted(e,t){const n=this.#h(e,t);n&&n.delegate.formSubmitted(e,t)}#m(e,t){const n=I(e,t),r=this.element.ownerDocument.querySelector('meta[name="turbo-root"]'),i=M(r?.content??"/");return this.#p(e,t)&&D(n,i)}#p(e,t){if(e instanceof HTMLFormElement?this.session.submissionIsNavigatable(e,t):this.session.elementIsNavigatable(e)){const n=this.#h(e,t);return!!n&&n!=e.closest("turbo-frame")}return!1}#h(e,t){const n=t?.getAttribute("data-turbo-frame")||e.getAttribute("data-turbo-frame");if(n&&"_top"!=n){const e=this.element.querySelector(`#${n}:not([disabled])`);if(e instanceof o)return e}}}class Qe{location;restorationIdentifier=m();restorationData={};started=!1;currentIndex=0;constructor(e){this.delegate=e}start(){this.started||(addEventListener("popstate",this.onPopState,!1),this.currentIndex=history.state?.turbo?.restorationIndex||0,this.started=!0,this.replace(new URL(window.location.href)))}stop(){this.started&&(removeEventListener("popstate",this.onPopState,!1),this.started=!1)}push(e,t){this.update(history.pushState,e,t)}replace(e,t){this.update(history.replaceState,e,t)}update(e,t,n=m()){e===history.pushState&&++this.currentIndex;const r={turbo:{restorationIdentifier:n,restorationIndex:this.currentIndex}};e.call(history,r,"",t.href),this.location=t,this.restorationIdentifier=n}getRestorationDataForIdentifier(e){return this.restorationData[e]||{}}updateRestorationData(e){const{restorationIdentifier:t}=this,n=this.restorationData[t];this.restorationData[t]={...n,...e}}assumeControlOfScrollRestoration(){this.previousScrollRestoration||(this.previousScrollRestoration=history.scrollRestoration??"auto",history.scrollRestoration="manual")}relinquishControlOfScrollRestoration(){this.previousScrollRestoration&&(history.scrollRestoration=this.previousScrollRestoration,delete this.previousScrollRestoration)}onPopState=e=>{const{turbo:t}=e.state||{};if(this.location=new URL(window.location.href),t){const{restorationIdentifier:e,restorationIndex:n}=t;this.restorationIdentifier=e;const r=n>this.currentIndex?"forward":"back";this.delegate.historyPoppedToLocationWithRestorationIdentifierAndDirection(this.location,e,r),this.currentIndex=n}else this.currentIndex++,this.delegate.historyPoppedWithEmptyState(this.location)}}class Ze{started=!1;#v=null;constructor(e,t){this.delegate=e,this.eventTarget=t}start(){this.started||("loading"===this.eventTarget.readyState?this.eventTarget.addEventListener("DOMContentLoaded",this.#g,{once:!0}):this.#g())}stop(){this.started&&(this.eventTarget.removeEventListener("mouseenter",this.#y,{
16capture:!0,passive:!0}),this.eventTarget.removeEventListener("mouseleave",this.#b,{capture:!0,passive:!0}),this.eventTarget.removeEventListener("turbo:before-fetch-request",this.#w,!0),this.started=!1)}#g=()=>{this.eventTarget.addEventListener("mouseenter",this.#y,{capture:!0,passive:!0}),this.eventTarget.addEventListener("mouseleave",this.#b,{capture:!0,passive:!0}),this.eventTarget.addEventListener("turbo:before-fetch-request",this.#w,!0),this.started=!0};#y=e=>{if("false"===x("turbo-prefetch"))return;const t=e.target;if(t.matches&&t.matches("a[href]:not([target^=_]):not([download])")&&this.#E(t)){const e=t,n=F(e);if(this.delegate.canPrefetchRequestToLocation(e,n)){this.#v=e;const r=new X(this,G.get,n,new URLSearchParams,t);r.fetchOptions.priority="low",oe.putLater(n,r,this.#S)}}};#b=e=>{e.target===this.#v&&this.#x()};#x=()=>{oe.clear(),this.#v=null};#w=e=>{if("FORM"!==e.target.tagName&&"GET"===e.detail.fetchOptions.method){const t=oe.get(e.detail.url);t&&(e.detail.fetchRequest=t),oe.clear()}};prepareRequest(e){const t=e.target;e.headers["X-Sec-Purpose"]="prefetch";const n=t.closest("turbo-frame"),r=t.getAttribute("data-turbo-frame")||n?.getAttribute("target")||n?.id;r&&"_top"!==r&&(e.headers["Turbo-Frame"]=r)}requestSucceededWithResponse(){}requestStarted(e){}requestErrored(e){}requestFinished(e){}requestPreventedHandlingResponse(e,t){}requestFailedWithResponse(e,t){}get#S(){return Number(x("turbo-prefetch-cache-time"))||ie}#E(e){return!!e.getAttribute("href")&&(!et(e)&&(!tt(e)&&(!nt(e)&&(!rt(e)&&!ot(e)))))}}const et=e=>e.origin!==document.location.origin||!["http:","https:"].includes(e.protocol)||e.hasAttribute("target"),tt=e=>e.pathname+e.search===document.location.pathname+document.location.search||e.href.startsWith("#"),nt=e=>{if("false"===e.getAttribute("data-turbo-prefetch"))return!0;if("false"===e.getAttribute("data-turbo"))return!0;const t=T(e,"[data-turbo-prefetch]");return!(!t||"false"!==t.getAttribute("data-turbo-prefetch"))},rt=e=>{const t=e.getAttribute("data-turbo-method");return!(!t||"get"===t.toLowerCase())||(!!it(e)||(!!e.hasAttribute("data-turbo-confirm")||!!e.hasAttribute("data-turbo-stream")))},it=e=>e.hasAttribute("data-remote")||e.hasAttribute("data-behavior")||e.hasAttribute("data-confirm")||e.hasAttribute("data-method"),ot=e=>l("turbo:before-prefetch",{target:e,cancelable:!0}).defaultPrevented;class st{constructor(e){this.delegate=e}proposeVisit(e,t={}){this.delegate.allowsVisitingLocationWithAction(e,t.action)&&this.delegate.visitProposedToLocation(e,t)}startVisit(e,t,n={}){this.stop(),this.currentVisit=new Ge(this,M(e),t,{referrer:this.location,...n}),this.currentVisit.start()}submitForm(e,t){this.stop(),this.formSubmission=new ae(this,e,t,!0),this.formSubmission.start()}stop(){this.formSubmission&&(this.formSubmission.stop(),delete this.formSubmission),this.currentVisit&&(this.currentVisit.cancel(),delete this.currentVisit)}get adapter(){return this.delegate.adapter}get view(){return this.delegate.view}get rootLocation(){return this.view.snapshot.rootLocation}get history(){return this.delegate.history}formSubmissionStarted(e){"function"==typeof this.adapter.formSubmissionStarted&&this.adapter.formSubmissionStarted(e)}async formSubmissionSucceededWithResponse(e,t){if(e==this.formSubmission){const n=await t.responseHTML;if(n){const r=e.isSafe;r||this.view.clearSnapshotCache();const{statusCode:i,redirected:o}=t,s={action:this.#O(e,t),shouldCacheSnapshot:r,response:{statusCode:i,responseHTML:n,redirected:o}};this.proposeVisit(t.location,s)}}}async formSubmissionFailedWithResponse(e,t){const n=await t.responseHTML;if(n){const e=Le.fromHTMLString(n);t.serverError?await this.view.renderError(e,this.currentVisit):await this.view.renderPage(e,!1,!0,this.currentVisit),"preserve"!==e.refreshScroll&&this.view.scrollToTop(),this.view.clearSnapshotCache()}}formSubmissionErrored(e,t){console.error(t)}formSubmissionFinished(e){"function"==typeof this.adapter.formSubmissionFinished&&this.adapter.formSubmissionFinished(e)}linkPrefetchingIsEnabledForLocation(e){return"function"!=typeof this.adapter.linkPrefetchingIsEnabledForLocation||this.adapter.linkPrefetchingIsEnabledForLocation(e)}visitStarted(e){this.delegate.visitStarted(e)}visitCompleted(e){this.delegate.visitCompleted(e),delete this.currentVisit}locationWithActionIsSamePage(e,t){return!1}get location(){return this.history.location}get restorationIdentifier(){return this.history.restorationIdentifier}#O(e,t){const{submitter:n,formElement:r}=e;return E(n,r)||this.#T(t)}#T(e){return e.redirected&&e.location.href===this.location?.href?"replace":"advance"}}const at=0,lt=1,ct=2,ut=3;class dt{stage=at;started=!1;constructor(e){this.delegate=e}start(){this.started||(this.stage==at&&(this.stage=lt),document.addEventListener("readystatechange",this.interpretReadyState,!1),addEventListener("pagehide",this.pageWillUnload,!1),this.started=!0)}stop(){this.started&&(document.removeEventListener("readystatechange",this.interpretReadyState,!1),removeEventListener("pagehide",this.pageWillUnload,!1),this.started=!1)}interpretReadyState=()=>{const{readyState:e}=this;
16"interactive"==e?this.pageIsInteractive():"complete"==e&&this.pageIsComplete()};pageIsInteractive(){this.stage==lt&&(this.stage=ct,this.delegate.pageBecameInteractive())}pageIsComplete(){this.pageIsInteractive(),this.stage==ct&&(this.stage=ut,this.delegate.pageLoaded())}pageWillUnload=()=>{this.delegate.pageWillUnload()};get readyState(){return document.readyState}}class ft{started=!1;constructor(e){this.delegate=e}start(){this.started||(addEventListener("scroll",this.onScroll,!1),this.onScroll(),this.started=!0)}stop(){this.started&&(removeEventListener("scroll",this.onScroll,!1),this.started=!1)}onScroll=()=>{this.updatePosition({x:window.pageXOffset,y:window.pageYOffset})};updatePosition(e){this.delegate.scrollPositionChanged(e)}}class pt{render({fragment:e}){ge.preservingPermanentElements(this,function(e){const t=ue(document.documentElement),n={};for(const r of t){const{id:t}=r;for(const i of e.querySelectorAll("turbo-stream")){const e=ce(i.templateElement.content,t);e&&(n[t]=[r,e])}}return n}(e),()=>{!async function(e,t){const n=`turbo-stream-autofocus-${m()}`,r=e.querySelectorAll("turbo-stream"),i=function(e){for(const t of e){const e=C(t.templateElement.content);if(e)return e}return null}(r);let o=null;i&&(o=i.id?i.id:n,i.id=o);t(),await u();if((null==document.activeElement||document.activeElement==document.body)&&o){const e=document.getElementById(o);k(e)&&e.focus(),e&&e.id==n&&e.removeAttribute("id")}}(e,()=>{!async function(e){const[t,n]=await async function(e,t){const n=t();return e(),await d(),[n,t()]}(e,()=>document.activeElement),r=t&&t.id;if(r){const e=document.getElementById(r);k(e)&&e!=n&&e.focus()}}(()=>{document.documentElement.appendChild(e)})})})}enteringBardo(e,t){t.replaceWith(e.cloneNode(!0))}leavingBardo(){}}class ht{sources=new Set;#k=!1;constructor(e){this.delegate=e}start(){this.#k||(this.#k=!0,addEventListener("turbo:before-fetch-response",this.inspectFetchResponse,!1))}stop(){this.#k&&(this.#k=!1,removeEventListener("turbo:before-fetch-response",this.inspectFetchResponse,!1))}connectStreamSource(e){this.streamSourceIsConnected(e)||(this.sources.add(e),e.addEventListener("message",this.receiveMessageEvent,!1))}disconnectStreamSource(e){this.streamSourceIsConnected(e)&&(this.sources.delete(e),e.removeEventListener("message",this.receiveMessageEvent,!1))}streamSourceIsConnected(e){return this.sources.has(e)}inspectFetchResponse=e=>{const t=function(e){const t=e.detail?.fetchResponse;if(t instanceof $)return t}(e);t&&function(e){const t=e.contentType??"";return t.startsWith(te.contentType)}(t)&&(e.preventDefault(),this.receiveMessageResponse(t))};receiveMessageEvent=e=>{this.#k&&"string"==typeof e.data&&this.receiveMessageHTML(e.data)};async receiveMessageResponse(e){const t=await e.responseHTML;t&&this.receiveMessageHTML(t)}receiveMessageHTML(e){this.delegate.receivedMessageFromStream(te.wrap(e))}}class mt extends ye{static renderElement(e,t){const{documentElement:n,body:r}=document;n.replaceChild(t,r)}async render(){this.replaceHeadAndBody(),this.activateScriptElements()}replaceHeadAndBody(){const{documentElement:e,head:t}=document;e.replaceChild(this.newHead,t),this.renderElement(this.currentElement,this.newElement)}activateScriptElements(){for(const e of this.scriptElements){const t=e.parentNode;if(t){const n=a(e);t.replaceChild(n,e)}}}get newHead(){return this.newSnapshot.headSnapshot.element}get scriptElements(){return document.documentElement.querySelectorAll("script")}}class vt extends ye{static renderElement(e,t){document.body&&t instanceof HTMLBodyElement?document.body.replaceWith(t):document.documentElement.appendChild(t)}get shouldRender(){return this.newSnapshot.isVisitable&&this.trackedElementsAreIdentical}get reloadReason(){return this.newSnapshot.isVisitable?this.trackedElementsAreIdentical?void 0:{reason:"tracked_element_mismatch"}:{reason:"turbo_visit_control_is_reload"}}async prepareToRender(){this.#C(),await this.mergeHead()}async render(){this.willRender&&await this.replaceBody()}finishRendering(){super.finishRendering(),this.isPreview||this.focusFirstAutofocusableElement()}get currentHeadSnapshot(){return this.currentSnapshot.headSnapshot}
16get newHeadSnapshot(){return this.newSnapshot.headSnapshot}get newElement(){return this.newSnapshot.element}#C(){const{documentElement:e}=this.currentSnapshot,{dir:t,lang:n}=this.newSnapshot;n?e.setAttribute("lang",n):e.removeAttribute("lang"),t?e.setAttribute("dir",t):e.removeAttribute("dir")}async mergeHead(){const e=this.mergeProvisionalElements(),t=this.copyNewHeadStylesheetElements();this.copyNewHeadScriptElements(),await e,await t,this.willRender&&this.removeUnusedDynamicStylesheetElements()}async replaceBody(){await this.preservingPermanentElements(async()=>{this.activateNewBody(),await this.assignNewBody()})}get trackedElementsAreIdentical(){return this.currentHeadSnapshot.trackedElementSignature==this.newHeadSnapshot.trackedElementSignature}async copyNewHeadStylesheetElements(){const e=[];for(const t of this.newHeadStylesheetElements)e.push(b(t)),document.head.appendChild(t);await Promise.all(e)}copyNewHeadScriptElements(){for(const e of this.newHeadScriptElements)document.head.appendChild(a(e))}removeUnusedDynamicStylesheetElements(){for(const e of this.unusedDynamicStylesheetElements)document.head.removeChild(e)}async mergeProvisionalElements(){const e=[...this.newHeadProvisionalElements];for(const t of this.currentHeadProvisionalElements)this.isCurrentElementInElementList(t,e)||document.head.removeChild(t);for(const t of e)document.head.appendChild(t)}isCurrentElementInElementList(e,t){for(const[n,r]of t.entries()){if("TITLE"==e.tagName){if("TITLE"!=r.tagName)continue;if(e.innerHTML==r.innerHTML)return t.splice(n,1),!0}if(r.isEqualNode(e))return t.splice(n,1),!0}return!1}removeCurrentHeadProvisionalElements(){for(const e of this.currentHeadProvisionalElements)document.head.removeChild(e)}copyNewHeadProvisionalElements(){for(const e of this.newHeadProvisionalElements)document.head.appendChild(e)}activateNewBody(){document.adoptNode(this.newElement),this.removeNoscriptElements(),this.activateNewBodyScriptElements()}removeNoscriptElements(){for(const e of this.newElement.querySelectorAll("noscript"))e.remove()}activateNewBodyScriptElements(){for(const e of this.newBodyScriptElements){const t=a(e);e.replaceWith(t)}}async assignNewBody(){await this.renderElement(this.currentElement,this.newElement)}get unusedDynamicStylesheetElements(){return this.oldHeadStylesheetElements.filter(e=>"dynamic"===e.getAttribute("data-turbo-track"))}get oldHeadStylesheetElements(){return this.currentHeadSnapshot.getStylesheetElementsNotInSnapshot(this.newHeadSnapshot)}get newHeadStylesheetElements(){return this.newHeadSnapshot.getStylesheetElementsNotInSnapshot(this.currentHeadSnapshot)}get newHeadScriptElements(){return this.newHeadSnapshot.getScriptElementsNotInSnapshot(this.currentHeadSnapshot)}get currentHeadProvisionalElements(){return this.currentHeadSnapshot.provisionalElements}get newHeadProvisionalElements(){return this.newHeadSnapshot.provisionalElements}get newBodyScriptElements(){return this.newElement.querySelectorAll("script")}}class gt extends vt{static renderElement(e,t){Ee(e,t,{callbacks:{beforeNodeMorphed:(e,t)=>!(xe(e,t)&&!Oe(e))||(e.reload(),!1)}}),l("turbo:morph",{detail:{currentElement:e,newElement:t}})}async preservingPermanentElements(e){return await e()}get renderMethod(){return"morph"}get shouldAutofocus(){return!1}}class yt extends re{constructor(e){super(e,B)}get snapshots(){return this.entries}}class bt extends fe{snapshotCache=new yt(10);lastRenderedLocation=new URL(location.href);forceReloaded=!1;shouldTransitionTo(e){return this.snapshot.prefersViewTransitions&&e.prefersViewTransitions}renderPage(e,t=!1,n=!0,r){const i=new(this.isPageRefresh(r)&&"morph"===(r?.refresh?.method||this.snapshot.refreshMethod)?gt:vt)(this.snapshot,e,t,n);return i.shouldRender?r?.changeHistory():this.forceReloaded=!0,this.render(i)}renderError(e,t){t?.changeHistory();const n=new mt(this.snapshot,e,!1);return this.render(n)}clearSnapshotCache(){this.snapshotCache.clear()}async cacheSnapshot(e=this.snapshot){if(e.isCacheable){this.delegate.viewWillCacheSnapshot();const{lastRenderedLocation:t}=this;await f();const n=e.clone();return this.snapshotCache.put(t,n),n}}getCachedSnapshotForLocation(e){return this.snapshotCache.get(e)}isPageRefresh(e){return!e||this.lastRenderedLocation.pathname===e.location.pathname&&"replace"===e.action}shouldPreserveScrollPosition(e){return this.isPageRefresh(e)&&"preserve"===(e?.refresh?.scroll||this.snapshot.refreshScroll)}get snapshot(){return Le.fromElement(this.element)}}class wt{selector="a[data-turbo-preload]";constructor(e,t){this.delegate=e,this.snapshotCache=t}start(){"loading"===document.readyState?document.addEventListener("DOMContentLoaded",this.#A):this.preloadOnLoadLinksForView(document.body)}stop(){document.removeEventListener("DOMContentLoaded",this.#A)}preloadOnLoadLinksForView(e){for(const t of e.querySelectorAll(this.selector))this.delegate.shouldPreloadLink(t)&&this.preloadURL(t)}async preloadURL(e){const t=new URL(e.href);if(this.snapshotCache.has(t))return;const n=new X(this,G.get,t,new URLSearchParams,e);await n.perform()}prepareRequest(e){e.headers["X-Sec-Purpose"]="prefetch"}async requestSucceededWithResponse(e,t){try{const n=await t.responseHTML,r=Le.fromHTMLString(n);this.snapshotCache.put(e.url,r)}catch(e){}}requestStarted(e){}requestErrored(e){}requestFinished(e){}requestPreventedHandlingResponse(e,t){}requestFailedWithResponse(e,t){}#A=()=>{this.preloadOnLoadLinksForView(document.body)}}class Et{constructor(e){this.session=e}clear(){this.session.clearCache()}resetCacheControl(){this.#_("")}exemptPageFromCache(){this.#_("no-cache")}exemptPageFromPreview(){this.#_("no-preview")}#_(e){!function(e,t){let n=S(e);n||(n=document.createElement("meta"),n.setAttribute("name",e),document.head.appendChild(n)),n.setAttribute("content",t)}("turbo-cache-control",e)}}function St(e){Object.defineProperties(e,xt)}const xt={absoluteURL:{get(){return this.toString()}}},Ot=new class{navigator=new st(this);history=new Qe(this);view=new bt(this,document.documentElement);adapter=new Xe(this);
16pageObserver=new dt(this);cacheObserver=new Je;linkPrefetchObserver=new Ze(this,document);linkClickObserver=new me(this,window);formSubmitObserver=new de(this,document);scrollObserver=new ft(this);streamObserver=new ht(this);formLinkClickObserver=new ve(this,document.documentElement);frameRedirector=new Ye(this,document.documentElement);streamMessageRenderer=new pt;cache=new Et(this);enabled=!0;started=!1;#P=150;constructor(e){this.recentRequests=e,this.preloader=new wt(this,this.view.snapshotCache),this.debouncedRefresh=this.refresh,this.pageRefreshDebouncePeriod=this.pageRefreshDebouncePeriod}start(){this.started||(this.pageObserver.start(),this.cacheObserver.start(),this.linkPrefetchObserver.start(),this.formLinkClickObserver.start(),this.linkClickObserver.start(),this.formSubmitObserver.start(),this.scrollObserver.start(),this.streamObserver.start(),this.frameRedirector.start(),this.history.start(),this.preloader.start(),this.started=!0,this.enabled=!0)}disable(){this.enabled=!1}stop(){this.started&&(this.pageObserver.stop(),this.cacheObserver.stop(),this.linkPrefetchObserver.stop(),this.formLinkClickObserver.stop(),this.linkClickObserver.stop(),this.formSubmitObserver.stop(),this.scrollObserver.stop(),this.streamObserver.stop(),this.frameRedirector.stop(),this.history.stop(),this.preloader.stop(),this.started=!1)}registerAdapter(e){this.adapter=e}visit(e,t={}){const n=t.frame?document.getElementById(t.frame):null;if(n instanceof o){const r=t.action||E(n);n.delegate.proposeVisitIfNavigatedWithAction(n,r),n.src=e.toString()}else this.navigator.proposeVisit(M(e),t)}refresh(e,t={}){t="string"==typeof t?{requestId:t}:t;const{method:n,requestId:r,scroll:i}=t,o=r&&this.recentRequests.has(r),s=e===document.baseURI;o||this.navigator.currentVisit||!s||this.visit(e,{action:"replace",shouldCacheSnapshot:!1,refresh:{method:n,scroll:i}})}connectStreamSource(e){this.streamObserver.connectStreamSource(e)}disconnectStreamSource(e){this.streamObserver.disconnectStreamSource(e)}renderStreamMessage(e){this.streamMessageRenderer.render(te.wrap(e))}clearCache(){this.view.clearSnapshotCache()}setProgressBarDelay(e){console.warn("Please replace `session.setProgressBarDelay(delay)` with `session.progressBarDelay = delay`. The function is deprecated and will be removed in a future version of Turbo.`"),this.progressBarDelay=e}set progressBarDelay(e){j.drive.progressBarDelay=e}get progressBarDelay(){return j.drive.progressBarDelay}set drive(e){j.drive.enabled=e}get drive(){return j.drive.enabled}set formMode(e){j.forms.mode=e}get formMode(){return j.forms.mode}get location(){return this.history.location}get restorationIdentifier(){return this.history.restorationIdentifier}get pageRefreshDebouncePeriod(){return this.#P}set pageRefreshDebouncePeriod(e){this.refresh=function(e,t){let n=null;return(...r)=>{clearTimeout(n),n=setTimeout(()=>e.apply(this,r),t)}}(this.debouncedRefresh.bind(this),e),this.#P=e}shouldPreloadLink(e){const t=e.hasAttribute("data-turbo-method"),n=e.hasAttribute("data-turbo-stream"),r=e.getAttribute("data-turbo-frame"),i="_top"==r?null:document.getElementById(r)||T(e,"turbo-frame:not([disabled])");if(t||n||i instanceof o)return!1;{const t=new URL(e.href);return this.elementIsNavigatable(e)&&D(t,this.snapshot.rootLocation)}}historyPoppedToLocationWithRestorationIdentifierAndDirection(e,t,n){this.enabled?this.navigator.startVisit(e,t,{action:"restore",historyChanged:!0,direction:n}):this.adapter.pageInvalidated({reason:"turbo_disabled"})}historyPoppedWithEmptyState(e){this.history.replace(e),this.view.lastRenderedLocation=e,this.view.cacheSnapshot()}scrollPositionChanged(e){this.history.updateRestorationData({scrollPosition:e})}willSubmitFormLinkToLocation(e,t){return this.elementIsNavigatable(e)&&D(t,this.snapshot.rootLocation)}submittedFormLinkToLocation(){}canPrefetchRequestToLocation(e,t){return this.elementIsNavigatable(e)&&D(t,this.snapshot.rootLocation)&&this.navigator.linkPrefetchingIsEnabledForLocation(t)}willFollowLinkToLocation(e,t,n){return this.elementIsNavigatable(e)&&D(t,this.snapshot.rootLocation)&&this.applicationAllowsFollowingLinkToLocation(e,t,n)}followedLinkToLocation(e,t){const n=this.getActionForLink(e),r=e.hasAttribute("data-turbo-stream");this.visit(t.href,{action:n,acceptsStreamResponse:r})}allowsVisitingLocationWithAction(e,t){return this.applicationAllowsVisitingLocation(e)}visitProposedToLocation(e,t){St(e),this.adapter.visitProposedToLocation(e,t)}visitStarted(e){e.acceptsStreamResponse||(g(document.documentElement),this.view.markVisitDirection(e.direction)),St(e.location),this.notifyApplicationAfterVisitingLocation(e.location,e.action)}visitCompleted(e){this.view.unmarkVisitDirection(),y(document.documentElement),this.notifyApplicationAfterPageLoad(e.getTimingMetrics())}willSubmitForm(e,t){const n=I(e,t);return this.submissionIsNavigatable(e,t)&&D(M(n),this.snapshot.rootLocation)}formSubmitted(e,t){this.navigator.submitForm(e,t)}pageBecameInteractive(){this.view.lastRenderedLocation=this.location,this.notifyApplicationAfterPageLoad()}
16pageLoaded(){this.history.assumeControlOfScrollRestoration()}pageWillUnload(){this.history.relinquishControlOfScrollRestoration()}receivedMessageFromStream(e){this.renderStreamMessage(e)}viewWillCacheSnapshot(){this.notifyApplicationBeforeCachingSnapshot()}allowsImmediateRender({element:e},t){const n=this.notifyApplicationBeforeRender(e,t),{defaultPrevented:r,detail:{render:i}}=n;return this.view.renderer&&i&&(this.view.renderer.renderElement=i),!r}viewRenderedSnapshot(e,t,n){this.view.lastRenderedLocation=this.history.location,this.notifyApplicationAfterRender(n)}preloadOnLoadLinksForView(e){this.preloader.preloadOnLoadLinksForView(e)}viewInvalidated(e){this.adapter.pageInvalidated(e)}frameLoaded(e){this.notifyApplicationAfterFrameLoad(e)}frameRendered(e,t){this.notifyApplicationAfterFrameRender(e,t)}applicationAllowsFollowingLinkToLocation(e,t,n){return!this.notifyApplicationAfterClickingLinkToLocation(e,t,n).defaultPrevented}applicationAllowsVisitingLocation(e){return!this.notifyApplicationBeforeVisitingLocation(e).defaultPrevented}notifyApplicationAfterClickingLinkToLocation(e,t,n){return l("turbo:click",{target:e,detail:{url:t.href,originalEvent:n},cancelable:!0})}notifyApplicationBeforeVisitingLocation(e){return l("turbo:before-visit",{detail:{url:e.href},cancelable:!0})}notifyApplicationAfterVisitingLocation(e,t){return l("turbo:visit",{detail:{url:e.href,action:t}})}notifyApplicationBeforeCachingSnapshot(){return l("turbo:before-cache")}notifyApplicationBeforeRender(e,t){return l("turbo:before-render",{detail:{newBody:e,...t},cancelable:!0})}notifyApplicationAfterRender(e){return l("turbo:render",{detail:{renderMethod:e}})}notifyApplicationAfterPageLoad(e={}){return l("turbo:load",{detail:{url:this.location.href,timing:e}})}notifyApplicationAfterFrameLoad(e){return l("turbo:frame-load",{target:e})}notifyApplicationAfterFrameRender(e,t){return l("turbo:frame-render",{detail:{fetchResponse:e},target:t,cancelable:!0})}submissionIsNavigatable(e,t){if("off"==j.forms.mode)return!1;{const n=!t||this.elementIsNavigatable(t);return"optin"==j.forms.mode?n&&null!=e.closest('[data-turbo="true"]'):n&&this.elementIsNavigatable(e)}}elementIsNavigatable(e){const t=T(e,"[data-turbo]"),n=T(e,"turbo-frame");return j.drive.enabled||n?!t||"false"!=t.getAttribute("data-turbo"):!!t&&"true"==t.getAttribute("data-turbo")}getActionForLink(e){return E(e)||"advance"}get snapshot(){return this.view.snapshot}}(z),{cache:Tt,navigator:kt}=Ot;function Ct(){Ot.start()}function At(e){Ot.connectStreamSource(e)}function _t(e){Ot.disconnectStreamSource(e)}function Pt(e){Ot.renderStreamMessage(e)}var Lt=Object.freeze({__proto__:null,PageRenderer:vt,PageSnapshot:Le,FrameRenderer:be,fetch:U,config:j,session:Ot,cache:Tt,navigator:kt,start:Ct,registerAdapter:function(e){Ot.registerAdapter(e)},visit:function(e,t){Ot.visit(e,t)},connectStreamSource:At,disconnectStreamSource:_t,renderStreamMessage:Pt,setProgressBarDelay:function(e){console.warn("Please replace `Turbo.setProgressBarDelay(delay)` with `Turbo.config.drive.progressBarDelay = delay`. The top-level function is deprecated and will be removed in a future version of Turbo.`"),j.drive.progressBarDelay=e},setConfirmMethod:function(e){console.warn("Please replace `Turbo.setConfirmMethod(confirmMethod)` with `Turbo.config.forms.confirm = confirmMethod`. The top-level function is deprecated and will be removed in a future version of Turbo.`"),j.forms.confirm=e},setFormMode:function(e){console.warn("Please replace `Turbo.setFormMode(mode)` with `Turbo.config.forms.mode = mode`. The top-level function is deprecated and will be removed in a future version of Turbo.`"),j.forms.mode=e},morphBodyElements:function(e,t){gt.renderElement(e,t)},morphTurboFrameElements:function(e,t){ke.renderElement(e,t)},morphChildren:Se,morphElements:Ee});class jt extends Error{}function Mt(e,t){if(e){const n=e.getAttribute("src");if(null!=n&&null!=t&&q(n,t))throw new Error(`Matching <turbo-frame id="${e.id}"> element has a source URL which references itself`);if(e.ownerDocument!==document&&(e=document.importNode(e,!0)),e instanceof o)return e.connectedCallback(),e.disconnectedCallback(),e}}const Rt={after(){this.removeDuplicateTargetSiblings(),this.targetElements.forEac
16h(e=>e.parentElement?.insertBefore(this.templateContent,e.nextSibling))},append(){this.removeDuplicateTargetChildren(),this.targetElements.forEach(e=>e.append(this.templateContent))},before(){this.removeDuplicateTargetSiblings(),this.targetElements.forEach(e=>e.parentElement?.insertBefore(this.templateContent,e))},prepend(){this.removeDuplicateTargetChildren(),this.targetElements.forEach(e=>e.prepend(this.templateContent))},remove(){this.targetElements.forEach(e=>e.remove())},replace(){const e=this.getAttribute("method");this.targetElements.forEach(t=>{"morph"===e?Ee(t,this.templateContent):t.replaceWith(this.templateContent)})},update(){const e=this.getAttribute("method");this.targetElements.forEach(t=>{"morph"===e?Se(t,this.templateContent):(t.innerHTML="",t.append(this.templateContent))})},refresh(){const e=this.getAttribute("method"),t=this.requestId,n=this.getAttribute("scroll");Ot.refresh(this.baseURI,{method:e,requestId:t,scroll:n})}};class It extends HTMLElement{static async renderElement(e){await e.performAction()}async connectedCallback(){try{await this.render()}catch(e){console.error(e)}finally{this.disconnect()}}async render(){return this.renderPromise??=(async()=>{const e=this.beforeRenderEvent;this.dispatchEvent(e)&&(await u(),await e.detail.render(this))})()}disconnect(){try{this.remove()}catch{}}removeDuplicateTargetChildren(){this.duplicateChildren.forEach(e=>e.remove())}get duplicateChildren(){const e=this.targetElements.flatMap(e=>[...e.children]).filter(e=>!!e.getAttribute("id")),t=[...this.templateContent?.children||[]].filter(e=>!!e.getAttribute("id")).map(e=>e.getAttribute("id"));return e.filter(e=>t.includes(e.getAttribute("id")))}removeDuplicateTargetSiblings(){this.duplicateSiblings.forEach(e=>e.remove())}get duplicateSiblings(){const e=this.targetElements.flatMap(e=>[...e.parentElement.children]).filter(e=>!!e.id),t=[...this.templateContent?.children||[]].filter(e=>!!e.id).map(e=>e.id);return e.filter(e=>t.includes(e.id))}get performAction(){if(this.action){const e=Rt[this.action];if(e)return e;this.#L("unknown action")}this.#L("action attribute is missing")}get targetElements(){return this.target?this.targetElementsById:this.targets?this.targetElementsByQuery:void this.#L("target or targets attribute is missing")}get templateContent(){return this.templateElement.content.cloneNode(!0)}get templateElement(){if(null===this.firstElementChild){const e=this.ownerDocument.createElement("template");return this.appendChild(e),e}if(this.firstElementChild instanceof HTMLTemplateElement)return this.firstElementChild;this.#L("first child element must be a <template> element")}get action(){return this.getAttribute("action")}get target(){return this.getAttribute("target")}get targets(){return this.getAttribute("targets")}get requestId(){return this.getAttribute("request-id")}#L(e){throw new Error(`${this.description}: ${e}`)}get description(){return(this.outerHTML.match(/<[^>]+>/)??[])[0]??"<turbo-stream>"}get beforeRenderEvent(){return new CustomEvent("turbo:before-stream-render",{bubbles:!0,cancelable:!0,detail:{newStream:this,render:It.renderElement}})}get targetElementsById(){const e=this.ownerDocument?.getElementById(this.target);return null!==e?[e]:[]}get targetElementsByQuery(){const e=this.ownerDocument?.querySelectorAll(this.targets);return 0!==e.length?Array.prototype.slice.call(e):[]}}class Nt extends HTMLElement{streamSource=null;connectedCallback(){this.streamSource=this.src.match(/^ws{1,2}:/)?new WebSocket(this.src):new EventSource(this.src),At(this.streamSource)}disconnectedCallback(){this.streamSource&&(this.streamSource.close(),_t(this.streamSource))}get src(){return this.getAttribute("src")||""}}o.delegateConstructor=class{fetchResponseLoaded=e=>Promise.resolve();#j=null;#M=()=>{};#R=!1;#I=!1;#N=new Set;#D=!1;action=null;constructor(e){this.element=e,this.view=new pe(this,this.element),this.appearanceObserver=new ee(this,this.element),this.formLinkClickObserver=new ve(this,this.element),this.linkInterceptor=new he(this,this.element),this.restorationIdentifier=m(),this.formSubmitObserver=new de(this,this.element)}connect(){this.#R||(this.#R=!0,this.loadingStyle==i?this.appearanceObserver.start():this.#F(),this.formLinkClickObserver.start(),this.linkInterceptor.start(),this.formSubmitObserver.start())}disconnect(){this.#R&&(this.#R=!1,this.appearanceObserver.stop(),this.formLinkClickObserver.stop(),this.linkInterceptor.stop(),this.formSubmitObserver.stop(),this.element.hasAttribute("recurse")||this.#j?.cancel())}disabledChanged(){this.disabled?this.#j?.cancel():this.loadingStyle==r&&this.#F()}sourceURLChanged(){this.#B("src")||(this.sourceURL||this.#j?.cancel(),this.element.isConnected&&(this.complete=!1),(this.loadingStyle==r||this.#I)&&this.#F())}sourceURLReloaded(){const{refresh:e,src:t}=this.element;return this.#D=t&&"morph"===e,this.element.removeAttribute("complete"),this.element.src=null,this.element.src=t,this.element.loaded}loadingStyleChanged(){this.loadingStyle==i?this.appearanceObserver.start():(this.appearanceObserver.stop(),this.#F())}async#F(){this.enabled&&this.isActive&&!this.complete&&this.sourceURL&&(this.element.loaded=this.#q(M(this.sourceURL)),this.appearanceObserver.stop(),await this.element.loaded,this.#I=!0)}async loadResponse(e){(e.redirected||e.succeeded&&e.isHTML)&&(this.sourceURL=e.response.url);try{const t=await e.responseHTML;if(t){const n=p(t);Le.fromDocument(n).isVisitable?await this.#H(e,n):await this.#$(e)}}finally{this.#D=!1,this.fetchResponseLoaded=()=>Promise.resolve()}}elementAppearedInViewport(e){this.proposeVisitIfNavigatedWithAction(e,E(e)),this.#F()}willSubmitFormLinkToLocation(e){return this.#V(e)}submittedFormLinkToLocation(e,t,n){const r=this.#h(e);r&&n.setAttribute("data-turbo-frame",r.id)}shouldInterceptLinkClick(e,t,n){return this.#V(e)}linkClickIntercepted(e,t){this.#z(e,t)}willSubmitForm(e,t){return e.closest("turbo-frame")==this.element&&this.#V(e,t)}formSubmitted(e,t){this.formSubmission&&this.formSubmission.stop(),this.formSubmission=new ae(this,e,t);const{fetchRequest:n}=this.formSubmission,r=this.#h(e,t);this.prepareRequest(n,r),this.formSubmission.start()}
16prepareRequest(e,t=this){e.headers["Turbo-Frame"]=t.id,this.currentNavigationElement?.hasAttribute("data-turbo-stream")&&e.acceptResponseType(te.contentType)}requestStarted(e){g(this.element)}requestPreventedHandlingResponse(e,t){this.#M()}async requestSucceededWithResponse(e,t){await this.loadResponse(t),this.#M()}async requestFailedWithResponse(e,t){await this.loadResponse(t),this.#M()}requestErrored(e,t){console.error(t),this.#M()}requestFinished(e){y(this.element)}formSubmissionStarted({formElement:e}){g(e,this.#h(e))}formSubmissionSucceededWithResponse(e,t){const n=this.#h(e.formElement,e.submitter);n.delegate.proposeVisitIfNavigatedWithAction(n,E(e.submitter,e.formElement,n)),n.delegate.loadResponse(t),e.isSafe||Ot.clearCache()}formSubmissionFailedWithResponse(e,t){this.element.delegate.loadResponse(t),Ot.clearCache()}formSubmissionErrored(e,t){console.error(t)}formSubmissionFinished({formElement:e}){y(e,this.#h(e))}allowsImmediateRender({element:e},t){const n=l("turbo:before-frame-render",{target:this.element,detail:{newFrame:e,...t},cancelable:!0}),{defaultPrevented:r,detail:{render:i}}=n;return this.view.renderer&&i&&(this.view.renderer.renderElement=i),!r}viewRenderedSnapshot(e,t,n){}preloadOnLoadLinksForView(e){Ot.preloadOnLoadLinksForView(e)}viewInvalidated(){}willRenderFrame(e,t){this.previousFrameElement=e.cloneNode(!0)}visitCachedSnapshot=({element:e})=>{const t=e.querySelector("#"+this.element.id);t&&this.previousFrameElement&&t.replaceChildren(...this.previousFrameElement.children),delete this.previousFrameElement};async#H(e,t){const n=await this.extractForeignFrameElement(t.body),r=this.#D?ke:be;if(n){const t=new le(n),i=new r(this,this.view.snapshot,t,!1,!1);this.view.renderPromise&&await this.view.renderPromise,this.changeHistory(),await this.view.render(i),this.complete=!0,Ot.frameRendered(e,this.element),Ot.frameLoaded(this.element),await this.fetchResponseLoaded(e)}else this.#U(e)&&this.#W(e)}async#q(e){const t=new X(this,G.get,e,new URLSearchParams,this.element);return this.#j?.cancel(),this.#j=t,new Promise(e=>{this.#M=()=>{this.#M=()=>{},this.#j=null,e()},t.perform()})}#z(e,t,n){const r=this.#h(e,n);r.delegate.proposeVisitIfNavigatedWithAction(r,E(n,e,r)),this.#G(e,()=>{r.src=t})}proposeVisitIfNavigatedWithAction(e,t=null){if(this.action=t,this.action){const t=Le.fromElement(e).clone(),{visitCachedSnapshot:n}=e.delegate;e.delegate.fetchResponseLoaded=async r=>{if(e.src){const{statusCode:i,redirected:o}=r,s={response:{statusCode:i,redirected:o,responseHTML:await r.responseHTML},visitCachedSnapshot:n,willRender:!1,updateHistory:!1,restorationIdentifier:this.restorationIdentifier,snapshot:t};this.action&&(s.action=this.action),Ot.visit(e.src,s)}}}}changeHistory(){if(this.action){const e=w(this.action);Ot.history.update(e,M(this.element.src||""),this.restorationIdentifier)}}async#$(e){console.warn(`The response (${e.statusCode}) from <turbo-frame id="${this.element.id}"> is performing a full page visit due to turbo-visit-control.`),await this.#K(e.response)}#U(e){this.element.setAttribute("complete","");const t=e.response;return!l("turbo:frame-missing",{target:this.element,detail:{response:t,visit:async(e,t)=>{e instanceof Response?this.#K(e):Ot.visit(e,t)}},cancelable:!0}).defaultPrevented}#W(e){this.view.missing(),this.#X(e)}#X(e){const t=`The response (${e.statusCode}) did not contain the expected <turbo-frame id="${this.element.id}"> and will be ignored. To perform a full page visit instead, set turbo-visit-control to reload.`;throw new jt(t)}async#K(e){const t=new $(e),n=await t.responseHTML,{location:r,redirected:i,statusCode:o}=t;return Ot.visit(r,{response:{redirected:i,statusCode:o,responseHTML:n}})}#h(e,t){const n=v("data-turbo-frame",t,e)||this.element.getAttribute("target"),r=this.#J(n);return r instanceof o?r:this.element}async extractForeignFrameElement(e){let t;const n=CSS.escape(this.id);try{if(t=Mt(e.querySelector(`turbo-frame#${n}`),this.sourceURL),t)return t;if(t=Mt(e.querySelector(`turbo-frame[src][recurse~=${n}]`),this.sourceURL),t)return await t.loaded,await this.extractForeignFrameElement(t)}catch(e){return console.error(e),new o}return null}#Y(e,t){return D(M(I(e,t)),this.rootLocation)}#V(e,t){const n=v("data-turbo-frame",t,e)||this.element.getAttribute("target");if(e instanceof HTMLFormElement&&!this.#Y(e,t))return!1;if(!this.enabled||"_top"==n)return!1;if(n){const e=this.#J(n);if(e)return!e.disabled;if("_parent"==n)return!1}return!!Ot.elementIsNavigatable(e)&&!(t&&!Ot.elementIsNavigatable(t))}
16get id(){return this.element.id}get disabled(){return this.element.disabled}get enabled(){return!this.disabled}get sourceURL(){if(this.element.src)return this.element.src}set sourceURL(e){this.#Q("src",()=>{this.element.src=e??null})}get loadingStyle(){return this.element.loading}get isLoading(){return void 0!==this.formSubmission||void 0!==this.#M()}get complete(){return this.element.hasAttribute("complete")}set complete(e){e?this.element.setAttribute("complete",""):this.element.removeAttribute("complete")}get isActive(){return this.element.isActive&&this.#R}get rootLocation(){const e=this.element.ownerDocument.querySelector('meta[name="turbo-root"]');return M(e?.content??"/")}#B(e){return this.#N.has(e)}#Q(e,t){this.#N.add(e),t(),this.#N.delete(e)}#G(e,t){this.currentNavigationElement=e,t(),delete this.currentNavigationElement}#J(e){if(null!=e){const t="_parent"===e?this.element.parentElement.closest("turbo-frame"):document.getElementById(e);if(t instanceof o)return t}}},void 0===customElements.get("turbo-frame")&&customElements.define("turbo-frame",o),void 0===customElements.get("turbo-stream")&&customElements.define("turbo-stream",It),void 0===customElements.get("turbo-stream-source")&&customElements.define("turbo-stream-source",Nt),(()=>{const e=document.currentScript;if(!e)return;if(e.hasAttribute("data-turbo-suppress-warning"))return;let t=e.parentElement;for(;t;){if(t==document.body)return console.warn(h` 17 You are loading Turbo from a <script> element inside the <body> element. This is probably not what you meant to do! 18 19 Load your applicationâs JavaScript bundle inside the <head> element instead. <script> elements in <body> are evaluated with each page change. 20 21 For more information, see: https://turbo.hotwired.dev/handbook/building#working-with-script-elements 22 23 ââ 24 Suppress this warning by adding a "data-turbo-suppress-warning" attribute to: %s 25 `,e.outerHTML);t=t.parentElement}})(),window.Turbo={...Lt,StreamActions:Rt},Ct(),n.d(t,["dZ",0,Ot])},5316(e,t,n){"use strict";function r(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function i(e){return e instanceof r(e).Element||e instanceof Element}function o(e){return e instanceof r(e).HTMLElement||e instanceof HTMLElement}function s(e){return"undefined"!=typeof ShadowRoot&&(e instanceof r(e).ShadowRoot||e instanceof ShadowRoot)}n.d(t,{n:()=>he});var a=Math.max,l=Math.min,c=Math.round;function u(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function d(){return!/^((?!chrome|android).)*safari/i.test(u())}function f(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var s=e.getBoundingClientRect(),a=1,l=1;t&&o(e)&&(a=e.offsetWidth>0&&c(s.width)/e.offsetWidth||1,l=e.offsetHeight>0&&c(s.height)/e.offsetHeight||1);var u=(i(e)?r(e):window).visualViewport,f=!d()&&n,p=(s.left+(f&&u?u.offsetLeft:0))/a,h=(s.top+(f&&u?u.offsetTop:0))/l,m=s.width/a,v=s.height/l;return{width:m,height:v,top:h,right:p+m,bottom:h+v,left:p,x:p,y:h}}function p(e){var t=r(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function h(e){return e?(e.nodeName||"").toLowerCase():null}function m(e){return((i(e)?e.ownerDocument:e.document)||window.document).documentElement}function v(e){return f(m(e)).left+p(e).scrollLeft}function g(e){return r(e).getComputedStyle(e)}function y(e){var t=g(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function b(e,t,n){void 0===n&&(n=!1);var i,s,a=o(t),l=o(t)&&function(e){var t=e.getBoundingClientRect(),n=c(t.width)/e.offsetWidth||1,r=c(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),u=m(t),d=f(e,l,n),g={scrollLeft:0,scrollTop:0},b={x:0,y:0};return(a||!a&&!n)&&(("body"!==h(t)||y(u))&&(g=(i=t)!==r(i)&&o(i)?{scrollLeft:(s=i).scrollLeft,scrollTop:s.scrollTop}:p(i)),o(t)?((b=f(t,!0)).x+=t.clientLeft,b.y+=t.clientTop):u&&(b.x=v(u))),{x:d.left+g.scrollLeft-b.x,y:d.top+g.scrollTop-b.y,width:d.width,height:d.height}}function w(e){var t=f(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function E(e){return"html"===h(e)?e:e.assignedSlot||e.parentNode||(s(e)?e.host:null)||m(e)}function S(e){return["html","body","#document"].indexOf(h(e))>=0?e.ownerDocument.body:o(e)&&y(e)?e:S(E(e))}function x(e,t){var n;void 0===t&&(t=[]);var i=S(e),o=i===(null==(n=e.ownerDocument)?void 0:n.body),s=r(i),a=o?[s].c
vendor: 13,651 bytes, line 25
25oncat(s.visualViewport||[],y(i)?i:[]):i,l=t.concat(a);return o?l:l.concat(x(E(a)))}function O(e){return["table","td","th"].indexOf(h(e))>=0}function T(e){return o(e)&&"fixed"!==g(e).position?e.offsetParent:null}function k(e){for(var t=r(e),n=T(e);n&&O(n)&&"static"===g(n).position;)n=T(n);return n&&("html"===h(n)||"body"===h(n)&&"static"===g(n).position)?t:n||function(e){var t=/firefox/i.test(u());if(/Trident/i.test(u())&&o(e)&&"fixed"===g(e).position)return null;var n=E(e);for(s(n)&&(n=n.host);o(n)&&["html","body"].indexOf(h(n))<0;){var r=g(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var C="top",A="bottom",_="right",P="left",L="auto",j=[C,A,_,P],M="start",R="end",I="viewport",N="popper",D=j.reduce(function(e,t){return e.concat([t+"-"+M,t+"-"+R])},[]),F=[].concat(j,[L]).reduce(function(e,t){return e.concat([t,t+"-"+M,t+"-"+R])},[]),B=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function q(e){var t=new Map,n=new Set,r=[];function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}}),r.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){n.has(e.name)||i(e)}),r}var H={placement:"bottom",modifiers:[],strategy:"absolute"};function $(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}function V(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,s=void 0===o?H:o;return function(e,t,n){void 0===n&&(n=s);var o,a,l={placement:"bottom",orderedModifiers:[],options:Object.assign({},H,s),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},c=[],u=!1,d={state:l,setOptions:function(n){var o="function"==typeof n?n(l.options):n;f(),l.options=Object.assign({},s,l.options,o),l.scrollParents={reference:i(e)?x(e):e.contextElement?x(e.contextElement):[],popper:x(t)};var a,u,p=function(e){var t=q(e);return B.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}((a=[].concat(r,l.options.modifiers),u=a.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{}),Object.keys(u).map(function(e){return u[e]})));return l.orderedModifiers=p.filter(function(e){return e.enabled}),l.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,i=e.effect;if("function"==typeof i){var o=i({state:l,name:t,instance:d,options:r}),s=function(){};c.push(o||s)}}),d.update()},forceUpdate:function(){if(!u){var e=l.elements,t=e.reference,n=e.popper;if($(t,n)){l.rects={reference:b(t,k(n),"fixed"===l.options.strategy),popper:w(n)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach(function(e){return l.modifiersData[e.name]=Object.assign({},e.data)});for(var r=0;r<l.orderedModifiers.length;r++)if(!0!==l.reset){var i=l.orderedModifiers[r],o=i.fn,s=i.options,a=void 0===s?{}:s,c=i.name;"function"==typeof o&&(l=o({state:l,options:a,name:c,instance:d})||l)}else l.reset=!1,r=-1}}},update:(o=function(){return new Promise(function(e){d.forceUpdate(),e(l)})},function(){return a||(a=new Promise(function(e){Promise.resolve().then(function(){a=void 0,e(o())})})),a}),destroy:function(){f(),u=!0}};if(!$(e,t))return d;function f(){c.forEach(function(e){return e()}),c=[]}return d.setOptions(n).then(function(e){!u&&n.onFirstUpdate&&n.onFirstUpdate(e)}),d}}var z={passive:!0};function U(e){return e.split("-")[0]}function W(e){return e.split("-")[1]}function G(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function K(e){var t,n=e.reference,r=e.element,i=e.placement,o=i?U(i):null,s=i?W(i):null,a=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(o){case C:t={x:a,y:n.y-r.height};break;case A:t={x:a,y:n.y+n.height};break;case _:t={x:n.x+n.width,y:l};break;case P:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var c=o?G(o):null;if(null!=c){var u="y"===c?"height":"width";switch(s){case M:t[c]=t[c]-(n[u]/2-r[u]/2);break;case R:t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}var X={top:"auto",right:"auto",bottom:"auto",left:"auto"};function J(e){var t,n=e.popper,i=e.popperRect,o=e.placement,s=e.variation,a=e.offsets,l=e.position,u=e.gpuAcceleration,d=e.adaptive,f=e.roundOffsets,p=e.isFixed,h=a.x,v=void 0===h?0:h,y=a.y,b=void 0===y?0:y,w="function"==typeof f?f({x:v,y:b}):{x:v,y:b};v=w.x,b=w.y;var E=a.hasOwnProperty("x"),S=a.hasOwnProperty("y"),x=P,O=C,T=window;if(d){var L=k(n),j="clientHeight",M="clientWidth";if(L===r(n)&&"static"!==g(L=m(n)).position&&"absolute"===l&&(j="scrollHeight",M="scrollWidth"),o===C||(o===P||o===_)&&s===R)O=A,b-=(p&&L===T&&T.visualViewport?T.visualViewport.height:L[j])-i.height,b*=u?1:-1;if(o===P||(o===C||o===A)&&s===R)x=_,v-=(p&&L===T&&T.visualViewport?T.visualViewport.width:L[M])-i.width,v*=u?1:-1}var I,N=Object.assign({position:l},d&&X),D=!0===f?function(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:c(n*i)/i||0,y:c(r*i)/i||0}}({x:v,y:b},r(n)):{x:v,y:b};return v=D.x,b=D.y,u?Object.assign({},N,((I={})[O]=S?"0":"",I[x]=E?"0":"",I.transform=(T.devicePixelRatio||1)<=1?"translate("+v+"px, "+b+"px)":"translate3d("+v+"px, "+b+"px, 0)",I)):Object.assign({},N,((t={})[O]=S?b+"px":"",t[x]=E?v+"px":"",t.transform="",t))}const Y={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=void 0===i?[0,0]:i,s=F.reduce(function(e,n){return e[n]=function(e,t,n){var r=U(e),i=[P,C].indexOf(r)>=0?-1:1,o="function"==typeof n?n(Object.assign({},t,{placement:e})):n,s=o[0],a=o[1];return s=s||0,a=(a||0)*i,[P,_].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}(n,t.rects,o),e},{}),a=s[t.placement],l=a.x,c=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=s}};var Q={left:"right",right:"left",bottom:"top",top:"bottom"};function Z(e){return e.replace(/left|right|bottom|top/g,function(e){return Q[e]})}var ee={start:"end",end:"start"};function te(e){return e.replace(/start|end/g,function(e){return ee[e]})}function ne(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&s(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function re(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ie(e,t,n){return t===I?re(function(e,t){var n=r(e),i=m(e),o=n.visualViewport,s=i.clientWidth,a=i.clientHeight,l=0,c=0;if(o){s=o.width,a=o.height;var u=d();(u||!u&&"fixed"===t)&&(l=o.offsetLeft,c=o.offsetTop)}return{width:s,height:a,x:l+v(e),y:c}}(e,n)):i(t)?function(e,t){var n=f(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):re(function(e){var t,n=m(e),r=p(e),i=null==(t=e.ownerDocument)?void 0:t.body,o=a(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=a(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),l=-r.scrollLeft+v(e),c=-r.scrollTop;return"rtl"===g(i||n).direction&&(l+=a(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:s,x:l,y:c}}(m(e)))}function oe(e,t,n,r){var s="clippingParents"===t?function(e){var t=x(E(e)),n=["absolute","fixed"].indexOf(g(e).position)>=0&&o(e)?k(e):e;return i(n)?t.filter(function(e){return i(e)&&ne(e,n)&&"body"!==h(e)}):[]}(e):[].concat(t),c=[].concat(s,[n]),u=c[0],d=c.reduce(function(t,n){var i=ie(e,n,r);return t.top=a(i.top,t.top),t.right=l(i.right,t.right),t.bottom=l(i.bottom,t.bottom),t.left=a(i.left,t.left),t},ie(e,u,r));return d.width=d.right-d.left,d.height=d.bottom-d.top,d.x=d.left,d.y=d.top,d}function se(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function ae(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}function le(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,s=n.strategy,a=void 0===s?e.strategy:s,l=n.boundary,c=void 0===l?"clippingParents":l,u=n.rootBoundary,d=void 0===u?I:u,p=n.elementContext,h=void 0===p?N:p,v=n.altBoundary,g=void 0!==v&&v,y=n.padding,b=void 0===y?0:y,w=se("number"!=typeof b?b:ae(b,j)),E=h===N?"reference":N,S=e.rects.popper,x=e.elements[g?E:h],O=oe(i(x)?x:x.contextElement||m(e.elements.popper),c,d,a),T=f(e.elements.reference),k=K({reference:T,element:S,strategy:"absolute",placement:o}),P=re(Object.assign({},S,k)),L=h===N?P:T,M={top:O.top-L.top+w.top,bottom:L.bottom-O.bottom+w.bottom,left:O.left-L.left+w.left,right:L.right-O.right+w.right},R=e.modifiersData.offset;if(h===N&&R){var D=R[o];Object.keys(M).forEach(function(e){var t=[_,A].indexOf(e)>=0?1:-1,n=[C,A].indexOf(e)>=0?"y":"x";M[e]+=D[n]*t})}return M}function ce(e,t,n){return a(e,l(t,n))}const ue={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=void 0===i||i,s=n.altAxis,c=void 0!==s&&s,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.padding,h=n.tether,m=void 0===h||h,v=n.tetherOffset,g=void 0===v?0:v,y=le(t,{boundary:u,rootBoundary:d,padding:p,altBoundary:f}),b=U(t.placement),E=W(t.placement),S=!E,x=G(b),O="x"===x?"y":"x",T=t.modifiersData.popperOffsets,L=t.rects.reference,j=t.rects.popper,R="function"==typeof g?g(Object.assign({},t.rects,{placement:t.placement})):g,I="number"==typeof R?{mainAxis:R,altAxis:R}:Object.assign({mainAxis:0,altAxis:0},R),N=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,D={x:0,y:0};if(T){if(o){var F,B="y"===x?C:P,q="y"===x?A:_,H="y"===x?"height":"width",$=T[x],V=$+y[B],z=$-y[q],K=m?-j[H]/2:0,X=E===M?L[H]:j[H],J=E===M?-j[H]:-L[H],Y=t.elements.arrow,Q=m&&Y?w(Y):{width:0,height:0},Z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},ee=Z[B],te=Z[q],ne=ce(0,L[H],Q[H]),re=S?L[H]/2-K-ne-ee-I.mainAxis:X-ne-ee-I.mainAxis,ie=S?-L[H]/2+K+ne+te+I.mainAxis:J+ne+te+I.mainAxis,oe=t.elements.arrow&&k(t.elements.arrow),se=oe?"y"===x?oe.clientTop||0:oe.clientLeft||0:0,ae=null!=(F=null==N?void 0:N[x])?F:0,ue=$+ie-ae,de=ce(m?l(V,$+re-ae-se):V,$,m?a(z,ue):z);T[x]=de,D[x]=de-$}if(c){var fe,pe="x"===x?C:P,he="x"===x?A:_,me=T[O],ve="y"===O?"height":"width",ge=me+y[pe],ye=me-y[he],be=-1!==[C,P].indexOf(b),we=null!=(fe=null==N?void 0:N[O])?fe:0,Ee=be?ge:me-L[ve]-j[ve]-we+I.altAxis,Se=be?me+L[ve]+j[ve]-we-I.altAxis:ye,xe=m&&be?function(e,t,n){var r=ce(e,t,n);return r>n?n:r}(Ee,me,Se):ce(m?Ee:ge,me,m?Se:ye);T[O]=xe,D[O]=xe-me}t.modifiersData[r]=D}},requiresIfExists:["offset"]};const de={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,s=n.modifiersData.popperOffsets,a=U(n.placement),l=G(a),c=[P,_].indexOf(a)>=0?"height":"width";if(o&&s){var u=function(e,t){return se("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:ae(e,j))}(i.padding,n),d=w(o),f="y"===l?C:P,p="y"===l?A:_,h=n.rects.reference[c]+n.rects.reference[l]-s[l]-n.rects.popper[c],m=s[l]-n.rects.reference[l],v=k(o),g=v?"y"===l?v.clientHeight||0:v.clientWidth||0:0,y=h/2-m/2,b=u[f],E=g-d[c]-u[p],S=g/2-d[c]/2+y,x=ce(b,S,E),O=l;n.modifiersData[r]=((t={})[O]=x,t.centerOffset=x-S,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&ne(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function fe(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function pe(e){return[C,_,A,P].some(function(t){return e[t]>=0})}var he=V({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,i=e.options,o=i.scroll,s=void 0===o||o,a=i.resize,l=void 0===a||a,c=r(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&u.forEach(function(e){e.addEventListener("scroll",n.update,z)}),l&&c.addEventListener("resize",n.update,z),function(){s&&u.forEach(function(e){e.removeEventListener("scroll",n.update,z)}),l&&c.removeEventListener("resize",n.update,z)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=K({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=void 0===r||r,o=n.adaptive,s=void 0===o||o,a=n.roundOffsets,l=void 0===a||a,c={placement:U(t.placement),variation:W(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,J(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,J(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;
25Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];o(i)&&h(i)&&(Object.assign(i.style,n),Object.keys(r).forEach(function(e){var t=r[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var r=t.elements[e],i=t.attributes[e]||{},s=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});o(r)&&h(r)&&(Object.assign(r.style,s),Object.keys(i).forEach(function(e){r.removeAttribute(e)}))})}},requires:["computeStyles"]},Y,{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=void 0===i||i,s=n.altAxis,a=void 0===s||s,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,h=void 0===p||p,m=n.allowedAutoPlacements,v=t.options.placement,g=U(v),y=l||(g===v||!h?[Z(v)]:function(e){if(U(e)===L)return[];var t=Z(e);return[te(e),t,te(t)]}(v)),b=[v].concat(y).reduce(function(e,n){return e.concat(U(n)===L?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,s=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?F:l,u=W(r),d=u?a?D:D.filter(function(e){return W(e)===u}):j,f=d.filter(function(e){return c.indexOf(e)>=0});0===f.length&&(f=d);var p=f.reduce(function(t,n){return t[n]=le(e,{placement:n,boundary:i,rootBoundary:o,padding:s})[U(n)],t},{});return Object.keys(p).sort(function(e,t){return p[e]-p[t]})}(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:h,allowedAutoPlacements:m}):n)},[]),w=t.rects.reference,E=t.rects.popper,S=new Map,x=!0,O=b[0],T=0;T<b.length;T++){var k=b[T],R=U(k),I=W(k)===M,N=[C,A].indexOf(R)>=0,B=N?"width":"height",q=le(t,{placement:k,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),H=N?I?_:P:I?A:C;w[B]>E[B]&&(H=Z(H));var $=Z(H),V=[];if(o&&V.push(q[R]<=0),a&&V.push(q[H]<=0,q[$]<=0),V.every(function(e){return e})){O=k,x=!1;break}S.set(k,V)}if(x)for(var z=function(e){var t=b.find(function(t){var n=S.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return O=t,"break"},G=h?3:1;G>0;G--){if("break"===z(G))break}t.placement!==O&&(t.modifiersData[r]._skip=!0,t.placement=O,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},ue,de,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,s=le(t,{elementContext:"reference"}),a=le(t,{altBoundary:!0}),l=fe(s,r),c=fe(a,i,o),u=pe(l),d=pe(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]})},972(e,t,n){"use strict";n.d(t,{E:()=>pe});var r=n(2891);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function o(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,f(r.key),r)}}function l(e,t,n){return t=u(t),function(e,t){if(t&&("object"==i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,c()?Reflect.construct(t,n||[],u(e).constructor):t.apply(e,n))}function c(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(c=function(){return!!e})()}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}
25function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}function f(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==i(t)?t:t+""}var p,h,m,v=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),l(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(t,e),n=t,(r=[{key:"connect",value:function(){var e="(min-width: "+this.breakpointValue+")";if(!window.matchMedia(e).matches){var t=this.getNextHref(document);t&&(this.href=t,window.addEventListener("scroll",this.onScroll.bind(this)))}}},{key:"getNextHref",value:function(e){var t=e.querySelectorAll(this.paginationValue);if(0==t.length)return console.log("Error: no pagination element found"),null;if(t.length>1)return console.log("Error: more than one pagination found"),null;var n=t[0];n.remove();var r=n.querySelector('[rel="next"]');if(!r)return console.log("Error: no next link found"),null;var i=r.getAttribute("href");return i&&"#"!=i?i:null}},{key:"onScroll",value:function(){window.scrollY+window.innerHeight>=document.documentElement.scrollHeight-1&&this.goFetch()}},{key:"goFetch",value:function(){var e=this;window.removeEventListener("scroll",this.onScroll);var t=this.href;t&&(this.href=null,fetch(t).then(function(e){return e.text()}).then(function(n){var r,i=document.createRange().createContextualFragment(n),s=i.querySelector('[data-controller~="'+e.controllerNameValue+'"]').children;(r=document.querySelector('[data-controller~="'+e.controllerNameValue+'"]')).append.apply(r,o(s)),(t=e.getNextHref(i))&&(e.href=t,window.addEventListener("scroll",e.onScroll.bind(e)))}))}}])&&a(n.prototype,r),i&&a(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(r.xI);p=v,h="values",m={breakpoint:{type:String,default:"768px"},pagination:{type:String,default:".pagination"},controllerName:{type:String,default:"rekalogika--rekapager-bundle--infinite-scrolling"}},(h=f(h))in p?Object.defineProperty(p,h,{value:m,enumerable:!0,configurable:!0,writable:!0}):p[h]=m;var g=n(2354);function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach(function(t){w(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function w(e,t,n){return(t=C(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function E(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw i}}return a}}(e,t)||x(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function S(e){return function(e){if(Array.isArray(e))return O(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||x(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function x(e,t){if(e){if("string"==typeof e)return O(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?O(e,t):void 0}}function O(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function T(e){return T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},T(e)}function k(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,C(r.key),r)}}function C(e){var t=function(e,t){if("object"!=T(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=T(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==T(t)?t:t+""}function A(e,t,n){return t=P(t),function(e,t){if(t&&("object"==T(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,_()?Reflect.construct(t,n||[],P(e).constructor):t.apply(e,n))}function _(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(_=function(){return!!e})()}function P(e){return P=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},P(e)}
25function L(e,t){return L=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},L(e,t)}function j(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function M(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}function R(e,t){return e.get(M(e,t))}var I=new WeakSet,N=new WeakMap,D=function(e){function t(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return function(e,t){j(e,t),t.add(e)}(e=A(this,t,[].concat(r)),I),e.isObserving=!1,e.hasLoadedChoicesPreviously=!1,e.originalOptions=[],function(e,t,n){j(e,t),t.set(e,n)}(e,N,function(e){return Array.isArray(e)?e.reduce(function(e,t){return"string"==typeof t&&(e[t]={}),"object"===T(t)&&t.name&&(e[t.name]=t.options||{}),e},{}):e}),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&L(e,t)}(t,e),function(e,t,n){return t&&k(e.prototype,t),n&&k(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"initialize",value:function(){var e=this;this.mutationObserver||(this.mutationObserver=new MutationObserver(function(t){e.onMutations(t)}))}},{key:"connect",value:function(){this.selectElement&&(this.originalOptions=this.createOptionsDataStructure(this.selectElement)),this.initializeTomSelect()}},{key:"initializeTomSelect",value:function(){this.selectElement&&this.selectElement.setAttribute("data-skip-morph",""),this.urlValue?this.tomSelect=M(I,this,H).call(this,this.urlValue,this.hasMinCharactersValue?this.minCharactersValue:null):this.optionsAsHtmlValue?this.tomSelect=M(I,this,q).call(this):(this.tomSelect=M(I,this,B).call(this),this.startMutationObserver())}},{key:"disconnect",value:function(){if(this.stopMutationObserver(),this.tomSelect){var e=[];this.selectElement&&(e=this.selectElement.multiple?Array.from(this.selectElement.options).filter(function(e){return e.selected}).map(function(e){return e.value}):[this.selectElement.value]),this.tomSelect.destroy(),this.tomSelect=void 0,this.selectElement&&(this.selectElement.multiple?Array.from(this.selectElement.options).forEach(function(t){t.selected=e.includes(t.value)}):this.selectElement.value=e[0])}}},{key:"urlValueChanged",value:function(){this.resetTomSelect()}},{key:"getMaxOptions",value:function(){return this.selectElement?this.selectElement.options.length:50}},{key:"selectElement",get:function(){return this.element instanceof HTMLSelectElement?this.element:null}},{key:"formElement",get:function(){if(!(this.element instanceof HTMLInputElement||this.element instanceof HTMLSelectElement))throw new Error("Autocomplete Stimulus controller can only be used on an <input> or <select>.");return this.element}},{key:"dispatchEvent",value:function(e,t){this.dispatch(e,{detail:t,prefix:"autocomplete"})}},{key:"preload",get:function(){return this.hasPreloadValue?"false"!==this.preloadValue&&("true"===this.preloadValue||this.preloadValue):"focus"}},{key:"resetTomSelect",value:function(){if(this.tomSelect){this.dispatchEvent("before-reset",{tomSelect:this.tomSelect}),this.stopMutationObserver();var e=this.element.innerHTML,t=this.tomSelect.getValue();this.tomSelect.destroy(),this.element.innerHTML=e,this.initializeTomSelect(),this.tomSelect.setValue(t)}}},{key:"changeTomSelectDisabledState",value:function(e){this.tomSelect&&(this.stopMutationObserver(),e?this.tomSelect.disable():this.tomSelect.enable(),this.startMutationObserver())}},{key:"startMutationObserver",value:function(){!this.isObserving&&this.mutationObserver&&(this.mutationObserver.observe(this.element,{childList:!0,subtree:!0,attributes:!0,characterData:!0,attributeOldValue:!0}),this.isObserving=!0)}},{key:"stopMutationObserver",value:function(){this.isObserving&&this.mutationObserver&&(this.mutationObserver.disconnect(),this.isObserving=!1)}},{key:"onMutations",value:function(e){var t=this,n=!1,r=!1;e.forEach(function(e){switch(e.type){case"attributes":if(e.target===t.element&&"disabled"===e.attributeName){n=!0;break}if(e.target===t.element&&"multiple"===e.attributeName){t.element.hasAttribute("multiple")!==("multiple"===e.oldValue)&&(r=!0);break}}});var i=this.selectElement?this.createOptionsDataStructure(this.selectElement):[];this.areOptionsEquivalent(i)&&!r||(this.originalOptions=i,this.resetTomSelect()),n&&this.changeTomSelectDisabledState(this.formElement.disabled)}},{key:"createOptionsDataStructure",value:function(e){return Array.from(e.options).map(function(e){return{value:e.value,text:e.text}})}},{key:"areOptionsEquivalent",value:function(e){var t=this.originalOptions.filter(function(e){return""!==e.value}),n=e.filter(function(e){return""!==e.value}),r=this.originalOptions.find(function(e){return""===e.value}),i=e.find(function(e){return""===e.value});if(r&&i&&r.text!==i.text)return!1;if(t.length!==n.length)return!1;var o=function(e){return"".concat(e.value,"-").concat(e.text)},s=new Set(t.map(o)),a=new Set(n.map(o));return s.size===a.size&&S(s).every(function(e){return a.has(e)})}}])}(r.xI);function F(){var e=this,t={},n=!this.selectElement||this.selectElement.multiple;this.formElement.disabled||n||(t.clear_button={title:""}),n&&(t.remove_button={title:""}),this.urlValue&&(t.virtual_scroll={});var r={render:{no_results:function(){return'<div class="no-results">'.concat(e.noResultsFoundTextValue,"</div>")},option_create:function(t,n){return'<div class="create">'.concat(e.createOptionTextValue.replace("%placeholder%","<strong>".concat(n(t.input),"</strong>")),"</div>")}},plugins:t,onItemAdd:function(){var t;null===(t=e.tomSelect)||void 0===t||t.setTextboxValue("")},closeAfterSelect:!0,onOptionAdd:function(t,n){if(e.tomSelect){var r=e.tomSelect.input,i=null,o=n[e.tomSelect.settings.optgroupField];if(o&&e.tomSelect.optgroups&&(i=e.tomSelect.optgroups[o])){var s=r.querySelector('optgroup[label="'.concat(i.label,'"]'));s&&(r=s)}var a=document.createElement("option");a.value=t,a.text=n[e.tomSelect.settings.labelField];for(var l=n.$order,c=null,u=0,d=Object.entries(e.tomSelect.options);u<d.length;u++){var f=E(d[u],2)[1];if(f.$order===l){c=r.querySelector(':scope > option[value="'.concat(CSS.escape(f[e.tomSelect.settings.valueField]),'"]'));break}}c?c.insertAdjacentElement("afterend",a):l>
25=0?r.append(a):r.prepend(a)}}};return this.selectElement||this.urlValue||(r.shouldLoad=function(){return!1}),M(I,this,V).call(this,r,this.tomSelectOptionsValue)}function B(){var e=M(I,this,V).call(this,M(I,this,F).call(this),{maxOptions:this.getMaxOptions()});return M(I,this,U).call(this,e)}function q(){var e,t=this,n=M(I,this,F).call(this),r=null!==(e=n.labelField)&&void 0!==e?e:"text",i=M(I,this,V).call(this,n,{maxOptions:this.getMaxOptions(),score:function(e){var n,i=null===(n=t.tomSelect)||void 0===n?void 0:n.getScoreFunction(e);return function(e){return null==i?void 0:i(b(b({},e),{},{text:M(I,t,$).call(t,e[r])}))}},render:b(b({},n.render),{},{item:function(e){return"<div>".concat(e[r],"</div>")},option:function(e){return"<div>".concat(e[r],"</div>")}})});return M(I,this,U).call(this,i)}function H(e,t){var n,r=this,i=M(I,this,F).call(this),o=null!==(n=i.labelField)&&void 0!==n?n:"text",s=M(I,this,V).call(this,i,{firstUrl:function(t){return"".concat(e).concat(e.includes("?")?"&":"?","query=").concat(encodeURIComponent(t))},load:function(e,t){var n=this,r=this.getUrl(e);fetch(r).then(function(e){return e.json()}).then(function(r){n.setNextUrl(e,r.next_page),t(r.results.options||r.results,r.results.optgroups||[])}).catch(function(){return t([],[])})},shouldLoad:function(e){return null!==t?e.length>=t:!!r.hasLoadedChoicesPreviously||(e.length>0&&(r.hasLoadedChoicesPreviously=!0),e.length>=3)},optgroupField:"group_by",score:function(e){return function(e){return 1}},render:{option:function(e,t){return"<div>".concat(r.optionsAsHtmlValue?e[o]:t(e[o]),"</div>")},item:function(e,t){return"<div>".concat(r.optionsAsHtmlValue?e[o]:t(e[o]),"</div>")},loading_more:function(){return'<div class="loading-more-results">'.concat(r.loadingMoreTextValue,"</div>")},no_more_results:function(){return'<div class="no-more-results">'.concat(r.noMoreResultsTextValue,"</div>")},no_results:function(){return'<div class="no-results">'.concat(r.noResultsFoundTextValue,"</div>")},option_create:function(e,t){return'<div class="create">'.concat(r.createOptionTextValue.replace("%placeholder%","<strong>".concat(t(e.input),"</strong>")),"</div>")}},onFocus:function(){r.resetOnFocusValue&&r.tomSelect&&""===r.tomSelect.control_input.value.trim()&&(r.tomSelect.clearOptions(),r.tomSelect.loadedSearches={},"function"==typeof r.tomSelect.clearPagination&&r.tomSelect.clearPagination(),r.tomSelect.load(""))},preload:this.preload});return M(I,this,U).call(this,s)}function $(e){return e.replace(/(<([^>]+)>)/gi,"")}function V(e,t){return b(b(b({},e),t),{},{plugins:M(I,this,z).call(this,b(b({},R(N,this).call(this,e.plugins||{})),R(N,this).call(this,t.plugins||{})))})}function z(e){return Object.entries(e).reduce(function(e,t){var n=E(t,2),r=n[0],i=n[1];return!1!==i&&(e[r]=i),e},{})}function U(e){var t={options:e};this.dispatchEvent("pre-connect",t);var n=new g.A(this.formElement,e),r={tomSelect:n,options:e};return this.dispatchEvent("connect",r),n}D.values={url:String,optionsAsHtml:Boolean,loadingMoreText:String,noResultsFoundText:String,noMoreResultsText:String,createOptionText:String,minCharacters:Number,tomSelectOptions:Object,preload:String,resetOnFocus:Boolean};var W=n(7422),G=n(89);function K(e){return K="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},K(e)}function X(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,J(r.key),r)}}function J(e){var t=function(e,t){if("object"!=K(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=K(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==K(t)?t:t+""}function Y(e,t,n){return t=Z(t),function(e,t){if(t&&("object"==K(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Q()?Reflect.construct(t,n||[],Z(e).constructor):t.apply(e,n))}function Q(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Q=function(){return!!e})()}
vendor: 3,631 bytes, line 25
25function Z(e){return Z=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Z(e)}function ee(e,t){return ee=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ee(e,t)}var te=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Y(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ee(e,t)}(t,e),function(e,t,n){return t&&X(e.prototype,t),n&&X(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t)}(r.xI);function ne(e){return ne="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ne(e)}function re(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ie(r.key),r)}}function ie(e){var t=function(e,t){if("object"!=ne(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=ne(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ne(t)?t:t+""}function oe(e,t,n){return t=ce(t),function(e,t){if(t&&("object"==ne(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,ae()?Reflect.construct(t,n||[],ce(e).constructor):t.apply(e,n))}function se(e){var t="function"==typeof Map?new Map:void 0;return se=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return function(e,t,n){if(ae())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var i=new(e.bind.apply(e,r));return n&&le(i,n.prototype),i}(e,arguments,ce(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),le(n,e)},se(e)}function ae(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ae=function(){return!!e})()}function le(e,t){return le=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},le(e,t)}function ce(e){return ce=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ce(e)}var ue=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),oe(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&le(e,t)}(t,e),function(e,t,n){return t&&re(e.prototype,t),n&&re(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}
25(t,[{key:"connectedCallback",value:function(){var e=this,t=this.getAttribute("src");if(null===t)throw new Error('The "src" attribute is required on <turbo-mercure-stream-source>.');this.es=new EventSource(t,{withCredentials:this.hasAttribute("private")}),(0,G.K)(this.es),this.es.addEventListener("open",function(){return e.setAttribute("connected","")}),this.es.addEventListener("error",function(){return e.removeAttribute("connected")})}},{key:"disconnectedCallback",value:function(){this.es&&((0,G.QS)(this.es),this.es.close(),this.es=void 0),this.removeAttribute("connected")}},{key:"attributeChangedCallback",value:function(){this.es&&(this.disconnectedCallback(),this.connectedCallback())}}])}(se(HTMLElement));ue.observedAttributes=["src","private"],customElements.get("turbo-mercure-stream-source")||customElements.define("turbo-mercure-stream-source",ue);const de={"rekalogika--rekapager-bundle--infinite-scrolling":v,"symfony--ux-autocomplete--autocomplete":D,live:W.Ay,"symfony--ux-turbo--turbo-core":te};function fe(e){return e.keys().map(t=>function(e,t){const n=function(e){const t=(e.match(/^(?:\.\/)?(.+)(?:[_-]controller\..+?)$/)||[])[1];if(t)return t.replace(/_/g,"-").replace(/\//g,"--")}(t);if(n)return function(e,t){const n=e.default;if("function"==typeof n)return{identifier:t,controllerConstructor:n}}(e(t),n)}(e,t)).filter(e=>e)}function pe(e){const t=r.lg.start();e&&t.load(fe(e));for(const e in de)de.hasOwnProperty(e)&&t.register(e,de[e]);return t}},8365(e,t,n){"use strict";n.r(t);var r=n(2891);const i=class extends r.xI{constructor(e){super(e),this.__stimulusLazyController=!0}initialize(){this.application.controllers.find(e=>e.identifier===this.identifier&&e.__stimulusLazyController)||Promise.all([n.e(190),n.e(985)]).then(n.bind(n,4985)).then(e=>{this.application.register(this.identifier,e.default)})}};n.d(t,["default",0,i])},7280(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw i}}return a}}(e,t)||o(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){if(e){if("string"==typeof e)return s(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,f(r.key),r)}}function l(e,t,n){return t=u(t),function(e,t){if(t&&("object"==r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,c()?Reflect.construct(t,n||[],u(e).constructor):t.apply(e,n))}function c(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(c=function(){return!!e})()}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}function f(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:t+""}n.r(t),n.d(t,{default:()=>v});var p,h,m,v=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),l(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(t,e),n=t,r=[{key:"updatePeriod",value:function(e){var t=e.target.form,n=t.action;t.action=this.updateUrlValue,t.requestSubmit(),setTimeout(function(){t.action=n},100)}},{key:"handleSubmit",value:function(e){var t=e.target;if(!t.action.includes("update-period")){e.preventDefault();var n=new FormData(t),r=document.createElement("form");r.method=t.method,r.action=t.action,r.style.display="none",r.setAttribute("data-turbo","fal
25se");var s,a=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=o(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,s=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw s}}}}(n.entries());try{for(a.s();!(s=a.n()).done;){var l=i(s.value,2),c=l[0],u=l[1],d=document.createElement("input");d.type="hidden",d.name=c,d.value=u,r.appendChild(d)}}catch(e){a.e(e)}finally{a.f()}document.body.appendChild(r),r.submit(),document.body.removeChild(r)}}}],r&&a(n.prototype,r),s&&a(n,s),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,s}(n(2891).xI);p=v,h="values",m={updateUrl:String},(h=f(h))in p?Object.defineProperty(p,h,{value:m,enumerable:!0,configurable:!0,writable:!0}):p[h]=m},5703(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,c(r.key),r)}}function o(e,t,n){return t=a(t),function(e,t){if(t&&("object"==r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,s()?Reflect.construct(t,n||[],a(e).constructor):t.apply(e,n))}function s(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(s=function(){return!!e})()}function a(e){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},a(e)}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}function c(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:t+""}n.r(t),n.d(t,{default:()=>p});var u,d,f,p=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),o(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(t,e),n=t,(r=[{key:"connect",value:function(){this.yearChanged(),this.updateUkQuarterEndVisibility()}},{key:"yearChanged",value:function(){""===this.yearSelectTarget.value?(this.quartersSectionTarget.style.display="none",this.monthsSectionTarget.style.display="none"):(this.quartersSectionTarget.style.display="block",this.monthsSectionTarget.style.display="block")}},{key:"submitForm",value:function(){this.formTarget.submit()}},{key:"frequencyChanged",value:function(e){var t=e.target;t.checked&&this.frequencyCheckboxTargets.forEach(function(e){e!==t&&(e.checked=!1)}),this.updateUkQuarterEndVisibility()}},{key:"updateUkQuarterEndVisibility",value:function(){if(this.hasUkQuarterEndSectionTarget){var e=this.frequencyCheckboxTargets.some(function(e){return e.checked&&"quarterly"===e.value});this.ukQuarterEndSectionTarget.style.display=e?"block":"none"}}},{key:"clearTimeFilters",value:function(){this.yearSelectTarget.value="",this.formTarget.querySelectorAll('input[name="quarters[]"]').forEach(function(e){return e.checked=!1}
25),this.formTarget.querySelectorAll('input[name="months[]"]').forEach(function(e){return e.checked=!1}),this.formTarget.querySelectorAll('input[name="ukQuarterEnds[]"]').forEach(function(e){return e.checked=!1}),this.frequencyCheckboxTargets.forEach(function(e){e.checked=""===e.value}),this.yearChanged(),this.updateUkQuarterEndVisibility(),this.formTarget.submit()}}])&&i(n.prototype,r),s&&i(n,s),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,s}(n(2891).xI);u=p,f=["form","yearSelect","quartersSection","monthsSection","frequencyCheckbox","ukQuarterEndSection"],(d=c(d="targets"))in u?Object.defineProperty(u,d,{value:f,enumerable:!0,configurable:!0,writable:!0}):u[d]=f},9441(e,t,n){"use strict";n.r(t);var r=n(2891),i=n(5316),o=n(6855);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,l(r.key),r)}}function l(e){var t=function(e,t){if("object"!=s(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==s(t)?t:t+""}function c(e,t,n){return t=d(t),function(e,t){if(t&&("object"==s(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,u()?Reflect.construct(t,n||[],d(e).constructor):t.apply(e,n))}function u(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(u=function(){return!!e})()}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}var p=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=c(this,t,arguments)).popperInstance=null,e.popoverHome=null,e.resizeObserver=null,e.runSearch=(0,o.A)(function(){return e.navigate()},300),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(t,e),n=t,(r=[{key:"connect",value:function(){this.trigger=this.triggerTarget,this.popover=this.popoverTarget,this.search=this.searchTarget,this.results=this.resultsTarget,this.search.addEventListener("input",this.runSearch)}},{key:"disconnect",value:function(){this.teardown()}},{key:"toggle",value:function(){this.popover.hidden?this.open():this.close()}},{key:"open",value:function(){var e=this;this.popover.parentElement!==document.body&&(this.popoverHome=this.popover.parentElement,document.body.appendChild(this.popover)),this.popover.style.visibility="hidden",this.popover.hidden=!1,this.trigger.setAttribute("aria-expanded","true"),this.popperInstance=(0,i.n)(this.trigger,this.popover,{placement:"top-start",modifiers:[{name:"offset",options:{offset:[0,8]}},{name:"preventOverflow",options:{padding:8}},{name:"flip",options:{fallbackPlacements:["bottom-start"]}}],onFirstUpdate:function(){e.popover.style.visibility=""}}),this.resizeObserver=new ResizeObserver(function(){var t;return null===(t=e.popperInstance)||void 0===t?void 0:t.update()}),this.resizeObserver.observe(this.popover),setTimeout(function(){return e.search.focus()},30)}},{key:"close",value:function(){var e,t;this.popover.hidden||(this.popover.hidden=!0,this.popover.style.visibility="",this.trigger.setAttribute("aria-expanded","fal
25se"),this.search.value="",null===(e=this.resizeObserver)||void 0===e||e.disconnect(),this.resizeObserver=null,null===(t=this.popperInstance)||void 0===t||t.destroy(),this.popperInstance=null)}},{key:"clickOutside",value:function(e){if(!this.popover.hidden){var t=e.target;this.element.contains(t)||this.popover.contains(t)||this.close()}}},{key:"navigate",value:function(){var e=new URLSearchParams;""!==this.currentValue&&e.set("current",this.currentValue),""!==this.search.value&&e.set("q",this.search.value);var t=e.toString();this.results.setAttribute("src",""===t?this.searchUrlValue:"".concat(this.searchUrlValue,"?").concat(t))}},{key:"teardown",value:function(){var e,t;this.search.removeEventListener("input",this.runSearch),this.popover.hidden=!0,this.popover.style.visibility="",null===(e=this.resizeObserver)||void 0===e||e.disconnect(),this.resizeObserver=null,null===(t=this.popperInstance)||void 0===t||t.destroy(),this.popperInstance=null,this.popoverHome&&this.popover.parentElement===document.body&&this.popoverHome.appendChild(this.popover),this.popoverHome=null}}])&&a(n.prototype,r),s&&a(n,s),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,s}(r.xI);p.targets=["trigger","popover","search","results"],p.values={searchUrl:String,current:String};const h=p;n.d(t,["default",0,h])},4349(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>f});var r=n(2891),i=n(6855);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,a(r.key),r)}}function a(e){var t=function(e,t){if("object"!=o(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==o(t)?t:t+""}function l(e,t,n){return t=u(t),function(e,t){if(t&&("object"==o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,c()?Reflect.construct(t,n||[],u(e).constructor):t.apply(e,n))}function c(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(c=function(){return!!e})()}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}var f=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),l(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(t,e),n=t,(r=[{key:"initialize",value:function(){this.debouncedSubmit=(0,i.A)(this.debouncedSubmit.bind(this),300)}},{key:"submit",value:function(){this.element.requestSubmit()}},{key:"debouncedSubmit",value:function(){this.submit()}}])&&s(n.prototype,r),o&&s(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(r.xI)},6203(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,o(r.key),r)}}function o(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:t+""}function s(e,t,n){return t=l(t),function(e,t){if(t&&("object"==r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,a()?Reflect.construct(t,n||[],l(e).constructor):t.apply(e,n))}function a(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(a=function(){return!!e})()}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}
25function c(e,t){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},c(e,t)}n.r(t),n.d(t,{default:()=>u});var u=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),s(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c(e,t)}(t,e),n=t,(r=[{key:"refuseKey",value:function(e){this.min<0||["-","+","e","E"].includes(e.key)&&e.preventDefault()}},{key:"clamp",value:function(){var e=this.element.valueAsNumber;if(Number.isFinite(e)){var t=Math.min(this.max,Math.max(this.min,e));t!==e&&(this.element.value=String(t))}}},{key:"min",get:function(){var e=parseFloat(this.element.min);return Number.isFinite(e)?e:-1/0}},{key:"max",get:function(){var e=parseFloat(this.element.max);return Number.isFinite(e)?e:1/0}}])&&i(n.prototype,r),o&&i(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(n(2891).xI)},4200(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,o(r.key),r)}}function o(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:t+""}function s(e,t,n){return t=l(t),function(e,t){if(t&&("object"==r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,a()?Reflect.construct(t,n||[],l(e).constructor):t.apply(e,n))}function a(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(a=function(){return!!e})()}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}function c(e,t){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},c(e,t)}n.r(t);var u=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=s(this,t,arguments)).index=0,e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c(e,t)}(t,e),n=t,(r=[{key:"connect",value:function(){this.index=this.nextIndex(),this.updateEmptyMessage()}},{key:"add",value:function(e){var t;e.preventDefault();var n=null!==(t=this.prototypeTarget.dataset.prototype)&&void 0!==t?t:"";this.containerTarget.insertAdjacentHTML("beforeend",n.replace(/__name__/g,String(this.index))),this.index++,this.updateEmptyMessage()}},{key:"remove",value:function(e){var t;e.preventDefault(),null===(t=e.currentTarget.closest("[data-rate-row]"))||void 0===t||t.remove(),this.updateEmptyMessage()}},{key:"nextIndex",value:function(){var e=Array.from(this.containerTarget.querySelectorAll("[data-rate-row] [name]"),function(e){var t,n,r;return Number(null!==(r=null===(n=null===(t=e.getAttribute("name"))||void 0===t?void 0:t.match(/\[(\d+)\]\[[^\]]+\]$/))||void 0===n?void 0:n[1])&&void 0!==r?r:-1)});return Math.max.apply(Math,[-1].concat(e))+1}},{key:"updateEmptyMessage",value:function(){var e=this.element.querySelector("[data-empty-message]");e instanceof HTMLElement&&(e.hidden=this.containerTarget.querySelectorAll("[data-rate-row]").length>0)}}])&&i(n.prototype,r),o&&i(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(n(2891).xI);u.targets=["container","prototype"];const d=u;n.d(t,["default",0,d])},9520(e,t,n){"use strict";n.r(t);var r=n(2891),i=n(2354);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function s(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function o(n,r,i,o){var s=r&&r.prototype instanceof c?r:c,u=Object.create(s.prototype);return a(u,"_invoke",function(n,r,i){var o,s,a,c=0,u=i||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return o=t,s=0,a=e,f.n=n,l}};function p(n,r){for(s=n,a=r,t=0;!d&&c&&!i&&t<u.length;t++){var i,o=u[t],p=f.p,h=o[2];n>3?(i=h===r)&&(a=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=e):o[0]<=p&&((i=n<2&&p<o[1])?(s=0,f.v=r,f.n=o[1]):p<h&&(i=n<3||o[0]>r||r>h)&&(o[4]=n,o[5]=r,f.n=h,s=0))}if(i||n>1)return l;throw d=!0,r}return function(i,u,h){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,h),s=u,a=h;(t=s<2?e:a)||!d;){o||(s?s<3?(s>1&&(f.n=-1),p(s,a)):f.n=a:f.v=a);try{if(c=2,o){if(s||(i="next"),t=o[i]){if(!(t=t.call(o,a)))throw TypeError("iterator result is not an object");
25if(!t.done)return t;a=t.value,s<2&&(s=0)}else 1===s&&(t=o.return)&&t.call(o),s<2&&(a=TypeError("The iterator does not provide a '"+i+"' method"),s=1);o=e}else if((t=(d=f.n<0)?a:n.call(r,f))!==l)break}catch(t){o=e,s=1,a=t}finally{c=1}}return{value:t,done:d}}}(n,i,o),!0),u}var l={};function c(){}function u(){}function d(){}t=Object.getPrototypeOf;var f=[][r]?t(t([][r]())):(a(t={},r,function(){return this}),t),p=d.prototype=c.prototype=Object.create(f);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,a(e,i,"GeneratorFunction")),e.prototype=Object.create(p),e}return u.prototype=d,a(p,"constructor",d),a(d,"constructor",u),u.displayName="GeneratorFunction",a(d,i,"GeneratorFunction"),a(p),a(p,i,"Generator"),a(p,r,function(){return this}),a(p,"toString",function(){return"[object Generator]"}),(s=function(){return{w:o,m:h}})()}function a(e,t,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}a=function(e,t,n,r){function o(t,n){a(e,t,function(e){return this._invoke(t,n,e)})}t?i?i(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(o("next",0),o("throw",1),o("return",2))},a(e,t,n,r)}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,c(r.key),r)}}function c(e){var t=function(e,t){if("object"!=o(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==o(t)?t:t+""}function u(e,t,n){return t=f(t),function(e,t){if(t&&("object"==o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,d()?Reflect.construct(t,n||[],f(e).constructor):t.apply(e,n))}function d(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(d=function(){return!!e})()}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}var h=function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(e){try{l(r.next(e))}catch(e){o(e)}}function a(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}l((r=r.apply(e,t||[])).next())})},m=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=u(this,t,arguments)).tomSelect=null,e.loadSequence=0,e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(t,e),n=t,(r=[{key:"connect",value:function(){var e=this,t=this.iconValue;this.tomSelect=new i.A(this.element,Object.assign(Object.assign({create:!1,allowEmptyOption:!0,placeholder:this.placeholderValue},""!==this.urlValue?this.remoteSettings():{}),{render:{item:function(n){return"<div>".concat(t,"<span>").concat(e.escapeHtml(n.text),"</span></div>")},option:function(t){return'<div class="combobox-option">'.concat(e.escapeHtml(t.text),"</div>")}},onDropdownOpen:function(){return e.onOpen()},onDropdownClose:function(){return e.onClose()},onChange:function(t){return e.navigate(t)}})),this.injectStyles(),this.applyStyles();var n=this.tomSelect.wrapper;n.style.minWidth="".concat(n.offsetWidth,"px")}},{key:"disconnect",value:function(){var e,t;null===(e=this.tomSelect)||void 0===e||e.destroy(),this.tomSelect=null;var n=this.constructor;n.styleRefCount--,0===n.styleRefCount&&(null===(t=n.styleEl)||void 0===t||t.remove(),n.styleEl=null)}},{key:"onOpen",value:function(){this.tomSelect.control.querySelectorAll(".item").forEach(function(e){return e.style.display="none"});var e=this.tomSelect.control_input;e.style.opacity="1",e.placeholder=this.placeholderValue;var t=this.tomSelect.control.querySelector(".combobox-caret");t&&(t.style.transform="rotate(180deg)")}},{key:"onClose",value:function(){this.tomSelect.control.querySelectorAll(".item").forEach(function(e){return e.style.display=""}),this.tomSelect.control_input.placeholder="";var e=this.tomSelect.control.querySelector(".combobox-caret");e&&(e.style.transform="")}},{key:"injectStyles",value:function(){var e=this.constructor;e.styleRefCount++,null===e.styleEl&&(e.styleEl=document.createElement("style"),e.styleEl.textContent="\n .combobox-filter-wrap.ts-wrapper {\n border: none; background: none; box-shadow: none; min-height: auto;\n --ts-pr-caret: 0px;\n --ts-pr-clear-button: 0px;\n --ts-pr-min: 0px;\n }\n .combobox-filter-wrap .ts-control {\n border: none !important;\n border-radius: 1.125rem;\n background-color: #f2f2fa;\n color: #504d73;\n font-weight: 500;\n font-size: 0.875rem;\n line-height: 1.75rem;\n padding: 0.5rem 1rem !important;\n cursor: pointer;\n box-shadow: none !important;\n min-height: auto !important;\n display: flex;\n align-items: center;\n gap: 0.5rem;\n flex-wrap: nowrap;\n }\n .combobox-filter-wrap .ts-control:hover { background-color: #e6e6f1; }\n .combobox-filter-wrap.single .ts-control::after { display: none !important; }\n .combobox-filter-wrap .ts-control > .item {\n display: flex;\n align-items: center;\n gap: 0.5rem;\n white-space: nowrap;\n margin: 0 !important;\n padding: 0 !important;\n background: none !important;\n border: none !important;\n line-height: 1.75rem;\n }\n .combobox-filter-wrap .ts-control > input {\n color: #504d73;\n font-size: 0.875rem;\n font-weight: 500;\n line-height: 1.75rem;\n min-width: 0;\n flex: 1;\n padding: 0 !important;\n margin: 0 !important;\n }\n .combobox-filter-wrap .ts-control > input::placeholder { color: #504d73; opacity: 0.6; }\n /* While the dropdown is closed Tom Select takes its input out of flow, so the\n flex-grow that keeps the caret at the right edge is gone with it. */\n .combobox-filter-wrap .ts-control > .combobox-caret { margin-left: auto; }\n .combobox-filter-wrap .ts-dropdown {\n border-radius: 1.125rem;\n background-color: #f2f2fa;\n border: 1px solid #e5e7eb;\n box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);\n padding: 0.5rem;\n margin-top: 0.5rem;\n }\n .combobox-filter-wrap .ts-dropdown .combobox-option {\n padding: 0.5rem 1rem;\n border-radius: 0.75rem;\n color: #504d73;\n font-weight: 500;\n cursor: pointer;\n }\n .combobox-filter-wrap .ts-dropdown .active .combobox-option { background-color: #e6e6f1; }\n ",document.head.appendChild(e.styleEl))}},{key:"applyStyles",value:function(){this.tomSelect.wrapper.classList.add("combobox-filter-wrap");var e=this.tomSelect.control,t=e.querySelector(".ts-caret");t&&t.remove(),e.insertAdjacentHTML("beforeend",this.caretValue)}},{key:"remoteSettings",value:function(){var e=this;return{valueField:"value",labelField:"text",searchField:["text"],score:function(){return function(){return 1}},preload:"focus",load:function(t,n){e.loadOptions(t,n)}}}},{key:"loadOptions",value:function(e,t){return h(this,void 0,void 0,s().m(function n(){var r,i,o,a,l;return s().w(function(n){for(;;
25)switch(n.p=n.n){case 0:return(r=new URL(this.urlValue,window.location.origin)).searchParams.set("q",e),i=++this.loadSequence,n.p=1,n.n=2,fetch(r.toString(),{headers:{Accept:"application/json"}});case 2:if((a=n.v).ok){n.n=3;break}throw new Error("".concat(a.status," ").concat(a.statusText));case 3:return n.n=4,a.json();case 4:o=n.v,n.n=6;break;case 5:n.p=5,l=n.v,console.error("Combobox options from ".concat(this.urlValue," failed:"),l);case 6:if(i===this.loadSequence){n.n=7;break}return t(),n.a(2);case 7:this.dropLoadedOptions(),t(o);case 8:return n.a(2)}},n,this,[[1,5]])}))}},{key:"dropLoadedOptions",value:function(){var e,t,n,r=null!==(t=null===(e=this.tomSelect)||void 0===e?void 0:e.items)&&void 0!==t?t:[];null===(n=this.tomSelect)||void 0===n||n.clearOptions(function(e,t){return""===t||r.includes(t)})}},{key:"navigate",value:function(e){if(this.paramValue){var t=new URL(window.location.href);e?t.searchParams.set(this.paramValue,e):t.searchParams.delete(this.paramValue),t.searchParams.delete("after"),t.searchParams.delete("before"),t.searchParams.delete("page"),window.location.href=t.toString()}}},{key:"escapeHtml",value:function(e){var t=document.createElement("div");return t.textContent=e,t.innerHTML}}])&&l(n.prototype,r),o&&l(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(r.xI);m.values={param:{type:String,default:""},placeholder:{type:String,default:"Select"},icon:{type:String,default:""},caret:{type:String,default:""},url:{type:String,default:""}},m.styleEl=null,m.styleRefCount=0;const v=m;n.d(t,["default",0,v])},4709(e,t,n){"use strict";n.r(t);var r=n(2891);const i=class extends r.xI{constructor(e){super(e),this.__stimulusLazyController=!0}initialize(){this.application.controllers.find(e=>e.identifier===this.identifier&&e.__stimulusLazyController)||n.e(305).then(n.bind(n,4305)).then(e=>{this.application.register(this.identifier,e.default)})}};n.d(t,["default",0,i])},7018(e,t,n){"use strict";n.r(t);var r=n(2891);const i=class extends r.xI{constructor(e){super(e),this.__stimulusLazyController=!0}initialize(){this.application.controllers.find(e=>e.identifier===this.identifier&&e.__stimulusLazyController)||Promise.all([n.e(975),n.e(134)]).then(n.bind(n,6134)).then(e=>{this.application.register(this.identifier,e.default)})}};n.d(t,["default",0,i])},6750(e,t,n){"use strict";n.r(t);var r=n(2891);const i=class extends r.xI{constructor(e){super(e),this.__stimulusLazyController=!0}initialize(){this.application.controllers.find(e=>e.identifier===this.identifier&&e.__stimulusLazyController)||Promise.all([n.e(975),n.e(97),n.e(226)]).then(n.bind(n,9226)).then(e=>{this.application.register(this.identifier,e.default)})}};n.d(t,["default",0,i])},2775(e,t,n){"use strict";n.r(t);var r=n(2891);const i=class extends r.xI{constructor(e){super(e),this.__stimulusLazyController=!0}initialize(){this.application.controllers.find(e=>e.identifier===this.identifier&&e.__stimulusLazyController)||Promise.all([n.e(427),n.e(736)]).then(n.bind(n,4667)).then(e=>{this.application.register(this.identifier,e.default)})}};n.d(t,["default",0,i])},2972(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,a(r.key),r)}}function a(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:t+""}function l(e,t,n){return t=u(t),function(e,t){if(t&&("object"==r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,c()?Reflect.construct(t,n||[],u(e).constructor):t.apply(e,n))}function c(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(c=function(){return!!e})()}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}
25function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}n.r(t);var f=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),l(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(t,e),n=t,(r=[{key:"connect",value:function(){this.filter(),this.syncSubmit()}},{key:"syncSubmit",value:function(){this.hasSubmitTarget&&(this.submitTarget.disabled=null===this.element.querySelector('input[type="radio"]:checked'))}},{key:"filter",value:function(){if(this.hasSearchTarget){var e=this.searchTarget.value.trim().toLowerCase(),t=0;this.rowTargets.forEach(function(n){var r,i=""===e||(null!==(r=n.dataset.search)&&void 0!==r?r:"").includes(e);n.style.display=i?"":"none",i&&t++});var n=this.checkedRow();null!==n&&"none"===n.style.display&&(n.style.display="",t++),this.countTarget.textContent=String(t),this.hasEmptyTarget&&(this.emptyTarget.style.display=0===t?"":"none")}}},{key:"resort",value:function(){var e=this,t=i(this.rowTargets);t.sort(function(t,n){var r,i,o,s;if("code"===e.sortTarget.value)return(null!==(r=t.dataset.code)&&void 0!==r?r:"").localeCompare(null!==(i=n.dataset.code)&&void 0!==i?i:"",void 0,{numeric:!0});var a=(null!==(o=t.dataset.name)&&void 0!==o?o:"").localeCompare(null!==(s=n.dataset.name)&&void 0!==s?s:"",void 0,{sensitivity:"base",numeric:!0});return"name-desc"===e.sortTarget.value?-a:a}),t.forEach(function(t){return e.listTarget.appendChild(t)})}},{key:"checkedRow",value:function(){var e;return null!==(e=this.rowTargets.find(function(e){var t;return!0===(null===(t=e.querySelector('input[type="radio"]'))||void 0===t?void 0:t.checked)}))&&void 0!==e?e:null}}])&&s(n.prototype,r),o&&s(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(n(2891).xI);f.targets=["row","list","count","empty","search","sort","submit"];const p=f;n.d(t,["default",0,p])},8619(e,t,n){"use strict";n.r(t);var r=n(2891);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function o(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function a(n,r,i,o){var a=r&&r.prototype instanceof c?r:c,u=Object.create(a.prototype);return s(u,"_invoke",function(n,r,i){var o,s,a,c=0,u=i||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return o=t,s=0,a=e,f.n=n,l}};function p(n,r){for(s=n,a=r,t=0;!d&&c&&!i&&t<u.length;t++){var i,o=u[t],p=f.p,h=o[2];n>3?(i=h===r)&&(a=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=e):o[0]<=p&&((i=n<2&&p<o[1])?(s=0,f.v=r,f.n=o[1]):p<h&&(i=n<3||o[0]>r||r>h)&&(o[4]=n,o[5]=r,f.n=h,s=0))}if(i||n>1)return l;throw d=!0,r}return function(i,u,h){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,h),s=u,a=h;(t=s<2?e:a)||!d;){o||(s?s<3?(s>1&&(f.n=-1),p(s,a)):f.n=a:f.v=a);try{if(c=2,o){if(s||(i="next"),t=o[i]){if(!(t=t.call(o,a)))throw TypeError("iterator result is not an object");if(!t.done)return t;a=t.value,s<2&&(s=0)}else 1===s&&(t=o.return)&&t.call(o),s<2&&(a=TypeError("The iterator does not provide a '"+i+"' method"),s=1);o=e}else if((t=(d=f.n<0)?a:n.call(r,f))!==l)break}catch(t){o=e,s=1,a=t}finally{c=1}}return{value:t,done:d}}}(n,i,o),!0),u}var l={};function c(){}function u(){}function d(){}t=Object.getPrototypeOf;var f=[][r]?t(t([][r]())):(s(t={},r,function(){return this}),t),p=d.prototype=c.prototype=Object.create(f);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,s(e,i,"GeneratorFunction")),e.prototype=Object.create(p),e}return u.prototype=d,s(p,"constructor",d),s(d,"constructor",u),u.displayName="GeneratorFunction",s(d,i,"GeneratorFunction"),s(p),s(p,i,"Generator"),s(p,r,function(){return this}),s(p,"toString",function(){return"[object Generator]"}),(o=function(){return{w:a,m:h}})()}function s(e,t,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}s=function(e,t,n,r){function o(t,n){s(e,t,function(e){return this._invoke(t,n,e)})}t?i?i(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(o("next",0),o("throw",1),o("return",2))},s(e,t,n,r)}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,l(r.key),r)}}function l(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==i(t)?t:t+""}
25function c(e,t,n){return t=d(t),function(e,t){if(t&&("object"==i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,u()?Reflect.construct(t,n||[],d(e).constructor):t.apply(e,n))}function u(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(u=function(){return!!e})()}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}var p=function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(e){try{l(r.next(e))}catch(e){o(e)}}function a(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}l((r=r.apply(e,t||[])).next())})},h=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=c(this,t,arguments)).boundPreventDefaults=e.preventDefaults.bind(e),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(t,e),n=t,r=[{key:"connect",value:function(){this.element.addEventListener("dragover",this.handleDragOver.bind(this)),this.element.addEventListener("dragleave",this.handleDragLeave.bind(this)),this.element.addEventListener("drop",this.handleDrop.bind(this)),document.addEventListener("dragover",this.boundPreventDefaults),document.addEventListener("drop",this.boundPreventDefaults)}},{key:"disconnect",value:function(){document.removeEventListener("dragover",this.boundPreventDefaults),document.removeEventListener("drop",this.boundPreventDefaults)}},{key:"browse",value:function(){this.fileInputTarget.click()}},{key:"preventDefaults",value:function(e){e.preventDefault(),e.stopPropagation()}},{key:"handleDragOver",value:function(e){this.preventDefaults(e),this.element.classList.add("border-blue-500","bg-blue-50"),this.element.classList.remove("border-gray-300")}},{key:"handleDragLeave",value:function(e){this.preventDefaults(e),this.element.contains(e.relatedTarget)||(this.element.classList.remove("border-blue-500","bg-blue-50"),this.element.classList.add("border-gray-300"))}},{key:"handleDrop",value:function(e){var t;this.preventDefaults(e),this.element.classList.remove("border-blue-500","bg-blue-50"),this.element.classList.add("border-gray-300");var n=null===(t=e.dataTransfer)||void 0===t?void 0:t.files;n&&n.length>0&&this.handleFiles(n)}},{key:"handleFiles",value:function(e){return p(this,void 0,void 0,o().m(function t(){var n,r,i,s,a,l,c,u,d;return o().w(function(t){for(;;)switch(t.p=t.n){case 0:r=this.element.closest("turbo-frame"),i=0;case 1:if(!(i<e.length)){t.n=10;break}return s=e[i],t.p=2,t.n=3,this.uploadFile(s);case 3:if(422!==(a=t.v).status){t.n=5;break}return t.n=4,a.json();case 4:l=t.v,c=(null===(n=l.violations)||void 0===n?void 0:n.map(function(e){return e.title}))||[l.detail],alert(c.join(", ")),t.n=6;break;case 5:a.ok||alert("Upload failed with status ".concat(a.status));case 6:t.n=8;break;case 7:t.p=7,d=t.v,u=d instanceof Error?d.message:"Unknown error",alert("Failed to upload ".concat(s.name,": ").concat(u));case 8:if(!r){t.n=9;break}return t.n=9,r.reload();case 9:i++,t.n=1;break;case 10:return t.a(2)}},t,this,[[2,7]])}))}},{key:"handleFileInput",value:function(){var e=this.fileInputTarget.files;e&&e.length>0&&this.handleFiles(e)}},{key:"uploadFile",value:function(e){return p(this,void 0,void 0,o().m(function t(){var n;return o().w(function(t){for(;;)if(0===t.n)return(n=new FormData).append("file",e),t.a(2,fetch(this.uploadUrlValue,{method:"POST",body:n,headers:{"X-Requested-With":"XMLHttpRequest",Accept:"application/json"}}))},t,this)}))}}],r&&a(n.prototype,r),i&&a(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(r.xI);h.targets=["fileInput"],h.values={uploadUrl:String};const m=h;n.d(t,["default",0,m])},3439(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>h});var r=n(5207);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function o(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function a(n,r,i,o){var a=r&&r.prototype instanceof c?r:c,u=Object.create(a.prototype);return s(u,"_invoke",function(n,r,i){var o,s,a,c=0,u=i||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return o=t,s=0,a=e,f.n=n,l}};function p(n,r){for(s=n,a=r,t=0;!d&&c&&!i&&t<u.length;t++){var i,o=u[t],p=f.p,h=o[2];n>3?(i=h===r)&&(a=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=e):o[0]<=p&&((i=n<2&&p<o[1])?(s=0,f.v=r,f.n=o[1]):p<h&&(i=n<3||o[0]>r||r>h)&&(o[4]=n,o[5]=r,f.n=h,s=0))}if(i||n>1)return l;throw d=!0,r}return function(i,u,h){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,h),s=u,a=h;(t=s<2?e:a)||!d;){o||(s?s<3?(s>1&&(f.n=-1),p(s,a)):f.n=a:f.v=a);try{if(c=2,o){if(s||(i="next"),t=o[i]){if(!(t=t.call(o,a)))throw TypeError("iterator result is not an object");
25if(!t.done)return t;a=t.value,s<2&&(s=0)}else 1===s&&(t=o.return)&&t.call(o),s<2&&(a=TypeError("The iterator does not provide a '"+i+"' method"),s=1);o=e}else if((t=(d=f.n<0)?a:n.call(r,f))!==l)break}catch(t){o=e,s=1,a=t}finally{c=1}}return{value:t,done:d}}}(n,i,o),!0),u}var l={};function c(){}function u(){}function d(){}t=Object.getPrototypeOf;var f=[][r]?t(t([][r]())):(s(t={},r,function(){return this}),t),p=d.prototype=c.prototype=Object.create(f);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,s(e,i,"GeneratorFunction")),e.prototype=Object.create(p),e}return u.prototype=d,s(p,"constructor",d),s(d,"constructor",u),u.displayName="GeneratorFunction",s(d,i,"GeneratorFunction"),s(p),s(p,i,"Generator"),s(p,r,function(){return this}),s(p,"toString",function(){return"[object Generator]"}),(o=function(){return{w:a,m:h}})()}function s(e,t,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}s=function(e,t,n,r){function o(t,n){s(e,t,function(e){return this._invoke(t,n,e)})}t?i?i(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(o("next",0),o("throw",1),o("return",2))},s(e,t,n,r)}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,l(r.key),r)}}function l(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==i(t)?t:t+""}function c(e,t,n){return t=d(t),function(e,t){if(t&&("object"==i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,u()?Reflect.construct(t,n||[],d(e).constructor):t.apply(e,n))}function u(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(u=function(){return!!e})()}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}var p=function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(e){try{l(r.next(e))}catch(e){o(e)}}function a(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}l((r=r.apply(e,t||[])).next())})},h=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),c(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(t,e),n=t,(r=[{key:"handleFiles",value:function(e){return p(this,void 0,void 0,o().m(function t(){var n,r,i,s,a,l,c,u;return o().w(function(t){for(;;)switch(t.p=t.n){case 0:r=0;case 1:if(!(r<e.length)){t.n=9;break}return i=e[r],t.p=2,t.n=3,this.uploadFile(i);case 3:if(422!==(s=t.v).status){t.n=5;break}return t.n=4,s.json();case 4:a=t.v,l=(null===(n=a.violations)||void 0===n?void 0:n.map(function(e){return e.title}))||[a.detail],alert(l.join(", ")),t.n=6;break;case 5:s.ok||alert("Upload failed with status ".concat(s.status));case 6:t.n=8;break;case 7:t.p=7,u=t.v,c=u instanceof Error?u.message:"Unknown error",alert("Failed to upload ".concat(i.name,": ").concat(c));case 8:r++,t.n=1;break;case 9:window.Turbo.visit(window.location.href);case 10:return t.a(2)}},t,this,[[2,7]])}))}}])&&a(n.prototype,r),i&&a(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(r.A)},9231(e,t,n){"use strict";n.r(t);var r=n(5207);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function o(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function a(n,r,i,o){var a=r&&r.prototype instanceof c?r:c,u=Object.create(a.prototype);return s(u,"_invoke",function(n,r,i){var o,s,a,c=0,u=i||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return o=t,s=0,a=e,f.n=n,l}};function p(n,r){for(s=n,a=r,t=0;!d&&c&&!i&&t<u.length;t++){var i,o=u[t],p=f.p,h=o[2];n>3?(i=h===r)&&(a=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=e):o[0]<=p&&((i=n<2&&p<o[1])?(s=0,f.v=r,f.n=o[1]):p<h&&(i=n<3||o[0]>r||r>h)&&(o[4]=n,o[5]=r,f.n=h,s=0))}if(i||n>1)return l;throw d=!0,r}return function(i,u,h){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,h),s=u,a=h;(t=s<2?e:a)||!d;){o||(s?s<3?(s>1&&(f.n=-1),p(s,a)):f.n=a:f.v=a);try{if(c=2,o){if(s||(i="next"),t=o[i]){if(!(t=t.call(o,a)))throw TypeError("iterator result is not an object");
25if(!t.done)return t;a=t.value,s<2&&(s=0)}else 1===s&&(t=o.return)&&t.call(o),s<2&&(a=TypeError("The iterator does not provide a '"+i+"' method"),s=1);o=e}else if((t=(d=f.n<0)?a:n.call(r,f))!==l)break}catch(t){o=e,s=1,a=t}finally{c=1}}return{value:t,done:d}}}(n,i,o),!0),u}var l={};function c(){}function u(){}function d(){}t=Object.getPrototypeOf;var f=[][r]?t(t([][r]())):(s(t={},r,function(){return this}),t),p=d.prototype=c.prototype=Object.create(f);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,s(e,i,"GeneratorFunction")),e.prototype=Object.create(p),e}return u.prototype=d,s(p,"constructor",d),s(d,"constructor",u),u.displayName="GeneratorFunction",s(d,i,"GeneratorFunction"),s(p),s(p,i,"Generator"),s(p,r,function(){return this}),s(p,"toString",function(){return"[object Generator]"}),(o=function(){return{w:a,m:h}})()}function s(e,t,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}s=function(e,t,n,r){function o(t,n){s(e,t,function(e){return this._invoke(t,n,e)})}t?i?i(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(o("next",0),o("throw",1),o("return",2))},s(e,t,n,r)}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,l(r.key),r)}}function l(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==i(t)?t:t+""}function c(e,t,n){return t=d(t),function(e,t){if(t&&("object"==i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,u()?Reflect.construct(t,n||[],d(e).constructor):t.apply(e,n))}function u(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(u=function(){return!!e})()}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}var p=function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(e){try{l(r.next(e))}catch(e){o(e)}}function a(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}l((r=r.apply(e,t||[])).next())})},h=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=c(this,t,arguments)).uploading=!1,e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(t,e),n=t,(r=[{key:"handleFiles",value:function(e){return p(this,void 0,void 0,o().m(function t(){var n,r,i,s,a,l;return o().w(function(t){for(;;)switch(t.p=t.n){case 0:if(!this.uploading){t.n=1;break}return t.a(2);case 1:if(n=e[0]){t.n=2;break}return t.a(2);case 2:return this.uploading=!0,this.idleTarget.classList.add("hidden"),this.errorTarget.classList.add("hidden"),this.spinnerTarget.classList.remove("hidden"),t.p=3,t.n=4,this.uploadFile(n);case 4:if((r=t.v).ok){t.n=9;break}return i="Upload failed (".concat(r.status,")."),t.p=5,t.n=6,r.json();case 6:s=t.v,i=s.detail||i,t.n=8;break;case 7:t.p=7,t.v;case 8:return this.showError(i),t.a(2);case 9:(a=window.Turbo)&&"function"==typeof a.visit?a.visit(window.location.href,{action:"replace"}):window.location.reload(),t.n=11;break;case 10:t.p=10,l=t.v,this.showError(l instanceof Error?l.message:"Upload failed.");case 11:return t.p=11,this.uploading=!1,t.f(11);case 12:return t.a(2)}},t,this,[[5,7],[3,10,11,12]])}))}},{key:"showError",value:function(e){this.spinnerTarget.classList.add("hidden"),this.idleTarget.classList.remove("hidden"),this.errorTarget.classList.remove("hidden"),this.errorTarget.textContent=e}}])&&a(n.prototype,r),i&&a(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(r.A);h.targets=["fileInput","idle","spinner","error"];const m=h;n.d(t,["default",0,m])},9248(e,t,n){"use strict";n.r(t);var r=n(2891);const i=class extends r.xI{constructor(e){super(e),this.__stimulusLazyController=!0}initialize(){this.application.controllers.find(e=>e.identifier===this.identifier&&e.__stimulusLazyController)||n.e(156).then(n.bind(n,2156)).then(e=>{this.application.register(this.identifier,e.default)})}};n.d(t,["default",0,i])},9697(e,t,n){"use strict";n.r(t);var r=n(2891);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function o(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function a(n,r,i,o){var a=r&&r.prototype instanceof c?r:c,u=Object.create(a.prototype);return s(u,"_invoke",function(n,r,i){var o,s,a,c=0,u=i||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return o=t,s=0,a=e,f.n=n,l}};function p(n,r){for(s=n,a=r,t=0;!d&&c&&!i&&t<u.length;t++){var i,o=u[t],p=f.p,h=o[2];n>3?(i=h===r)&&(a=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=e):o[0]<=p&&((i=n<2&&p<o[1])?(s=0,f.v=r,f.n=o[1]):p<h&&(i=n<3||o[0]>r||r>h)&&(o[4]=n,o[5]=r,f.n=h,s=0))}if(i||n>1)return l;throw d=!0,r}return function(i,u,h){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,h),s=u,a=h;(t=s<2?e:a)||!d;){o||(s?s<3?(s>1&&(f.n=-1),p(s,a)):f.n=a:f.v=a);try{if(c=2,o){if(s||(i="next"),t=o[i]){if(!(t=t.call(o,a)))throw TypeError("iterator result is not an object");
25if(!t.done)return t;a=t.value,s<2&&(s=0)}else 1===s&&(t=o.return)&&t.call(o),s<2&&(a=TypeError("The iterator does not provide a '"+i+"' method"),s=1);o=e}else if((t=(d=f.n<0)?a:n.call(r,f))!==l)break}catch(t){o=e,s=1,a=t}finally{c=1}}return{value:t,done:d}}}(n,i,o),!0),u}var l={};function c(){}function u(){}function d(){}t=Object.getPrototypeOf;var f=[][r]?t(t([][r]())):(s(t={},r,function(){return this}),t),p=d.prototype=c.prototype=Object.create(f);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,s(e,i,"GeneratorFunction")),e.prototype=Object.create(p),e}return u.prototype=d,s(p,"constructor",d),s(d,"constructor",u),u.displayName="GeneratorFunction",s(d,i,"GeneratorFunction"),s(p),s(p,i,"Generator"),s(p,r,function(){return this}),s(p,"toString",function(){return"[object Generator]"}),(o=function(){return{w:a,m:h}})()}function s(e,t,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}s=function(e,t,n,r){function o(t,n){s(e,t,function(e){return this._invoke(t,n,e)})}t?i?i(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(o("next",0),o("throw",1),o("return",2))},s(e,t,n,r)}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,l(r.key),r)}}function l(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==i(t)?t:t+""}function c(e,t,n){return t=d(t),function(e,t){if(t&&("object"==i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,u()?Reflect.construct(t,n||[],d(e).constructor):t.apply(e,n))}function u(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(u=function(){return!!e})()}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}var p=function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(e){try{l(r.next(e))}catch(e){o(e)}}function a(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}l((r=r.apply(e,t||[])).next())})},h=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=c(this,t,arguments)).open=!1,e.selectedRating=null,e.submitting=!1,e.boundEscapeHandler=e.handleEscape.bind(e),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(t,e),n=t,(r=[{key:"connect",value:function(){this.applyState(),window.addEventListener("keydown",this.boundEscapeHandler)}},{key:"disconnect",value:function(){window.removeEventListener("keydown",this.boundEscapeHandler)}},{key:"toggle",value:function(){this.open=!this.open,this.applyState()}},{key:"close",value:function(){this.open&&(this.open=!1,this.applyState())}},{key:"closeOnOutsideClick",value:function(e){if(this.open){var t=e.target;null!==t&&this.element.contains(t)||this.close()}}},{key:"selectRating",value:function(e){var t,n=e.currentTarget;this.selectedRating=null!==(t=n.dataset.rating)&&void 0!==t?t:null,this.ratingTargets.forEach(function(e){e.setAttribute("aria-checked",e===n?"true":"false")}),this.submitTarget.disabled=null===this.selectedRating}},{key:"submit",value:function(){return p(this,void 0,void 0,o().m(function e(){var t;return o().w(function(e){for(;;)switch(e.p=e.n){case 0:if(null!==this.selectedRating&&!this.submitting){e.n=1;break}return e.a(2);case 1:return this.submitting=!0,this.submitTarget.disabled=!0,t=new URLSearchParams({rating:this.selectedRating,message:this.messageTarget.value,page:window.location.pathname}),e.p=2,e.n=3,fetch(this.urlValue,{method:"POST",headers:{"X-Requested-With":"XMLHttpRequest"},body:t});case 3:e.n=5;break;case 4:e.p=4,e.v;case 5:this.formTarget.hidden=!0,this.thanksTarget.hidden=!1;case 6:return e.a(2)}},e,this,[[2,4]])}))}},{key:"handleEscape",value:function(e){"Escape"===e.key&&this.close()}},{key:"applyState",value:function(){this.popoverTarget.hidden=!this.open,this.buttonTarget.setAttribute("aria-expanded",this.open?"true":"false")}}])&&a(n.prototype,r),i&&a(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(r.xI);h.targets=["popover","button","rating","message","submit","form","thanks"],h.values={url:String};const m=h;n.d(t,["default",0,m])},6501(e,t,n){"use strict";n.r(t);var r=n(2891),i=n(89);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function s(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function o(n,r,i,o){var s=r&&r.prototype instanceof c?r:c,u=Object.create(s.prototype);return a(u,"_invoke",function(n,r,i){var o,s,a,c=0,u=i||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return o=t,s=0,a=e,f.n=n,l}};function p(n,r){for(s=n,a=r,t=0;!d&&c&&!i&&t<u.length;t++){var i,o=u[t],p=f.p,h=o[2];n>3?(i=h===r)&&(a=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=e):o[0]<=p&&((i=n<2&&p<o[1])?(s=0,f.v=r,f.n=o[1]):p<h&&(i=n<3||o[0]>r||r>h)&&(o[4]=n,o[5]=r,f.n=h,s=0))}if(i||n>1)return l;throw d=!0,r}return function(i,u,h){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,h),s=u,a=h;(t=s<2?e:a)||!d;){o||(s?s<3?(s>1&&(f.n=-1),p(s,a)):f.n=a:f.v=a);try{if(c=2,o){if(s||(i="next"),t=o[i]){if(!(t=t.call(o,a)))throw TypeError("iterator result is not an object");
25if(!t.done)return t;a=t.value,s<2&&(s=0)}else 1===s&&(t=o.return)&&t.call(o),s<2&&(a=TypeError("The iterator does not provide a '"+i+"' method"),s=1);o=e}else if((t=(d=f.n<0)?a:n.call(r,f))!==l)break}catch(t){o=e,s=1,a=t}finally{c=1}}return{value:t,done:d}}}(n,i,o),!0),u}var l={};function c(){}function u(){}function d(){}t=Object.getPrototypeOf;var f=[][r]?t(t([][r]())):(a(t={},r,function(){return this}),t),p=d.prototype=c.prototype=Object.create(f);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,a(e,i,"GeneratorFunction")),e.prototype=Object.create(p),e}return u.prototype=d,a(p,"constructor",d),a(d,"constructor",u),u.displayName="GeneratorFunction",a(d,i,"GeneratorFunction"),a(p),a(p,i,"Generator"),a(p,r,function(){return this}),a(p,"toString",function(){return"[object Generator]"}),(s=function(){return{w:o,m:h}})()}function a(e,t,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}a=function(e,t,n,r){function o(t,n){a(e,t,function(e){return this._invoke(t,n,e)})}t?i?i(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(o("next",0),o("throw",1),o("return",2))},a(e,t,n,r)}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,c(r.key),r)}}function c(e){var t=function(e,t){if("object"!=o(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==o(t)?t:t+""}function u(e,t,n){return t=f(t),function(e,t){if(t&&("object"==o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,d()?Reflect.construct(t,n||[],f(e).constructor):t.apply(e,n))}function d(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(d=function(){return!!e})()}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}var h=function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(e){try{l(r.next(e))}catch(e){o(e)}}function a(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}l((r=r.apply(e,t||[])).next())})},m=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),u(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(t,e),n=t,(r=[{key:"add",value:function(e){return h(this,void 0,void 0,s().m(function t(){var n,r,o;return s().w(function(t){for(;;)switch(t.n){case 0:return e.preventDefault(),n=this.indexTarget.value,t.n=1,fetch(this.addUrlValue,{method:"POST",headers:{Accept:"text/vnd.turbo-stream.html","Content-Type":"application/x-www-form-urlencoded"},body:"nextIndex=".concat(encodeURIComponent(n))});case 1:if(!(r=t.v).ok){t.n=3;break}return t.n=2,r.text();case 2:o=t.v,i.aM(o);case 3:return t.a(2)}},t,this)}))}},{key:"remove",value:function(e){e.preventDefault();var t=e.currentTarget.dataset.itemId;if(t){var n=document.getElementById(t);n&&n.remove()}}}])&&l(n.prototype,r),o&&l(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(r.xI);m.targets=["container","index"],m.values={addUrl:String};const v=m;n.d(t,["default",0,v])},3751(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>h});var r=n(2891),i=n(2354),o=n(3513),s=n.n(o);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,c(r.key),r)}}function c(e){var t=function(e,t){if("object"!=a(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==a(t)?t:t+""}function u(e,t,n){return t=f(t),function(e,t){if(t&&("object"==a(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,d()?Reflect.construct(t,n||[],f(e).constructor):t.apply(e,n))}function d(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(d=function(){return!!e})()}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}
25function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}i.A.define("drag_drop",s());var h=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),u(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(t,e),n=t,(r=[{key:"initialize",value:function(){this._onPreConnect=this._onPreConnect.bind(this)}},{key:"connect",value:function(){this.element.addEventListener("autocomplete:pre-connect",this._onPreConnect)}},{key:"disconnect",value:function(){this.element.removeEventListener("autocomplete:pre-connect",this._onPreConnect)}},{key:"_onPreConnect",value:function(e){e.detail.options.plugins.drag_drop={}}}])&&l(n.prototype,r),i&&l(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(r.xI)},1205(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,o(r.key),r)}}function o(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:t+""}function s(e,t,n){return t=l(t),function(e,t){if(t&&("object"==r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,a()?Reflect.construct(t,n||[],l(e).constructor):t.apply(e,n))}function a(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(a=function(){return!!e})()}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}function c(e,t){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},c(e,t)}n.r(t);var u=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=s(this,t,arguments)).open=!1,e.boundEscapeHandler=e.handleEscape.bind(e),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c(e,t)}(t,e),n=t,(r=[{key:"connect",value:function(){this.applyState(),window.addEventListener("keydown",this.boundEscapeHandler)}},{key:"disconnect",value:function(){window.removeEventListener("keydown",this.boundEscapeHandler)}},{key:"toggle",value:function(){this.open=!this.open,this.applyState()}},{key:"close",value:function(){this.open&&(this.open=!1,this.applyState())}},{key:"closeOnOutsideClick",value:function(e){if(this.open){var t=e.target;null!==t&&this.element.contains(t)||this.close()}}},{key:"handleEscape",value:function(e){"Escape"===e.key&&this.close()}},{key:"applyState",value:function(){this.popoverTarget.hidden=!this.open,this.buttonTarget.setAttribute("aria-expanded",this.open?"true":"false")}}])&&i(n.prototype,r),o&&i(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(n(2891).xI);u.targets=["popover","button"];const d=u;n.d(t,["default",0,d])},2749(e,t,n){"use strict";n.r(t);var r=n(5207);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function o(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function a(n,r,i,o){var a=r&&r.prototype instanceof c?r:c,u=Object.create(a.prototype);return s(u,"_invoke",function(n,r,i){var o,s,a,c=0,u=i||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return o=t,s=0,a=e,f.n=n,l}};function p(n,r){for(s=n,a=r,t=0;!d&&c&&!i&&t<u.length;t++){var i,o=u[t],p=f.p,h=o[2];n>3?(i=h===r)&&(a=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=e):o[0]<=p&&((i=n<2&&p<o[1])?(s=0,f.v=r,f.n=o[1]):p<h&&(i=n<3||o[0]>r||r>h)&&(o[4]=n,o[5]=r,f.n=h,s=0))}if(i||n>1)return l;throw d=!0,r}return function(i,u,h){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,h),s=u,a=h;(t=s<2?e:a)||!d;){o||(s?s<3?(s>1&&(f.n=-1),p(s,a)):f.n=a:f.v=a);try{if(c=2,o){if(s||(i="next"),t=o[i]){if(!(t=t.call(o,a)))throw TypeError("iterator result is not an object");
25if(!t.done)return t;a=t.value,s<2&&(s=0)}else 1===s&&(t=o.return)&&t.call(o),s<2&&(a=TypeError("The iterator does not provide a '"+i+"' method"),s=1);o=e}else if((t=(d=f.n<0)?a:n.call(r,f))!==l)break}catch(t){o=e,s=1,a=t}finally{c=1}}return{value:t,done:d}}}(n,i,o),!0),u}var l={};function c(){}function u(){}function d(){}t=Object.getPrototypeOf;var f=[][r]?t(t([][r]())):(s(t={},r,function(){return this}),t),p=d.prototype=c.prototype=Object.create(f);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,s(e,i,"GeneratorFunction")),e.prototype=Object.create(p),e}return u.prototype=d,s(p,"constructor",d),s(d,"constructor",u),u.displayName="GeneratorFunction",s(d,i,"GeneratorFunction"),s(p),s(p,i,"Generator"),s(p,r,function(){return this}),s(p,"toString",function(){return"[object Generator]"}),(o=function(){return{w:a,m:h}})()}function s(e,t,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}s=function(e,t,n,r){function o(t,n){s(e,t,function(e){return this._invoke(t,n,e)})}t?i?i(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(o("next",0),o("throw",1),o("return",2))},s(e,t,n,r)}function a(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return l(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,o=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,u(r.key),r)}}function u(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==i(t)?t:t+""}function d(e,t,n){return t=p(t),function(e,t){if(t&&("object"==i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,f()?Reflect.construct(t,n||[],p(e).constructor):t.apply(e,n))}function f(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(f=function(){return!!e})()}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function h(e,t){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},h(e,t)}var m=function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(e){try{l(r.next(e))}catch(e){o(e)}}function a(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}l((r=r.apply(e,t||[])).next())})},v=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=d(this,t,arguments)).uploading=!1,e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}(t,e),n=t,r=[{key:"handleDragOver",value:function(e){this.preventDefaults(e),this.element.classList.add("dropzone-active")}},{key:"handleDragLeave",value:function(e){this.preventDefaults(e),this.element.contains(e.relatedTarget)||this.element.classList.remove("dropzone-active")}},{key:"handleDrop",value:function(e){var t,n,r=this;this.preventDefaults(e),this.element.classList.remove("dropzone-active");var i=null===(t=e.dataTransfer)||void 0===t?void 0:t.items;if(i&&i.length>0)this.extractFiles(i).then(function(e){e.length>
250&&r.processFiles(e)});else{var o=null===(n=e.dataTransfer)||void 0===n?void 0:n.files;o&&o.length>0&&this.processFiles(Array.from(o))}}},{key:"handleFileInput",value:function(){var e=this.fileInputTarget.files;e&&e.length>0&&this.processFiles(Array.from(e)),this.fileInputTarget.value=""}},{key:"extractFiles",value:function(e){return m(this,void 0,void 0,o().m(function t(){var n,r,i,s,l,c,u,d=this;return o().w(function(t){for(;;)switch(t.n){case 0:for(i=[],s=function(e){return new Promise(function(t){e.isFile?e.file(function(e){/\.(pdf|zip)$/i.test(e.name)&&i.push(e),t()},function(){return t()}):e.isDirectory?e.createReader().readEntries(function(e){return m(d,void 0,void 0,o().m(function n(){var r,i,l,c;return o().w(function(n){for(;;)switch(n.p=n.n){case 0:r=a(e),n.p=1,r.s();case 2:if((i=r.n()).done){n.n=4;break}return l=i.value,n.n=3,s(l);case 3:n.n=2;break;case 4:n.n=6;break;case 5:n.p=5,c=n.v,r.e(c);case 6:return n.p=6,r.f(),n.f(6);case 7:t();case 8:return n.a(2)}},n,null,[[1,5,6,7]])}))},function(){return t()}):t()})},l=[],c=0;c<e.length;c++)(u=null===(r=(n=e[c]).webkitGetAsEntry)||void 0===r?void 0:r.call(n))&&l.push(s(u));return t.n=1,Promise.all(l);case 1:return t.a(2,i)}},t)}))}},{key:"processFiles",value:function(e){return m(this,void 0,void 0,o().m(function t(){var n,r,i,s,l,c,u,d,f,p,h,m,v,g,y,b,w,E;return o().w(function(t){for(;;)switch(t.p=t.n){case 0:if(!this.uploading){t.n=1;break}return t.a(2);case 1:this.uploading=!0,this.idleTarget.classList.add("hidden"),this.spinnerTarget.classList.remove("hidden"),this.statusTarget.classList.add("hidden"),this.statusListTarget.innerHTML="",this.summaryTarget.textContent="",r={added:0,skipped:0,archived:0},i=!1,s=a(e),t.p=2,s.s();case 3:if((l=s.n()).done){t.n=14;break}return c=l.value,t.p=4,t.n=5,this.uploadFile(c);case 5:if((u=t.v).ok){t.n=10;break}return d="Upload failed (".concat(u.status,")"),t.p=6,t.n=7,u.json();case 7:f=t.v,d=f.detail||(null===(n=f.violations)||void 0===n?void 0:n.map(function(e){return e.title}).join(", "))||d,t.n=9;break;case 8:t.p=8,t.v;case 9:return this.addErrorEntry(c.name,d),i=!0,t.a(3,13);case 10:return t.n=11,u.json();case 11:p=t.v,r.added+=p.newCount,r.skipped+=p.existingCount+p.duplicatesInZip,r.archived+=p.archivedDuplicates,p.invalidPdfs>0?(h=/\.zip$/i.test(c.name),m=function(e,t,n){return 1===e?t:n},v=h?"".concat(p.invalidPdfs," invalid ").concat(m(p.invalidPdfs,"file","files")):"Invalid PDF",this.addErrorEntry(c.name,v),i=!0):0===p.newCount&&0===p.existingCount&&0===p.archivedDuplicates&&0===p.duplicatesInZip&&(g=/\.zip$/i.test(c.name),this.addErrorEntry(c.name,g?"No invoices found in ZIP":"No invoice found"),i=!0),t.n=13;break;case 12:t.p=12,w=t.v,y=w instanceof Error?w.message:"Upload failed",this.addErrorEntry(c.name,y),i=!0;case 13:t.n=3;break;case 14:t.n=16;break;case 15:t.p=15,E=t.v,s.e(E);case 16:return t.p=16,s.f(),t.f(16);case 17:this.uploading=!1,this.spinnerTarget.classList.add("hidden"),this.idleTarget.classList.remove("hidden"),i&&(b=this.buildSummary(r),this.summaryTarget.textContent=b,this.statusTarget.classList.remove("hidden")),r.added>0&&this.navigateToList();case 18:return t.a(2)}},t,this,[[6,8],[4,12],[2,15,16,17]])}))}},{key:"navigateToList",value:function(){var e=document.getElementById("tab_content_frame"),t=new URL(window.location.href).searchParams.get("tab");null!==t&&"all"!==t||!e?window.Turbo.visit(this.listUrlValue):e.reload()}},{key:"buildSummary",value:function(e){var t,n,r,i=[];return e.added>0&&i.push("".concat(e.added," ").concat((t=e.added,n="invoice",r="invoices",1===t?n:r)," uploaded")),e.skipped>0&&i.push("".concat(e.skipped," skipped")),e.archived>0&&i.push("".concat(e.archived," already in archive")),i.join(", ")}},{key:"addErrorEntry",value:function(e,t){var n=document.createElement("div");n.className="flex items-center gap-3 px-3 py-2 rounded-lg bg-red-50 text-sm",n.insertAdjacentHTML("beforeend",this.errorIconValue);var r=document.createElement("span");r.className="flex-1 truncate font-medium text-gray-700",r.textContent=e,n.appendChild(r);var i=document.createElement("span");i.className="text-red-600 text-xs whitespace-nowrap",i.textContent=t,n.appendChild(i),this.statusListTarget.appendChild(n)}}],r&&c(n.prototype,r),i&&c(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(r.A);v.targets=["fileInput","status","statusList","summary","idle","spinner"],v.values={uploadUrl:String,listUrl:String,errorIcon:String};const g=v;n.d(t,["default",0,g])},7084(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,o(r.key),r)}}function o(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:t+""}function s(e,t,n){return t=l(t),function(e,t){if(t&&("object"==r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,a()?Reflect.construct(t,n||[],l(e).constructor):t.apply(e,n))}function a(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(a=function(){return!!e})()}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}
25function c(e,t){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},c(e,t)}n.r(t);var u=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=s(this,t,arguments)).pointerDownOnBackdrop=!1,e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c(e,t)}(t,e),n=t,(r=[{key:"open",value:function(e){var t=e.params,n=t.url,r=t.title;this.titleTarget.textContent=null!=r?r:"",this.newTabTarget.href=n,this.editFrameTarget.src=n,this.dialogTarget.showModal(),document.body.classList.add("overflow-hidden","blur-sm"),this.dispatch("opened")}},{key:"close",value:function(){this.dialogTarget.open&&this.dialogTarget.close()}},{key:"pointerDown",value:function(e){this.pointerDownOnBackdrop=e.target===this.dialogTarget}},{key:"clickDialog",value:function(e){e.target===this.dialogTarget&&this.pointerDownOnBackdrop&&this.close()}},{key:"frameLoaded",value:function(){var e=this.editFrameTarget.src;e&&(this.newTabTarget.href=e);var t=this.editFrameTarget.querySelector('input[id$="_invoiceNumber"]');t&&(this.titleTarget.textContent=t.value),this.editFrameTarget.querySelectorAll('a[target="_top"]').forEach(function(e){return e.classList.add("hidden")})}},{key:"onClose",value:function(){var e;this.editFrameTarget.removeAttribute("src"),this.editFrameTarget.innerHTML="",document.body.classList.remove("overflow-hidden","blur-sm"),this.dispatch("closed"),null===(e=document.getElementById("sync-status"))||void 0===e||e.reload()}},{key:"disconnect",value:function(){this.close(),document.body.classList.remove("overflow-hidden","blur-sm")}}])&&i(n.prototype,r),o&&i(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(n(2891).xI);u.targets=["dialog","editFrame","title","newTab"];const d=u;n.d(t,["default",0,d])},7943(e,t,n){"use strict";n.r(t);var r=n(2891),i=n(7422),o=n(4690);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function a(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function o(n,r,i,o){var a=r&&r.prototype instanceof c?r:c,u=Object.create(a.prototype);return l(u,"_invoke",function(n,r,i){var o,a,l,c=0,u=i||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return o=t,a=0,l=e,f.n=n,s}};function p(n,r){for(a=n,l=r,t=0;!d&&c&&!i&&t<u.length;t++){var i,o=u[t],p=f.p,h=o[2];n>3?(i=h===r)&&(l=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=e):o[0]<=p&&((i=n<2&&p<o[1])?(a=0,f.v=r,f.n=o[1]):p<h&&(i=n<3||o[0]>r||r>h)&&(o[4]=n,o[5]=r,f.n=h,a=0))}if(i||n>1)return s;throw d=!0,r}return function(i,u,h){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,h),a=u,l=h;(t=a<2?e:l)||!d;){o||(a?a<3?(a>1&&(f.n=-1),p(a,l)):f.n=l:f.v=l);try{if(c=2,o){if(a||(i="next"),t=o[i]){if(!(t=t.call(o,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,a<2&&(a=0)}else 1===a&&(t=o.return)&&t.call(o),a<2&&(l=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=e}else if((t=(d=f.n<0)?l:n.call(r,f))!==s)break}catch(t){o=e,a=1,l=t}finally{c=1}}return{value:t,done:d}}}(n,i,o),!0),u}var s={};function c(){}function u(){}function d(){}t=Object.getPrototypeOf;var f=[][r]?t(t([][r]())):(l(t={},r,function(){return this}),t),p=d.prototype=c.prototype=Object.create(f);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,l(e,i,"GeneratorFunction")),e.prototype=Object.create(p),e}return u.prototype=d,l(p,"constructor",d),l(d,"constructor",u),u.displayName="GeneratorFunction",l(d,i,"GeneratorFunction"),l(p),l(p,i,"Generator"),l(p,r,function(){return this}),l(p,"toString",function(){return"[object Generator]"}),(a=function(){return{w:o,m:h}})()}function l(e,t,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}l=function(e,t,n,r){function o(t,n){l(e,t,function(e){return this._invoke(t,n,e)})}t?i?i(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(o("next",0),o("throw",1),o("return",2))},l(e,t,n,r)}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,u(r.key),r)}}function u(e){var t=function(e,t){if("object"!=s(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==s(t)?t:t+""}function d(e,t,n){return t=h(t),function(e,t){if(t&&("object"==s(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,f()?Reflect.construct(t,n||[],h(e).constructor):t.apply(e,n))}function f(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(f=function(){return!!e})()}function p(){return p="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=h(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},p.apply(null,arguments)}
25function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function m(e,t){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},m(e,t)}var v=function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(e){try{l(r.next(e))}catch(e){o(e)}}function a(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}l((r=r.apply(e,t||[])).next())})},g=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),d(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&m(e,t)}(t,e),n=t,r=[{key:"connect",value:function(){var e=this,n=Object.create(null,{connect:{get:function(){return n=t,r="connect",i=e,s=p(h(1&(o=1)?n.prototype:n),r,i),2&o&&"function"==typeof s?function(e){return s.apply(i,e)}:s;var n,r,i,o,s}}});return v(this,void 0,void 0,a().m(function e(){return a().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,this.findLiveComponent();case 1:this.liveComponent=e.v,n.connect.call(this);case 2:return e.a(2)}},e,this)}))}},{key:"upload",value:function(){return v(this,void 0,void 0,a().m(function e(){var t,n,r,i,o=this;return a().w(function(e){for(;;)switch(e.p=e.n){case 0:if(0!==(t=Array.from(this.fileInputTarget.files||[])).length){e.n=1;break}return e.a(2);case 1:if(this.show(this.spinnerTarget),this.hide(this.errorTarget),this.hide(this.checkmarkTarget),e.p=2,!this.multipleValue){e.n=5;break}return e.n=3,Promise.all(t.map(function(e){return o.uploadFile(e)}));case 3:return n=e.v,e.n=4,this.liveComponent.action("_finishUpload",{fieldName:this.fieldNameValue,tmpFilename:n});case 4:e.n=7;break;case 5:return e.n=6,this.uploadFile(t[0]);case 6:return r=e.v,e.n=7,this.liveComponent.action("_finishUpload",{fieldName:this.fieldNameValue,tmpFilename:r});case 7:this.hide(this.spinnerTarget),this.show(this.checkmarkTarget),e.n=9;break;case 8:e.p=8,i=e.v,console.error(i),this.show(this.errorTarget);case 9:return e.p=9,this.hide(this.spinnerTarget),e.f(9);case 10:return e.a(2)}},e,this,[[2,8,9,10]])}))}},{key:"uploadFile",value:function(e){return v(this,void 0,void 0,a().m(function t(){var n;return a().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,o.A.post("/live-components/initiate-upload",{filename:e.name,mimeType:e.type||void 0});case 1:return n=t.v,t.n=2,o.A.put(n.data.uploadUrl,e,{headers:{"Content-Type":e.type}});case 2:return t.a(2,n.data.tmpFilename)}},t)}))}},{key:"findLiveComponent",value:function(){return v(this,void 0,void 0,a().m(function e(){var t;return a().w(function(e){for(;;)switch(e.p=e.n){case 0:t=this.element.parentElement;case 1:if(null===t){e.n=5;break}return e.p=2,e.n=3,(0,i.QQ)(t);case 3:return e.a(2,e.v);case 4:e.p=4,e.v,t=t.parentElement,e.n=1;break;case 5:throw new Error("Component not nested within Live component");case 6:return e.a(2)}},e,this,[[2,4]])}))}},{key:"show",value:function(e){e.classList.remove("opacity-0"),e.classList.add("opacity-100")}},{key:"hide",value:function(e){e.classList.remove("opacity-100"),e.classList.add("opacity-0")}}],r&&c(n.prototype,r),s&&c(n,s),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,s}(r.xI);g.targets=["fileInput","spinner","checkmark","error"],g.values={fieldName:String,multiple:Boolean};const y=g;n.d(t,["default",0,y])},4393(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,o(r.key),r)}}function o(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:t+""}function s(e,t,n){return t=l(t),function(e,t){if(t&&("object"==r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,a()?Reflect.construct(t,n||[],l(e).constructor):t.apply(e,n))}function a(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(a=function(){return!!e})()}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}
25function c(e,t){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},c(e,t)}n.r(t);var u=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=s(this,t,arguments)).observer=null,e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c(e,t)}(t,e),n=t,(r=[{key:"connect",value:function(){var e=this;this.hasDynamicContentTarget&&(this.observer=new MutationObserver(function(){var t=e.dynamicContentTarget.innerHTML.trim().length>0;t&&!e.dialogTarget.open?e.open():!t&&e.dialogTarget.open&&e.close()}),this.observer.observe(this.dynamicContentTarget,{childList:!0,characterData:!0,subtree:!0}))}},{key:"disconnect",value:function(){this.observer&&this.observer.disconnect(),this.dialogTarget.open&&this.close()}},{key:"open",value:function(){this.dialogTarget.showModal(),document.body.classList.add("overflow-hidden","blur-sm")}},{key:"close",value:function(){this.dialogTarget.close(),document.body.classList.remove("overflow-hidden","blur-sm")}},{key:"clickDialog",value:function(e){e.target===this.dialogTarget&&this.dialogTarget.close()}}])&&i(n.prototype,r),o&&i(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(n(2891).xI);u.targets=["dialog","dynamicContent"];const d=u;n.d(t,["default",0,d])},6682(e,t,n){"use strict";n.r(t);var r=n(2891);const i=class extends r.xI{constructor(e){super(e),this.__stimulusLazyController=!0}initialize(){this.application.controllers.find(e=>e.identifier===this.identifier&&e.__stimulusLazyController)||n.e(654).then(n.bind(n,8654)).then(e=>{this.application.register(this.identifier,e.default)})}};n.d(t,["default",0,i])},5734(e,t,n){"use strict";n.r(t);var r=n(2891);const i=class extends r.xI{constructor(e){super(e),this.__stimulusLazyController=!0}initialize(){this.application.controllers.find(e=>e.identifier===this.identifier&&e.__stimulusLazyController)||n.e(906).then(n.bind(n,8906)).then(e=>{this.application.register(this.identifier,e.default)})}};n.d(t,["default",0,i])},4989(e,t,n){"use strict";n.r(t);var r=n(2891);const i=class extends r.xI{constructor(e){super(e),this.__stimulusLazyController=!0}initialize(){this.application.controllers.find(e=>e.identifier===this.identifier&&e.__stimulusLazyController)||n.e(33).then(n.bind(n,2033)).then(e=>{this.application.register(this.identifier,e.default)})}};n.d(t,["default",0,i])},4855(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,o(r.key),r)}}function o(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:t+""}function s(e,t,n){return t=l(t),function(e,t){if(t&&("object"==r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,a()?Reflect.construct(t,n||[],l(e).constructor):t.apply(e,n))}function a(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(a=function(){return!!e})()}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}
25function c(e,t){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},c(e,t)}n.r(t);var u=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=s(this,t,arguments)).timer=null,e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c(e,t)}(t,e),n=t,(r=[{key:"connect",value:function(){this.resume()}},{key:"disconnect",value:function(){this.pause()}},{key:"finishedTargetConnected",value:function(){this.pause()}},{key:"pause",value:function(){this.timer&&(clearInterval(this.timer),this.timer=null)}},{key:"resume",value:function(){var e=this;this.timer||this.hasFinishedTarget||!this.element.src||(this.timer=setInterval(function(){e.element.src?e.element.reload():e.pause()},this.intervalValue))}}])&&i(n.prototype,r),o&&i(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(n(2891).xI);u.values={interval:{type:Number,default:3e4}},u.targets=["finished"];const d=u;n.d(t,["default",0,d])},2075(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>be});var r=n(2891);function i(e,t=0){return setTimeout(e,t)}function o(){return Date.now()}function s(e,t="x"){const n=function(e){return window.getComputedStyle(e,null)}(e),r=n.transform||n.webkitTransform;if(!r||"none"===r)return 0;const i=new DOMMatrixReadOnly(r);return"x"===t?i.m41:i.m42}function a(e){return"object"==typeof e&&null!==e&&e.constructor===Object&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function l(e){return"undefined"!=typeof HTMLElement&&e instanceof HTMLElement||!!e&&"object"==typeof e&&(1===e.nodeType||11===e.nodeType)}function c(e,...t){const n=Object(e);for(let e=0;e<t.length;e+=1){const r=t[e];if(null==r||l(r))continue;const i=r,o=Object.keys(Object(i)).filter(e=>"__proto__"!==e&&"constructor"!==e&&"prototype"!==e);for(const e of o){const t=Object.getOwnPropertyDescriptor(i,e);if(!t||!t.enumerable)continue;const r=i[e];a(n[e])&&a(r)?r.__swiper__?n[e]=r:c(n[e],r):!a(n[e])&&a(r)?(n[e]={},r.__swiper__?n[e]=r:c(n[e],r)):n[e]=r}}return n}function u(e,t,n){e.style.setProperty(t,n)}function d(e,t=""){const n=[...e.children];return e instanceof HTMLSlotElement&&n.push(...e.assignedElements()),t?n.filter(e=>e.matches(t)):n}function f(e){try{console.warn(e)}catch{}}function p(e,t=[]){const n=document.createElement(e);return n.classList.add(...Array.isArray(t)?t:function(e=""){return e.trim().split(" ").filter(e=>!!e.trim())}(t)),n}function h(e,t){return window.getComputedStyle(e,null).getPropertyValue(t)}function m(e){if(e&&e.parentNode)return[...e.parentNode.children].indexOf(e)}function v(e,t){const n=[];let r=e.parentElement;for(;r;)t&&!r.matches(t)||n.push(r),r=r.parentElement;return n}function g(e,t,n){{const n=window.getComputedStyle(e,null);return e["width"===t?"offsetWidth":"offsetHeight"]+parseFloat(n.getPropertyValue("width"===t?"margin-right":"margin-top"))+parseFloat(n.getPropertyValue("width"===t?"margin-left":"margin-bottom"))}}function y(e){return(Array.isArray(e)?e:[e]).filter(e=>!!e)}function b(e,t=""){const n=globalThis.trustedTypes;e.innerHTML=void 0!==n?n.createPolicy("html",{createHTML:e=>e}).createHTML(t):t}let w,E,S;function x(){return w||(w="undefined"==typeof window?{touch:!1}:{touch:"ontouchstart"in window||navigator.maxTouchPoints>0}),w}function O(e={}){return E||(E=function({userAgent:e}={}){if("undefined"==typeof window)return{ios:!1,android:!1};const t=x(),n=navigator.platform,r=e||navigator.userAgent,i={ios:!1,android:!1},o=/(Android);?[\s/]+([\d.]+)?/.test(r),s=/(iPhone\sOS|iOS|iPod)/.test(r),a=/iPad/.test(r),l="MacIntel"===n&&t.touch&&navigator.maxTouchPoints>1,c=a||l;return o&&!("Win32"===n)&&(i.os="android",i.android=!0),(c||s)&&(i.os="ios",i.ios=!0),i}(e)),E}function T(){return S||(S=function(){if("undefined"==typeof window)return{isSafari:!1,isWebView:!1,need3dFix:!1};const e=O(),t=navigator.userAgent,n=t.toLowerCase(),r=n.includes("safari")&&!n.includes("chrome")&&!n.includes("android"),i=/(iPhone|iPod|iPad).*AppleWeb
vendor: 63,221 bytes, line 25
25Kit(?!.*Safari)/i.test(t);return{isSafari:r,isWebView:i,need3dFix:r||i&&e.ios}}()),S}const k=(e,t)=>{if(!e||e.destroyed||!e.params)return;const n=t.closest(e.isElement?"swiper-slide":`.${e.params.slideClass}`);if(n){let t=n.querySelector(`.${e.params.lazyPreloaderClass}`);!t&&e.isElement&&(n.shadowRoot?t=n.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{if(n.shadowRoot){const t=n.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`);t&&!t.lazyPreloaderManaged&&t.remove()}})),t&&!t.lazyPreloaderManaged&&t.remove()}},C=(e,t)=>{if(!e.slides[t])return;const n=e.slides[t].querySelector('[loading="lazy"]');n&&n.removeAttribute("loading")},A=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext;const n=e.slides.length;if(!n||!t||t<0)return;t=Math.min(t,n);const r="auto"===e.params.slidesPerView?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),i=e.activeIndex;if(e.params.grid&&(e.params.grid.rows??1)>1){const n=i,o=[n-t];return o.push(...Array.from({length:t}).map((e,t)=>n+r+t)),void e.slides.forEach((t,n)=>{void 0!==t.column&&o.includes(t.column)&&C(e,n)})}const o=i+r-1;if(e.params.rewind||e.params.loop)for(let r=i-t;r<=o+t;r+=1){const t=(r%n+n)%n;(t<i||t>o)&&C(e,t)}else for(let r=Math.max(i-t,0);r<=Math.min(o+t,n-1);r+=1)r!==i&&(r>o||r<i)&&C(e,r)};const _=(e,t)=>!!(e.grid&&t.grid&&t.grid.rows>1);var P={setBreakpoint:function(){const e=this,{realIndex:t,initialized:n,params:r,el:i}=e,o=r.breakpoints;if(!o||o&&0===Object.keys(o).length)return;const s="window"!==r.breakpointsBase&&r.breakpointsBase?"container":r.breakpointsBase,a=["window","container"].includes(r.breakpointsBase)||!r.breakpointsBase?e.el:document.querySelector(r.breakpointsBase),l=e.getBreakpoint(o,s,a);if(!l||e.currentBreakpoint===l)return;const u=(l in o?o[l]:void 0)||e.originalParams,d=_(e,r),f=_(e,u),p=e.params.grabCursor,h=u.grabCursor,m=r.enabled;d&&!f?(i.classList.remove(`${r.containerModifierClass}grid`,`${r.containerModifierClass}grid-column`),e.emitContainerClasses()):!d&&f&&(i.classList.add(`${r.containerModifierClass}grid`),(u.grid.fill&&"column"===u.grid.fill||!u.grid.fill&&"column"===r.grid.fill)&&i.classList.add(`${r.containerModifierClass}grid-column`),e.emitContainerClasses()),p&&!h?e.unsetGrabCursor():!p&&h&&e.setGrabCursor();const v=(e,t)=>e[t];["navigation","pagination","scrollbar"].forEach(t=>{const n=v(u,t);if(void 0===n)return;const i=v(r,t),o="object"==typeof i&&null!==i&&i.enabled,s="object"==typeof n&&null!==n&&n.enabled,a=e[t];o&&!s&&a?.disable?.(),!o&&s&&a?.enable?.()});const g=u.direction&&u.direction!==r.direction,y=r.loop&&(u.slidesPerView!==r.slidesPerView||g),b=r.loop;g&&n&&e.changeDirection(),c(e.params,u);const w=e.params.enabled,E=e.params.loop;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),m&&!w?e.disable():!m&&w&&e.enable(),e.currentBreakpoint=l,e.emit("_beforeBreakpoint",u),n&&(y?(e.loopDestroy(),e.loopCreate(t),e.updateSlides()):!b&&E?(e.loopCreate(t),e.updateSlides()):b&&!E&&e.loopDestroy()),e.emit("breakpoint",u)},getBreakpoint:function(e,t="window",n){if(!e||"container"===t&&!n)return;let r=!1;const i="window"===t?window.innerHeight:n.clientHeight,o=Object.keys(e).map(e=>{if("string"==typeof e&&0===e.indexOf("@")){const t=parseFloat(e.substr(1));return{value:i*t,point:e}}return{value:e,point:e}});o.sort((e,t)=>parseInt(String(e.value),10)-parseInt(String(t.value),10));for(let e=0;e<o.length;e+=1){const{point:i,value:s}=o[e];"window"===t?window.matchMedia(`(min-width: ${s}px)`).matches&&(r=i):s<=n.clientWidth&&(r=i)}return r||"max"}};var L={checkOverflow:function(){const e=this,{isLocked:t,params:n}=e,{slidesOffsetBefore:r}=n;if(r){const t=e.slides.length-1,n=e.slidesGrid[t]+e.slidesSizesGrid[t]+2*r;e.isLocked=e.size>n}else e.isLocked=1===e.snapGrid.length;!0===n.allowSlideNext&&(e.allowSlideNext=!e.isLocked),!0===n.allowSlidePrev&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}};var j={addClasses:function(){const e=this,{classNames:t,params:n,rtl:r,el:i,device:o}=e,s=function(e,t){const n=[];return e.forEach(e=>{"object"==typeof e?Object.keys(e).forEach(r=>{e[r]&&n.push(t+r)}):"string"==typeof e&&n.push(t+e)}),n}(["initialized",n.direction,{"free-mode":e.params.freeMode&&n.freeMode.enabled},{autoheight:n.autoHeight},{rtl:r},{grid:n.grid&&n.grid.rows>1},{"grid-column":n.grid&&n.grid.rows>1&&"column"===n.grid.fill},{android:o.android},{ios:o.ios},{"css-mode":n.cssMode},{centered:n.cssMode&&n.centeredSlides},{"watch-progress":n.watchSlidesProgress}],n.containerModifierClass);t.push(...s),i.classList.add(...t),e.emitContainerClasses()},removeClasses:function(){const{el:e,classNames:t}=this;e&&"string"!=typeof e&&(e.classList.remove(...t),this.emitContainerClasses())}};const M={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,snapToSlideEdge:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};var R={on(e,t,n){const r=this;if(!r.eventsListeners||r.destroyed)return r;if("function"!=typeof t)return r;const i=n?"unshift":"push";return e.split(" ").forEach(e=>{r.eventsListeners[e]||(r.eventsListeners[e]=[]),r.eventsListeners[e][i](t)}),r},once(e,t,n){const r=this;if(!r.eventsListeners||r.destroyed)return r;if("function"!=typeof t)return r;const i=function(...n){r.off(e,i),i.__emitterProxy&&delete i.__emitterProxy,t.apply(r,n)};return i.__emitterProxy=t,r.on(e,i,n)},onAny(e,t){const n=this;if(!n.eventsListeners||n.destroyed)return n;if("function"!=typeof e)return n;const r=t?"unshift":"push";return n.eventsAnyListeners.indexOf(e)<0&&n.eventsAnyListeners[r](e),n},offAny(e){const t=this;if(!t.eventsListeners||t.destroyed)return t;if(!t.eventsAnyListeners)return t;const n=t.eventsAnyListeners.indexOf(e);return n>=0&&t.eventsAnyListeners.splice(n,1),t},off(e,t){const n=this;return!n.eventsListeners||n.destroyed?n:n.eventsListeners?(e.split(" ").forEach(e=>{void 0===t?n.eventsListeners[e]=[]:n.eventsListeners[e]&&n.eventsListeners[e].forEach((r,i)=>{(r===t||r.__emitterProxy&&r.__emitterProxy===t)&&n.eventsListeners[e].splice(i,1)})}),n):n},emit(...e){const t=this;if(!t.eventsListeners||t.destroyed)return t;if(!t.eventsListeners)return t;let n,r,i;if("string"==typeof e[0]||Array.isArray(e[0]))n=e[0],r=e.slice(1,e.length),i=t;else{const o=e[0];n=o.events,r=o.data??[],i=o.context||t}r.unshift(i);return(Array.isArray(n)?n:n.split(" ")).forEach(e=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(t=>{t.apply(i,[e,...r])}),t.eventsListeners&&t.eventsListeners[e]&&t.eventsListeners[e].forEach(e=>{e.apply(i,r)})}),t}};function I(e){const t=this;t.destroyed||t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function N(){const e=this;e.destroyed||e.documentTouchHandlerProceeded||(e.documentTouchHandlerProceeded=!0,e.params.touchReleaseOnEdges&&(e.el.style.touchAction="auto"))}function D(e){const t=this;t.destroyed||(k(t,e.target),t.params.cssMode||"auto"!==t.params.slidesPerView&&!t.params.autoHeight||t.update())}function F(){const e=this,{params:t,el:n}=e;if(n&&0===n.offsetWidth)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:r,allowSlidePrev:i,snapGrid:o}=e,s=e.virtual&&e.params.virtual?.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();const a=s&&t.loop;if(!("auto"===t.slidesPerView||t.slidesPerView>1)||!e.isEnd||e.isBeginning||e.params.centeredSlides||a)e.params.loop&&!s?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0);else{const t=s?e.virtual.slides.length:e.slides.length;e.slideTo(t-1,0,!1,!0)}if(e.autoplay&&e.autoplay.running&&e.autoplay.paused){const t=e.autoplay;clearTimeout(t.resizeTimeout),t.resizeTimeout=setTimeout(()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()},500)}e.allowSlidePrev=i,e.allowSlideNext=r,e.params.watchOverflow&&o!==e.snapGrid&&e.checkOverflow()}function B(){const e=this;if(e.destroyed)return;const{wrapperEl:t,rtlTranslate:n,enabled:r}=e;if(!r)return;let i;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,0===e.translate&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();const o=e.maxTranslate()-e.minTranslate();i=0===o?0:(e.translate-e.minTranslate())/o,i!==e.progress&&e.updateProgress(n?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}function q(e){const t=this;if(t.destroyed)return;const n=t.touchEventsData;let r=e.originalEvent??e;if("touchend"===r.type||"touchcancel"===r.type){const e=[...r.changedTouches].find(e=>e.identifier===n.touchId);if(!e||e.identifier!==n.touchId)return}else{if(null!==n.touchId)return;if(r.pointerId!==n.pointerId)return}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(r.type)){if(!(["pointercancel","contextmenu"].includes(r.type)&&(t.browser.isSafari||t.browser.isWebView)))return}n.pointerId=null,n.touchId=null;const{params:s,touches:a,rtlTranslate:l,slidesGrid:c,enabled:u}=t;if(!u)return;if(!s.simulateTouch&&"mouse"===r.pointerType)return;if(n.allowTouchCallbacks&&t.emit("touchEnd",r),n.allowTouchCallbacks=!1,!n.isTouched)return n.isMoved&&s.grabCursor&&t.setGrabCursor(!1),n.isMoved=!1,void(n.startMoving=!1);s.grabCursor&&n.isMoved&&n.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);const d=o(),f=d-n.touchStartTime;if(t.allowClick){const e=r.path??(r.composedPath&&r.composedPath());t.updateClickedSlide(e&&e[0],e),t.emit("tap click",r),f<300&&d-n.lastClickTime<300&&t.emit("doubleTap doubleClick",r)}if(n.lastClickTime=o(),i(()=>{t.destroyed||(t.allowClick=!0)}),!n.isTouched||!n.isMoved||!t.swipeDirection||0===a.diff&&!n.loopSwapReset||n.currentTranslate===n.startTranslate&&!n.loopSwapReset)return n.isTouched=!1,n.isMoved=!1,void(n.startMoving=!1);let p;if(n.isTouched=!1,n.isMoved=!1,n.startMoving=!1,p=s.followFinger?l?t.translate:-t.translate:-(n.currentTranslate??0),s.cssMode)return;if(s.freeMode&&s.freeMode.enabled)return void t.freeMode.onTouchEnd({currentPos:p});const h=p>=-t.maxTranslate()&&!t.params.loop;let m=0,v=t.slidesSizesGrid[0];for(let e=0;e<c.length;e+=e<s.slidesPerGroupSkip?1:s.slidesPerGroup){const t=e<s.slidesPerGroupSkip-1?1:s.slidesPerGroup;void 0!==c[e+t]?(h||p>=c[e]&&p<c[e+t])&&(m=e,v=c[e+t]-c[e]):(h||p>=c[e])&&(m=e,v=c[c.length-1]-c[c.length-2])}let g=null,y=null;s.rewind&&(t.isBeginning?y=s.virtual?.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(g=0));const b=(p-c[m])/v,w=m<s.slidesPerGroupSkip-1?1:s.slidesPerGroup;if(f>s.longSwipesMs){if(!s.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(b>=s.longSwipesRatio?t.slideTo(s.rewind&&t.isEnd?g:m+w):t.slideTo(m)),"prev"===t.swipeDirection&&(b>1-s.longSwipesRatio?t.slideTo(m+w):null!==y&&b<0&&Math.abs(b)>s.longSwipesRatio?t.slideTo(y):t.slideTo(m))}else{if(!s.shortSwipes)return void t.slideTo(t.activeIndex);t.navigation&&(r.target===t.navigation.nextEl||r.target===t.navigation.prevEl)?r.target===t.navigation.nextEl?t.slideTo(m+w):t.slideTo(m):("next"===t.swipeDirection&&t.slideTo(null!==g?g:m+w),"prev"===t.swipeDirection&&t.slideTo(null!==y?y:m))}}function H(e){const t=this;if(t.destroyed)return;const n=t.touchEventsData,{params:r,touches:i,rtlTranslate:s,enabled:a}=t;if(!a)return;if(!r.simulateTouch&&"mouse"===e.pointerType)return;const l=e,c=l.originalEvent??l;if("pointermove"===c.type){if(null!==n.touchId)return;if(c.pointerId!==n.pointerId)return}let u;if("touchmove"===c.type){const e=[...c.changedTouches].find(e=>e.identifier===n.touchId);if(!e||e.identifier!==n.touchId)return;u=e}else u=c;if(!n.isTouched)return void(n.startMoving&&n.isScrolling&&t.emit("touchMoveOpposite",c));const d=u.pageX,f=u.pageY;if(c.preventedByNestedSwiper)return i.startX=d,void(i.startY=f);if(!t.allowTouchMove)return c.target.matches(n.focusableElements)||(t.allowClick=!1),void(n.isTouched&&(Object.assign(i,{startX:d,startY:f,currentX:d,currentY:f}),n.touchStartTime=o()));if(r.touchReleaseOnEdges&&!r.loop)if(t.isVertical()){if(f<i.startY&&t.translate<=t.maxTranslate()||f>i.startY&&t.translate>=t.minTranslate())return n.isTouched=!1,void(n.isMoved=!1)}else{if(s&&(d>i.startX&&-t.translate<=t.maxTranslate()||d<i.startX&&-t.translate>=t.minTranslate()))return;if(!s&&(d<i.startX&&t.translate<=t.maxTranslate()||d>i.startX&&t.translate>=t.minTranslate()))return}if(document.activeElement&&document.activeElement.matches(n.focusableElements)&&document.activeElement!==c.target&&"mouse"!==c.pointerType&&document.activeElement.blur(),document.activeElement&&c.target===document.activeElement&&c.target.matches(n.focusableElements))return n.isMoved=!0,void(t.allowClick=!1);n.allowTouchCallbacks&&t.emit("touchMove",c),i.previousX=i.currentX,i.previousY=i.currentY,i.currentX=d,i.currentY=f;const p=i.currentX-i.startX,h=i.currentY-i.startY;if(t.params.threshold&&Math.sqrt(p**2+h**2)<t.params.threshold)return;if(void 0===n.isScrolling){let e;t.isHorizontal()&&i.currentY===i.startY||t.isVertical()&&i.currentX===i.startX?n.isScrolling=!1:p*p+h*h>=25&&(e=180*Math.atan2(Math.abs(h),Math.abs(p))/Math.PI,n.isScrolling=t.isHorizontal()?e>r.touchAngle:90-e>r.touchAngle)}if(n.isScrolling&&t.emit("touchMoveOpposite",c),void 0===n.startMoving&&(i.currentX===i.startX&&i.currentY===i.startY||(n.startMoving=!0)),n.isScrolling||"touchmove"===c.type&&n.preventTouchMoveFromPointerMove)return void(n.isTouched=!1);if(!n.startMoving)return;t.allowClick=!1,!r.cssMode&&c.cancelable&&c.preventDefault(),r.touchMoveStopPropagation&&!r.nested&&c.stopPropagation();let m=t.isHorizontal()?p:h,v=t.isHorizontal()?i.currentX-i.previousX:i.currentY-i.previousY;r.oneWayMovement&&(m=Math.abs(m)*(s?1:-1),v=Math.abs(v)*(s?1:-1)),i.diff=m,m*=r.touchRatio,s&&(m=-m,v=-v);const g=t.touchesDirection;t.swipeDirection=m>0?"prev":"next",t.touchesDirection=v>0?"prev":"next";const y=t.params.loop&&!r.cssMode,b="next"===t.touchesDirection&&t.allowSlideNext||"prev"===t.touchesDirection&&t.allowSlidePrev;if(!n.isMoved){if(y&&b&&t.loopFix({direction:t.swipeDirection}),n.startTranslate=t.getTranslate(),t.setTransition(0),t.animating){const e=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});t.wrapperEl.dispatchEvent(e)}n.allowMomentumBounce=!1,!r.grabCursor||!0!==t.allowSlideNext&&!0!==t.allowSlidePrev||t.setGrabCursor(!0),t.emit("sliderFirstMove",c)}if((new Date).getTime(),!1!==r._loopSwapReset&&n.isMoved&&n.allowThresholdMove&&g!==t.touchesDirection&&y&&b&&Math.abs(m)>=1)return Object.assign(i,{startX:d,startY:f,currentX:d,currentY:f,startTranslate:n.currentTranslate}),n.loopSwapReset=!0,void(n.startTranslate=n.currentTranslate);t.emit("sliderMove",c),n.isMoved=!0;const w=n.startTranslate??0;n.currentTranslate=m+w;let E=!0,S=r.resistanceRatio;if(r.touchReleaseOnEdges&&(S=0),m>0?(y&&b&&n.allowThresholdMove&&n.currentTranslate>(r.centeredSlides?t.minTranslate()-t.slidesSizesGrid[t.activeIndex+1]-("auto"!==r.slidesPerView&&t.slides.length-r.slidesPerView>=2?t.slidesSizesGrid[t.activeIndex+1]+t.params.spaceBetween:0)-t.params.spaceBetween:t.minTranslate())&&t.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),n.currentTranslate>t.minTranslate()&&(E=!1,r.resistance&&(n.currentTranslate=t.minTranslate()-1+(-t.minTranslate()+w+m)**S))):m<0&&(y&&b&&n.allowThresholdMove&&n.currentTranslate<(r.centeredSlides?t.maxTranslate()+t.slidesSizesGrid[t.slidesSizesGrid.length-1]+t.params.spaceBetween+("auto"!==r.slidesPerView&&t.slides.length-r.slidesPerView>=2?t.slidesSizesGrid[t.slidesSizesGrid.length-1]+t.params.spaceBetween:0):t.maxTranslate())&&t.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:t.slides.length-("auto"===r.slidesPerView?t.slidesPerViewDynamic():Math.ceil(parseFloat(String(r.slidesPerView))))}),n.currentTranslate<t.maxTranslate()&&(E=!1,r.resistance&&(n.currentTranslate=t.maxTranslate()+1-(t.maxTranslate()-w-m)**S))),E&&(c.preventedByNestedSwiper=!0),!t.allowSlideNext&&"next"===t.swipeDirection&&(n.currentTranslate??0)<w&&(n.currentTranslate=w),!t.allowSlidePrev&&"prev"===t.swipeDirection&&(n.currentTranslate??0)>w&&(n.currentTranslate=w),t.allowSlidePrev||t.allowSlideNext||(n.currentTranslate=w),r.threshold>0){if(!(Math.abs(m)>r.threshold||n.allowThresholdMove))return void(n.currentTranslate=n.startTranslate);if(!n.allowThresholdMove)return n.allowThresholdMove=!0,i.startX=i.currentX,i.startY=i.currentY,n.currentTranslate=n.startTranslate,void(i.diff=t.isHorizontal()?i.currentX-i.startX:i.currentY-i.startY)}r.followFinger&&!r.cssMode&&((r.freeMode&&r.freeMode.enabled&&t.freeMode||r.watchSlidesProgress)&&(t.updateActiveIndex(),t.updateSlidesClasses()),r.freeMode&&r.freeMode.enabled&&t.freeMode&&t.freeMode.onTouchMove(),t.updateProgress(n.currentTranslate),t.setTranslate(n.currentTranslate??0))}function $(e,t,n){const{params:r}=e,i=r.edgeSwipeDetection,o=r.edgeSwipeThreshold;return!i||!(n<=o||n>=window.innerWidth-o)||"prevent"===i&&(t.preventDefault(),!0)}function V(e){const t=this;if(t.destroyed)return;const n=e.originalEvent??e,r=t.touchEventsData;if("pointerdown"===n.type){const e=n;if(null!==r.pointerId&&r.pointerId!==e.pointerId)return;r.pointerId=e.pointerId}else"touchstart"===n.type&&1===n.targetTouches.length&&(r.touchId=n.targetTouches[0].identifier);if("touchstart"===n.type)return void $(t,n,n.targetTouches[0].pageX);const{params:i,touches:s,enabled:a}=t;if(!a)return;if(!i.simulateTouch&&"mouse"===n.pointerType)return;if(t.animating&&i.preventInteractionOnTransition)return;!t.animating&&i.cssMode&&i.loop&&t.loopFix();let l=n.target;if("wrapper"===i.touchEventsTarget&&!function(e,t){let n=t.contains(e);!n&&t instanceof HTMLSlotElement&&(n=[...t.assignedElements()].includes(e),n||(n=function(e,t){const n=[t];for(;n.length>0;){const t=n.shift();if(e===t)return!0;n.push(...t.children,...t.shadowRoot?t.shadowRoot.children:[],...t.assignedElements?t.assignedElements():[])}return!1}(e,t)));return n}(l,t.wrapperEl))return;const c=n;if("number"==typeof c.which&&3===c.which)return;if("number"==typeof c.button&&c.button>0)return;if(r.isTouched&&r.isMoved)return;const u=!!i.noSwipingClass&&""!==i.noSwipingClass,d=n.composedPath?n.composedPath():n.path;u&&n.target&&n.target.shadowRoot&&d&&(l=d[0]);const f=i.noSwipingSelector?i.noSwipingSelector:`.${i.noSwipingClass}`,p=!(!n.target||!n.target.shadowRoot);if(i.noSwiping&&(p?(h=f,function e(t){if(!t||t===document||t===window)return null;let n=t;n.assignedSlot&&(n=n.assignedSlot);const r=n.closest(h);if(!r&&!n.getRootNode)return null;const i=n.getRootNode();return r||e(i.host)}(l)):l.closest(f)))return void(t.allowClick=!0);var h;if(i.swipeHandler&&"string"==typeof i.swipeHandler&&!l.closest(i.swipeHandler))return;const m=n;s.currentX=m.pageX,s.currentY=m.pageY;const v=s.currentX,g=s.currentY;if(!$(t,n,v))return;Object.assign(r,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),s.startX=v,s.startY=g,r.touchStartTime=o(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,i.threshold>0&&(r.allowThresholdMove=!1);let y=!0;l.matches(r.focusableElements)&&(y=!1,"SELECT"===l.nodeName&&(r.isTouched=!1)),document.activeElement&&document.activeElement.matches(r.focusableElements)&&document.activeElement!==l&&("mouse"===m.pointerType||"mouse"!==m.pointerType&&!l.matches(r.focusableElements))&&document.activeElement.blur();const b=y&&t.allowTouchMove&&i.touchStartPreventDefault;!i.touchStartForcePreventDefault&&!b||l.isContentEditable||n.preventDefault(),i.freeMode&&i.freeMode.enabled&&t.freeMode&&t.animating&&!i.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",n)}const z=(e,t)=>{const{params:n,el:r,wrapperEl:i,device:o}=e,s=!!n.nested,a="on"===t?"addEventListener":"removeEventListener",l=t;if(!r||"string"==typeof r)return;document[a]("touchstart",e.onDocumentTouchStart,{passive:!1,capture:s}),r[a]("touchstart",e.onTouchStart,{passive:!1}),r[a]("pointerdown",e.onTouchStart,{passive:!1}),document[a]("touchmove",e.onTouchMove,{passive:!1,capture:s}),document[a]("pointermove",e.onTouchMove,{passive:!1,capture:s}),document[a]("touchend",e.onTouchEnd,{passive:!0}),document[a]("pointerup",e.onTouchEnd,{passive:!0}),document[a]("pointercancel",e.onTouchEnd,{passive:!0}),document[a]("touchcancel",e.onTouchEnd,{passive:!0}),document[a]("pointerout",e.onTouchEnd,{passive:!0}),document[a]("pointerleave",e.onTouchEnd,{passive:!0}),document[a]("contextmenu",e.onTouchEnd,{passive:!0}),(n.preventClicks||n.preventClicksPropagation)&&r[a]("click",e.onClick,!0),n.cssMode&&i[a]("scroll",e.onScroll);const c=t=>{e[l](t,F,!0)};n.updateOnWindowResize?c(o.ios||o.android?"resize orientationchange observerUpdate":"resize observerUpdate"):c("observerUpdate"),r[a]("load",e.onLoad,{capture:!0})};var U={loopCreate:function(e,t){const n=this,{params:r,slidesEl:i}=n;if(!r.loop||n.virtual&&n.params.virtual?.enabled)return;const o=()=>{d(i,`.${r.slideClass}, swiper-slide`).forEach((e,t)=>{e.setAttribute("data-swiper-slide-index",String(t))})},s=n.grid&&r.grid&&r.grid.rows>1;r.loopAddBlankSlides&&(r.slidesPerGroup>1||s)&&(()=>{const e=d(i,`.${r.slideBlankClass}`);e.forEach(e=>{e.remove()}),e.length>0&&(n.recalcSlides(),n.updateSlides())})();const a=r.slidesPerGroup*(s?r.grid.rows:1),l=n.slides.length%a!==0,c=s&&n.slides.length%r.grid.rows!==0,u=e=>{for(let t=0;t<e;t+=1){const e=n.isElement?p("swiper-slide",[r.slideBlankClass]):p("div",[r.slideClass,r.slideBlankClass]);n.slidesEl.append(e)}};if(l){if(r.loopAddBlankSlides){u(a-n.slides.length%a),n.recalcSlides(),n.updateSlides()}else f("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");o()}else if(c){if(r.loopAddBlankSlides){u(r.grid.rows-n.slides.length%r.grid.rows),n.recalcSlides(),n.updateSlides()}else f("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");o()}else o();const h=r.centeredSlides||!!r.slidesOffsetBefore||!!r.slidesOffsetAfter;n.loopFix({slideRealIndex:e,direction:h?void 0:"next",initial:t})},loopFix:function(e={}){const{slideRealIndex:t,slideTo:n=!0,direction:r,setTranslate:i,activeSlideIndex:o,initial:s,byController:a,byMousewheel:l}=e;let c=o;const u=this;if(!u.params.loop)return;u.emit("beforeLoopFix");const{slides:d,allowSlidePrev:p,allowSlideNext:h,slidesEl:m,params:v}=u,{centeredSlides:g,slidesOffsetBefore:y,slidesOffsetAfter:b,initialSlide:w}=v,E=g||!!y||!!b;if(u.allowSlidePrev=!0,u.allowSlideNext=!0,u.virtual&&v.virtual?.enabled){if(n){const e=u.virtual.slides.length,t=u.virtual.slidesBefore??0;E||0!==u.snapIndex?E&&u.snapIndex<v.slidesPerView?u.slideTo(e+u.snapIndex,0,!1,!0):u.snapIndex===u.snapGrid.length-1&&u.slideTo(t,0,!1,!0):u.slideTo(e,0,!1,!0)}return u.allowSlidePrev=p,u.allowSlideNext=h,void u.emit("loopFix")}let S=v.slidesPerView;"auto"===S?S=u.slidesPerViewDynamic():(S=Math.ceil(parseFloat(String(v.slidesPerView))),E&&S%2==0&&(S+=1));const x=v.slidesPerGroupAuto?S:v.slidesPerGroup;let O=E?Math.max(x,Math.ceil(S/2)):x;O%x!==0&&(O+=x-O%x),O+=v.loopAdditionalSlides,u.loopedSlides=O;const T=u.grid&&v.grid&&v.grid.rows>1;d.length<S+O||"cards"===u.params.effect&&d.length<S+2*O?f("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled or not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters"):T&&"row"===v.grid.fill&&f("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const k=[],C=[],A=T?Math.ceil(d.length/v.grid.rows):d.length,_=s&&A-w<S&&!E;let P=_?w:u.activeIndex;void 0===c?c=u.getSlideIndex(d.find(e=>e.classList.contains(v.slideActiveClass))):P=c;const L="next"===r||!r,j="prev"===r||!r;let M=0,R=0;const I=(T?d[c].column??0:c)+(E&&void 0===i?-S/2+.5:0);if(I<O){M=Math.max(O-I,x);for(let e=0;e<O-I;e+=1){const t=e-Math.floor(e/A)*A;if(T){const e=A-t-1;for(let t=d.length-1;t>=0;t-=1)d[t].column===e&&k.push(t)}else k.push(A-t-1)}}else if(I+S>A-O){R=Math.max(I-(A-2*O),x),_&&(R=Math.max(R,S-A+w+1));for(let e=0;e<R;e+=1){const t=e-Math.floor(e/A)*A;T?d.forEach((e,n)=>{e.column===t&&C.push(n)}):C.push(t)}}if(u.__preventObserver__=!0,requestAnimationFrame(()=>{u.__preventObserver__=!1}),"cards"===u.params.effect&&d.length<S+2*O&&(C.includes(c)&&C.splice(C.indexOf(c),1),k.includes(c)&&k.splice(k.indexOf(c),1)),j&&k.forEach(e=>{const t=d[e];t.swiperLoopMoveDOM=!0,m.prepend(t),t.swiperLoopMoveDOM=!1}),L&&C.forEach(e=>{const t=d[e];t.swiperLoopMoveDOM=!0,m.append(t),t.swiperLoopMoveDOM=!1}),u.recalcSlides(),"auto"===v.slidesPerView?u.updateSlides():T&&(k.length>0&&j||C.length>0&&L)&&u.slides.forEach((e,t)=>{u.grid.updateSlide(t,e,u.slides)}),v.watchSlidesProgress&&u.updateSlidesOffset(),n)if(k.length>0&&j){if(void 0===t){const e=u.slidesGrid[P],t=u.slidesGrid[P+M]-e;l?u.setTranslate(u.translate-t):(u.slideTo(P+Math.ceil(M),0,!1,!0),i&&(u.touchEventsData.startTranslate=u.touchEventsData.startTranslate-t,u.touchEventsData.currentTranslate=u.touchEventsData.currentTranslate-t))}else if(i){const e=T?k.length/v.grid.rows:k.length;u.slideTo(u.activeIndex+e,0,!1,!0),u.touchEventsData.currentTranslate=u.translate}}else if(C.length>0&&L)if(void 0===t){const e=u.slidesGrid[P],t=u.slidesGrid[P-R]-e;l?u.setTranslate(u.translate-t):(u.slideTo(P-R,0,!1,!0),i&&(u.touchEventsData.startTranslate=u.touchEventsData.startTranslate-t,u.touchEventsData.currentTranslate=u.touchEventsData.currentTranslate-t))}else{const e=T?C.length/v.grid.rows:C.length;u.slideTo(u.activeIndex-e,0,!1,!0)}u.allowSlidePrev=p,u.allowSlideNext=h;const N=u.controller?.control;if(N&&!a){const e={slideRealIndex:t,direction:r,setTranslate:i,activeSlideIndex:c,byController:!0};Array.isArray(N)?N.forEach(t=>{!t.destroyed&&t.params.loop&&t.loopFix({...e,slideTo:t.params.slidesPerView===v.slidesPerView&&n})}):N instanceof u.constructor&&N.params.loop&&N.loopFix({...e,slideTo:N.params.slidesPerView===v.slidesPerView&&n})}u.emit("loopFix")},loopDestroy:function(){const e=this,{params:t,slidesEl:n}=e;if(!t.loop||!n||e.virtual&&e.params.virtual?.enabled)return;e.recalcSlides();const r=[];e.slides.forEach(e=>{const t=e,n=void 0===t.swiperSlideIndex?Number(e.getAttribute("data-swiper-slide-index")):t.swiperSlideIndex;r[n]=e}),e.slides.forEach(e=>{e.removeAttribute("data-swiper-slide-index")}),r.forEach(e=>{n.append(e)}),e.recalcSlides(),e.slideTo(e.realIndex,0)}};function W(e,t){return function(n={}){const r=Object.keys(n)[0],i=n[r];"object"==typeof i&&null!==i?(!0===e[r]&&(e[r]={enabled:!0}),"navigation"===r&&e[r]&&e[r].enabled&&!e[r].prevEl&&!e[r].nextEl&&(e[r].auto=!0),["pagination","scrollbar"].indexOf(r)>=0&&e[r]&&e[r].enabled&&!e[r].el&&(e[r].auto=!0),r in e&&"enabled"in i?("object"!=typeof e[r]||"enabled"in e[r]||(e[r].enabled=!0),e[r]||(e[r]={enabled:!1}),c(t,n)):c(t,n)):c(t,n)}}var G={slideTo:function(e=0,t,n=!0,r,i){"string"==typeof e&&(e=parseInt(e,10));const o=this;let s=e;s<0&&(s=0);const{params:a,snapGrid:l,slidesGrid:c,previousIndex:u,activeIndex:d,rtlTranslate:f,wrapperEl:p,enabled:h}=o;if(!h&&!r&&!i||o.destroyed||o.animating&&a.preventInteractionOnTransition)return!1;void 0===t&&(t=o.params.speed);const m=Math.min(o.params.slidesPerGroupSkip,s);let v=m+Math.floor((s-m)/o.params.slidesPerGroup);v>=l.length&&(v=l.length-1);const g=-l[v];if(a.normalizeSlideIndex)for(let e=0;e<c.length;e+=1){const t=-Math.floor(100*g),n=Math.floor(100*c[e]),r=Math.floor(100*c[e+1]);void 0!==c[e+1]?t>=n&&t<r-(r-n)/2?s=e:t>=n&&t<r&&(s=e+1):t>=n&&(s=e)}if(o.initialized&&s!==d){if(!o.allowSlideNext&&(f?g>o.translate&&g>o.minTranslate():g<o.translate&&g<o.minTranslate()))return!1;if(!o.allowSlidePrev&&g>o.translate&&g>o.maxTranslate()&&(d||0)!==s)return!1}let y;s!==(u||0)&&n&&o.emit("beforeSlideChangeStart"),o.updateProgress(g),y=s>d?"next":s<d?"prev":"reset";const b=o.virtual&&o.params.virtual?.enabled;if(!(b&&i)&&(f&&-g===o.translate||!f&&g===o.translate))return o.updateActiveIndex(s),a.autoHeight&&o.updateAutoHeight(),o.updateSlidesClasses(),"slide"!==a.effect&&o.setTranslate(g),"reset"!==y&&(o.transitionStart(n,y),o.transitionEnd(n,y)),!1;if(a.cssMode){const e=o.isHorizontal(),n=f?g:-g;return 0===t?(b&&(o.wrapperEl.style.scrollSnapType="none",o._immediateVirtual=!0),b&&!o._cssModeVirtualInitialSet&&(o.params.initialSlide??0)>0?(o._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{p[e?"scrollLeft":"scrollTop"]=n})):p[e?"scrollLeft":"scrollTop"]=n,b&&requestAnimationFrame(()=>{o.wrapperEl.style.scrollSnapType="",o._immediateVirtual=!1})):p.scrollTo({[e?"left":"top"]:n,behavior:"smooth"}),!0}const w=T().isSafari;return b&&!i&&w&&o.isElement&&o.virtual.update(!1,!1,s),o.setTransition(t),o.setTranslate(g),o.updateActiveIndex(s),o.updateSlidesClasses(),o.emit("beforeTransitionStart",t,r),o.transitionStart(n,y),0===t?o.transitionEnd(n,y):o.animating||(o.animating=!0,o.onSlideToWrapperTransitionEnd||(o.onSlideToWrapperTransitionEnd=function(e){o&&!o.destroyed&&e.target===this&&(o.wrapperEl.removeEventListener("transitionend",o.onSlideToWrapperTransitionEnd),o.onSlideToWrapperTransitionEnd=null,delete o.onSlideToWrapperTransitionEnd,o.transitionEnd(n,y))}),o.wrapperEl.addEventListener("transitionend",o.onSlideToWrapperTransitionEnd)),!0},slideToLoop:function(e=0,t,n=!0,r){if("string"==typeof e){e=parseInt(e,10)}const i=this;if(i.destroyed)return;void 0===t&&(t=i.params.speed);const o=i.grid&&i.params.grid&&i.params.grid.rows>1;let s=e;if(i.params.loop)if(i.virtual&&i.params.virtual?.enabled)s+=i.virtual.slidesBefore??0;else{let e;if(o){const t=s*i.params.grid.rows,n=i.slides.find(e=>Number(e.getAttribute("data-swiper-slide-index"))===t);e=n?.column??0}else e=i.getSlideIndexByData(s);const t=o?Math.ceil(i.slides.length/i.params.grid.rows):i.slides.length,{centeredSlides:n,slidesOffsetBefore:a,slidesOffsetAfter:l}=i.params,c=n||!!a||!!l;let u;"auto"===i.params.slidesPerView?u=i.slidesPerViewDynamic():(u=Math.ceil(parseFloat(String(i.params.slidesPerView))),c&&u%2==0&&(u+=1));let d=t-e<u;if(c&&(d=d||e<Math.ceil(u/2)),r&&c&&"auto"!==i.params.slidesPerView&&!o&&(d=!1),d){const n=c?e<i.activeIndex?"prev":"next":e-i.activeIndex-1<i.params.slidesPerView?"next":"prev";i.loopFix({direction:n,slideTo:!0,activeSlideIndex:"next"===n?e+1:e-t+1,slideRealIndex:"next"===n?i.realIndex:void 0})}if(o){const e=s*i.params.grid.rows,t=i.slides.find(t=>Number(t.getAttribute("data-swiper-slide-index"))===e);s=t?.column??0}else s=i.getSlideIndexByData(s)}return requestAnimationFrame(()=>{i.slideTo(s,t,n,r)}),i},slideNext:function(e,t=!0,n){const r=this,{enabled:i,params:o,animating:s}=r;if(!i||r.destroyed)return r;void 0===e&&(e=r.params.speed);let a=o.slidesPerGroup;"auto"===o.slidesPerView&&1===o.slidesPerGroup&&o.slidesPerGroupAuto&&(a=Math.max(r.slidesPerViewDynamic("current",!0),1));const l=r.activeIndex<o.slidesPerGroupSkip?1:a,c=r.virtual&&o.virtual?.enabled;if(o.loop){if(s&&!c&&o.loopPreventsSliding)return!1;if(r.loopFix({direction:"next"}),r._clientLeft=r.wrapperEl.clientLeft,r.activeIndex===r.slides.length-1&&o.cssMode)return requestAnimationFrame(()=>{r.slideTo(r.activeIndex+l,e,t,n)}),!0}return o.rewind&&r.isEnd?r.slideTo(0,e,t,n):r.slideTo(r.activeIndex+l,e,t,n)},slidePrev:function(e,t=!0,n){const r=this,{params:i,snapGrid:o,slidesGrid:s,rtlTranslate:a,enabled:l,animating:c}=r;if(!l||r.destroyed)return r;void 0===e&&(e=r.params.speed);const u=r.virtual&&i.virtual?.enabled;if(i.loop){if(c&&!u&&i.loopPreventsSliding)return!1;r.loopFix({direction:"prev"}),r._clientLeft=r.wrapperEl.clientLeft}function d(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}const f=d(a?r.translate:-r.translate),p=o.map(e=>d(e)),h=i.freeMode&&i.freeMode.enabled;let m=o[p.indexOf(f)-1];if(void 0===m&&(i.cssMode||h)){let e;o.forEach((t,n)=>{f>=t&&(e=n)}),void 0!==e&&(m=h?o[e]:o[e>0?e-1:e])}let v=0;if(void 0!==m&&(v=s.indexOf(m),v<0&&(v=r.activeIndex-1),"auto"===i.slidesPerView&&1===i.slidesPerGroup&&i.slidesPerGroupAuto&&(v=v-r.slidesPerViewDynamic("previous",!0)+1,v=Math.max(v,0))),i.rewind&&r.isBeginning){const i=r.params.virtual?.enabled&&r.virtual?r.virtual.slides.length-1:r.slides.length-1;return r.slideTo(i,e,t,n)}return i.loop&&0===r.activeIndex&&i.cssMode?(requestAnimationFrame(()=>{r.slideTo(v,e,t,n)}),!0):r.slideTo(v,e,t,n)},slideReset:function(e,t=!0,n){const r=this;if(!r.destroyed)return void 0===e&&(e=r.params.speed),r.slideTo(r.activeIndex,e,t,n)},slideToClosest:function(e,t=!0,n,r=.5){const i=this;if(i.destroyed)return;void 0===e&&(e=i.params.speed);let o=i.activeIndex;const s=Math.min(i.params.slidesPerGroupSkip,o),a=s+Math.floor((o-s)/i.params.slidesPerGroup),l=i.rtlTranslate?i.translate:-i.translate;if(l>=i.snapGrid[a]){const e=i.snapGrid[a];l-e>(i.snapGrid[a+1]-e)*r&&(o+=i.params.slidesPerGroup)}else{const e=i.snapGrid[a-1];l-e<=(i.snapGrid[a]-e)*r&&(o-=i.params.slidesPerGroup)}return o=Math.max(o,0),o=Math.min(o,i.slidesGrid.length-1),i.slideTo(o,e,t,n)},slideToClickedSlide:function(){const e=this;if(e.destroyed)return;const{params:t,slidesEl:n,clickedSlide:r,clickedIndex:o}=e;if(void 0===r||void 0===o)return;const s="auto"===t.slidesPerView?e.slidesPerViewDynamic():t.slidesPerView;let a,l=e.getSlideIndexWhenGrid(o);const c=e.isElement?"swiper-slide":`.${t.slideClass}`,u=e.grid&&e.params.grid&&e.params.grid.rows>1;if(t.loop){if(e.animating)return;a=parseInt(r.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?e.slideToLoop(a):l>(u?(e.slides.length-s)/2-(e.params.grid.rows-1):e.slides.length-s)?(e.loopFix(),l=e.getSlideIndex(d(n,`${c}[data-swiper-slide-index="${a}"]`)[0]),i(()=>{e.slideTo(l)})):e.slideTo(l)}else e.slideTo(l)}};function K({swiper:e,runCallbacks:t,direction:n,step:r}){const{activeIndex:i,previousIndex:o}=e;let s=n;s||(s=i>o?"next":i<o?"prev":"reset"),e.emit(`transition${r}`),t&&"reset"===s?e.emit(`slideResetTransition${r}`):t&&i!==o&&(e.emit(`slideChangeTransition${r}`),"next"===s?e.emit(`slideNextTransition${r}`):e.emit(`slidePrevTransition${r}`))}var X={getTranslate:function(e=(this.isHorizontal()?"x":"y")){const{params:t,rtlTranslate:n,translate:r,wrapperEl:i}=this;if(t.virtualTranslate)return n?-r:r;if(t.cssMode)return r;let o=s(i,e);return o+=this.cssOverflowAdjustment(),n&&(o=-o),o||0},setTranslate:function(e,t){const n=this,{rtlTranslate:r,params:i,wrapperEl:o,progress:s}=n;let a,l=0,c=0;n.isHorizontal()?l=r?-e:e:c=e,i.roundLengths&&(l=Math.floor(l),c=Math.floor(c)),n.previousTranslate=n.translate,n.translate=n.isHorizontal()?l:c,i.cssMode?o[n.isHorizontal()?"scrollLeft":"scrollTop"]=n.isHorizontal()?-l:-c:i.virtualTranslate||(n.isHorizontal()?l-=n.cssOverflowAdjustment():c-=n.cssOverflowAdjustment(),o.style.transform=`translate3d(${l}px, ${c}px, 0px)`);const u=n.maxTranslate()-n.minTranslate();a=0===u?0:(e-n.minTranslate())/u,a!==s&&n.updateProgress(e),n.emit("setTranslate",n.translate,t)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]},translateTo:function(e=0,t=this.params.speed,n=!0,r=!0,i){const o=this,{params:s,wrapperEl:a}=o;if(o.animating&&s.preventInteractionOnTransition)return!1;const l=o.minTranslate(),c=o.maxTranslate();let u;if(u=r&&e>l?l:r&&e<c?c:e,o.updateProgress(u),s.cssMode){const e=o.isHorizontal();return 0===t?a[e?"scrollLeft":"scrollTop"]=-u:a.scrollTo({[e?"left":"top"]:-u,behavior:"smooth"}),!0}return 0===t?(o.setTransition(0),o.setTranslate(u),n&&(o.emit("beforeTransitionStart",t,i),o.emit("transitionEnd"))):(o.setTransition(t),o.setTranslate(u),n&&(o.emit("beforeTransitionStart",t,i),o.emit("transitionStart")),o.animating||(o.animating=!0,o.onTranslateToWrapperTransitionEnd||(o.onTranslateToWrapperTransitionEnd=function(e){o&&!o.destroyed&&e.target===this&&(o.wrapperEl.removeEventListener("transitionend",o.onTranslateToWrapperTransitionEnd),o.onTranslateToWrapperTransitionEnd=null,delete o.onTranslateToWrapperTransitionEnd,o.animating=!1,n&&o.emit("transitionEnd"))}),o.wrapperEl.addEventListener("transitionend",o.onTranslateToWrapperTransitionEnd))),!0}};const J=(e,t,n)=>{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)};const Y=(e,t,n)=>{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)};var Q={updateSize:function(){const e=this;let t,n;const r=e.el;t=void 0!==e.params.width&&null!==e.params.width?e.params.width:r.clientWidth,n=void 0!==e.params.height&&null!==e.params.height?e.params.height:r.clientHeight,0===t&&e.isHorizontal()||0===n&&e.isVertical()||(t=t-parseInt(h(r,"padding-left")||"0",10)-parseInt(h(r,"padding-right")||"0",10),n=n-parseInt(h(r,"padding-top")||"0",10)-parseInt(h(r,"padding-bottom")||"0",10),Number.isNaN(t)&&(t=0),Number.isNaN(n)&&(n=0),Object.assign(e,{width:t,height:n,size:e.isHorizontal()?t:n}))},updateSlides:function(){const e=this;function t(t,n){return parseFloat(t.getPropertyValue(e.getDirectionLabel(n))||"0")}const n=e.params,{wrapperEl:r,slidesEl:i,rtlTranslate:o,wrongRTL:s}=e,a=!(!e.virtual||!n.virtual?.enabled),l=a?e.virtual.slides.length:e.slides.length,c=d(i,`.${e.params.slideClass}, swiper-slide`),f=a?e.virtual.slides.length:c.length;let p=[];const m=[],v=[],y=t=>"function"==typeof t?t.call(e):t,b=y(n.slidesOffsetBefore),w=y(n.slidesOffsetAfter),E=e.snapGrid.length,S=e.slidesGrid.length,x=e.size-b-w;let O=n.spaceBetween,T=-b,k=0,C=0;if(void 0===x)return;"string"==typeof O&&O.indexOf("%")>=0?O=parseFloat(O.replace("%",""))/100*x:"string"==typeof O&&(O=parseFloat(O)),e.virtualSize=-O-b-w,c.forEach(e=>{o?e.style.marginLeft="":e.style.marginRight="",e.style.marginBottom="",e.style.marginTop=""}),n.centeredSlides&&n.cssMode&&(u(r,"--swiper-centered-offset-before",""),u(r,"--swiper-centered-offset-after","")),n.cssMode&&(u(r,"--swiper-slides-offset-before",`${b}px`),u(r,"--swiper-slides-offset-after",`${w}px`));const A=n.grid&&n.grid.rows>1&&e.grid;A?e.grid.initSlides(c):e.grid&&e.grid.unsetSlides();let _=0;const P="auto"===n.slidesPerView&&n.breakpoints&&Object.keys(n.breakpoints).filter(e=>{const t=n.breakpoints[e];return void 0!==t?.slidesPerView}).length>0;for(let r=0;r<f;r+=1){_=0;const i=c[r];if(!i||(A&&e.grid.updateSlide(r,i,c),"none"!==h(i,"display"))){if(a&&"auto"===n.slidesPerView)n.virtual?.slidesPerViewAutoSlideSize&&(_=n.virtual.slidesPerViewAutoSlideSize),_&&i&&(n.roundLengths&&(_=Math.floor(_)),i.style[e.getDirectionLabel("width")]=`${_}px`);else if("auto"===n.slidesPerView){P&&(i.style[e.getDirectionLabel("width")]="");const r=getComputedStyle(i),o=i.style.transform,s=i.style.webkitTransform;if(o&&(i.style.transform="none"),s&&(i.style.webkitTransform="none"),n.roundLengths)_=e.isHorizontal()?g(i,"width"):g(i,"height");else{const e=t(r,"width"),n=t(r,"padding-left"),o=t(r,"padding-right"),s=t(r,"margin-left"),a=t(r,"margin-right"),l=r.getPropertyValue("box-sizing");if(l&&"border-box"===l)_=e+s+a;else{const{clientWidth:t,offsetWidth:r}=i;_=e+n+o+s+a+(r-t)}}o&&(i.style.transform=o),s&&(i.style.webkitTransform=s),n.roundLengths&&(_=Math.floor(_))}else _=(x-(n.slidesPerView-1)*O)/n.slidesPerView,n.roundLengths&&(_=Math.floor(_)),i&&(i.style[e.getDirectionLabel("width")]=`${_}px`);i&&(i.swiperSlideSize=_),v.push(_),n.centeredSlides?(T=T+_/2+k/2+O,0===k&&0!==r&&(T=T-x/2-O),0===r&&(T=T-x/2-O),Math.abs(T)<.001&&(T=0),n.roundLengths&&(T=Math.floor(T)),C%n.slidesPerGroup===0&&p.push(T),m.push(T)):(n.roundLengths&&(T=Math.floor(T)),(C-Math.min(e.params.slidesPerGroupSkip,C))%e.params.slidesPerGroup===0&&p.push(T),m.push(T),T=T+_+O),e.virtualSize+=_+O,k=_,C+=1}}if(e.virtualSize=Math.max(e.virtualSize,x)+w,o&&s&&("slide"===n.effect||"coverflow"===n.effect)&&(r.style.width=`${e.virtualSize+O}px`),n.setWrapperSize&&(r.style[e.getDirectionLabel("width")]=`${e.virtualSize+O}px`),A&&e.grid.updateWrapperSize(_,p),!n.centeredSlides){const t="auto"!==n.slidesPerView&&n.slidesPerView%1!=0,r=n.snapToSlideEdge&&!n.loop&&("auto"===n.slidesPerView||t);let i=p.length;if(r){let e;if("auto"===n.slidesPerView){e=1;let t=0;for(let n=v.length-1;n>=0&&(t+=v[n]+(n<v.length-1?O:0),t<=x);n-=1)e=v.length-n}else e=Math.floor(n.slidesPerView);i=Math.max(f-e,0)}const o=[];for(let t=0;t<p.length;t+=1){let s=p[t];n.roundLengths&&(s=Math.floor(s)),r?t<=i&&o.push(s):p[t]<=e.virtualSize-x&&o.push(s)}p=o,Math.floor(e.virtualSize-x)-Math.floor(p[p.length-1])>1&&(r||p.push(e.virtualSize-x))}if(a&&n.loop){const t=v[0]+O,r=(e.virtual.slidesBefore??0)+(e.virtual.slidesAfter??0);if(n.slidesPerGroup>1){const e=Math.ceil(r/n.slidesPerGroup),i=t*n.slidesPerGroup;for(let t=0;t<e;t+=1)p.push(p[p.length-1]+i)}for(let i=0;i<r;i+=1)1===n.slidesPerGroup&&p.push(p[p.length-1]+t),m.push(m[m.length-1]+t),e.virtualSize+=t}if(0===p.length&&(p=[0]),0!==O){const t=e.isHorizontal()&&o?"marginLeft":e.getDirectionLabel("marginRight");c.filter((e,t)=>!(n.cssMode&&!n.loop)||t!==c.length-1).forEach(e=>{e.style[t]=`${O}px`})}if(n.centeredSlides&&n.centeredSlidesBounds){let e=0;v.forEach(t=>{e+=t+(O||0)}),e-=O;const t=e>x?e-x:0;p=p.map(e=>e<=0?-b:e>t?t+w:e)}if(n.centerInsufficientSlides){let e=0;if(v.forEach(t=>{e+=t+(O||0)}),e-=O,e<x){const t=(x-e)/2;p.forEach((e,n)=>{p[n]=e-t}),m.forEach((e,n)=>{m[n]=e+t})}}if(Object.assign(e,{slides:c,snapGrid:p,slidesGrid:m,slidesSizesGrid:v}),n.centeredSlides&&n.cssMode&&!n.centeredSlidesBounds){u(r,"--swiper-centered-offset-before",-p[0]+"px"),u(r,"--swiper-centered-offset-after",e.size/2-v[v.length-1]/2+"px");const t=-e.snapGrid[0],n=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map(e=>e+t),e.slidesGrid=e.slidesGrid.map(e=>e+n)}if(f!==l&&e.emit("slidesLengthChange"),p.length!==E&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),m.length!==S&&e.emit("slidesGridLengthChange"),n.watchSlidesProgress&&e.updateSlidesOffset(),e.emit("slidesUpdated"),!(a||n.cssMode||"slide"!==n.effect&&"fade"!==n.effect)){const t=`${n.containerModifierClass}backface-hidden`,r=e.el.classList.contains(t);f<=n.maxBackfaceHiddenSlides?r||e.el.classList.add(t):r&&e.el.classList.remove(t)}},updateAutoHeight:function(e){const t=this,n=[],r=t.virtual&&t.params.virtual?.enabled;let i,o=0;"number"==typeof e?t.setTransition(e):!0===e&&t.setTransition(t.params.speed);const s=e=>r?t.slides[t.getSlideIndexByData(e)]:t.slides[e];if("auto"!==t.params.slidesPerView&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach(e=>{n.push(e)});else for(i=0;i<Math.ceil(t.params.slidesPerView);i+=1){const e=t.activeIndex+i;if(e>t.slides.length&&!r)break;const o=s(e);o&&n.push(o)}else{const e=s(t.activeIndex);e&&n.push(e)}for(i=0;i<n.length;i+=1)if(void 0!==n[i]){const e=n[i].offsetHeight;o=e>o?e:o}(o||0===o)&&(t.wrapperEl.style.height=`${o}px`)},updateSlidesOffset:function(){const e=this,t=e.slides,n=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let r=0;r<t.length;r+=1)t[r].swiperSlideOffset=(e.isHorizontal()?t[r].offsetLeft:t[r].offsetTop)-n-e.cssOverflowAdjustment()},updateSlidesProgress:function(e=this&&this.translate||0){const t=this,n=t.params,{slides:r,rtlTranslate:i,snapGrid:o}=t;if(0===r.length)return;void 0===r[0].swiperSlideOffset&&t.updateSlidesOffset();let s=-e;i&&(s=e),t.visibleSlidesIndexes=[],t.visibleSlides=[];let a=n.spaceBetween;"string"==typeof a&&a.indexOf("%")>=0?a=parseFloat(a.replace("%",""))/100*t.size:"string"==typeof a&&(a=parseFloat(a));for(let e=0;e<r.length;e+=1){const l=r[e];let c=l.swiperSlideOffset??0;n.cssMode&&n.centeredSlides&&(c-=r[0].swiperSlideOffset??0);const u=l.swiperSlideSize??0,d=(s+(n.centeredSlides?t.minTranslate():0)-c)/(u+a),f=(s-o[0]+(n.centeredSlides?t.minTranslate():0)-c)/(u+a),p=-(s-c),h=p+t.slidesSizesGrid[e],m=p>=0&&p<=t.size-t.slidesSizesGrid[e],v=p>=0&&p<t.size-1||h>1&&h<=t.size||p<=0&&h>=t.size;v&&(t.visibleSlides.push(l),t.visibleSlidesIndexes.push(e)),Y(l,v,n.slideVisibleClass),Y(l,m,n.slideFullyVisibleClass),l.progress=i?-d:d,l.originalProgress=i?-f:f}},updateProgress:function(e){const t=this;if(void 0===e){const n=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*n||0}const n=t.params,r=t.maxTranslate()-t.minTranslate();let{progress:i,isBeginning:o,isEnd:s}=t,a=t.progressLoop;const l=o,c=s;if(0===r)i=0,o=!0,s=!0;else{i=(e-t.minTranslate())/r;const n=Math.abs(e-t.minTranslate())<1,a=Math.abs(e-t.maxTranslate())<1;o=n||i<=0,s=a||i>=1,n&&(i=0),a&&(i=1)}if(n.loop){const n=t.getSlideIndexByData(0),r=t.getSlideIndexByData(t.slides.length-1),i=t.slidesGrid[n],o=t.slidesGrid[r],s=t.slidesGrid[t.slidesGrid.length-1],l=Math.abs(e);a=l>=i?(l-i)/s:(l+s-o)/s,a>1&&(a-=1)}Object.assign(t,{progress:i,progressLoop:a,isBeginning:o,isEnd:s}),(n.watchSlidesProgress||n.centeredSlides&&n.autoHeight)&&t.updateSlidesProgress(e),o&&!l&&t.emit("reachBeginning toEdge"),s&&!c&&t.emit("reachEnd toEdge"),(l&&!o||c&&!s)&&t.emit("fromEdge"),t.emit("progress",i)},updateSlidesClasses:function(){const e=this,{slides:t,params:n,slidesEl:r,activeIndex:i}=e,o=!(!e.virtual||!n.virtual?.enabled),s=e.grid&&n.grid&&n.grid.rows>1,a=e=>d(r,`.${n.slideClass}${e}, swiper-slide${e}`)[0];let l,c,u;if(o)if(n.loop){const t=e.virtual.slides;let n=i-(e.virtual.slidesBefore??0);n<0&&(n=t.length+n),n>=t.length&&(n-=t.length),l=a(`[data-swiper-slide-index="${n}"]`)}else l=a(`[data-swiper-slide-index="${i}"]`);else s?(l=t.find(e=>e.column===i),u=t.find(e=>e.column===i+1),c=t.find(e=>e.column===i-1)):l=t[i];l&&(s||(u=function(e,t){const n=[];let r=e.nextElementSibling;for(;r;)t&&!r.matches(t)||n.push(r),r=r.nextElementSibling;return n}(l,`.${n.slideClass}, swiper-slide`)[0],n.loop&&!u&&(u=t[0]),c=function(e,t){const n=[];let r=e.previousElementSibling;for(;r;)t&&!r.matches(t)||n.push(r),r=r.previousElementSibling;return n}(l,`.${n.slideClass}, swiper-slide`)[0],n.loop&&0===!c&&(c=t[t.length-1]))),t.forEach(e=>{J(e,e===l,n.slideActiveClass),J(e,e===u,n.slideNextClass),J(e,e===c,n.slidePrevClass)}),e.emitSlidesClasses()},updateActiveIndex:function(e){const t=this,n=t.rtlTranslate?t.translate:-t.translate,{snapGrid:r,params:i,activeIndex:o,realIndex:s,snapIndex:a}=t;let l,c=e;const u=e=>{const n=t.virtual.slides;let r=e-(t.virtual.slidesBefore??0);return r<0&&(r=n.length+r),r>=n.length&&(r-=n.length),r};if(void 0===c&&(c=function(e){const{slidesGrid:t,params:n}=e,r=e.rtlTranslate?e.translate:-e.translate;let i;for(let e=0;e<t.length;e+=1)void 0!==t[e+1]?r>=t[e]&&r<t[e+1]-(t[e+1]-t[e])/2?i=e:r>=t[e]&&r<t[e+1]&&(i=e+1):r>=t[e]&&(i=e);return n.normalizeSlideIndex&&(i<0||void 0===i)&&(i=0),i}(t)),r.indexOf(n)>=0)l=r.indexOf(n);else{const e=Math.min(i.slidesPerGroupSkip,c);l=e+Math.floor((c-e)/i.slidesPerGroup)}if(l>=r.length&&(l=r.length-1),c===o&&!t.params.loop)return void(l!==a&&(t.snapIndex=l,t.emit("snapIndexChange")));if(c===o&&t.params.loop&&t.virtual&&t.params.virtual?.enabled)return void(t.realIndex=u(c));const d=t.grid&&i.grid&&i.grid.rows>1;let f;if(t.virtual&&i.virtual?.enabled)f=i.loop?u(c):c;else if(d){const e=t.slides.find(e=>e.column===c);let n=parseInt(e.getAttribute("data-swiper-slide-index"),10);Number.isNaN(n)&&(n=Math.max(t.slides.indexOf(e),0)),f=Math.floor(n/i.grid.rows)}else if(t.slides[c]){const e=t.slides[c].getAttribute("data-swiper-slide-index");f=e?parseInt(e,10):c}else f=c;Object.assign(t,{previousSnapIndex:a,snapIndex:l,previousRealIndex:s,realIndex:f,previousIndex:o,activeIndex:c}),t.initialized&&A(t),t.emit("activeIndexChange"),t.emit("snapIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&(s!==f&&t.emit("realIndexChange"),t.emit("slideChange"))},updateClickedSlide:function(e,t){const n=this,r=n.params;let i=e.closest(`.${r.slideClass}, swiper-slide`);!i&&n.isElement&&t&&t.length>1&&t.includes(e)&&[...t.slice(t.indexOf(e)+1,t.length)].forEach(e=>{!i&&e.matches&&e.matches(`.${r.slideClass}, swiper-slide`)&&(i=e)});let o,s=!1;if(i)for(let e=0;e<n.slides.length;e+=1)if(n.slides[e]===i){s=!0,o=e;break}if(!i||!s)return n.clickedSlide=void 0,void(n.clickedIndex=void 0);n.clickedSlide=i,n.virtual&&n.params.virtual?.enabled?n.clickedIndex=parseInt(i.getAttribute("data-swiper-slide-index"),10):n.clickedIndex=o,r.slideToClickedSlide&&void 0!==n.clickedIndex&&n.clickedIndex!==n.activeIndex&&n.slideToClickedSlide()}};const Z={eventsEmitter:R,update:Q,translate:X,transition:{setTransition:function(e,t){const n=this;n.params.cssMode||(n.wrapperEl.style.transitionDuration=`${e}ms`,n.wrapperEl.style.transitionDelay=0===e?"0ms":""),n.emit("setTransition",e,t)},transitionStart:function(e=!0,t){const n=this,{params:r}=n;r.cssMode||(r.autoHeight&&n.updateAutoHeight(),K({swiper:n,runCallbacks:e,direction:t,step:"Start"}))},transitionEnd:function(e=!0,t){const n=this,{params:r}=n;n.animating=!1,r.cssMode||(n.setTransition(0),K({swiper:n,runCallbacks:e,direction:t,step:"End"}))}},slide:G,loop:U,grabCursor:{setGrabCursor:function(e){const t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const n="container"===t.params.touchEventsTarget?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),n.style.cursor="move",n.style.cursor=e?"grabbing":"grab",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1})},unsetGrabCursor:function(){const e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e["container"===e.params.touchEventsTarget?"el":"wrapperEl"].style.cursor="",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1}))}},events:{attachEvents:function(){const e=this,{params:t}=e;e.onTouchStart=V.bind(e),e.onTouchMove=H.bind(e),e.onTouchEnd=q.bind(e),e.onDocumentTouchStart=N.bind(e),t.cssMode&&(e.onScroll=B.bind(e)),e.onClick=I.bind(e),e.onLoad=D.bind(e),z(e,"on")},detachEvents:function(){z(this,"off")}},breakpoints:P,checkOverflow:L,classes:j},ee={};class te{static extendedDefaults;static defaults;constructor(...e){let t,n;if(1===e.length&&null!==e[0]&&"object"==typeof e[0]&&"Object"===Object.prototype.toString.call(e[0]).slice(8,-1)?n=e[0]:[t,n]=e,n||(n={}),n=c({},n),t&&!n.el&&(n.el=t),n.el&&"string"==typeof n.el&&"undefined"!=typeof document&&document.querySelectorAll(n.el).length>1){const e=[];return document.querySelectorAll(n.el).forEach(t=>{const r=c({},n,{el:t});e.push(new te(r))}),e}const r=this;r.__swiper__=!0,r.support=x(),r.device=O({userAgent:n.userAgent??void 0}),r.browser=T(),r.eventsListeners={},r.eventsAnyListeners=[],r.modules=[...r.__modules__||[]],n.modules&&Array.isArray(n.modules)&&n.modules.forEach(e=>{const t=e;"function"==typeof t&&r.modules.indexOf(t)<0&&r.modules.push(t)});const i={};r.modules.forEach(e=>{e({params:n,swiper:r,extendParams:W(n,i),on:r.on.bind(r),once:r.once.bind(r),off:r.off.bind(r),emit:r.emit.bind(r)})});const o=c({},M,i);if(r.params=c({},o,ee,n),r.originalParams=c({},r.params),r.passedParams=c({},n),r.params&&r.params.on){const e=r.params.on;Object.keys(e).forEach(t=>{const n=e[t];n&&r.on(t,n)})}return r.params&&r.params.onAny&&r.onAny(r.params.onAny),Object.assign(r,{enabled:r.params.enabled,el:t,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:()=>"horizontal"===r.params.direction,isVertical:()=>"vertical"===r.params.direction,activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:r.params.allowSlideNext,allowSlidePrev:r.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:r.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:r.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),r.emit("_swiper"),r.params.init&&r.init(),r}getDirectionLabel(e){return this.isHorizontal()?e:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[e]}isHorizontal(){return"horizontal"===this.params.direction}isVertical(){return"vertical"===this.params.direction}cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23}getSlideIndex(e){const{slidesEl:t,params:n}=this,r=m(d(t,`.${n.slideClass}, swiper-slide`)[0]);return m(e)-(r??0)}getSlideIndexByData(e){return this.getSlideIndex(this.slides.find(t=>Number(t.getAttribute("data-swiper-slide-index"))===e))}getSlideIndexWhenGrid(e){return this.grid&&this.params.grid&&this.params.grid.rows>1&&("column"===this.params.grid.fill?e=Math.floor(e/this.params.grid.rows):"row"===this.params.grid.fill&&(e%=Math.ceil(this.slides.length/this.params.grid.rows))),e}recalcSlides(){const{slidesEl:e,params:t}=this;this.slides=d(e,`.${t.slideClass}, swiper-slide`)}enable(){this.enabled||(this.enabled=!0,this.params.grabCursor&&this.setGrabCursor(),this.emit("enable"))}disable(){this.enabled&&(this.enabled=!1,this.params.grabCursor&&this.unsetGrabCursor(),this.emit("disable"))}setProgress(e,t){e=Math.min(Math.max(e,0),1);const n=this.minTranslate(),r=(this.maxTranslate()-n)*e+n;this.translateTo(r,void 0===t?0:t),this.updateActiveIndex(),this.updateSlidesClasses()}emitContainerClasses(){if(!this.params._emitClasses||!this.el)return;const e=this.el.className.split(" ").filter(e=>0===e.indexOf("swiper")||0===e.indexOf(this.params.containerModifierClass));this.emit("_containerClasses",e.join(" "))}getSlideClasses(e){return this.destroyed?"":e.className.split(" ").filter(e=>0===e.indexOf("swiper-slide")||0===e.indexOf(this.params.slideClass)).join(" ")}emitSlidesClasses(){if(!this.params._emitClasses||!this.el)return;const e=[];this.slides.forEach(t=>{const n=this.getSlideClasses(t);e.push({slideEl:t,classNames:n}),this.emit("_slideClass",t,n)}),this.emit("_slideClasses",e)}slidesPerViewDynamic(e="current",t=!1){const{params:n,slides:r,slidesGrid:i,slidesSizesGrid:o,size:s,activeIndex:a}=this;let l=1;if("number"==typeof n.slidesPerView)return n.slidesPerView;if(!s)return l;if(n.centeredSlides){let e=r[a]?Math.ceil(r[a].swiperSlideSize??0):0,t=!1;for(let n=a+1;n<r.length;n+=1)r[n]&&!t&&(e+=Math.ceil(r[n].swiperSlideSize??0),l+=1,e>s&&(t=!0));for(let n=a-1;n>=0;n-=1)r[n]&&!t&&(e+=r[n].swiperSlideSize??0,l+=1,e>s&&(t=!0))}else if("current"===e)for(let e=a+1;e<r.length;e+=1){(t?i[e]+o[e]-i[a]<s:i[e]-i[a]<s)&&(l+=1)}else for(let e=a-1;e>=0;e-=1){i[a]-i[e]<s&&(l+=1)}return l}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:t,params:n}=e;function r(){const t=e.rtlTranslate?-1*e.translate:e.translate,n=Math.min(Math.max(t,e.maxTranslate()),e.minTranslate());e.setTranslate(n),e.updateActiveIndex(),e.updateSlidesClasses()}let i;if(n.breakpoints&&e.setBreakpoint(),[...e.el.querySelectorAll('[loading="lazy"]')].forEach(t=>{t.complete&&k(e,t)}),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),n.freeMode?.enabled&&!n.cssMode)r(),n.autoHeight&&e.updateAutoHeight();else{if(("auto"===n.slidesPerView||n.slidesPerView>1)&&e.isEnd&&!n.centeredSlides){const t=e.virtual&&n.virtual?.enabled?e.virtual.slides.length:e.slides.length;i=e.slideTo(t-1,0,!1,!0)}else i=e.slideTo(e.activeIndex,0,!1,!0);i||r()}n.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,t=!0){const n=this,r=n.params.direction;return e||(e="horizontal"===r?"vertical":"horizontal"),e===r||"horizontal"!==e&&"vertical"!==e||(n.el.classList.remove(`${n.params.containerModifierClass}${r}`),n.el.classList.add(`${n.params.containerModifierClass}${e}`),n.emitContainerClasses(),n.params.direction=e,n.slides.forEach(t=>{"vertical"===e?t.style.width="":t.style.height=""}),n.emit("changeDirection"),t&&n.update()),n}changeLanguageDirection(e){const t=this;t.rtl&&"rtl"===e||!t.rtl&&"ltr"===e||(t.rtl="rtl"===e,t.rtlTranslate="horizontal"===t.params.direction&&t.rtl,t.rtl?(t.el.classList.add(`${t.params.containerModifierClass}rtl`),t.el.dir="rtl"):(t.el.classList.remove(`${t.params.containerModifierClass}rtl`),t.el.dir="ltr"),t.update())}mount(e){const t=this;if(t.mounted)return!0;if("undefined"==typeof document)return!1;const n=e??t.params.el;let r=null;if("string"==typeof n?r=document.querySelector(n):n instanceof HTMLElement&&(r=n),!r)return!1;r.swiper=t;const i=r.parentNode;i&&i.host&&i.host.nodeName===t.params.swiperElementNodeName.toUpperCase()&&(t.isElement=!0);const o=()=>`.${(t.params.wrapperClass||"").trim().split(" ").join(".")}`;let s=(()=>{if(r&&r.shadowRoot){return r.shadowRoot.querySelector(o())}return d(r,o())[0]})();!s&&t.params.createElements&&(s=p("div",t.params.wrapperClass),r.append(s),d(r,`.${t.params.slideClass}`).forEach(e=>{s.append(e)}));const a=t.isElement?r.parentNode.host:null;return Object.assign(t,{el:r,wrapperEl:s,slidesEl:t.isElement&&!a.slideSlots?a:s,hostEl:t.isElement?a:r,mounted:!0,rtl:"rtl"===r.dir.toLowerCase()||"rtl"===h(r,"direction"),rtlTranslate:"horizontal"===t.params.direction&&("rtl"===r.dir.toLowerCase()||"rtl"===h(r,"direction")),wrongRTL:"-webkit-box"===h(s,"display")}),!0}init(e){const t=this;if(t.initialized)return t;if(!1===t.mount(e))return t;t.emit("beforeInit"),t.params.breakpoints&&t.setBreakpoint(),t.addClasses(),t.updateSize(),t.updateSlides(),t.params.watchOverflow&&t.checkOverflow(),t.params.grabCursor&&t.enabled&&t.setGrabCursor(),t.params.loop&&t.virtual&&t.params.virtual?.enabled?t.slideTo((t.params.initialSlide??0)+(t.virtual.slidesBefore??0),0,t.params.runCallbacksOnInit,!1,!0):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit,!1,!0),t.params.loop&&t.loopCreate(void 0,!0),t.attachEvents();const n=[...t.el.querySelectorAll('[loading="lazy"]')];return t.isElement&&n.push(...t.hostEl.querySelectorAll('[loading="lazy"]')),n.forEach(e=>{e.complete?k(t,e):e.addEventListener("load",e=>{k(t,e.target)})}),A(t),t.initialized=!0,A(t),t.emit("init"),t.emit("afterInit"),t}destroy(e=!0,t=!0){const n=this,{params:r,el:i,wrapperEl:o,slides:s}=n;return void 0===n.params||n.destroyed||(n.emit("beforeDestroy"),n.initialized=!1,n.detachEvents(),r.loop&&n.loopDestroy(),t&&(n.removeClasses(),i&&"string"!=typeof i&&i.removeAttribute("style"),o&&o.removeAttribute("style"),s&&s.length&&s.forEach(e=>{e.classList.remove(r.slideVisibleClass,r.slideFullyVisibleClass,r.slideActiveClass,r.slideNextClass,r.slidePrevClass),e.removeAttribute("style"),e.removeAttribute("data-swiper-slide-index")})),n.emit("destroy"),Object.keys(n.eventsListeners).forEach(e=>{n.off(e)}),!1!==e&&(n.el&&"string"!=typeof n.el&&(n.el.swiper=null),a=n,Object.keys(a).forEach(e=>{try{a[e]=null}catch{}try{delete a[e]}catch{}})),n.destroyed=!0),null;var a}static extendDefaults(e){c(ee,e)}static installModule(e){te.prototype.__modules__||(te.prototype.__modules__=[]);const t=te.prototype.__modules__;"function"==typeof e&&t.indexOf(e)<0&&t.push(e)}static use(e){return Array.isArray(e)?(e.forEach(e=>te.installModule(e)),te):(te.installModule(e),te)}}Object.defineProperty(te,"extendedDefaults",{get:()=>ee}),Object.defineProperty(te,"defaults",{get:()=>M});const ne=Z,re=te.prototype;function ie(e,t,n,r){const i=n??{},o=t??{};return e.params.createElements&&Object.keys(r).forEach(t=>{if(!i[t]&&!0===i.auto){let n=d(e.el,`.${r[t]}`)[0];n||(n=p("div",r[t]),n.className=r[t],e.el.append(n)),i[t]=n,o[t]=n}}),i}Object.keys(ne).forEach(e=>{const t=ne[e];Object.keys(t).forEach(e=>{re[e]=t[e]})}),te.use([({swiper:e,on:t,emit:n})=>{let r=null,i=null;const o=()=>{e&&!e.destroyed&&e.initialized&&(n("beforeResize"),n("resize"))},s=()=>{e&&!e.destroyed&&e.initialized&&n("orientationchange")};t("init",()=>{e.params.resizeObserver&&void 0!==window.ResizeObserver?e&&!e.destroyed&&e.initialized&&(r=new ResizeObserver(t=>{i=window.requestAnimationFrame(()=>{const{width:n,height:r}=e;let i=n,s=r;t.forEach(({contentBoxSize:t,contentRect:n,target:r})=>{if(r&&r!==e.el)return;const o=Array.isArray(t)?t[0]:t;i=n?n.width:o.inlineSize,s=n?n.height:o.blockSize}),i===n&&s===r||o()})}),r.observe(e.el)):(window.addEventListener("resize",o),window.addEventListener("orientationchange",s))}),t("destroy",()=>{i&&window.cancelAnimationFrame(i),r&&r.unobserve&&e.el&&(r.unobserve(e.el),r=null),window.removeEventListener("resize",o),window.removeEventListener("orientationchange",s)})},({swiper:e,extendParams:t,on:n})=>{const r=[],i=(t,n={})=>{const i=window.MutationObserver||window.WebkitMutationObserver;if(!i)return;const o=new i(t=>{if(e.__preventObserver__)return;if(1===t.length)return void e.emit("observerUpdate",t[0]);const n=function(){e.emit("observerUpdate",t[0])};window.requestAnimationFrame?window.requestAnimationFrame(n):window.setTimeout(n,0)});o.observe(t,{attributes:void 0===n.attributes||n.attributes,childList:e.isElement||void 0===n.childList||n.childList,characterData:void 0===n.characterData||n.characterData}),r.push(o)};t({observer:!1,observeParents:!1,observeSlideChildren:!1}),n("init",()=>{if(e.params.observer){if(e.params.observeParents){const t=v(e.hostEl);for(let e=0;e<t.length;e+=1)i(t[e])}i(e.hostEl,{childList:e.params.observeSlideChildren}),i(e.wrapperEl,{attributes:!1})}}),n("destroy",()=>
25{r.forEach(e=>{e.disconnect()}),r.splice(0,r.length)})}]);const oe='<svg class="swiper-navigation-icon" width="11" height="20" viewBox="0 0 11 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0.38296 20.0762C0.111788 19.805 0.111788 19.3654 0.38296 19.0942L9.19758 10.2796L0.38296 1.46497C0.111788 1.19379 0.111788 0.754138 0.38296 0.482966C0.654131 0.211794 1.09379 0.211794 1.36496 0.482966L10.4341 9.55214C10.8359 9.9539 10.8359 10.6053 10.4341 11.007L1.36496 20.0762C1.09379 20.3474 0.654131 20.3474 0.38296 20.0762Z" fill="currentColor"/></svg>',se=({swiper:e,extendParams:t,on:n,emit:r})=>{function i(){return e.params.navigation}function o(t){let n;return t&&"string"==typeof t&&e.isElement&&(n=e.el.querySelector(t)||e.hostEl.querySelector(t),n)?n:(t&&("string"==typeof t&&(n=[...document.querySelectorAll(t)]),e.params.uniqueNavElements&&"string"==typeof t&&n&&n.length>1&&1===e.el.querySelectorAll(t).length?n=e.el.querySelector(t):n&&1===n.length&&(n=n[0])),t&&!n?t:n)}function s(t,n){const r=i();y(t).forEach(t=>{t&&(t.classList[n?"add":"remove"](...r.disabledClass.split(" ")),"BUTTON"===t.tagName&&(t.disabled=n),e.params.watchOverflow&&e.enabled&&t.classList[e.isLocked?"add":"remove"](r.lockClass))})}function a(){const{nextEl:t,prevEl:n}=e.navigation;if(e.params.loop)return s(n,!1),void s(t,!1);s(n,e.isBeginning&&!e.params.rewind),s(t,e.isEnd&&!e.params.rewind)}function l(t){t.preventDefault(),(!e.isBeginning||e.params.loop||e.params.rewind)&&(e.slidePrev(),r("navigationPrev"))}function c(t){t.preventDefault(),(!e.isEnd||e.params.loop||e.params.rewind)&&(e.slideNext(),r("navigationNext"))}function u(){e.params.navigation=ie(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"});const t=i();if(!t.nextEl&&!t.prevEl)return;const n=o(t.nextEl),r=o(t.prevEl);Object.assign(e.navigation,{nextEl:n,prevEl:r});const s=y(n),a=y(r),u=(n,r)=>{if(n){if(t.addIcons&&n.matches(".swiper-button-next,.swiper-button-prev")&&!n.querySelector("svg")){const e=document.createElement("div");b(e,oe);const t=e.querySelector("svg");t&&n.appendChild(t),e.remove()}n.addEventListener("click","next"===r?c:l)}!e.enabled&&n&&n.classList.add(...t.lockClass.split(" "))};s.forEach(e=>u(e,"next")),a.forEach(e=>u(e,"prev"))}function d(){const t=i(),{nextEl:n,prevEl:r}=e.navigation,o=y(n),s=y(r),a=(e,n)=>{e.removeEventListener("click","next"===n?c:l),e.classList.remove(...t.disabledClass.split(" "))};o.forEach(e=>
25a(e,"next")),s.forEach(e=>a(e,"prev"))}t({navigation:{nextEl:null,prevEl:null,addIcons:!0,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),e.navigation={nextEl:null,prevEl:null,arrowSvg:oe},n("init",()=>{!1===i().enabled?f():(u(),a())}),n("toEdge fromEdge lock unlock",()=>{a()}),n("destroy",()=>{d()}),n("enable disable",()=>{const t=i(),{nextEl:n,prevEl:r}=e.navigation,o=y(n),s=y(r);e.enabled?a():[...o,...s].filter(e=>!!e).forEach(e=>e.classList.add(t.lockClass))}),n("click",(t,n)=>{const o=i(),{nextEl:s,prevEl:a}=e.navigation,l=y(s),c=y(a),u=n.target;let d=c.includes(u)||l.includes(u);if(e.isElement&&!d){const e=n.composedPath?n.composedPath():[];e.length&&(d=e.find(e=>l.includes(e)||c.includes(e)))}if(o.hideOnClick&&!d){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===u||e.pagination.el.contains(u)))return;let t;l.length?t=l[0].classList.contains(o.hiddenClass):c.length&&(t=c[0].classList.contains(o.hiddenClass)),r(!0===t?"navigationShow":"navigationHide"),[...l,...c].filter(e=>!!e).forEach(e=>e.classList.toggle(o.hiddenClass))}});const f=()=>{const t=i();e.el.classList.add(...t.navigationDisabledClass.split(" ")),d()};Object.assign(e.navigation,{enable:()=>{const t=i();e.el.classList.remove(...t.navigationDisabledClass.split(" ")),u(),a()},disable:f,update:a,init:u,destroy:d})};function ae(e=""){return`.${e.trim().replace(/([.:!+/()[\]#>~*^$|=,'"@{}\\])/g,"\\$1").replace(/ /g,".")}`}const le=e=>{if((e=>!!e.virtual&&!!e.params.virtual?.enabled)(e))return e.virtual.slides.length;const t=e.params.grid?.rows;return e.grid&&t&&t>1?e.slides.length/Math.ceil(t):e.slides.length},ce=({swiper:e,extendParams:t,on:n,emit:r})=>{const i="swiper-pagination";let o;t({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:e=>e,formatFractionTotal:e=>e,bulletClass:`${i}-bullet`,bulletActiveClass:`${i}-bullet-active`,modifierClass:`${i}-`,currentClass:`${i}-current`,totalClass:`${i}-total`,hiddenClass:`${i}-hidden`,progressbarFillClass:`${i}-progressbar-fill`,progressbarOppositeClass:`${i}-progressbar-opposite`,clickableClass:`${i}-clickable`,lockClass:`${i}-lock`,horizontalClass:`${i}-horizontal`,verticalClass:`${i}-vertical`,paginationDisabledClass:`${i}-disabled`}}),e.pagination={el:null,bullets:[]};let s=0;function a(){return e.params.pagination}function l(){return!a().el||!e.pagination.el||Array.isArray(e.pagination.el)&&0===e.pagination.el.length}function c(e,t){const{bulletActiveClass:n}=a();if(!e)return;let r=e[("prev"===t?"previous":"next")+"ElementSibling"];r&&(r.classList.add(`${n}-${t}`),r=r[("prev"===t?"previous":"next")+"ElementSibling"],r&&r.classList.add(`${n}-${t}-${t}`))}function u(t){const n=t.target.closest(ae(a().bulletClass));if(!n)return;t.preventDefault();const r=(m(n)??0)*(e.params.slidesPerGroup??1);if(e.params.loop){if(e.realIndex===r)return;const t=(i=e.realIndex,o=r,s=e.slides.length,(o%=s)===1+(i%=s)?"next":o===i-1?"previous":void 0);"next"===t?e.slideNext():"previous"===t?e.slidePrev():e.slideToLoop(r)}else e.slideTo(r);var i,o,s}function d(){const t=e.rtl,n=a();if(l())return;const i=y(e.pagination.el);let u,d;const f=le(e),p=e.params.loop?Math.ceil(f/(e.params.slidesPerGroup??1)):e.snapGrid.length;if(e.params.loop?(d=e.previousRealIndex||0,u=(e.params.slidesPerGroup??1)>1?Math.floor(e.realIndex/(e.params.slidesPerGroup??1)):e.realIndex):void 0!==e.snapIndex?(u=e.snapIndex,d=e.previousSnapIndex):(d=e.previousIndex||0,u=e.activeIndex||0),"bullets"===n.type&&e.pagination.bullets&&e.pagination.bullets.length>0){const r=e.pagination.bullets;let a=0,l=0,f=0;if(n.dynamicBullets){o=g(r[0],e.isHorizontal()?"width":"height");const t=e.isHorizontal()?"width":"height";i.forEach(e=>{e.style[t]=(o??0)*(n.dynamicMainBullets+4)+"px"}),n.dynamicMainBullets>1&&void 0!==d&&(s+=u-(d||0),s>n.dynamicMainBullets-1?s=n.dynamicMainBullets-1:s<0&&(s=0)),a=Math.max(u-s,0),l=a+(Math.min(r.length,n.dynamicMainBullets)-1),f=(l+a)/2}
25if(r.forEach(e=>{const t=["","-next","-next-next","-prev","-prev-prev","-main"].map(e=>`${n.bulletActiveClass}${e}`).flatMap(e=>"string"==typeof e&&e.includes(" ")?e.split(" "):[e]);e.classList.remove(...t)}),i.length>1)r.forEach(t=>{const r=m(t);r===u?t.classList.add(...n.bulletActiveClass.split(" ")):e.isElement&&t.setAttribute("part","bullet"),n.dynamicBullets&&void 0!==r&&(r>=a&&r<=l&&t.classList.add(...`${n.bulletActiveClass}-main`.split(" ")),r===a&&c(t,"prev"),r===l&&c(t,"next"))});else{const t=r[u];if(t&&t.classList.add(...n.bulletActiveClass.split(" ")),e.isElement&&r.forEach((e,t)=>{e.setAttribute("part",t===u?"bullet-active":"bullet")}),n.dynamicBullets){const e=r[a],t=r[l];for(let e=a;e<=l;e+=1)r[e]&&r[e].classList.add(...`${n.bulletActiveClass}-main`.split(" "));c(e,"prev"),c(t,"next")}}if(n.dynamicBullets){const i=Math.min(r.length,n.dynamicMainBullets+4),s=((o??0)*i-(o??0))/2-f*(o??0),a=t?"right":"left",l=e.isHorizontal()?a:"top";r.forEach(e=>{e.style[l]=`${s}px`})}}i.forEach((t,i)=>{if("fraction"===n.type&&(t.querySelectorAll(ae(n.currentClass)).forEach(e=>{e.textContent=String(n.formatFractionCurrent(u+1))}),t.querySelectorAll(ae(n.totalClass)).forEach(e=>{e.textContent=String(n.formatFractionTotal(p))})),"progressbar"===n.type){let r;r=n.progressbarOpposite?e.isHorizontal()?"vertical":"horizontal":e.isHorizontal()?"horizontal":"vertical";const i=(u+1)/p;let o=1,s=1;"horizontal"===r?o=i:s=i,t.querySelectorAll(ae(n.progressbarFillClass)).forEach(t=>{t.style.transform=`translate3d(0,0,0) scaleX(${o}) scaleY(${s})`,t.style.transitionDuration=`${e.params.speed}ms`})}"custom"===n.type&&n.renderCustom?(b(t,n.renderCustom(e,u+1,p)),0===i&&r("paginationRender",t)):(0===i&&r("paginationRender",t),r("paginationUpdate",t)),e.params.watchOverflow&&e.enabled&&t.classList[e.isLocked?"add":"remove"](n.lockClass)})}function f(){const t=a();if(l())return;const n=le(e),i=y(e.pagination.el);let o="";if("bullets"===t.type){let r=e.params.loop?Math.ceil(n/(e.params.slidesPerGroup??1)):e.snapGrid.length;e.params.freeMode&&(e=>!!e.params.freeMode?.enabled)(e)&&r>n&&(r=n);for(let n=0;n<r;n+=1)t.renderBullet?o+=t.renderBullet.call(e,n,t.bulletClass):o+=`<${t.bulletElement} ${e.isElement?'part="bullet"':""} class="${t.bulletClass}"></${t.bulletElement}>`}"fraction"===t.type&&(o=t.renderFraction?t.renderFraction.call(e,t.currentClass,t.totalClass):`<span class="${t.currentClass}"></span> / <span class="${t.totalClass}"></span>`),"progressbar"===t.type&&(o=t.renderProgressbar?t.renderProgressbar.call(e,t.progressbarFillClass):`<span class="${t.progressbarFillClass}"></span>`),e.pagination.bullets=[],i.forEach(n=>{"custom"!==t.type&&b(n,o||""),"bullets"===t.type&&e.pagination.bullets.push(...Array.from(n.querySelectorAll(ae(t.bulletClass))))}),"custom"!==t.type&&r("paginationRender",i[0])}function p(){e.params.pagination=ie(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});const t=a();if(!t.el)return;let n;if("string"==typeof t.el&&e.isElement&&(n=e.el.querySelector(t.el)),n||"string"!=typeof t.el||(n=[...document.querySelectorAll(t.el)]),n||(n=t.el),!n||Array.isArray(n)&&0===n.length)return;if(e.params.uniqueNavElements&&"string"==typeof t.el&&Array.isArray(n)&&n.length>1&&(n=[...e.el.querySelectorAll(t.el)],n.length>1)){const t=n.find(t=>v(t,".swiper")[0]===e.el);t&&(n=t)}Array.isArray(n)&&1===n.length&&(n=n[0]),Object.assign(e.pagination,{el:n});y(n).forEach(n=>{"bullets"===t.type&&t.clickable&&n.classList.add(...(t.clickableClass||"").split(" ")),n.classList.add(t.modifierClass+t.type),n.classList.add(e.isHorizontal()?t.horizontalClass:t.verticalClass),"bullets"===t.type&&t.dynamicBullets&&(n.classList.add(`${t.modifierClass}${t.type}-dynamic`),s=0,t.dynamicMainBullets<1&&(t.dynamicMainBullets=1)),"progressbar"===t.type&&t.progressbarOpposite&&n.classList.add(t.progressbarOppositeClass),t.clickable&&n.addEventListener("click",u),e.enabled||n.classList.add(t.lockClass)})}function h(){const t=a();if(l())return;const n=e.pagination.el;if(n){y(n).forEach(n=>{n.classList.remove(t.hiddenClass),n.classList.remove(t.modifierClass+t.type),n.classList.remove(e.isHorizontal()?t.horizontalClass:t.verticalClass),t.clickable&&(n.classList.remove(...(t.clickableClass||"").split(" ")),n.removeEventListener("click",u))})}
25e.pagination.bullets&&e.pagination.bullets.forEach(e=>e.classList.remove(...t.bulletActiveClass.split(" ")))}n("changeDirection",()=>{if(!e.pagination||!e.pagination.el)return;const t=a();y(e.pagination.el).forEach(n=>{n.classList.remove(t.horizontalClass,t.verticalClass),n.classList.add(e.isHorizontal()?t.horizontalClass:t.verticalClass)})}),n("init",()=>{!1===a().enabled?w():(p(),f(),d())}),n("activeIndexChange",()=>{void 0===e.snapIndex&&d()}),n("snapIndexChange",()=>{d()}),n("snapGridLengthChange",()=>{f(),d()}),n("destroy",()=>{h()}),n("enable disable",()=>{const{el:t}=e.pagination;if(t){const n=a();y(t).forEach(t=>t.classList[e.enabled?"remove":"add"](n.lockClass))}}),n("lock unlock",()=>{d()}),n("click",(t,n)=>{const i=n.target,o=y(e.pagination.el),s=a();if(s.el&&s.hideOnClick&&o&&o.length>0&&!i.classList.contains(s.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&i===e.navigation.nextEl||e.navigation.prevEl&&i===e.navigation.prevEl))return;const t=o[0].classList.contains(s.hiddenClass);r(!0===t?"paginationShow":"paginationHide"),o.forEach(e=>e.classList.toggle(s.hiddenClass))}});const w=()=>{const t=a();e.el.classList.add(t.paginationDisabledClass);const{el:n}=e.pagination;if(n){y(n).forEach(e=>e.classList.add(t.paginationDisabledClass))}h()};Object.assign(e.pagination,{enable:()=>{const t=a();e.el.classList.remove(t.paginationDisabledClass);const{el:n}=e.pagination;if(n){y(n).forEach(e=>e.classList.remove(t.paginationDisabledClass))}p(),f(),d()},disable:w,render:f,update:d,init:p,destroy:h})},ue=({swiper:e,extendParams:t,on:n,emit:r,params:i})=>{function o(){return e.params.autoplay}e.autoplay={running:!1,paused:!1,timeLeft:0},t({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});const s="object"==typeof i.autoplay&&i.autoplay&&"number"==typeof i.autoplay.delay?i.autoplay.delay:3e3;let a,l,c,u=s,d=s,f=0,p=(new Date).getTime(),h=!1,m=!1,v=!1,g=!1,y=!1;function b(t){if(!e||e.destroyed||!e.wrapperEl)return;if(t.target!==e.wrapperEl)return;e.wrapperEl.removeEventListener("transitionend",b);const n=t.detail;y||n&&n.bySwiperTouchMove||k()}const w=()=>{if(e.destroyed||!e.autoplay.running)return;e.autoplay.paused?h=!0:h&&(d=f,h=!1);const t=e.autoplay.paused?f:p+d-(new Date).getTime();e.autoplay.timeLeft=t,r("autoplayTimeLeft",t,t/u),l=requestAnimationFrame(()=>{w()})},E=()=>
25{let t=o().delay;const n=(()=>{let t;const n=!!e.params.virtual?.enabled;if(t=e.virtual&&n?e.slides.find(e=>e.classList.contains("swiper-slide-active")):e.slides[e.activeIndex],!t)return;const r=t.getAttribute("data-swiper-autoplay");return null!=r?parseInt(r,10):void 0})();return"number"==typeof n&&!Number.isNaN(n)&&n>0&&(t=n),t},S=t=>{if(e.destroyed||!e.autoplay.running)return 0;void 0!==l&&cancelAnimationFrame(l),w();let n=t;void 0===n&&(n=E(),u=n,d=n),f=n;const i=e.params.speed,s=()=>{if(!e||e.destroyed)return;const t=o();t.reverseDirection?!e.isBeginning||e.params.loop||e.params.rewind?(e.slidePrev(i,!0,!0),r("autoplay")):t.stopOnLastSlide||(e.slideTo(e.slides.length-1,i,!0,!0),r("autoplay")):!e.isEnd||e.params.loop||e.params.rewind?(e.slideNext(i,!0,!0),r("autoplay")):t.stopOnLastSlide||(e.slideTo(0,i,!0,!0),r("autoplay")),e.params.cssMode&&(p=(new Date).getTime(),requestAnimationFrame(()=>{S()}))};return n>0?(void 0!==a&&clearTimeout(a),a=setTimeout(()=>{s()},n)):requestAnimationFrame(()=>{s()}),n},x=()=>(p=(new Date).getTime(),e.autoplay.running=!0,S(),r("autoplayStart"),!0),O=()=>(e.autoplay.running=!1,void 0!==a&&clearTimeout(a),void 0!==l&&cancelAnimationFrame(l),r("autoplayStop"),!0),T=(t,n)=>{if(e.destroyed||!e.autoplay.running)return;void 0!==a&&clearTimeout(a),t||(g=!0);const i=()=>{r("autoplayPause"),o().waitForTransition?e.wrapperEl.addEventListener("transitionend",b):k()};if(e.autoplay.paused=!0,n)return void i();const s=f||o().delay;f=s-((new Date).getTime()-p),e.isEnd&&f<0&&!e.params.loop||(f<0&&(f=0),i())},k=()=>{e.isEnd&&f<0&&!e.params.loop||e.destroyed||!e.autoplay.running||(p=(new Date).getTime(),g?(g=!1,S(f)):S(),e.autoplay.paused=!1,r("autoplayResume"))},C=()=>{!e.destroyed&&e.autoplay.running&&("hidden"===document.visibilityState&&(g=!0,T(!0)),"visible"===document.visibilityState&&k())},A=t=>{"mouse"===t.pointerType&&(g=!0,y=!0,e.animating||e.autoplay.paused||T(!0))},_=t=>{"mouse"===t.pointerType&&(y=!1,e.autoplay.paused&&k())};n("init",()=>{o().enabled&&(o().pauseOnMouseEnter&&(e.el.addEventListener("pointerenter",A),e.el.addEventListener("pointerleave",_)),document.addEventListener("visibilitychange",C),x())}),n("destroy",()=>{e.el&&"string"!=typeof e.el&&(e.el.removeEventListener("pointerenter",A),e.el.removeEventListener("pointerleave",_)),document.removeEventListener("visibilitychange",C),e.autoplay.running&&O()}),n("_freeModeStaticRelease",()=>{(v||g)&&k()}),n("_freeModeNoMomentumRelease",()=>{o().disableOnInteraction?O():T(!0,!0)}),n("beforeTransitionStart",(t,n,r)=>{!e.destroyed&&e.autoplay.running&&(r||!o().disableOnInteraction?T(!0,!0):O())}),n("sliderFirstMove",()=>{!e.destroyed&&e.autoplay.running&&(o().disableOnInteraction?O():(m=!0,v=!1,g=!1,c=setTimeout(()=>{g=!0,v=!0,T(!0)},200)))}),n("touchEnd",()=>{if(!e.destroyed&&e.autoplay.running&&m){if(void 0!==c&&clearTimeout(c),void 0!==a&&clearTimeout(a),o().disableOnInteraction)return v=!1,void(m=!1);v&&e.params.cssMode&&k(),v=!1,m=!1}}),n("slideChange",()=>{!e.destroyed&&e.autoplay.running&&e.autoplay.paused&&(f=E(),u=E())}),Object.assign(e.autoplay,{start:x,stop:O,pause:T,resume:k})};function de(e){return de="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},de(e)}function fe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,pe(r.key),r)}}function pe(e){var t=function(e,t){if("object"!=de(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=de(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==de(t)?t:t+""}function he(e,t,n){return t=ve(t),function(e,t){if(t&&("object"==de(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,me()?Reflect.construct(t,n||[],ve(e).constructor):t.apply(e,n))}function me(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(me=function(){return!!e})()}function ve(e){return ve=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ve(e)}function ge(e,t){return ge=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ge(e,t)}var ye=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=he(this,t,arguments)).swiper=null,e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ge(e,t)}(t,e),n=t,(r=[{key:"connect",value:function(){this.initializeSwiper()}},{key:"disconnect",value:function(){this.swiper&&(this.swiper.destroy(!0,!0),this.swiper=null)}},{key:"initializeSwiper",value:function(){var e=this,t={modules:[se,ce,ue],loop:!0,pagination:{el:this.paginationTarget,clickable:!0},navigation:{nextEl:this.nextButtonTarget,prevEl:this.prevButtonTarget},autoplay:{delay:5e3,disableOnInteraction:!1}};this.fadeImagesValue&&(t.on={slideChangeTransitionEnd:function(){e.updateFadeImages()}}),this.swiper=new te(this.element,t)}},{key:"updateFadeImages",value:function(){var e=this;this.swiper&&document.querySelectorAll(".fade-image").forEach(function(t,n){t.classList.toggle("opacity-100",n===e.swiper.realIndex),t.classList.toggle("opacity-0",n!==e.swiper.realIndex)})}}])&&fe(n.prototype,r),i&&fe(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(r.xI);
25ye.targets=["pagination","prevButton","nextButton"],ye.values={fadeImages:{type:Boolean,default:!1}};const be=ye},4971(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,o(r.key),r)}}function o(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:t+""}function s(e,t,n){return t=l(t),function(e,t){if(t&&("object"==r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,a()?Reflect.construct(t,n||[],l(e).constructor):t.apply(e,n))}function a(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(a=function(){return!!e})()}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}function c(e,t){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},c(e,t)}n.r(t);var u=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=s(this,t,arguments)).placeholder="",e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c(e,t)}(t,e),n=t,(r=[{key:"connect",value:function(){this.placeholder=this.frameTarget.innerHTML}},{key:"open",value:function(){this.load(),this.dialogTarget.showModal(),document.body.classList.add("overflow-hidden","blur-sm")}},{key:"close",value:function(){this.dialogTarget.close()}},{key:"retry",value:function(){this.load()}},{key:"clickOutside",value:function(e){e.target===this.dialogTarget&&this.close()}},{key:"responseError",value:function(e){e.detail.fetchResponse.succeeded||(e.preventDefault(),this.showError())}},{key:"frameMissing",value:function(e){e.preventDefault(),this.showError()}},{key:"requestError",value:function(){this.showError()}},{key:"onClose",value:function(){this.reset(),document.body.classList.remove("overflow-hidden","blur-sm")}},{key:"load",value:function(){this.reset(),this.frameTarget.src=this.breakdownUrlValue}},{key:"showError",value:function(){this.reset(),this.frameTarget.innerHTML=this.errorTemplateTarget.innerHTML}},{key:"reset",value:function(){this.frameTarget.removeAttribute("src"),this.frameTarget.removeAttribute("complete"),this.frameTarget.innerHTML=this.placeholder}}])&&i(n.prototype,r),o&&i(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(n(2891).xI);u.targets=["dialog","frame","errorTemplate"],u.values={breakdownUrl:String};const d=u;n.d(t,["default",0,d])},4379(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,o(r.key),r)}}function o(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:t+""}function s(e,t,n){return t=l(t),function(e,t){if(t&&("object"==r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,a()?Reflect.construct(t,n||[],l(e).constructor):t.apply(e,n))}function a(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(a=function(){return!!e})()}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}
25function c(e,t){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},c(e,t)}n.r(t);var u=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=s(this,t,arguments)).index=0,e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c(e,t)}(t,e),n=t,(r=[{key:"connect",value:function(){this.index=this.containerTarget.querySelectorAll("[data-override-row]").length,this.updateEmptyMessage()}},{key:"add",value:function(e){var t;e.preventDefault();var n=(null!==(t=this.prototypeTarget.dataset.prototype)&&void 0!==t?t:"").replace(/__name__/g,String(this.index));this.containerTarget.insertAdjacentHTML("beforeend",n),this.index++,this.updateEmptyMessage()}},{key:"remove",value:function(e){e.preventDefault();var t=e.currentTarget.closest("[data-override-row]");t&&t.remove(),this.updateEmptyMessage()}},{key:"updateEmptyMessage",value:function(){var e=this.containerTarget.querySelectorAll("[data-override-row]").length>0,t=this.element.querySelector("[data-empty-message]");t instanceof HTMLElement&&(t.hidden=e)}}])&&i(n.prototype,r),o&&i(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(n(2891).xI);u.targets=["container","prototype"];const d=u;n.d(t,["default",0,d])},5207(e,t,n){"use strict";var r=n(2891);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function o(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function a(n,r,i,o){var a=r&&r.prototype instanceof c?r:c,u=Object.create(a.prototype);return s(u,"_invoke",function(n,r,i){var o,s,a,c=0,u=i||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return o=t,s=0,a=e,f.n=n,l}};function p(n,r){for(s=n,a=r,t=0;!d&&c&&!i&&t<u.length;t++){var i,o=u[t],p=f.p,h=o[2];n>3?(i=h===r)&&(a=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=e):o[0]<=p&&((i=n<2&&p<o[1])?(s=0,f.v=r,f.n=o[1]):p<h&&(i=n<3||o[0]>r||r>h)&&(o[4]=n,o[5]=r,f.n=h,s=0))}if(i||n>1)return l;throw d=!0,r}return function(i,u,h){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,h),s=u,a=h;(t=s<2?e:a)||!d;){o||(s?s<3?(s>1&&(f.n=-1),p(s,a)):f.n=a:f.v=a);try{if(c=2,o){if(s||(i="next"),t=o[i]){if(!(t=t.call(o,a)))throw TypeError("iterator result is not an object");if(!t.done)return t;a=t.value,s<2&&(s=0)}else 1===s&&(t=o.return)&&t.call(o),s<2&&(a=TypeError("The iterator does not provide a '"+i+"' method"),s=1);o=e}else if((t=(d=f.n<0)?a:n.call(r,f))!==l)break}catch(t){o=e,s=1,a=t}finally{c=1}}return{value:t,done:d}}}(n,i,o),!0),u}var l={};function c(){}function u(){}function d(){}t=Object.getPrototypeOf;var f=[][r]?t(t([][r]())):(s(t={},r,function(){return this}),t),p=d.prototype=c.prototype=Object.create(f);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,s(e,i,"GeneratorFunction")),e.prototype=Object.create(p),e}return u.prototype=d,s(p,"constructor",d),s(d,"constructor",u),u.displayName="GeneratorFunction",s(d,i,"GeneratorFunction"),s(p),s(p,i,"Generator"),s(p,r,function(){return this}),s(p,"toString",function(){return"[object Generator]"}),(o=function(){return{w:a,m:h}})()}function s(e,t,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}s=function(e,t,n,r){function o(t,n){s(e,t,function(e){return this._invoke(t,n,e)})}t?i?i(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(o("next",0),o("throw",1),o("return",2))},s(e,t,n,r)}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,l(r.key),r)}}function l(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==i(t)?t:t+""}
25function c(e,t,n){return t=d(t),function(e,t){if(t&&("object"==i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,u()?Reflect.construct(t,n||[],d(e).constructor):t.apply(e,n))}function u(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(u=function(){return!!e})()}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}var p=function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(e){try{l(r.next(e))}catch(e){o(e)}}function a(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}l((r=r.apply(e,t||[])).next())})},h=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=c(this,t,arguments)).boundPreventDefaults=e.preventDefaults.bind(e),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(t,e),n=t,r=[{key:"connect",value:function(){this.element.addEventListener("dragover",this.handleDragOver.bind(this)),this.element.addEventListener("dragleave",this.handleDragLeave.bind(this)),this.element.addEventListener("drop",this.handleDrop.bind(this)),document.addEventListener("dragover",this.boundPreventDefaults),document.addEventListener("drop",this.boundPreventDefaults)}},{key:"disconnect",value:function(){document.removeEventListener("dragover",this.boundPreventDefaults),document.removeEventListener("drop",this.boundPreventDefaults)}},{key:"browse",value:function(){this.fileInputTarget.click()}},{key:"preventDefaults",value:function(e){e.preventDefault(),e.stopPropagation()}},{key:"handleDragOver",value:function(e){this.preventDefaults(e),this.element.classList.add("border-blue-500","bg-blue-50"),this.element.classList.remove("border-gray-300")}},{key:"handleDragLeave",value:function(e){this.preventDefaults(e),this.element.contains(e.relatedTarget)||(this.element.classList.remove("border-blue-500","bg-blue-50"),this.element.classList.add("border-gray-300"))}},{key:"handleDrop",value:function(e){var t;this.preventDefaults(e),this.element.classList.remove("border-blue-500","bg-blue-50"),this.element.classList.add("border-gray-300");var n=null===(t=e.dataTransfer)||void 0===t?void 0:t.files;n&&n.length>0&&this.handleFiles(n)}},{key:"handleFiles",value:function(e){return p(this,void 0,void 0,o().m(function t(){var n,r,i,s,a,l,c,u,d;return o().w(function(t){for(;;)switch(t.p=t.n){case 0:r=this.element.closest("turbo-frame"),i=0;case 1:if(!(i<e.length)){t.n=10;break}return s=e[i],t.p=2,t.n=3,this.uploadFile(s);case 3:if(422!==(a=t.v).status){t.n=5;break}return t.n=4,a.json();case 4:l=t.v,c=(null===(n=l.violations)||void 0===n?void 0:n.map(function(e){return e.title}))||[l.detail],alert(c.join(", ")),t.n=6;break;case 5:a.ok||alert("Upload failed with status ".concat(a.status));case 6:t.n=8;break;case 7:t.p=7,d=t.v,u=d instanceof Error?d.message:"Unknown error",alert("Failed to upload ".concat(s.name,": ").concat(u));case 8:if(!r){t.n=9;break}return t.n=9,r.reload();case 9:i++,t.n=1;break;case 10:return t.a(2)}},t,this,[[2,7]])}))}},{key:"handleFileInput",value:function(){var e=this.fileInputTarget.files;e&&e.length>0&&this.handleFiles(e)}},{key:"uploadFile",value:function(e){return p(this,void 0,void 0,o().m(function t(){var n;return o().w(function(t){for(;;)if(0===t.n)return(n=new FormData).append("file",e),t.a(2,fetch(this.uploadUrlValue,{method:"POST",body:n,headers:{"X-Requested-With":"XMLHttpRequest",Accept:"application/json"}}))},t,this)}))}}],r&&a(n.prototype,r),i&&a(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(r.xI);h.targets=["fileInput"],h.values={uploadUrl:String};const m=h;n.d(t,["A",0,m])},7924(){"use strict";var e,t,n,r,i=!1,o=!1,s=[],a=-1,l=!1;function c(e){!function(e){s.includes(e)||s.push(e);d()}(e)}function u(e){let t=s.indexOf(e);-1!==t&&t>a&&s.splice(t,1)}function d(){if(!o&&!i){if(l)return;i=!0,queueMicrotask(f)}}function f(){i=!1,o=!0;for(let e=0;e<s.length;e++)s[e](),a=e;s.length=0,a=-1,o=!1}var p=!0;function h(e){t=e}function m(e,r){let i,o,s=!0,a=t(()=>{let t=e(),n=JSON.stringify(t);if(!s&&("object"==typeof t||t!==i)){let e="object"==typeof i?JSON.parse(o):i;queueMicrotask(()=>{r(t,e)})}i=t,o=n,s=!1});return()=>n(a)}async function v(e){l=!0;try{await e(),await Promise.resolve()}finally{l=!1,d()}}var g=[],y=[],b=[];function w(e,t){"function"==typeof t?(e._x_cleanups||(e._x_cleanups=[]),e._x_cleanups.push(t)):(t=e,y.push(t))}function E(e){g.push(e)}function S(e,t,n){e._x_attributeCleanups||(e._x_attributeCleanups={}),e._x_attributeCleanups[t]||(e._x_attributeCleanups[t]=[]),e._x_attributeCleanups[t].push(n)}function x(e,t){e._x_attributeCleanups&&Object.entries(e._x_attributeCleanups).forEac
25h(([n,r])=>{(void 0===t||t.includes(n))&&(r.forEach(e=>e()),delete e._x_attributeCleanups[n])})}var O=new MutationObserver(j),T=!1;function k(){O.observe(document,{subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0}),T=!0}function C(){!function(){let e=O.takeRecords();A.push(()=>e.length>0&&j(e));let t=A.length;queueMicrotask(()=>{if(A.length===t)for(;A.length>0;)A.shift()()})}(),O.disconnect(),T=!1}var A=[];function _(e){if(!T)return e();C();let t=e();return k(),t}var P=!1,L=[];function j(e){if(P)return void(L=L.concat(e));let t=[],n=new Set,r=new Map,i=new Map;for(let o=0;o<e.length;o++)if(!e[o].target._x_ignoreMutationObserver&&("childList"===e[o].type&&(e[o].removedNodes.forEach(e=>{1===e.nodeType&&e._x_marker&&n.add(e)}),e[o].addedNodes.forEach(e=>{1===e.nodeType&&(n.has(e)?n.delete(e):e._x_marker||t.push(e))})),"attributes"===e[o].type)){let t=e[o].target,n=e[o].attributeName,s=e[o].oldValue,a=()=>{r.has(t)||r.set(t,[]),r.get(t).push({name:n,value:t.getAttribute(n)})},l=()=>{i.has(t)||i.set(t,[]),i.get(t).push(n)};t.hasAttribute(n)&&null===s?a():t.hasAttribute(n)?(l(),a()):l()}i.forEach((e,t)=>{x(t,e)}),r.forEach((e,t)=>{g.forEach(n=>n(t,e))});for(let e of n)t.some(t=>t.contains(e))||y.forEach(t=>t(e));for(let e of t)e.isConnected&&b.forEach(t=>t(e));t=null,n=null,r=null,i=null}function M(e){return N(I(e))}function R(e,t,n){return e._x_dataStack=[t,...I(n||e)],()=>{e._x_dataStack=e._x_dataStack.filter(e=>e!==t)}}function I(e){return e._x_dataStack?e._x_dataStack:"function"==typeof ShadowRoot&&e instanceof ShadowRoot?I(e.host):e.parentNode?I(e.parentNode):[]}function N(e){return new Proxy({objects:e},F)}function D(e,t){return null===e||e===Object.prototype?null:Object.prototype.hasOwnProperty.call(e,t)?e:D(Object.getPrototypeOf(e),t)}var F={ownKeys:({objects:e})=>Array.from(new Set(e.flatMap(e=>Object.keys(e)))),has:({objects:e},t)=>t!=Symbol.unscopables&&e.some(e=>Object.prototype.hasOwnProperty.call(e,t)||Reflect.has(e,t)),get:({objects:e},t,n)=>"toJSON"==t?B:Reflect.get(e.find(e=>Reflect.has(e,t))||{},t,n),set({objects:e},t,n,r){let i;for(const n of e)if(i=D(n,t),i)break;i||(i=e[e.length-1]);const o=Object.getOwnPropertyDescriptor(i,t);return o?.set&&o?.get?o.set.call(r,n)||!0:Reflect.set(i,t,n)}};function B(){return Reflect.ownKeys(this).reduce((e,t)=>(e[t]=Reflect.get(this,t),e),{})}function q(e){let t=(n,r="")=>{Object.entries(Object.getOwnPropertyDescriptors(n)).forEach(([i,{value:o,enumerable:s}])=>{if(!1===s||void 0===o)return;if("object"==typeof o&&null!==o&&o.__v_skip)return;let a=""===r?i:`${r}.${i}`;var l;"object"==typeof o&&null!==o&&o._x_interceptor?n[i]=o.initialize(e,a,i):"object"!=typeof(l=o)||Array.isArray(l)||null===l||o===n||o instanceof Element||t(o,a)})};return t(e)}function H(e,t=()=>{}){let n={initialValue:void 0,_x_interceptor:!0,initialize(t,n,r){return e(this.initialValue,()=>function(e,t){return t.split(".").reduce((e,t)=>e[t],e)}(t,n),e=>$(t,n,e),n,r)}};return t(n),e=>{if("object"==typeof e&&null!==e&&e._x_interceptor){let t=n.initialize.bind(n);n.initialize=(r,i,o)=>{let s=e.initialize(r,i,o);return n.initialValue=s,t(r,i,o)}}else n.initialValue=e;return n}}function $(e,t,n){if("string"==typeof t&&(t=t.split(".")),1!==t.length){if(0===t.length)throw error;return e[t[0]]||(e[t[0]]={}),$(e[t[0]],t.slice(1),n)}e[t[0]]=n}var V={};function z(e,t){V[e]=t}function U(e,t){let n=function(e){let[t,n]=fe(e),r={interceptor:H,...t};return w(e,n),r}(t);return Object.entries(V).forEach(([r,i])=>{Object.defineProperty(e,`$${r}`,{get:()=>i(t,n),enumerable:!1})}),e}function W(e,t,n,...r){try{return n(...r)}catch(n){G(n,e,t)}}function G(...e){return K(...e)}var K=function(e,t,n=void 0){e=Object.assign(e??{message:"No error message given."},{el:t,expression:n}),console.warn(`Alpine Expression Error: ${e.message}\n\n${n?'Expression: "'+n+'"\n\n':""}`,t),setTimeout(()=>{throw e},0)};var X=!0;function J(e){let t=X;X=!1;let n=e();return X=t,n}function Y(e,t,n={}){let r;return Q(e,t)(e=>r=e,n),r}function Q(...e){return ee(...e)}var Z,ee=()=>{};var te={};function ne(e,t,n,r,i){if(X&&"function"==typeof t){let o=t.apply(n,r);o instanceof Promise?o.then(t=>ne(e,t,n,r)).catch(e=>G(e,i,t)):e(o)}else"object"==typeof t&&t instanceof Promise?t.then(t=>e(t)):e(t)}var re="x-";function ie(e=""){return re+e}var oe={};function se(e,t){return oe[e]=t,{before(t){if(!oe[t])return void console.warn(String.raw`Cannot find directive \`${t}\`. \`${e}\` will use the default order of execution`);const n=we.indexOf(t);we.splice(n>=0?n:we.indexOf("DEFAULT"),0,e)}}}function ae(e,t,n){if(t=Array.from(t),e._x_virtualDirectives){let n=Object.entries(e._x_virtualDirectives).map(([e,t])=>({name:e,value:t})),r=le(n);n=n.map(e=>r.find(t=>t.name===e.name)?{name:`x-bind:${e.name}`,value:`"${e.value}"`}:e),t=t.concat(n)}let r={},i=t.map(he((e,t)=>
25r[e]=t)).filter(ge).map(function(e,t){return({name:n,value:r})=>{n===r&&(r="");let i=n.match(ye()),o=n.match(/:([a-zA-Z0-9\-_:]+)/),s=n.match(/\.[^.\]]+(?=[^\]]*$)/g)||[],a=t||e[n]||n;return{type:i?i[1]:null,value:o?o[1]:null,modifiers:s.map(e=>e.replace(".","")),expression:r,original:a}}}(r,n)).sort(Ee);return i.map(t=>function(e,t){let n=()=>{},r=oe[t.type]||n,[i,o]=fe(e);S(e,t.original,o);let s=()=>{e._x_ignore||e._x_ignoreSelf||(r.inline&&r.inline(e,t,i),r=r.bind(r,e,t,i),ce?ue.get(de).push(r):r())};return s.runCleanups=o,s}(e,t))}function le(e){return Array.from(e).map(he()).filter(e=>!ge(e))}var ce=!1,ue=new Map,de=Symbol();function fe(e){let r=[],[i,o]=function(e){let r=()=>{};return[i=>{let o=t(i);return e._x_effects||(e._x_effects=new Set,e._x_runEffects=()=>{e._x_effects.forEach(e=>e())}),e._x_effects.add(o),r=()=>{void 0!==o&&(e._x_effects.delete(o),n(o))},o},()=>{r()}]}(e);r.push(o);return[{Alpine:wt,effect:i,cleanup:e=>r.push(e),evaluateLater:Q.bind(Q,e),evaluate:Y.bind(Y,e)},()=>r.forEach(e=>e())]}var pe=(e,t)=>({name:n,value:r})=>(n.startsWith(e)&&(n=n.replace(e,t)),{name:n,value:r});function he(e=()=>{}){return({name:t,value:n})=>{let{name:r,value:i}=me.reduce((e,t)=>t(e),{name:t,value:n});return r!==t&&e(r,t),{name:r,value:i}}}var me=[];function ve(e){me.push(e)}function ge({name:e}){return ye().test(e)}var ye=()=>new RegExp(`^${re}([^:^.]+)\\b`);var be="DEFAULT",we=["ignore","ref","id","data","anchor","bind","init","for","model","modelable","transition","show","if",be,"teleport"];function Ee(e,t){let n=-1===we.indexOf(e.type)?be:e.type,r=-1===we.indexOf(t.type)?be:t.type;return we.indexOf(n)-we.indexOf(r)}function Se(e,t,n={},r={}){return e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0,composed:!0,cancelable:!0,...r}))}function xe(e,t){if("function"==typeof ShadowRoot&&e instanceof ShadowRoot)return void Array.from(e.children).forEach(e=>xe(e,t));let n=!1;if(t(e,()=>n=!0),n)return;let r=e.firstElementChild;for(;r;)xe(r,t),r=r.nextElementSibling}function Oe(e,...t){console.warn(`Alpine Warning: ${e}`,...t)}var Te=!1;var ke=[],Ce=[];function Ae(){return ke.map(e=>e())}function _e(){return ke.concat(Ce).map(e=>e())}function Pe(e){ke.push(e)}function Le(e){Ce.push(e)}function je(e,t=!1){return Me(e,e=>{if((t?_e():Ae()).some(t=>e.matches(t)))return!0})}function Me(e,t){if(e){if(t(e))return e;if(e._x_teleportBack)return Me(e._x_teleportBack,t);if(e.parentNode instanceof ShadowRoot)return Me(e.parentNode.host,t);if(e.parentElement)return Me(e.parentElement,t)}}var Re=[];var Ie=1;function Ne(e,t=xe,n=()=>{}){Me(e,e=>e._x_ignore)||function(e){ce=!0;let t=Symbol();de=t,ue.set(t,[]);let n=()=>{for(;ue.get(t).length;)ue.get(t).shift()();ue.delete(t)};e(n),ce=!1,n()}(()=>{t(e,(e,t)=>{e._x_marker||(n(e,t),Re.forEach(n=>n(e,t)),ae(e,e.attributes).forEach(e=>e()),e._x_ignore||(e._x_marker=Ie++),e._x_ignore&&t())})})}function De(e,t=xe){t(e,e=>{!function(e){for(e._x_effects?.forEach(u);e._x_cleanups?.length;)e._x_cleanups.pop()()}(e),x(e),delete e._x_marker})}var Fe=[],Be=!1;function qe(e=()=>{}){return queueMicrotask(()=>{Be||setTimeout(()=>{He()})}),new Promise(t=>{Fe.push(()=>{e(),t()})})}function He(){for(Be=!1;Fe.length;)Fe.shift()()}function $e(e,t){return Array.isArray(t)?ze(e,t.join(" ")):"object"==typeof t&&null!==t?function(e,t){let n=Object.entries(t).flatMap(([e,t])=>!!t&&Ve(e)).filter(Boolean),r=Object.entries(t).flatMap(([e,t])=>!t&&Ve(e)).filter(Boolean),i=[],o=[];return r.forEach(t=>{e.classList.contains(t)&&(e.classList.remove(t),o.push(t))}),n.forEach(t=>{e.classList.contains(t)||(e.classList.add(t),i.push(t))}),()=>{o.forEach(t=>e.classList.add(t)),i.forEach(t=>e.classList.remove(t))}}(e,t):"function"==typeof t?$e(e,t()):ze(e,t)}function Ve(e){return e.split(/\s/).filter(Boolean)}function ze(e,t){return t=!0===t?t="":t||"",n=Ve(t).filter(t=>!e.classList.contains(t)).filter(Boolean),e.classList.add(...n),()=>{e.classList.remove(...n)};var n}function Ue(e,t){return"object"==typeof t&&null!==t?function(e,t){let n={};return Object.entries(t).forEach(([t,r])=>{n[t]=e.style[t],t.startsWith("--")||(t=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()),e.style.setProperty(t,r)}
25),setTimeout(()=>{0===e.style.length&&e.removeAttribute("style")}),()=>{Ue(e,n)}}(e,t):function(e,t){let n=e.getAttribute("style",t);return e.setAttribute("style",t),()=>{e.setAttribute("style",n||"")}}(e,t)}function We(e,t=()=>{}){let n=!1;return function(){n?t.apply(this,arguments):(n=!0,e.apply(this,arguments))}}function Ge(e,t,n={}){e._x_transition||(e._x_transition={enter:{during:n,start:n,end:n},leave:{during:n,start:n,end:n},in(n=()=>{},r=()=>{}){Xe(e,t,{during:this.enter.during,start:this.enter.start,end:this.enter.end},n,r)},out(n=()=>{},r=()=>{}){Xe(e,t,{during:this.leave.during,start:this.leave.start,end:this.leave.end},n,r)}})}function Ke(e){let t=e.parentNode;if(t)return t._x_hidePromise?t:Ke(t)}function Xe(e,t,{during:n,start:r,end:i}={},o=()=>{},s=()=>{}){if(e._x_transitioning&&e._x_transitioning.cancel(),0===Object.keys(n).length&&0===Object.keys(r).length&&0===Object.keys(i).length)return o(),void s();let a,l,c;!function(e,t){let n,r,i,o=We(()=>{_(()=>{n=!0,r||t.before(),i||(t.end(),He()),t.after(),e.isConnected&&t.cleanup(),delete e._x_transitioning})});e._x_transitioning={beforeCancels:[],beforeCancel(e){this.beforeCancels.push(e)},cancel:We(function(){for(;this.beforeCancels.length;)this.beforeCancels.shift()();o()}),finish:o},_(()=>{t.start(),t.during()}),Be=!0,requestAnimationFrame(()=>{if(n)return;let o=1e3*Number(getComputedStyle(e).transitionDuration.replace(/,.*/,"").replace("s","")),s=1e3*Number(getComputedStyle(e).transitionDelay.replace(/,.*/,"").replace("s",""));0===o&&(o=1e3*Number(getComputedStyle(e).animationDuration.replace("s",""))),_(()=>{t.before()}),r=!0,requestAnimationFrame(()=>{n||(_(()=>{t.end()}),He(),setTimeout(e._x_transitioning.finish,o+s),i=!0)})})}(e,{start(){a=t(e,r)},during(){l=t(e,n)},before:o,end(){a(),c=t(e,i)},after:s,cleanup(){l(),c()}})}function Je(e,t,n){if(-1===e.indexOf(t))return n;const r=e[e.indexOf(t)+1];if(!r)return n;if("scale"===t&&isNaN(r))return n;if("duration"===t||"delay"===t){let e=r.match(/([0-9]+)ms/);if(e)return e[1]}return"origin"===t&&["top","right","left","center","bottom"].includes(e[e.indexOf(t)+2])?[r,e[e.indexOf(t)+2]].join(" "):r}se("transition",(e,{value:t,modifiers:n,expression:r},{evaluate:i})=>{"function"==typeof r&&(r=i(r)),!1!==r&&(r&&"boolean"!=typeof r?function(e,t,n){Ge(e,$e,"");let r={enter:t=>{e._x_transition.enter.during=t},"enter-start":t=>{e._x_transition.enter.start=t},"enter-end":t=>{e._x_transition.enter.end=t},leave:t=>{e._x_transition.leave.during=t},"leave-start":t=>{e._x_transition.leave.start=t},"leave-end":t=>{e._x_transition.leave.end=t}};r[n](t)}(e,r,t):function(e,t,n){Ge(e,Ue);let r=!t.includes("in")&&!t.includes("out")&&!n,i=r||t.includes("in")||["enter"].includes(n),o=r||t.includes("out")||["leave"].includes(n);t.includes("in")&&!r&&(t=t.filter((e,n)=>n<t.indexOf("out")));t.includes("out")&&!r&&(t=t.filter((e,n)=>n>t.indexOf("out")));let s=!t.includes("opacity")&&!t.includes("scale"),a=s||t.includes("opacity"),l=s||t.includes("scale"),c=a?0:1,u=l?Je(t,"scale",95)/100:1,d=Je(t,"delay",0)/1e3,f=Je(t,"origin","center"),p="opacity, transform",h=Je(t,"duration",150)/1e3,m=Je(t,"duration",75)/1e3,v="cubic-bezier(0.4, 0.0, 0.2, 1)";i&&(e._x_transition.enter.during={transformOrigin:f,transitionDelay:`${d}s`,transitionProperty:p,transitionDuration:`${h}s`,transitionTimingFunction:v},e._x_transition.enter.start={opacity:c,transform:`scale(${u})`},e._x_transition.enter.end={opacity:1,transform:"scale(1)"});o&&(e._x_transition.leave.during={transformOrigin:f,transitionDelay:`${d}s`,transitionProperty:p,transitionDuration:`${m}s`,transitionTimingFunction:v},e._x_transition.leave.start={opacity:1,transform:"scale(1)"},e._x_transition.leave.end={opacity:c,transform:`scale(${u})`})}(e,n,t))}),window.Element.prototype._x_toggleAndCascadeWithTransitions=function(e,t,n,r){const i="visible"===document.visibilityState?requestAnimationFrame:setTimeout;let o=()=>i(n);t?e._x_transition&&(e._x_transition.enter||e._x_transition.leave)?e._x_transition.enter&&(Object.entries(e._x_transition.enter.during).length||Object.entries(e._x_transition.enter.start).length||Object.entries(e._x_transition.enter.end).length)?e._x_transition.in(n):o():e._x_transition?e._x_transition.in(n):o():(e._x_hidePromise=e._x_transition?new Promise((t,n)=>{e._x_transition.out(()=>{},()=>t(r)),e._x_transitioning&&e._x_transitioning.beforeCancel(()=>n({isFromCancelledTransition:!0}))}):Promise.resolve(r),queueMicrotask(()=>{let t=Ke(e);t?(t._x_hideChildren||(t._x_hideChildren=[]),t._x_hideChildren.push(e)):i(()=>{let t=e=>{let n=Promise.all([e._x_hidePromise,...(e._x_hideChildren||[]).map(t)]).then(([e])=>e?.());return delete e._x_hidePromise,delete e._x_hideChildren,n};t(e).catch(e=>{if(!e.isFromCancelledTransition)throw e})})}))};var Ye=!1;function Qe(e,t=()=>{}){return(...n)=>Ye?t(...n):e(...n)}var Ze=[];function et(e){Ze.push(e)}var tt=!1;function nt(e){let r=t;h((e,t)=>{let i=r(e);return n(i),()=>{}}),e(),h(r)}function rt(t,n,r,i=[]){switch(t._x_bindings||(t._x_bindings=e({})),t._x_bindings[n]=r,n=i.includes("camel")?n.toLowerCase().replace(/-(\w)/g,(e,t)=>t.toUpperCase()):n){case"value":!function(e,t){if(ut(e))void 0===e.attributes.value&&(e.value=t);else if(ct(e))Number.isInteger(t)?e.value=t:Array.isArray(t)||"boolean"==typeof t||[null,void 0].includes(t)?Array.isArray(t)?e.checked=t.some(t=>{return n=t,r=e.value,n==r;var n,r}):e.checked=!!t:e.value=String(t);else if("SELECT"===e.tagName)!function(e,t){const n=[].concat(t).map(e=>e+"");
25Array.from(e.options).forEach(e=>{e.selected=n.includes(e.value)})}(e,t);else{if(e.value===t)return;e.value=void 0===t?"":t}}(t,r);break;case"style":!function(e,t){e._x_undoAddedStyles&&e._x_undoAddedStyles();e._x_undoAddedStyles=Ue(e,t)}(t,r);break;case"class":!function(e,t){e._x_undoAddedClasses&&e._x_undoAddedClasses();e._x_undoAddedClasses=$e(e,t)}(t,r);break;case"selected":case"checked":!function(e,t,n){it(e,t,n),function(e,t,n){e[t]!==n&&(e[t]=n)}(e,t,n)}(t,n,r);break;default:it(t,n,r)}}function it(e,t,n){[null,void 0,!1].includes(n)&&function(e){return!["aria-pressed","aria-checked","aria-expanded","aria-selected"].includes(e)}(t)?e.removeAttribute(t):(at(t)&&(n=t),function(e,t,n){e.getAttribute(t)!=n&&e.setAttribute(t,n)}(e,t,n))}function ot(e){return!![1,"1","true","on","yes",!0].includes(e)||![0,"0","false","off","no",!1].includes(e)&&(e?Boolean(e):null)}var st=new Set(["allowfullscreen","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","inert","ismap","itemscope","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected","shadowrootclonable","shadowrootdelegatesfocus","shadowrootserializable"]);function at(e){return st.has(e)}function lt(e,t,n){let r=e.getAttribute(t);return null===r?"function"==typeof n?n():n:""===r||(at(t)?!![t,"true"].includes(r):r)}function ct(e){return"checkbox"===e.type||"ui-checkbox"===e.localName||"ui-switch"===e.localName}function ut(e){return"radio"===e.type||"ui-radio"===e.localName}function dt(e,t){let n;return function(){const r=this,i=arguments;clearTimeout(n),n=setTimeout(function(){n=null,e.apply(r,i)},t)}}function ft(e,t){let n;return function(){let r=this,i=arguments;n||(e.apply(r,i),n=!0,setTimeout(()=>n=!1,t))}}function pt({get:e,set:r},{get:i,set:o}){let s,a,l=!0,c=t(()=>{let t=e(),n=i();if(l)o(ht(t)),l=!1;else{let e=JSON.stringify(t),i=JSON.stringify(n);e!==s?o(ht(t)):e!==i&&r(ht(n))}s=JSON.stringify(e()),a=JSON.stringify(i())});return()=>{n(c)}}function ht(e){return"object"==typeof e?JSON.parse(JSON.stringify(e)):e}var mt={},vt=!1;var gt={};function yt(e,t,n){let r=[];for(;r.length;)r.pop()();let i=Object.entries(t).map(([e,t])=>({name:e,value:t})),o=le(i);return i=i.map(e=>o.find(t=>t.name===e.name)?{name:`x-bind:${e.name}`,value:`"${e.value}"`}:e),ae(e,i,n).map(e=>{r.push(e.runCleanups),e()}),()=>{for(;r.length;)r.pop()()}}var bt={};var wt={get reactive(){return e},get release(){return n},get effect(){return t},get raw(){return r},get transaction(){return v},version:"3.15.12",flushAndStopDeferringMutations:function(){P=!1,j(L),L=[]},dontAutoEvaluateFunctions:J,disableEffectScheduling:function(e){p=!1,e(),p=!0},startObservingMutations:k,stopObservingMutations:C,setReactivityEngine:function(i){e=i.reactive,n=i.release,t=e=>i.effect(e,{scheduler:e=>{p?c(e):e()}}),r=i.raw},onAttributeRemoved:S,onAttributesAdded:E,closestDataStack:I,skipDuringClone:Qe,onlyDuringClone:function(e){return(...t)=>Ye&&e(...t)},addRootSelector:Pe,addInitSelector:Le,setErrorHandler:function(e){K=e},interceptClone:et,addScopeToNode:R,deferMutations:function(){P=!0},mapAttributes:ve,evaluateLater:Q,interceptInit:function(e){Re.push(e)},initInterceptors:q,injectMagics:U,setEvaluator:function(e){ee=e},setRawEvaluator:function(e){Z=e},mergeProxies:N,extractProp:function(e,t,n,r=!0){if(e._x_bindings&&void 0!==e._x_bindings[t])return e._x_bindings[t];if(e._x_inlineBindings&&void 0!==e._x_inlineBindings[t]){let n=e._x_inlineBindings[t];return n.extract=r,J(()=>Y(e,n.expression))}return lt(e,t,n)},findClosest:Me,onElRemoved:w,closestRoot:je,destroyTree:De,interceptor:H,transition:Xe,setStyles:Ue,mutateDom:_,directive:se,entangle:pt,throttle:ft,debounce:dt,evaluate:Y,evaluateRaw:function(...e){return Z(...e)},initTree:Ne,nextTick:qe,prefixed:ie,prefix:function(e){re=e},plugin:function(e){(Array.isArray(e)?e:[e]).forEach(e=>e(wt))},magic:z,store:function(t,n){if(vt||(mt=e(mt),vt=!0),void 0===n)return mt[t];mt[t]=n,q(mt[t]),"object"==typeof n&&null!==n&&n.hasOwnProperty("init")&&"function"==typeof n.init&&mt[t].init()},start:function(){var e;Te&&Oe("Alpine has already been initialized on this page. Calling Alpine.start() more than once can cause problems."),Te=!0,document.body||Oe("Unable to initialize. Trying to load Alpine before `<body>` is available. Did you forget to add `defer` in Alpine's `<script>` tag?"),Se(document,"alpine:init"),Se(document,"alpine:initializing"),k(),e=e=>Ne(e,xe),b.push(e),w(e=>De(e)),E((e,t)=>
25{ae(e,t).forEach(e=>e())}),Array.from(document.querySelectorAll(_e().join(","))).filter(e=>!je(e.parentElement,!0)).forEach(e=>{Ne(e)}),Se(document,"alpine:initialized"),setTimeout(()=>{[["ui","dialog",["[x-dialog], [x-popover]"]],["anchor","anchor",["[x-anchor]"]],["sort","sort",["[x-sort]"]]].forEach(([e,t,n])=>{var r;r=t,Object.keys(oe).includes(r)||n.some(t=>{if(document.querySelector(t))return Oe(`found "${t}", but missing ${e} plugin`),!0})})})},clone:function(e,t){t._x_dataStack||(t._x_dataStack=e._x_dataStack),Ye=!0,tt=!0,nt(()=>{!function(e){let t=!1;Ne(e,(e,n)=>{xe(e,(e,r)=>{if(t&&function(e){return Ae().some(t=>e.matches(t))}(e))return r();t=!0,n(e,r)})})}(t)}),Ye=!1,tt=!1},cloneNode:function(e,t){Ze.forEach(n=>n(e,t)),Ye=!0,nt(()=>{Ne(t,(e,t)=>{t(e,()=>{})})}),Ye=!1},bound:function(e,t,n){return e._x_bindings&&void 0!==e._x_bindings[t]?e._x_bindings[t]:lt(e,t,n)},$data:M,watch:m,walk:xe,data:function(e,t){bt[e]=t},bind:function(e,t){let n="function"!=typeof t?()=>t:t;return e instanceof Element?yt(e,n()):(gt[e]=n,()=>{})}};function Et(e,t){const n=Object.create(null),r=e.split(",");for(let e=0;e<r.length;e++)n[r[e]]=!0;return t?e=>!!n[e.toLowerCase()]:e=>!!n[e]}var St,xt=Object.freeze({}),Ot=(Object.freeze([]),Object.prototype.hasOwnProperty),Tt=(e,t)=>Ot.call(e,t),kt=Array.isArray,Ct=e=>"[object Map]"===Lt(e),At=e=>"symbol"==typeof e,_t=e=>null!==e&&"object"==typeof e,Pt=Object.prototype.toString,Lt=e=>Pt.call(e),jt=e=>Lt(e).slice(8,-1),Mt=e=>"string"==typeof e&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,Rt=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},It=/-(\w)/g,Nt=(Rt(e=>e.replace(It,(e,t)=>t?t.toUpperCase():"")),/\B([A-Z])/g),Dt=(Rt(e=>e.replace(Nt,"-$1").toLowerCase()),Rt(e=>e.charAt(0).toUpperCase()+e.slice(1))),Ft=(Rt(e=>e?`on${Dt(e)}`:""),(e,t)=>e!==t&&(e==e||t==t)),Bt=new WeakMap,qt=[],Ht=Symbol("iterate"),$t=Symbol("Map key iterate");var Vt=0;function zt(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}var Ut=!0,Wt=[];function Gt(){const e=Wt.pop();Ut=void 0===e||e}function Kt(e,t,n){if(!Ut||void 0===St)return;let r=Bt.get(e);r||Bt.set(e,r=new Map);let i=r.get(n);i||r.set(n,i=new Set),i.has(St)||(i.add(St),St.deps.push(i),St.options.onTrack&&St.options.onTrack({effect:St,target:e,type:t,key:n}))}function Xt(e,t,n,r,i,o){const s=Bt.get(e);if(!s)return;const a=new Set,l=e=>{e&&e.forEach(e=>{(e!==St||e.allowRecurse)&&a.add(e)})};if("clear"===t)s.forEach(l);else if("length"===n&&kt(e))s.forEach((e,t)=>{("length"===t||t>=r)&&l(e)});else switch(void 0!==n&&l(s.get(n)),t){case"add":kt(e)?Mt(n)&&l(s.get("length")):(l(s.get(Ht)),Ct(e)&&l(s.get($t)));break;case"delete":kt(e)||(l(s.get(Ht)),Ct(e)&&l(s.get($t)));break;case"set":Ct(e)&&l(s.get(Ht))}a.forEach(s=>{s.options.onTrigger&&s.options.onTrigger({effect:s,target:e,key:n,type:t,newValue:r,oldValue:i,oldTarget:o}),s.options.scheduler?s.options.scheduler(s):s()})}var Jt=Et("__proto__,__v_isRef,__isVue"),Yt=new Set(Object.getOwnPropertyNames(Symbol).map(e=>Symbol[e]).filter(At)),Qt=nn(),Zt=nn(!0),en=tn();function tn(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...e){const n=Dn(this);for(let e=0,t=this.length;e<t;e++)Kt(n,"get",e+"");const r=n[t](...e);return-1===r||!1===r?n[t](...e.map(Dn)):r}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...e){Wt.push(Ut),Ut=!1;const n=Dn(this)[t].apply(this,e);return Gt(),n}}),e}function nn(e=!1,t=!1){return function(n,r,i){if("__v_isReactive"===r)return!e;if("__v_isReadonly"===r)return e;if("__v_raw"===r&&i===(e?t?Mn:jn:t?Ln:Pn).get(n))return n;const o=kt(n);if(!e&&o&&Tt(en,r))return Reflect.get(en,r,i);const s=Reflect.get(n,r,i);if(At(r)?Yt.has(r):Jt(r))return s;if(e||Kt(n,"get",r),t)return s;if(Fn(s)){return!o||!Mt(r)?s.value:s}return _t(s)?e?In(s):Rn(s):s}}function rn(e=!1){return function(t,n,r,i){let o=t[n];if(!e&&(r=Dn(r),o=Dn(o),!kt(t)&&Fn(o)&&!Fn(r)))return o.value=r,!0;const s=kt(t)&&Mt(n)?Number(n)<t.length:Tt(t,n),a=Reflect.set(t,n,r,i);return t===Dn(i)&&(s?Ft(r,o)&&Xt(t,"set",n,r,o):Xt(t,"add",n,r)),a}}var on={get:Qt,set:rn(),deleteProperty:function(e,t){const n=Tt(e,t),r=e[t],i=Reflect.deleteProperty(e,t);return i&&n&&Xt(e,"delete",t,void 0,r),i},has:function(e,t){const n=Reflect.has(e,t);return At(t)&&Yt.has(t)||Kt(e,"has",t),n},ownKeys:function(e){return Kt(e,"iterate",kt(e)?"length":Ht),Reflect.ownKeys(e)}},sn={get:Zt,set:(e,t)=>(console.warn(`Set operation on key "${String(t)}" failed: target is readonly.`,e),!0),deleteProperty:(e,t)=>(console.warn(`Delete operation on key "${String(t)}" failed: target is readonly.`,e),!0)},an=e=>_t(e)?Rn(e):e,ln=e=>_t(e)?In(e):e,cn=e=>e,un=e=>Reflect.getPrototypeOf(e);function dn(e,t,n=!1,r=!1){const i=Dn(e=e.__v_raw),o=Dn(t);t!==o&&!n&&Kt(i,"get",t),!n&&Kt(i,"get",o);const{has:s}=un(i),a=r?cn:n?ln:an;return s.call(i,t)?a(e.get(t)):s.call(i,o)?a(e.get(o)):void(e!==i&&e.get(t))}function fn(e,t=!1){const n=this.__v_raw,r=Dn(n),i=Dn(e);return e!==i&&!t&&Kt(r,"has",e),!t&&Kt(r,"has",i),e===i?n.has(e):n.has(e)||n.has(i)}function pn(e,t=!1){return e=e.__v_raw,!t&&Kt(Dn(e),"iterate",Ht),Reflect.get(e,"size",e)}function hn(e){e=Dn(e);const t=Dn(this);return un(t).has.call(t,e)||(t.add(e),Xt(t,"add",e,e)),this}
25function mn(e,t){t=Dn(t);const n=Dn(this),{has:r,get:i}=un(n);let o=r.call(n,e);o?_n(n,r,e):(e=Dn(e),o=r.call(n,e));const s=i.call(n,e);return n.set(e,t),o?Ft(t,s)&&Xt(n,"set",e,t,s):Xt(n,"add",e,t),this}function vn(e){const t=Dn(this),{has:n,get:r}=un(t);let i=n.call(t,e);i?_n(t,n,e):(e=Dn(e),i=n.call(t,e));const o=r?r.call(t,e):void 0,s=t.delete(e);return i&&Xt(t,"delete",e,void 0,o),s}function gn(){const e=Dn(this),t=0!==e.size,n=Ct(e)?new Map(e):new Set(e),r=e.clear();return t&&Xt(e,"clear",void 0,void 0,n),r}function yn(e,t){return function(n,r){const i=this,o=i.__v_raw,s=Dn(o),a=t?cn:e?ln:an;return!e&&Kt(s,"iterate",Ht),o.forEach((e,t)=>n.call(r,a(e),a(t),i))}}function bn(e,t,n){return function(...r){const i=this.__v_raw,o=Dn(i),s=Ct(o),a="entries"===e||e===Symbol.iterator&&s,l="keys"===e&&s,c=i[e](...r),u=n?cn:t?ln:an;return!t&&Kt(o,"iterate",l?$t:Ht),{next(){const{value:e,done:t}=c.next();return t?{value:e,done:t}:{value:a?[u(e[0]),u(e[1])]:u(e),done:t}},[Symbol.iterator](){return this}}}}function wn(e){return function(...t){{const n=t[0]?`on key "${t[0]}" `:"";console.warn(`${Dt(e)} operation ${n}failed: target is readonly.`,Dn(this))}return"delete"!==e&&this}}function En(){const e={get(e){return dn(this,e)},get size(){return pn(this)},has:fn,add:hn,set:mn,delete:vn,clear:gn,forEach:yn(!1,!1)},t={get(e){return dn(this,e,!1,!0)},get size(){return pn(this)},has:fn,add:hn,set:mn,delete:vn,clear:gn,forEach:yn(!1,!0)},n={get(e){return dn(this,e,!0)},get size(){return pn(this,!0)},has(e){return fn.call(this,e,!0)},add:wn("add"),set:wn("set"),delete:wn("delete"),clear:wn("clear"),forEach:yn(!0,!1)},r={get(e){return dn(this,e,!0,!0)},get size(){return pn(this,!0)},has(e){return fn.call(this,e,!0)},add:wn("add"),set:wn("set"),delete:wn("delete"),clear:wn("clear"),forEach:yn(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=bn(i,!1,!1),n[i]=bn(i,!0,!1),t[i]=bn(i,!1,!0),r[i]=bn(i,!0,!0)}),[e,n,t,r]}var[Sn,xn,On,Tn]=En();function kn(e,t){const n=t?e?Tn:On:e?xn:Sn;return(t,r,i)=>"__v_isReactive"===r?!e:"__v_isReadonly"===r?e:"__v_raw"===r?t:Reflect.get(Tt(n,r)&&r in t?n:t,r,i)}var Cn={get:kn(!1,!1)},An={get:kn(!0,!1)};function _n(e,t,n){const r=Dn(n);if(r!==n&&t.call(e,r)){const t=jt(e);console.warn(`Reactive ${t} contains both the raw and reactive versions of the same object${"Map"===t?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}var Pn=new WeakMap,Ln=new WeakMap,jn=new WeakMap,Mn=new WeakMap;function Rn(e){return e&&e.__v_isReadonly?e:Nn(e,!1,on,Cn,Pn)}function In(e){return Nn(e,!0,sn,An,jn)}function Nn(e,t,n,r,i){if(!_t(e))return console.warn(`value cannot be made reactive: ${String(e)}`),e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const o=i.get(e);if(o)return o;const s=(a=e).__v_skip||!Object.isExtensible(a)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(jt(a));var a;if(0===s)return e;const l=new Proxy(e,2===s?r:n);return i.set(e,l),l}function Dn(e){return e&&Dn(e.__v_raw)||e}function Fn(e){return Boolean(e&&!0===e.__v_isRef)}z("nextTick",()=>qe),z("dispatch",e=>Se.bind(Se,e)),z("watch",(e,{evaluateLater:t,cleanup:n})=>(e,r)=>{let i=t(e),o=m(()=>{let e;return i(t=>e=t),e},r);n(o)}),z("store",function(){return mt}),z("data",e=>M(e)),z("root",e=>je(e)),z("refs",e=>(e._x_refs_proxy||(e._x_refs_proxy=N(function(e){let t=[];return Me(e,e=>{e._x_refs&&t.push(e._x_refs)}),t}(e))),e._x_refs_proxy));var Bn={};function qn(e){return Bn[e]||(Bn[e]=0),++Bn[e]}function Hn(e,t,n){z(t,r=>Oe(`You can't use [$${t}] without first installing the "${e}" plugin here: https://alpinejs.dev/plugins/${n}`,r))}z("id",(e,{cleanup:t})=>(n,r=null)=>function(e,t,n,r){e._x_id||(e._x_id={});if(e._x_id[t])return e._x_id[t];let i=r();return e._x_id[t]=i,n(()=>{delete e._x_id[t]}),i}(e,`${n}${r?`-${r}`:""}`,t,()=>{let t=function(e,t){return Me(e,e=>{if(e._x_ids&&e._x_ids[t])return!0})}(e,n),i=t?t._x_ids[n]:qn(n);return r?`${n}-${i}-${r}`:`${n}-${i}`})),et((e,t)=>
25{e._x_id&&(t._x_id=e._x_id)}),z("el",e=>e),Hn("Focus","focus","focus"),Hn("Persist","persist","persist"),se("modelable",(e,{expression:t},{effect:n,evaluateLater:r,cleanup:i})=>{let o=r(t),s=()=>{let e;return o(t=>e=t),e},a=r(`${t} = __placeholder`),l=e=>a(()=>{},{scope:{__placeholder:e}}),c=s();l(c),queueMicrotask(()=>{if(!e._x_model)return;e._x_removeModelListeners.default();let t=e._x_model.get,n=e._x_model.setWithModifiers,r=pt({get:()=>t(),set(e){n(e)}},{get:()=>s(),set(e){l(e)}});i(r)})}),se("teleport",(e,{modifiers:t,expression:n},{cleanup:r})=>{"template"!==e.tagName.toLowerCase()&&Oe("x-teleport can only be used on a <template> tag",e);let i=Vn(n),o=e.content.cloneNode(!0).firstElementChild;e._x_teleport=o,o._x_teleportBack=e,e.setAttribute("data-teleport-template",!0),o.setAttribute("data-teleport-target",!0),e._x_forwardEvents&&e._x_forwardEvents.forEach(t=>{o.addEventListener(t,t=>{t.stopPropagation(),e.dispatchEvent(new t.constructor(t.type,t))})}),R(o,{},e);let s=(e,t,n)=>{n.includes("prepend")?t.parentNode.insertBefore(e,t):n.includes("append")?t.parentNode.insertBefore(e,t.nextSibling):t.appendChild(e)};_(()=>{Qe(()=>{s(o,i,t),Ne(o)})()}),e._x_teleportPutBack=()=>{let r=Vn(n);_(()=>{s(e._x_teleport,r,t)})},r(()=>_(()=>{o.remove(),De(o)}))});var $n=document.createElement("div");function Vn(e){let t=Qe(()=>document.querySelector(e),()=>$n)();return t||Oe(`Cannot find x-teleport element for selector: "${e}"`),t}var zn=()=>{};function Un(e,t,n,r){let i=e,o=e=>r(e),s={},a=(e,t)=>n=>t(e,n);return n.includes("dot")&&(t=t.replace(/-/g,".")),n.includes("camel")&&(t=function(e){return e.toLowerCase().replace(/-(\w)/g,(e,t)=>t.toUpperCase())}(t)),n.includes("capture")&&(s.capture=!0),n.includes("window")&&(i=window),n.includes("document")&&(i=document),n.includes("passive")&&(s.passive="false"!==n[n.indexOf("passive")+1]),o=Wn(n,o),n.includes("prevent")&&(o=a(o,(e,t)=>{t.preventDefault(),e(t)})),n.includes("stop")&&(o=a(o,(e,t)=>{t.stopPropagation(),e(t)})),n.includes("once")&&(o=a(o,(e,n)=>{e(n),i.removeEventListener(t,o,s)})),(n.includes("away")||n.includes("outside"))&&(i=document,o=a(o,(t,n)=>{e.contains(n.target)||!1!==n.target.isConnected&&(e.offsetWidth<1&&e.offsetHeight<1||!1!==e._x_isShown&&t(n))})),n.includes("self")&&(o=a(o,(t,n)=>{n.target===e&&t(n)})),"submit"===t&&(o=a(o,(e,t)=>{t.target._x_pendingModelUpdates&&t.target._x_pendingModelUpdates.forEach(e=>e()),e(t)})),(function(e){return["keydown","keyup"].includes(e)}(t)||Kn(t))&&(o=a(o,(e,t)=>{(function(e,t){let n=t.filter(e=>!["window","document","prevent","stop","once","capture","self","away","outside","passive","preserve-scroll","blur","change","lazy"].includes(e));if(n.includes("debounce")){let e=n.indexOf("debounce");n.splice(e,Gn((n[e+1]||"invalid-wait").split("ms")[0])?2:1)}if(n.includes("throttle")){let e=n.indexOf("throttle");n.splice(e,Gn((n[e+1]||"invalid-wait").split("ms")[0])?2:1)}if(0===n.length)return!1;if(1===n.length&&Xn(e.key).includes(n[0]))return!1;const r=["ctrl","shift","alt","meta","cmd","super"].filter(e=>n.includes(e));if(n=n.filter(e=>!r.includes(e)),r.length>0){if(r.filter(t=>("cmd"!==t&&"super"!==t||(t="meta"),e[`${t}Key`])).length===r.length){if(Kn(e.type))return!1;if(Xn(e.key).includes(n[0]))return!1}}return!0})(t,n)||e(t)})),i.addEventListener(t,o,s),()=>{i.removeEventListener(t,o,s)}}function Wn(e,t){if(e.includes("debounce")){let n=e[e.indexOf("debounce")+1]||"invalid-wait";t=dt(t,Gn(n.split("ms")[0])?Number(n.split("ms")[0]):250)}if(e.includes("throttle")){let n=e[e.indexOf("throttle")+1]||"invalid-wait";t=ft(t,Gn(n.split("ms")[0])?Number(n.split("ms")[0]):250)}return t}function Gn(e){return!Array.isArray(e)&&!isNaN(e)}function Kn(e){return["contextmenu","click","mouse"].some(t=>e.includes(t))}function Xn(e){if(!e)return[];var t;e=[" ","_"].includes(t=e)?t:t.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[_\s]/,"-").toLowerCase();let n={ctrl:"control",slash:"/",space:" ",spacebar:" ",cmd:"meta",esc:"escape",up:"arrow-up",down:"arrow-down",left:"arrow-left",right:"arrow-right",period:".",comma:",",equal:"=",minus:"-",underscore:"_"};return n[e]=e,Object.keys(n).map(t=>{if(n[t]===e)return t}).filter(e=>e)}function Jn(e,t,n,r){return _(()=>{if(n instanceof CustomEvent&&void 0!==n.detail)return null!==n.detail&&void 0!==n.detail?n.detail:n.target.value;if(ct(e)){if(Array.isArray(r)){let e=null;return e=t.includes("number")?Yn(n.target.value):t.includes("boolean")?ot(n.target.value):n.target.value,n.target.checked?r.includes(e)?r:r.concat([e]):r.filter(t=>!(t==e))}return n.target.checked}if("select"===e.tagName.toLowerCase()&&e.multiple)return t.includes("number")?Array.from(n.target.selectedOptions).map(e=>Yn(e.value||e.text)):t.includes("boolean")?Array.from(n.target.selectedOptions).map(e=>ot(e.value||e.text)):Array.from(n.target.selectedOptions).map(e=>e.value||e.text);{let i;return i=ut(e)?n.target.checked?n.target.value:r:n.target.value,t.includes("number")?Yn(i):t.includes("boolean")?ot(i):t.includes("trim")?i.trim():i}})}function Yn(e){let t=e?parseFloat(e):null;return n=t,Array.isArray(n)||isNaN(n)?e:t;var n}function Qn(e){return null!==e&&"object"==typeof e&&"function"==typeof e.get&&"function"==typeof e.set}zn.inline=(e,{modifiers:t},{cleanup:n})=>
25{t.includes("self")?e._x_ignoreSelf=!0:e._x_ignore=!0,n(()=>{t.includes("self")?delete e._x_ignoreSelf:delete e._x_ignore})},se("ignore",zn),se("effect",Qe((e,{expression:t},{effect:n})=>{n(Q(e,t))})),se("model",(e,{modifiers:t,expression:n},{effect:r,cleanup:i})=>{let o=e;t.includes("parent")&&(o=Me(e,t=>t!==e));let s,a=Q(o,n);s="string"==typeof n?Q(o,`${n} = __placeholder`):"function"==typeof n&&"string"==typeof n()?Q(o,`${n()} = __placeholder`):()=>{};let l=()=>{let e;return a(t=>e=t),Qn(e)?e.get():e},c=e=>{let t;a(e=>t=e),Qn(t)?t.set(e):s(()=>{},{scope:{__placeholder:e}})};"string"==typeof n&&"radio"===e.type&&_(()=>{e.hasAttribute("name")||e.setAttribute("name",n)});let u,d=t.includes("change")||t.includes("lazy"),f=t.includes("blur"),p=t.includes("enter");if(Ye)u=()=>{};else if(d||f||p){let n=[],r=n=>c(Jn(e,t,n,l()));if(d&&n.push(Un(e,"change",t,r)),f&&(n.push(Un(e,"blur",t,r)),e.form)){let t=e.form,n=()=>r({target:e});t._x_pendingModelUpdates||(t._x_pendingModelUpdates=[]),t._x_pendingModelUpdates.push(n),i(()=>{t._x_pendingModelUpdates&&t._x_pendingModelUpdates.splice(t._x_pendingModelUpdates.indexOf(n),1)})}p&&n.push(Un(e,"keydown",t,e=>{"Enter"===e.key&&r(e)})),u=()=>n.forEach(e=>e())}else{let n="select"===e.tagName.toLowerCase()||["checkbox","radio"].includes(e.type)?"change":"input";u=Un(e,n,t,n=>{c(Jn(e,t,n,l()))})}if(t.includes("fill")&&([void 0,null,""].includes(l())||ct(e)&&Array.isArray(l())||"select"===e.tagName.toLowerCase()&&e.multiple)&&c(Jn(e,t,{target:e},l())),e._x_removeModelListeners||(e._x_removeModelListeners={}),e._x_removeModelListeners.default=u,i(()=>e._x_removeModelListeners.default()),e.form){let n=Un(e.form,"reset",[],n=>{qe(()=>e._x_model&&e._x_model.set(Jn(e,t,{target:e},l())))});i(()=>n())}e._x_model={get:()=>l(),set(e){c(e)},setWithModifiers:Wn(t,c)},e._x_forceModelUpdate=t=>{void 0===t&&"string"==typeof n&&n.match(/\./)&&(t=""),_(()=>{ct(e)?Array.isArray(t)?e.checked=t.some(t=>t==e.value):e.checked=!!t:ut(e)?e.checked="boolean"==typeof t?ot(e.value)===t:e.value==t:rt(e,"value",t)})},r(()=>{let n=l();t.includes("unintrusive")&&document.activeElement.isSameNode(e)||e._x_forceModelUpdate(n)})}),se("cloak",e=>queueMicrotask(()=>_(()=>e.removeAttribute(ie("cloak"))))),Le(()=>`[${ie("init")}]`),se("init",Qe((e,{expression:t},{evaluate:n})=>"string"==typeof t?!!t.trim()&&n(t,{},!1):n(t,{},!1))),se("text",(e,{expression:t},{effect:n,evaluateLater:r})=>{let i=r(t);n(()=>{i(t=>{_(()=>{e.textContent=t})})})}),se("html",(e,{expression:t},{effect:n,evaluateLater:r})=>{let i=r(t);n(()=>{i(t=>{_(()=>{e.innerHTML=t??"",e._x_ignoreSelf=!0,Ne(e),delete e._x_ignoreSelf})})})}),ve(pe(":",ie("bind:")));var Zn=(e,{value:t,modifiers:n,expression:r,original:i},{effect:o,cleanup:s})=>{if(!t){let t={};return a=t,Object.entries(gt).forEach(([e,t])=>{Object.defineProperty(a,e,{get:()=>(...e)=>t(...e)})}),void Q(e,r)(t=>{yt(e,t,i)},{scope:t})}var a;if("key"===t)return function(e,t){e._x_keyExpression=t}(e,r);if(e._x_inlineBindings&&e._x_inlineBindings[t]&&e._x_inlineBindings[t].extract)return;let l=Q(e,r);o(()=>l(i=>{void 0===i&&"string"==typeof r&&r.match(/\./)&&(i=""),_(()=>rt(e,t,i,n))})),s(()=>{e._x_undoAddedClasses&&e._x_undoAddedClasses(),e._x_undoAddedStyles&&e._x_undoAddedStyles()})};function er(){}function tr(e,t,n){se(t,r=>Oe(`You can't use [x-${t}] without first installing the "${e}" plugin here: https://alpinejs.dev/plugins/${n}`,r))}Zn.inline=(e,{value:t,modifiers:n,expression:r})=>{t&&(e._x_inlineBindings||(e._x_inlineBindings={}),e._x_inlineBindings[t]={expression:r,extract:!1})},se("bind",Zn),Pe(()=>`[${ie("data")}]`),se("data",(t,{expression:n},{cleanup:r})=>{if(function(e){return!!Ye&&(!!tt||e.hasAttribute("data-has-alpine-state"))}(t))return;n=""===n?"{}":n;let i={};U(i,t);let o={};var s,a;s=o,a=i,Object.entries(bt).forEach(([e,t])=>{Object.defineProperty(s,e,{get:()=>(...e)=>t.bind(a)(...e),enumerable:!1})});let l=Y(t,n,{scope:o});void 0!==l&&!0!==l||(l={}),U(l,t);let c=e(l);q(c);let u=R(t,c);c.init&&Y(t,c.init),r(()=>{c.destroy&&Y(t,c.destroy),u()})}),et((e,t)=>{e._x_dataStack&&(t._x_dataStack=e._x_dataStack,t.setAttribute("data-has-alpine-state",!0))}),se("show",(e,{modifiers:t,expression:n},{effect:r})=>{let i=Q(e,n);e._x_doHide||(e._x_doHide=()=>{_(()=>{e.style.setProperty("display","none",t.includes("important")?"important":void 0)})}),e._x_doShow||(e._x_doShow=()=>{_(()=>{1===e.style.length&&"none"===e.style.display?e.removeAttribute("style"):e.style.removeProperty("display")})});let o,s=()=>{e._x_doHide(),e._x_isShown=!1},a=()=>{e._x_doShow(),e._x_isShown=!0},l=()=>setTimeout(a),c=We(e=>e?a():s(),t=>{"function"==typeof e._x_toggleAndCascadeWithTransitions?e._x_toggleAndCascadeWithTransitions(e,t,a,s):t?l():s()}),u=!0;r(()=>i(e=>
25{(u||e!==o)&&(t.includes("immediate")&&(e?l():s()),c(e),o=e,u=!1)}))}),se("for",(t,{expression:n},{effect:r,cleanup:i})=>{let o=function(e){let t=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,n=/^\s*\(|\)\s*$/g,r=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,i=e.match(r);if(!i)return;let o={};o.items=i[2].trim();let s=i[1].replace(n,"").trim(),a=s.match(t);a?(o.item=s.replace(t,"").trim(),o.index=a[1].trim(),a[2]&&(o.collection=a[2].trim())):o.item=s;return o}(n),s=Q(t,o.items),a=Q(t,t._x_keyExpression||"index");t._x_lookup=new Map,r(()=>function(t,n,r,i){r(r=>{var o;"object"==typeof(o=r)||isNaN(o)||(r=Array.from({length:r},(e,t)=>t+1)),null==r&&(r=[]),r instanceof Set&&(r=Array.from(r)),r instanceof Map&&(r=Array.from(r));let s=t._x_lookup,a=new Map;t._x_lookup=a;let l=function(e){return"object"==typeof e&&!Array.isArray(e)}(r),c=Object.entries(r).map(([e,o])=>{l||(e=parseInt(e));let c,u=function(e,t,n,r){let i={};if(/^\[.*\]$/.test(e.item)&&Array.isArray(t)){e.item.replace("[","").replace("]","").split(",").map(e=>e.trim()).forEach((e,n)=>{i[e]=t[n]})}else if(/^\{.*\}$/.test(e.item)&&!Array.isArray(t)&&"object"==typeof t){e.item.replace("{","").replace("}","").split(",").map(e=>e.trim()).forEach(e=>{i[e]=t[e]})}else i[e.item]=t;e.index&&(i[e.index]=n);e.collection&&(i[e.collection]=r);return i}(n,o,e,r);return i(e=>{"object"==typeof e&&Oe("x-for key cannot be an object, it must be a string or an integer",t),s.has(e)&&(a.set(e,s.get(e)),s.delete(e)),c=e},{scope:{index:e,...u}}),[c,u]});_(()=>{s.forEach(e=>{De(e),e.remove()});let n=new Set,r=t;c.forEach(([i,o])=>{if(a.has(i)){let e=a.get(i);return e._x_refreshXForScope(o),r.nextElementSibling!==e&&(r.nextElementSibling&&e.replaceWith(r.nextElementSibling),r.after(e)),r=e,void(e._x_currentIfEl&&(e.nextElementSibling!==e._x_currentIfEl&&r.after(e._x_currentIfEl),r=e._x_currentIfEl))}t.content.children.length>1&&Oe("x-for templates require a single root element, additional elements will be ignored.",t);let s=document.importNode(t.content,!0).firstElementChild,l=e(o);R(s,l,t),s._x_refreshXForScope=function(e){return t=>{Object.entries(t).forEach(([t,n])=>{e[t]=n})}}(l),a.set(i,s),n.add(s),r.after(s),r=s}),Qe(()=>n.forEach(e=>Ne(e)))()})})}(t,o,s,a)),i(()=>{t._x_lookup.forEach(e=>_(()=>{De(e),e.remove()})),delete t._x_lookup})}),er.inline=(e,{expression:t},{cleanup:n})=>{let r=je(e);r&&(r._x_refs||(r._x_refs={}),r._x_refs[t]=e,n(()=>delete r._x_refs[t]))},se("ref",er),se("if",(e,{expression:t},{effect:n,cleanup:r})=>{"template"!==e.tagName.toLowerCase()&&Oe("x-if can only be used on a <template> tag",e);let i=Q(e,t);n(()=>i(t=>{t?(()=>{if(e._x_currentIfEl)return e._x_currentIfEl;let t=e.content.cloneNode(!0).firstElementChild;R(t,{},e),_(()=>{e.after(t),Qe(()=>Ne(t))()}),e._x_currentIfEl=t,e._x_undoIf=()=>{_(()=>{De(t),t.remove()}),delete e._x_currentIfEl}})():e._x_undoIf&&(e._x_undoIf(),delete e._x_undoIf)})),r(()=>e._x_undoIf&&e._x_undoIf())}),se("id",(e,{expression:t},{evaluate:n})=>{n(t).forEach(t=>function(e,t){e._x_ids||(e._x_ids={}),e._x_ids[t]||(e._x_ids[t]=qn(t))}(e,t))}),et((e,t)=>{e._x_ids&&(t._x_ids=e._x_ids)}),ve(pe("@",ie("on:"))),se("on",Qe((e,{value:t,modifiers:n,expression:r},{cleanup:i})=>{let o=r?Q(e,r):()=>{};"template"===e.tagName.toLowerCase()&&(e._x_forwardEvents||(e._x_forwardEvents=[]),e._x_forwardEvents.includes(t)||e._x_forwardEvents.push(t));let s=Un(e,t,n,e=>{o(()=>{},{scope:{$event:e},params:[e]})});i(()=>s())})),tr("Collapse","collapse","collapse"),tr("Intersect","intersect","intersect"),tr("Focus","trap","focus"),tr("Mask","mask","mask"),wt.setEvaluator(function(e,t){let n={};U(n,e);let r=[n,...I(e)],i="function"==typeof t?function(e,t){return(n=()=>{},{scope:r={},params:i=[],context:o}={})=>{if(!X)return void ne(n,t,N([r,...e]),i);ne(n,t.apply(N([r,...e]),i))}}(r,t):function(e,t,n){let r=function(e,t){if(te[e])return te[e];let n=Object.getPrototypeOf(async function(){}).constructor,r=/^[\n\s]*if.*\(.*\)/.test(e.trim())||/^(let|const)\s/.test(e.trim())?`(async()=>{ ${e} })()`:e;const i=()=>{try{let t=new n(["__self","scope"],`with (scope) { __self.result = ${r} }; __self.finished = true; return __self.result;`);return Object.defineProperty(t,"name",{value:`[Alpine] ${e}`}),t}catch(n){return G(n,t,e),Promise.resolve()}};let o=i();return te[e]=o,o}(t,n);return(i=()=>{},{scope:o={},params:s=[],context:a}={})=>{r.result=void 0,r.finished=!1;let l=N([o,...e]);if("function"==typeof r){let e=r.call(a,r,l).catch(e=>G(e,n,t));r.finished?(ne(i,r.result,l,s,n),r.result=void 0):e.then(e=>{ne(i,e,l,s,n)}).catch(e=>G(e,n,t)).finally(()=>r.result=void 0)}}}(r,t,e);return W.bind(null,e,t,i)}),wt.setRawEvaluator(function(e,t,n={}){let r={};U(r,e);let i=[r,...I(e)],o=N([n.scope??{},...i]),s=n.params??[];if(t.includes("await")){return new(0,Object.getPrototypeOf(async function(){}).constructor)(["scope"],`with (scope) { let __result = ${/^[\n\s]*if.*\(.*\)/.test(t.trim())||/^(let|const)\s/.test(t.trim())?`(async()=>{ ${t} })()`:t}; return __result }`).call(n.context,o)}{let e=/^[\n\s]*if.*\(.*\)/.test(t.trim())||/^(let|const)\s/.test(t.trim())?`(()=>{ ${t} })()`:t,r=new Function(["scope"],`with (scope) { let __result = ${e}; return __result }`).call(n.context,o);return"function"==typeof r&&X?r.apply(o,s):r}}),wt.setReactivityEngine({reactive:Rn,effect:function(e,t=xt){(function(e){return e&&!0===e._isEffect})(e)&&(e=e.raw);const n=function(e,t){const n=function(){if(!n.active)return e();if(!qt.includes(n)){zt(n);try{return Wt.push(Ut),Ut=!0,qt.push(n),St=n,e()}finally{qt.pop(),Gt(),St=qt[qt.length-1]}}};return n.id=Vt++,n.allowRecurse=!!t.allowRecurse,n._isEffect=!0,n.active=!0,n.raw=e,n.deps=[],n.options=t,n}(e,t);return t.lazy||n(),n},release:function(e){e.active&&(zt(e),e.options.onStop&&e.options.onStop(),e.active=!1)},raw:Dn});var nr=wt;function rr(e,t,n){if(-1===e.indexOf(t))return n;const r=e[e.indexOf(t)+1];if(!r)return n;if("duration"===t){let e=r.match(/([0-9]+)ms/);if(e)return e[1]}if("min"===t){let e=r.match(/([0-9]+)px/);if(e)return e[1]}return r}var ir=function(e){function t(t,{modifiers:n}){let r=rr(n,"duration",250)/1e3,i=rr(n,"min",0),o=!n.includes("min");t._x_isShown||(t.style.height=`${i}px`),!t._x_isShown&&o&&(t.hidden=!0),t._x_isShown||(t.style.overflow="hidden");let s=(t,n)=>{let r=e.setStyles(t,n);return n.height?()=>{}:r},a={transitionProperty:"height",transitionDuration:`${r}s`,transitionTimingFunction:"cubic-bezier(0.4, 0.0, 0.2, 1)"};t._x_transition={in(n=()=>{},r=()=>{}){o&&(t.hidden=!1),o&&(t.style.display=null);let s=t.getBoundingClientRect().height;t.style.height="auto";let l=t.getBoundingClientRect().height;s===l&&(s=i),e.transition(t,e.setStyles,{during:a,start:{height:s+"px"},end:{height:l+"px"}},()=>t._x_isShown=!0,()=>{Math.abs(t.getBoundingClientRect().height-l)<1&&(t.style.overflow=null)})},out(n=()=>{},r=()=>{}){let l=t.getBoundingClientRect().height;e.transition(t,s,{during:a,start:{height:l+"px"},end:{height:i+"px"}},()=>t.style.overflow="hidden",()=>{t._x_isShown=!1,t.style.height==`${i}px`&&o&&(t.style.display="none",t.hidden=!0)})}}}e.directive("collapse",t),t.inline=(e,{modifiers:t})=>{t.includes("min")&&(e._x_doShow=()=>{},e._x_doHide=()=>{})}};nr.plugin(ir),window.Alpine=nr,nr.start()},4316(e,t,n){"use strict";n(113),n(7924);var r="dashboard";document.getElementsByClassName("demo-dashboard-tour").length&&document.addEventListener("DOMContentLoaded",function(){window.final_product_tours.includes(r)});var i="vat";document.addEventListener("DOMContentLoaded",function(){document.getElementById("demo-vat-tour")&&window.final_product_tours.includes(i)});var o="oss";document.getElementsByClassName("demo-oss-tour").length&&document.addEventListener("DOMContentLoaded",function(){window.final_product_tours.includes(o)});const s=["pointerdown","mousedown","pointerup","mouseup","click"],a=new WeakMap;function l(e,t,n){c(e);let r=r=>{let i=r.target;e.contains(i)&&((!n||n(i))&&(r.preventDefault(),r.stopPropagation(),r.stopImmediatePropagation()),"click"===r.type&&t?.(r))};for(let e of s)document.addEventListener(e,r,!0);a.set(e,r)}function c(e){let t=a.get(e);if(t){for(let e of s)document.removeEventListener(e,t,!0);a.delete(e)}}function u(e,t){let{elementDimensions:n,popoverDimensions:r,popoverPadding:i,popoverArrowDimensions:o}=t;return"start"===e?Math.max(Math.min(n.top-i,window.innerHeight-r.realHeight-o.width),o.width):"end"===e?Math.max(Math.min(n.top-r?.realHeight+n.height+i,window.innerHeight-r?.realHeight-o.width),o.width):"center"===e?Math.max(Math.min(n.top+n.height/2-r?.realHeight/2,window.innerHeight-r?.realHeight-o.width),o.width):0}function d(e,t){let{elementDimensions:n,popoverDimensions:r,popoverPadding:i,popoverArrowDimensions:o}=t;return"start"===e?Math.max(Math.min(n.left-i,window.innerWidth-r.realWidth-o.width),o.width):"end"===e?Math.max(Math.min(n.left-r?.realWidth+n.width+i,window.innerWidth-r?.realWidth-o.width),o.width):"center"===e?Math.max(Math.min(n.left+n.width/2-r?.realWidth/2,window.innerWidth-r?.realWidth-o.width),o.width):0}function f(e,t,n){let{align:r,side:i}=n,o=n.centered?"over":i,s=n.padding,a=function(e,t){let n=e.wrapper.getBoundingClientRect();return{width:n.width+t,height:n.height+t,realWidth:n.width,realHeight:n.height}}(e,n.offset),l=e.arrow.getBoundingClientRect(),c=t.getBoundingClientRect(),f=c.top-a.height,p=f>=0,h=window.innerHeight-(c.bottom+a.height),v=h>=0,g=c.left-a.width,y=g>=0,b=window.innerWidth-(c.right+a.width),w=b>=0,E=!(p||v||y||w),S=o;if("top"===o&&p?w=y=v=!1:"bottom"===o&&v?w=y=p=!1:"left"===o&&y?w=p=v=!1:"right"===o&&w&&(y=p=v=!1),"over"===o){let t=window.innerWidth/2-a.realWidth/2,n=window.innerHeight/2-a.realHeight/2;e.wrapper.style.left=`${t}px`,e.wrapper.style.right="auto",e.wrapper.style.top=`${n}px`,e.wrapper.style.bottom="auto"}else if(E){let t=window.innerWidth/2-a?.realWidth/2;e.wrapper.style.left=`${t}px`,e.wrapper.style.right="auto",e.wrapper.style.bottom="10px",e.wrapper.style.top="auto"}else if(y){let t=Math.min(g,window.innerWidth-a?.realWidth-l.width),n=u(r,{elementDimensions:c,popoverDimensions:a,popoverPadding:s,popoverArrowDimensions:l});e.wrapper.style.left=`${t}px`,e.wrapper.style.top=`${n}px`,e.wrapper.style.bottom="auto",e.wrapper.style.right="auto",S="left"}else if(w){let t=Math.min(b,window.innerWidth-a?.realWidth-l.width),n=u(r,{elementDimensions:c,popoverDimensions:a,popoverPadding:s,popoverArrowDimensions:l});e.wrapper.style.right=`${t}px`,e.wrapper.style.top=`${n}px`,e.wrapper.style.bottom="auto",e.wrapper.style.left="auto",S="right"}else if(p){let t=Math.min(f,window.innerHeight-a.realHeight-l.width),n=d(r,{elementDimensions:c,popoverDimensions:a,popoverPadding:s,popoverArrowDimensions:l});e.wrapper.style.top=`${t}px`,e.wrapper.style.left=`${n}px`,e.wrapper.style.bottom="auto",e.wrapper.style.right="auto",S="top"}else if(v){let t=Math.min(h,window.innerHeight-a?.realHeight-l.width),n=d(r,{elementDimensions:c,popoverDimensions:a,popoverPadding:s,popoverArrowDimensions:l});e.wrapper.style.left=`${n}px`,e.wrapper.style.bottom=`${t}px`,e.wrapper.style.top="auto",e.wrapper.style.right="auto",S="bottom"}m(e,E?"over":S,r,t),[...e.wrapper.classList].filter(e=>e.startsWith("driver-popover-side-")||e.startsWith("driver-popover-align-")).forEac
25h(t=>e.wrapper.classList.remove(t)),e.wrapper.classList.add(`driver-popover-side-${S}`),e.wrapper.classList.add(`driver-popover-align-${r}`)}function p(e,t,n,r,i,o=10){let s=r-n;return e<=n&&t>=r?"start"===i?15+o/2:"end"===i?s-15-o/2:s/2:(Math.min(Math.max(e,n),r)+Math.min(Math.max(t,n),r))/2-n}function h(e,t,n=10){let r=t-15-n;if(r<15)return Math.max(0,(t-n)/2);let i=e-n/2;return Math.min(Math.max(i,15),r)}function m(e,t,n,r){let i=e.arrow;if(i.className="driver-popover-arrow",i.style.top="",i.style.right="",i.style.bottom="",i.style.left="","over"===t)return void i.classList.add("driver-popover-arrow-none");let o=r.getBoundingClientRect(),s=e.wrapper.getBoundingClientRect(),a=function(e,t,n){return"left"===e||"right"===e?t.bottom>n.top&&t.top<n.bottom?e:t.bottom<=n.top?"bottom":"top":t.right>n.left&&t.left<n.right?e:t.right<=n.left?"right":"left"}(t,o,s);i.classList.add(`driver-popover-arrow-side-${a}`);let l=i.getBoundingClientRect().width||10;if("left"===a||"right"===a){let e=p(o.top,o.bottom,s.top,s.bottom,n,l);i.style.top=`${h(e,s.height,l)}px`}else{let e=p(o.left,o.right,s.left,s.right,n,l);i.style.left=`${h(e,s.width,l)}px`}}function v(e){return"function"==typeof e?e():"string"==typeof e?document.querySelector(e):e}function g(e,t,n,r){return(e/=r/2)<1?n/2*e*e+t:-n/2*(--e*(e-2)-1)+t}function y(e){let t='a[href]:not([disabled]), button:not([disabled]), textarea:not([disabled]), input[type="text"]:not([disabled]), input[type="radio"]:not([disabled]), input[type="checkbox"]:not([disabled]), select:not([disabled])';return e.flatMap(e=>{let n=e.matches(t),r=Array.from(e.querySelectorAll(t));return[...n?[e]:[],...r]}).filter(e=>"none"!==getComputedStyle(e).pointerEvents&&function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)}(e))}function b(e,t){if(!e||function(e){let t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)}(e))return;let n=e.offsetHeight>window.innerHeight;e.scrollIntoView({behavior:!t||w(e)?"auto":"smooth",inline:"center",block:n?"start":"center"})}function w(e){if(!e||!e.parentElement)return;let t=e.parentElement;return t.scrollHeight>t.clientHeight}function E(e,t){let n=function(){let e=document.createElement("div");e.classList.add("driver-popover");let t=document.createElement("div");t.classList.add("driver-popover-arrow");let n=document.createElement("header");n.id="driver-popover-title",n.classList.add("driver-popover-title"),n.style.display="none",n.innerText="Popover Title";let r=document.createElement("div");r.id="driver-popover-description",r.classList.add("driver-popover-description"),r.style.display="none",r.innerText="Popover description is here";let i=document.createElement("button");i.type="button",i.classList.add("driver-popover-close-btn"),i.setAttribute("aria-label","Close"),i.innerHTML="×";let o=document.createElement("footer");o.classList.add("driver-popover-footer");let s=document.createElement("span");s.classList.add("driver-popover-progress-text"),s.innerText="";let a=document.createElement("span");a.classList.add("driver-popover-navigation-btns");let l=document.createElement("button");l.type="button",l.classList.add("driver-popover-prev-btn","driver-popover-footer-btn"),l.innerHTML="Previous";let c=document.createElement("button");return c.type="button",c.classList.add("driver-popover-next-btn","driver-popover-footer-btn"),c.innerHTML="Next",a.appendChild(l),a.appendChild(c),o.appendChild(s),o.appendChild(a),e.appendChild(i),e.appendChild(t),e.appendChild(n),e.appendChild(r),e.appendChild(o),{wrapper:e,arrow:t,title:n,description:r,footer:o,previousButton:l,nextButton:c,closeButton:i,footerButtons:a,progress:s}}();document.body.appendChild(n.wrapper);let{title:r,description:i,showButtons:o,disableButtons:s,showProgress:a,nextBtnText:c,prevBtnText:u,progressText:d}=t;n.nextButton.innerHTML=c,n.previousButton.innerHTML=u,n.progress.innerHTML=d,t.doneButton&&n.nextButton.classList.add("driver-popover-done-btn"),r?(n.title.innerHTML=r,n.title.style.display="block"):n.title.style.display="none",i?(n.description.innerHTML=i,n.description.style.display="block"):n.description.style.display="none";let p=o.includes("next")||o.includes("previous")||a;n.closeButton.style.display=o.includes("close")?"block":"none",p?(n.footer.style.display="flex",n.progress.style.display=a?"block":"none",n.nextButton.style.display=o.includes("next")?"block":"none",n.previousButton.style.display=o.includes("previous")?"block":"none"):n.footer.style.display="none",s.includes("next")&&(n.nextButton.disabled=!0,n.nextButton.classList.add("driver-popover-btn-disabled")),s.includes("previous")&&(n.previousButton.disabled=!0,n.previousButton.classList.add("driver-popover-btn-disabled")),s.includes("close")&&(n.closeButton.disabled=!0,n.closeButton.classList.add("driver-popover-btn-disabled"));let h=n.wrapper;h.style.display="block",h.style.left="",h.style.top="",h.style.bottom="",h.style.right="",h.id="driver-popover-content",h.setAttribute("role","dialog"),h.setAttribute("aria-labelledby","driver-popover-title"),h.setAttribute("aria-describedby","driver-popover-description"),n.arrow.className="driver-popover-arrow",h.className=`driver-popover ${t.popoverClass||""}`.trim(),l(n.wrapper,e=>{let n=e.target;return n.closest(".driver-popover-next-btn")?t.onNextClick?.():n.closest(".driver-popover-prev-btn")?t.onPrevClick?.():n.closest(".driver-popover-close-btn")?t.onCloseClick?.():void 0},e=>!n.description.contains(e)&&!n.title.contains(e)&&!!e.closest(".driver-popover-prev-btn, .driver-popover-next-btn, .driver-popover-close-btn")),t.onRender?.(n),f(n,e,t.position),function(e,t,n){e.wrapper.querySelectorAll("img").forEach(r=>{if(r.complete)return;let i=()=>f(e,t,n);r.addEventListener("load",i,{once:!0}),r.addEventListener("error",i,{once:!0})})}(n,e,t.position),b(h,t.smoothScroll);let m=y([h,e]);return m.length>0&&m[0].focus(),n}function S(e){e&&(c(e.wrapper),e.wrapper.parentElement?.removeChild(e.wrapper))}function x(e,t){let n=window.innerWidth,r=window.innerHeight,i=t.padding,o=t.radius,s=e.width+2*i,a=e.height+2*i,l=
25Math.min(o,s/2,a/2),c=Math.floor(Math.max(l,0)),u=s-2*c,d=a-2*c;return`M${n},0L0,0L0,${r}L${n},${r}L${n},0Z\n M${e.x-i+c},${e.y-i} h${u} a${c},${c} 0 0 1 ${c},${c} v${d} a${c},${c} 0 0 1 -${c},${c} h-${u} a${c},${c} 0 0 1 -${c},-${c} v-${d} a${c},${c} 0 0 1 ${c},-${c} z`}function O(e,t,n,r,i){let o=e.getState("__activeStagePosition"),s=o||r.getBoundingClientRect(),a=i.getBoundingClientRect();o={x:g(t,s.x,a.x-s.x,n),y:g(t,s.y,a.y-s.y,n),width:g(t,s.width,a.width-s.width,n),height:g(t,s.height,a.height-s.height,n)},C(e,o),e.setState("__activeStagePosition",o)}function T(e,t){if(!t)return;let n=t.getBoundingClientRect(),r={x:n.x,y:n.y,width:n.width,height:n.height};e.setState("__activeStagePosition",r),C(e,r)}function k(e,t){let n=function(e,t){let n=window.innerWidth,r=window.innerHeight,i=document.createElementNS("http://www.w3.org/2000/svg","svg");i.classList.add("driver-overlay","driver-overlay-animated"),i.setAttribute("viewBox",`0 0 ${n} ${r}`),i.setAttribute("xmlSpace","preserve"),i.setAttribute("xmlnsXlink","http://www.w3.org/1999/xlink"),i.setAttribute("version","1.1"),i.setAttribute("preserveAspectRatio","xMinYMin slice"),i.style.fillRule="evenodd",i.style.clipRule="evenodd",i.style.strokeLinejoin="round",i.style.strokeMiterlimit="2",i.style.zIndex="10000",i.style.position="fixed",i.style.top="0",i.style.left="0",i.style.width="100%",i.style.height="100%";let o=document.createElementNS("http://www.w3.org/2000/svg","path");return o.setAttribute("d",x(t,A(e))),o.style.fill=e.getConfig("overlayColor")||"rgb(0,0,0)",o.style.opacity=`${e.getConfig("overlayOpacity")}`,o.style.pointerEvents="auto",o.style.cursor="auto",i.appendChild(o),i}(e,t);document.body.appendChild(n),l(n,t=>{"path"===t.target.tagName&&e.emit("overlayClick")}),e.setState("__overlaySvg",n)}function C(e,t){let n=e.getState("__overlaySvg");if(!n)return void k(e,t);let r=n.firstElementChild;if("path"!==r?.tagName)throw Error("no path element found in stage svg");r.setAttribute("d",x(t,A(e)))}function A(e){return{padding:e.getConfig("stagePadding")||0,radius:e.getConfig("stageRadius")||0}}function _(e){let t=e.getState("__overlaySvg");t&&(c(t),t.remove())}const P="{{current}} of {{total}}";function L(e,t){return!(!(t.skipMissingElement??e.getConfig("skipMissingElement"))||!t.element)&&!v(t.element)}function j(e,t,n){let r=e.getConfig("steps")||[];for(let i=t;i>=0&&i<r.length;i+=n)if(!L(e,r[i]))return i}function M(e,t){let n=e.getState("activeIndex"),r=void 0!==n&&void 0===j(e,n+1,1),i=t?.popover?.onDoneClick||e.getConfig("onDoneClick");return r&&i?i:t?.popover?.onNextClick||e.getConfig("onNextClick")}function R(e,t){return t?.popover?.onPrevClick||e.getConfig("onPrevClick")}function I(e,t,n){let r=e.getConfig("stagePadding")||0;return{side:n.popover?.side||"bottom",align:n.popover?.align||"start",offset:r+(e.getConfig("popoverOffset")||0),padding:r,centered:"driver-dummy-element"===t.id}}function N(e,t,n){S(e.getState("popover")),E(t,function(e,t,n){let r=n.popover||{},i=e.getState("activeIndex"),o=void 0!==i&&void 0===j(e,i+1,1);return{title:r.title,description:r.description,showButtons:r.showButtons||e.getConfig("showButtons"),disableButtons:r.disableButtons||e.getConfig("disableButtons")||[],showProgress:r.showProgress||e.getConfig("showProgress")||!1,progressText:r.progressText??(e.getConfig("progressText")||P),nextBtnText:r.nextBtnText??(e.getConfig("nextBtnText")||"Next"),prevBtnText:r.prevBtnText??(e.getConfig("prevBtnText")||"Previous"),doneButton:o,popoverClass:r.popoverClass||e.getConfig("popoverClass")||"",smoothScroll:e.getConfig("smoothScroll"),onNextClick:()=>{let r=M(e,n);return r?r(t,n,e.getHookOpts()):e.emit("nextClick")},onPrevClick:()=>{let r=R(e,n);return r?r(t,n,e.getHookOpts()):e.emit("prevClick")},onCloseClick:()=>{let r=function(e,t){return t?.popover?.onCloseClick||e.getConfig("onCloseClick")}(e,n);return r?r(t,n,e.getHookOpts()):e.emit("closeClick")},onRender:t=>{e.setState("popover",t),(r.onPopoverRender||e.getConfig("onPopoverRender"))?.(t,e.getHookOpts())},position:I(e,t,n)}}(e,t,n))}function D(e,t){let n=v(t.element);n||(n=function(){let e=document.getElementById("driver-dummy-element");
25if(e)return e;let t=document.createElement("div");return t.id="driver-dummy-element",t.style.width="0",t.style.height="0",t.style.pointerEvents="none",t.style.opacity="0",t.style.position="fixed",t.style.top="50%",t.style.left="50%",document.body.appendChild(t),t}()),function(e,t,n){let r=e.getConfig("duration")||400,i=Date.now(),o=e.getState("__activeStep"),s=e.getState("__activeElement")||t,a=!s||s===t,l="driver-dummy-element"===t.id,c="driver-dummy-element"===s.id,u=e.getConfig("animate"),d=n.onHighlightStarted||e.getConfig("onHighlightStarted"),f=n?.onHighlighted||e.getConfig("onHighlighted"),p=o?.onDeselected||e.getConfig("onDeselected"),h=e.getHookOpts();!a&&p&&p(c?void 0:s,o,h),d&&d(l?void 0:t,n,h);let m=!a&&u,v=!1;(function(e){e&&(e.wrapper.style.display="none")})(e.getState("popover")),e.setState("previousStep",o),e.setState("previousElement",s),e.setState("activeStep",n),e.setState("activeElement",t);let g=()=>{if(e.getState("__transitionCallback")!==g)return;let a=Date.now()-i,c=r-a<=r/2;n.popover&&c&&!v&&m&&(N(e,t,n),v=!0),e.getConfig("animate")&&a<r?O(e,a,r,s,t):(T(e,t),f&&f(l?void 0:t,n,e.getHookOpts()),e.setState("__transitionCallback",void 0),e.setState("__previousStep",o),e.setState("__previousElement",s),e.setState("__activeStep",n),e.setState("__activeElement",t)),window.requestAnimationFrame(g)};e.setState("__transitionCallback",g),window.requestAnimationFrame(g),b(t,e.getConfig("smoothScroll")),!m&&n.popover&&N(e,t,n),document.querySelectorAll(".driver-active-element-parent").forEach(e=>{e.classList.remove("driver-active-element-parent","driver-active-element-parent-no-scroll")}),s.classList.remove("driver-active-element","driver-no-interaction"),s.removeAttribute("aria-haspopup"),s.removeAttribute("aria-expanded"),s.removeAttribute("aria-controls"),(n.disableActiveInteraction??e.getConfig("disableActiveInteraction"))&&t.classList.add("driver-no-interaction");let y=t.parentElement;y&&y!==document.body&&(y.classList.add("driver-active-element-parent"),function(e){let t=window.getComputedStyle(e);return[t.overflow,t.overflowX,t.overflowY].some(e=>"auto"===e||"scroll"===e)}(y)&&y.classList.add("driver-active-element-parent-no-scroll")),t.classList.add("driver-active-element"),t.setAttribute("aria-haspopup","dialog"),t.setAttribute("aria-expanded","true"),t.setAttribute("aria-controls","driver-popover-content")}(e,n,t)}function F(e){let t=e.getState("__activeElement"),n=e.getState("__activeStep");t&&(T(e,t),function(e){let t=e.getState("__activeStagePosition"),n=e.getState("__overlaySvg");if(!t)return;if(!n)return void console.warn("No stage svg found.");let r=window.innerWidth,i=window.innerHeight;n.setAttribute("viewBox",`0 0 ${r} ${i}`)}(e),function(e,t,n){let r=e.getState("popover");r&&f(r,t,I(e,t,n))}(e,t,n))}function B(e){let t=e.getState("__resizeTimeout");t&&window.cancelAnimationFrame(t),e.setState("__resizeTimeout",window.requestAnimationFrame(()=>F(e)))}function q(e){let t=t=>function(e,t){(e.getConfig("allowKeyboardControl")??1)&&("Escape"===t.key?e.emit("escapePress"):"ArrowRight"===t.key?e.emit("arrowRightPress"):"ArrowLeft"===t.key&&e.emit("arrowLeftPress"))}(e,t),n=t=>function(e,t){if(!e.getState("isInitialized")||"Tab"!==t.key&&9!==t.keyCode)return;let n=e.getState("__activeElement"),r=e.getState("popover")?.wrapper,i=y([...r?[r]:[],...n?[n]:[]]),o=i[0],s=i[i.length-1];t.preventDefault(),t.shiftKey?(i[i.indexOf(document.activeElement)-1]||s)?.focus():(i[i.indexOf(document.activeElement)+1]||o)?.focus()}(e,t),r=()=>B(e),i=()=>B(e),o=t=>function(e,t){let n=e.getState("__activeElement"),r=t.target;!n||!r||!n.contains(r)||e.emit("activeElementClick")}(e,t);e.setState("__events",{onKeyup:t,onKeydown:n,onResize:r,onScroll:i,onClick:o}),window.addEventListener("keyup",t,!1),window.addEventListener("keydown",n,!1),window.addEventListener("resize",r),window.addEventListener("scroll",i),document.addEventListener("click",o,!1)}function H(e={}){let t=function(e={}){let t=function(){let e={};function t(t={}){e={animate:!0,duration:400,allowClose:!0,allowScroll:!0,overlayClickBehavior:"close",overlayOpacity:.7,smoothScroll:!1,disableActiveInteraction:!1,advanceOnClick:!1,skipMissingElement:!1,waitForElement:0,showProgress:!1,stagePadding:10,stageRadius:5,popoverOffset:10,showButtons:["next","previous","close"],disableButtons:[],overlayColor:"#000",...t}}return t(),{getConfig:t=>t?e[t]:e,configure:t}}();t.configure(e);let n,r=function(){let e={};return{getState:t=>t?e[t]:e,setState:(t,n)=>{e[t]=n},resetState:function(){e={}}}}(),i=function(){let e={};return{listen:function(t,n){e[t]=n},emit:function(t){e[t]?.()},reset:function(){e={}}}}();return{getConfig:t.getConfig,setConfig:t.configure,getState:r.getState,setState:r.setState,resetState:r.resetState,listen:i.listen,emit:i.emit,resetEmitter:i.reset,getDriver:()=>n,setDriver:e=>{n=e},getHookOpts:e=>{let i=e||r.getState();return{config:t.getConfig(),state:i,driver:n,index:i.activeIndex}}}}(e);function n(){t.getConfig("allowClose")&&f()}function r(){let e=t.getConfig("overlayClickBehavior");if(t.getConfig("allowClose")&&"close"===e)f();else{if("function"==typeof e){let n=t.getState("__activeStep");return void e(t.getState("__activeElement"),n,t.getHookOpts())}if("nextStep"===e){let e=t.getState("activeStep"),n=t.getState("activeElement"),r=M(t,e);if(r)return void r(n,e,t.getHookOpts());i()}}}function i(){let e=t.getState("activeIndex"),n=t.getConfig("steps")||[];if(void 0===e)return;let r=e+1;n[r]?d(r):f()}function o(){let e=t.getState("activeIndex"),n=t.getConfig("steps")||[];if(void 0===e)return;let r=e-1;n[r]?d(r):f()}function s(){if(t.getState("__transitionCallback"))return;let e=t.getState("__activeStep");if(!e||!(e.advanceOnClick??t.getConfig("advanceOnClick")))return;let n=t.getState("__activeElement"),r=M(t,e);r?r(n,e,t.getHookOpts()):i()}function a(){if(t.getState("__transitionCallback"))return;let e=t.getState("activeIndex"),n=t.getState("__activeStep"),r=t.getState("__activeElement");
25if(void 0===e||void 0===n||!(t.getConfig("steps")||[])[e-1])return;let i=R(t,n);if(i)return i(r,n,t.getHookOpts());o()}function l(){if(t.getState("__transitionCallback"))return;let e=t.getState("activeIndex"),n=t.getState("__activeStep"),r=t.getState("__activeElement");if(void 0===e||void 0===n)return;let o=M(t,n);if(o)return o(r,n,t.getHookOpts());i()}function c(){t.getState("isInitialized")||(t.setState("isInitialized",!0),document.body.classList.add("driver-active",t.getConfig("animate")?"driver-fade":"driver-simple"),t.getConfig("allowScroll")||document.body.classList.add("driver-no-scroll"),document.body.style.setProperty("--driver-animation-duration",`${t.getConfig("duration")||400}ms`),q(t),t.listen("overlayClick",r),t.listen("activeElementClick",s),t.listen("escapePress",n),t.listen("closeClick",n),t.listen("arrowLeftPress",a),t.listen("arrowRightPress",l))}function u(){let e=t.getState("__pendingWaitCancel");e&&(t.setState("__pendingWaitCancel",void 0),e())}function d(e=0,n=!1){u();let r=t.getConfig("steps");if(!r)return console.error("No steps to drive through"),void f();if(!r[e])return void f();let i=r[e],o=i.waitForElement??t.getConfig("waitForElement")??0;if(!n&&o>0&&i.element&&!v(i.element))return void function(e,n,r){let i=()=>{o.disconnect(),window.clearTimeout(s),t.setState("__pendingWaitCancel",void 0),r()},o=new MutationObserver(()=>{v(e.element)&&i()}),s=window.setTimeout(i,n);t.setState("__pendingWaitCancel",()=>{o.disconnect(),window.clearTimeout(s)}),o.observe(document.documentElement,{childList:!0,subtree:!0,attributes:!0})}(i,o,()=>d(e,!0));if(L(t,i)){let n=t.getState("activeIndex"),i="number"==typeof n&&e<n?-1:1;return void(r[e+i]?d(e+i):1===i&&f())}t.setState("__activeOnDestroyed",document.activeElement),t.setState("activeIndex",e);let s=r[e+1];D(t,function(e,t,n){let r=e.getConfig("steps")||[],i=r[t],o=i.popover||{},s=void 0!==j(e,t+1,1),a=void 0!==j(e,t-1,-1),l=o.doneBtnText||e.getConfig("doneBtnText")||"Done",c=e.getConfig("allowClose"),u=void 0===o.showProgress?e.getConfig("showProgress"):o.showProgress,d=(o.progressText||e.getConfig("progressText")||P).replace("{{current}}",`${t+1}`).replace("{{total}}",`${r.length}`),f=o.showButtons||e.getConfig("showButtons"),p=["next","previous",...c?["close"]:[]].filter(e=>!f?.length||f.includes(e)),h=o.onNextClick||e.getConfig("onNextClick"),m=o.onPrevClick||e.getConfig("onPrevClick"),v=o.onCloseClick||e.getConfig("onCloseClick");return{...i,popover:{showButtons:p,nextBtnText:s?void 0:l,disableButtons:[...a?[]:["previous"]],showProgress:u,onNextClick:h||n.onNextClick,onPrevClick:m||n.onPrevClick,onCloseClick:v||n.onCloseClick,...o,progressText:d}}}(t,e,{onNextClick:()=>{s?d(e+1):f()},onPrevClick:()=>{d(e-1)},onCloseClick:()=>{f()}}))}function f(e=!0){let n=t.getState("__activeElement"),r=t.getState("__activeStep"),i=t.getState("__activeOnDestroyed"),o=t.getConfig("onDestroyStarted");if(e&&o)return void o(n&&"driver-dummy-element"!==n?.id?n:void 0,r,t.getHookOpts());let s=r?.onDeselected||t.getConfig("onDeselected"),a=t.getConfig("onDestroyed");document.body.classList.remove("driver-active","driver-fade","driver-simple","driver-no-scroll"),document.body.style.removeProperty("--driver-animation-duration"),u(),function(e){let t=e.getState("__events");t&&(window.removeEventListener("keyup",t.onKeyup),window.removeEventListener("keydown",t.onKeydown),window.removeEventListener("resize",t.onResize),window.removeEventListener("scroll",t.onScroll),document.removeEventListener("click",t.onClick,!1))}(t),S(t.getState("popover")),document.getElementById("driver-dummy-element")?.remove(),document.querySelectorAll(".driver-active-element").forEach(e=>{let t=e.parentElement;t&&t!==document.body&&t.classList.remove("driver-active-element-parent","driver-active-element-parent-no-scroll"),e.classList.remove("driver-active-element","driver-no-interaction"),e.removeAttribute("aria-haspopup"),e.removeAttribute("aria-expanded"),e.removeAttribute("aria-controls")}),_(t),t.resetEmitter();let l=t.getState();if(t.resetState(),n&&r){let e="driver-dummy-element"===n.id;s&&s(e?void 0:n,r,t.getHookOpts(l)),a&&a(e?void 0:n,r,t.getHookOpts(l))}i&&i.focus()}let p={isActive:()=>t.getState("isInitialized")||!1,refresh:()=>B(t),drive:(e=0)=>{c(),d(e)},setConfig:t.setConfig,setSteps:e=>{u(),t.resetState(),t.setConfig({...t.getConfig(),steps:e})},getConfig:t.getConfig,getState:t.getState,getActiveIndex:()=>t.getState("activeIndex"),isFirstStep:()=>{let e=t.getState("activeIndex");return void 0!==e&&void 0===j(t,e-1,-1)},isLastStep:()=>{let e=t.getState("activeIndex");return void 0!==e&&void 0===j(t,e+1,1)},getActiveStep:()=>t.getState("activeStep"),getActiveElement:()=>t.getState("activeElement"),getPreviousElement:()=>t.getState("previousElement"),getPreviousStep:()=>t.getState("previousStep"),getNextStep:()=>{let e=t.getConfig("steps")||[],n=t.getState("activeIndex");if(void 0===n)return;let r=j(t,n+1,1);return void 0===r?void 0:e[r]},moveNext:i,movePrevious:o,moveTo:function(e){(t.getConfig("steps")||[])[e]?d(e):f()},hasNextStep:()=>{let e=t.getState("activeIndex");return void 0!==e&&void 0!==j(t,e+1,1)},hasPreviousStep:()=>{let e=t.getState("activeIndex");return void 0!==e&&void 0!==j(t,e-1,-1)},highlight:e=>{c(),D(t,{...e,popover:e.popover?{showButtons:[],showProgress:!1,progressText:"",...e.popover}:void 0})},destroy:()=>{f(!1)}};return t.setDriver(p),p}var $=n(4690);
25function V(e,t,n){var r,i=window.location.pathname.split("/")[1];n&&!e.isLastStep()?r="canceled":(r="step",e.isFirstStep()?r="started":e.isLastStep()&&(r="completed"));var o=e.getActiveIndex()+1;return $.A.post("/".concat(i,"/product-tour/").concat(t,"/").concat(r,"/").concat(o)).then(function(e){if(!1===e.data.success)return $.A.post("/".concat(i,"/product-tour/").concat(t,"/").concat(r,"/").concat(o))}).finally(function(){n?e.destroy():e.moveNext()})}var z="financials";document.getElementById("bookkeeping")&&document.addEventListener("DOMContentLoaded",function(){window.product_tours.includes(z)||function(){var e=financialsTourtranslations,t=H({nextBtnText:e.next,prevBtnText:e.previous,showProgress:!0,popoverClass:"driverjs-theme",showButtons:["next","previous","close"],onCloseClick:function(){return V(t,z,!0)},onNextClick:function(){return V(t,z)},steps:[{popover:{title:e.welcome,description:e.welcomeDescription,side:"left",align:"start",nextBtnText:e.startTour}},{element:"#bookkeeping",popover:{title:e.filterIntegrations,description:e.filterIntegrationsDescription+"<img style='height: 264px; outline-color: #f2f2fa;' class='mt-3 rounded-xl outline-solid outline-2 outline-offset-2' src='../images/financials-tour-integrations.gif' />",side:"top",align:"center"}},{popover:{title:e.taxRates,description:e.taxRatesDescription+"<br>"+e.taxRatesDescription2+"<img style='height: 265px; outline-color: #f2f2fa;' class='mt-3 rounded-xl outline-solid outline-2 outline-offset-2' src='../images/financials-tour-vat.gif' />",side:"top",align:"center"}},{element:".tour-transactions",popover:{title:e.transactions,description:e.transactionsDescription,side:"left",align:"center"}},{popover:{title:e.countries,description:e.countriesDescription+"<img style='height: 277px; outline-color: #f2f2fa;' class='mt-3 rounded-xl outline-solid outline-2 outline-offset-2' src='../images/financials-tour-countries.gif' />",side:"left",align:"center"}},{element:".tour-export",popover:{title:e.export,description:e.exportDescription,side:"left",align:"center"}},{element:".tour-export",popover:{title:e.bookkeeping,description:e.bookkeepingDescription,side:"left",align:"center"}},{popover:{title:e.thatsAll,description:e.thatsAllDescription,side:"bottom",align:"center"}}]});t.drive()}()});var U="vat";document.addEventListener("DOMContentLoaded",function(){document.getElementById("vat-tour")&&(window.product_tours.includes(U)||function(){var e=vatTourtranslations,t=H({nextBtnText:e.next,prevBtnText:e.previous,showProgress:!0,popoverClass:"driverjs-theme",showButtons:["next","previous","close"],onCloseClick:function(){return V(t,U,!0)},onNextClick:function(){return V(t,U)},steps:[{popover:{title:e.welcome,description:e.welcomeDescription,side:"left",align:"start",nextBtnText:e.startTour}},{element:".tour-overview",popover:{title:e.summaryUse,description:e.summaryUseDescription,side:"top",align:"center"}},{popover:{title:e.dutchFiling,description:e.dutchFilingDescription,side:"bottom",align:"center"}},{element:".tour-export",popover:{title:e.export,description:e.exportDescription+"<img style='height: 265px; outline-color: #f2f2fa;' class='mt-3 rounded-xl outline-solid outline-2 outline-offset-2' src='/images/vat-tour-export.gif' />",side:"bottom",align:"center"}},{popover:{title:e.use,description:e.useDescription+"<br>"+e.useDescription1+"<br>"+e.useDescription2+"<br>"+e.useDescription3+"<br>"+e.useDescription4,side:"bottom",align:"center"}},{element:".alert",popover:{title:e.alert,description:e.alertDescription1+"<br><br>"+e.alertDescription2,side:"bottom",align:"center"}},{popover:{title:e.structure,description:e.structureDescription,side:"bottom",align:"center"}},{popover:{title:e.differences,description:e.differencesDescription,side:"bottom",align:"center"}},{popover:{title:e.thatsAll,description:e.thatsAllDescription,side:"bottom",align:"center"}}]});t.drive()}())});var W=n(89),G=n(2891);const K=class extends G.xI{connect(){this.lazyValue?this.lazyAnimate():this.animate()}animate(){let e=null;const t=n=>{e||(e=n);const r=n-e,i=Math.min(r/this.durationValue,1);this.element.innerHTML=Math.floor(i*(this.endValue-this.startValue)+this.startValue).toString(),i<1&&window.requestAnimationFrame(t)};window.requestAnimationFrame(t)}lazyAnimate(){new IntersectionObserver((e,t)=>
25{e.forEach(e=>{e.isIntersecting&&(this.animate(),t.unobserve(e.target))})},this.lazyAnimateOptions).observe(this.element)}get lazyAnimateOptions(){return{threshold:this.lazyThresholdValue,rootMargin:this.lazyRootMarginValue}}};K.values={start:Number,end:Number,duration:Number,lazyThreshold:Number,lazyRootMargin:{type:String,default:"0px"},lazy:Boolean};let X=K;var J=n(972),Y=n(3486);Object.assign(window,{$:Y,jQuery:Y}),(0,J.E)(n(9283)).register("animated-number",X),W.dZ.drive=!1},113(){window.fancyConfirm=function(e,t){if(!document.getElementById("confirm-modal")){var n=document.createElement("div");n.id="confirm-modal",n.innerHTML='\n <div class="modal-overlay fixed inset-0 z-50 opacity-0 invisible flex items-center justify-center transition-all duration-300">\n \x3c!-- Backdrop --\x3e\n <div class="backdrop fixed inset-0 bg-black/50 opacity-0 transition-opacity duration-300"></div>\n\n \x3c!-- Modal --\x3e\n <div class="relative bg-white p-14 rounded-3xl max-w-xl text-center transform translate-y-4 opacity-0 scale-95 transition-all duration-300 shadow-xl" >\n <button class="absolute right-6 top-6 text-gray-400 hover:text-gray-600 close-button">\n \x3c!-- ux-icon-allow: modal built in a template literal, no Twig runtime to call ux_icon() --\x3e\n <svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">\n <line x1="18" y1="6" x2="6" y2="18"></line>\n <line x1="6" y1="6" x2="18" y2="18"></line>\n </svg>\n </button>\n <p class="title text-black text-md px-4 font-normal mb-8"></p>\n <div class="flex justify-center gap-4">\n <button class="confirm-button bg-staxxer-purple text-white px-12 py-3 rounded-full font-semibold hover:bg-[#5558DD] transition-colors" data-cy="confirm-button"></button>\n <button class="cancel-button bg-staxxer-almost-white text-black px-12 py-3 rounded-full font-semibold hover:bg-gray-100 transition-colors"></button>\n </div>\n </div>\n </div>\n ',document.body.appendChild(n)}var r=document.getElementById("confirm-modal"),i=r.querySelector(".modal-overlay"),o=r.querySelector(".backdrop"),s=r.querySelector(".bg-white"),a=r.querySelector(".title"),l=r.querySelector(".confirm-button"),c=r.querySelector(".cancel-button"),u=r.querySelector(".close-button"),d=document.documentElement.lang.startsWith("nl");a.textContent=e,l.textContent=d?"Ja":"Yes",c.textContent=d?"Nee":"No";var f=function(e){i.classList.add("opacity-0"),o.classList.add("opacity-0"),s.classList.add("opacity-0","translate-y-4","scale-95"),setTimeout(function(){i.classList.add("invisible"),t(e)},300)};l.onclick=function(){return f(!0)},c.onclick=function(){return f(!1)},u.onclick=function(){return f(!1)},o.onclick=function(){return f(!1)},document.addEventListener("keydown",function(e){"Escape"!==e.key||i.classList.contains("invisible")||f(!1)}),i.classList.remove("invisible"),setTimeout(function(){i.classList.remove("opacity-0"),o.classList.remove("opacity-0"),s.classList.remove("opacity-0","translate-y-4","scale-95")},10)}},3486(e,t,n){"use strict";const{jQuery:r}=n(8842);e.exports=r},3513(e){e.exports=function(){"use strict";const e=(e,t=!1)=>{e&&(e.preventDefault(),t&&e.stopPropagation())},t=(e,t,n,r)=>{e.addEventListener(t,n,r)},n=(e,t)=>{if(Array.isArray(e))e.forEach(t);else for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)},r=e=>{if(e.jquery)return e[0];if(e instanceof HTMLElement)return e;if(i(e)){var t=document.createElement("template");return t.innerHTML=e.trim(),t.content.firstChild}return document.querySelector(e)},i=e=>"string"==typeof e&&e.indexOf("<")>-1,o=(e,t)=>{n(t,(t,n)=>{null==t?e.removeAttribute(n):e.setAttribute(n,""+t)})},s=(e,t)=>{var n;null==(n=e.parentNode)||n.insertBefore(t,e.nextSibling)},a=(e,t)=>{var n;null==(n=e.parentNode)||n.insertBefore(t,e)},l=(e,t)=>
25{do{var n;if(e==(t=null==(n=t)?void 0:n.previousElementSibling))return!0}while(t&&t.previousElementSibling);return!1};function c(){var n=this;if("multi"!==n.settings.mode)return;var i=n.lock,c=n.unlock;let u,d=!0;n.hook("after","setupTemplates",()=>{var i=n.settings.render.item;n.settings.render.item=(c,f)=>{const p=r(i.call(n,c,f));o(p,{draggable:"true"});const h=e=>{u=p,setTimeout(()=>{p.classList.add("ts-dragging")},0)},m=e=>{e.preventDefault(),p.classList.add("ts-drag-over"),g(p,u)},v=()=>{p.classList.remove("ts-drag-over")},g=(e,t)=>{void 0!==t&&(l(t,p)?s(e,t):a(e,t))},y=()=>{var e;document.querySelectorAll(".ts-drag-over").forEach(e=>e.classList.remove("ts-drag-over")),null==(e=u)||e.classList.remove("ts-dragging"),u=void 0;var t=[];n.control.querySelectorAll("[data-value]").forEach(e=>{if(e.dataset.value){let n=e.dataset.value;n&&t.push(n)}}),n.setValue(t)};return t(p,"mousedown",t=>{d||e(t),t.stopPropagation()}),t(p,"dragstart",h),t(p,"dragenter",m),t(p,"dragover",m),t(p,"dragleave",v),t(p,"dragend",y),p}}),n.hook("instead","lock",()=>(d=!1,i.call(n))),n.hook("instead","unlock",()=>(d=!0,c.call(n)))}return c}()},4690(e,t,n){"use strict";n.d(t,{A:()=>Gt});var r={};function i(e,t){return function(){return e.apply(t,arguments)}}n.r(r),n.d(r,{hasBrowserEnv:()=>Re,hasStandardBrowserEnv:()=>Ne,hasStandardBrowserWebWorkerEnv:()=>De,navigator:()=>Ie,origin:()=>Fe});const{toString:o}=Object.prototype,{getPrototypeOf:s}=Object,{iterator:a,toStringTag:l}=Symbol,c=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),u=(e,t)=>{let n=e;const r=[];for(;null!=n&&n!==Object.prototype;){if(-1!==r.indexOf(n))return!1;if(r.push(n),c(n,t))return!0;n=s(n)}return!1},d=(f=Object.create(null),e=>{const t=o.call(e);return f[t]||(f[t]=t.slice(8,-1).toLowerCase())});var f;const p=e=>(e=e.toLowerCase(),t=>d(t)===e),h=e=>t=>typeof t===e,{isArray:m}=Array,v=h("undefined");function g(e){return null!==e&&!v(e)&&null!==e.constructor&&!v(e.constructor)&&w(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const y=p("ArrayBuffer");const b=h("string"),w=h("function"),E=h("number"),S=e=>null!==e&&"object"==typeof e,x=e=>{if(!S(e))return!1;const t=s(e);return!(null!==t&&t!==Object.prototype&&null!==s(t)||u(e,l)||u(e,a))},O=p("Date"),T=p("File"),k=p("Blob"),C=p("FileList"),A=p("Set");const _="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:{},P=void 0!==_.FormData?_.FormData:void 0,L=p("URLSearchParams"),[j,M,R,I]=["ReadableStream","Request","Response","Headers"].map(p);function N(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,i;if("object"!=typeof e&&(e=[e]),m(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if(g(e))return;const i=n?Object.getOwnPropertyNames(e):Object.keys(e),o=i.length;let s;for(r=0;r<o;r++)s=i[r],t.call(null,e[s],s,e)}}function D(e,t){if(g(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r,i=n.length;for(;i-- >0;)if(r=n[i],t===r.toLowerCase())return r;return null}const F="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:n.g,B=e=>!v(e)&&e!==F;const q=(H="undefined"!=typeof Uint8Array&&s(Uint8Array),e=>H&&e instanceof H);var H;const $=p("HTMLFormElement"),{propertyIsEnumerable:V}=Object.prototype,z=p("RegExp"),U=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};N(n,(n,i)=>{let o;!1!==(o=t(n,i,e))&&(r[i]=o||n)}),Object.defineProperties(e,r)};const W=p("AsyncFunction"),G=(K="function"==typeof setImmediate,X=w(F.postMessage),K?setImmediate:X?(J=`axios@${Math.random()}`,Y=[],F.addEventListener("message",({source:e,data:t})=>{e===F&&t===J&&Y.length&&Y.shift()()},!1),e=>{Y.push(e),F.postMessage(J,"*")}):e=>setTimeout(e));var K,X,J,Y;const Q="undefined"!=typeof queueMicrotask?queueMicrotask.bind(F):"undefined"!=typeof process&&process.nextTick||G,Z=e=>null!=e&&w(e[a]),ee={isArray:m,isArrayBuffer:y,isBuffer:g,isFormData:e=>{if(!e)return!1;if(P&&e instanceof P)return!0;const t=s(e);if(!t||t===Object.prototype)return!1;if(!w(e.append))return!1;const n=d(e);return"formdata"===n||"object"===n&&w(e.toString)&&"[object FormData]"===e.toString()},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&y(e.buffer),t},isString:b,isNumber:E,isBoolean:e=>!0===e||!1===e,isObject:S,isPlainObject:x,isEmptyObject:e=>{if(!S(e)||g(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:j,isRequest:M,isResponse:R,isHeaders:I,isUndefined:v,isDate:O,isFile:T,isReactNativeBlob:e=>!(!e||void 0===e.uri),isReactNative:e=>e&&void 0!==e.getParts,isBlob:k,isRegExp:z,isFunction:w,isStream:e=>S(e)&&w(e.pipe),isURLSearchParams:L,isTypedArray:q,isFileList:C,forEach:N,merge:function e(...t){const{caseless:n,skipUndefined:r}=B(this)&&this||{},i={},o=(t,o)=>{if("__proto__"===o||"constructor"===o||"prototype"===o)return;const s=n&&"string"==typeof o&&D(i,o)||o,a=c(i,s)?i[s]:void 0;x(a)&&x(t)?i[s]=e(a,t):x(t)?i[s]=e({},t):m(t)?i[s]=t.slice():r&&v(t)||(i[s]=t)};for(let e=0,n=t.length;e<n;e++){const n=t[e];if(!n||g(n))continue;if(N(n,o),"object"!=typeof n||m(n))continue;const r=Object.getOwnPropertySymbols(n);for(let e=0;e<r.length;e++){const t=r[e];V.call(n,t)&&o(n[t],t)}}return i},extend:(e,t,n,{allOwnKeys:r}={})=>(N(t,(t,r)=>{n&&w(t)?Object.defineProperty(e,r,{__proto__:null,value:i(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,r,{__proto__:null,value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,
vendor: 10,600 bytes, line 25
25configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let i,o,a;const l={};if(t=t||{},null==e)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)a=i[o],r&&!r(a,e,t)||l[a]||(t[a]=e[a],l[a]=!0);e=!1!==n&&s(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:d,kindOfTest:p,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(m(e))return e;let t=e.length;if(!E(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[a]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:$,hasOwnProperty:c,hasOwnProp:c,hasOwnInPrototypeChain:u,getSafeProp:(e,t)=>null!=e&&u(e,t)?e[t]:void 0,reduceDescriptors:U,freezeMethods:e=>{U(e,(t,n)=>{if(w(e)&&["arguments","caller","callee"].includes(n))return!1;const r=e[n];w(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach(e=>{n[e]=!0})};return m(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:D,global:F,isContextDefined:B,isSpecCompliantForm:function(e){return!!(e&&w(e.append)&&"FormData"===e[l]&&e[a])},toJSONObject:e=>{const t=new WeakSet,n=e=>{if(S(e)){if(t.has(e))return;if(g(e))return e;if(!("toJSON"in e)){let r;if(t.add(e),A(e)){r=[];for(const t of e){const e=n(t);!v(e)&&r.push(e)}}else r=m(e)?[]:{},N(e,(e,t)=>{const i=n(e);!v(i)&&(r[t]=i)});return t.delete(e),r}}return e};return n(e)},isAsyncFn:W,isThenable:e=>e&&(S(e)||w(e))&&w(e.then)&&w(e.catch),setImmediate:G,asap:Q,isIterable:Z,isSafeIterable:e=>null!=e&&u(e,a)&&Z(e)},te=ee.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),ne=e=>{const t={};let n,r,i;return e&&e.split("\n").forEach(function(e){i=e.indexOf(":"),n=e.substring(0,i).trim().toLowerCase(),r=e.substring(i+1).trim();const o=ee.hasOwnProp(t,n);!n||o&&ee.hasOwnProp(te,n)||("set-cookie"===n?o?t[n].push(r):t[n]=[r]:t[n]=o?t[n]+", "+r:r)}),t};n.dn(ne);const re=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),ie=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function oe(e,t){return ee.isArray(e)?e.map(e=>oe(e,t)):function(e){let t=0,n=e.length;for(;t<n;){const n=e.charCodeAt(t);if(9!==n&&32!==n)break;t+=1}for(;n>t;){const t=e.charCodeAt(n-1);if(9!==t&&32!==t)break;n-=1}return 0===t&&n===e.length?e:e.slice(t,n)}(String(e).replace(t,""))}function se(e){const t=Object.create(null);return ee.forEach(e.toJSON(),(e,n)=>{t[n]=(e=>oe(e,ie))(e)}),t}const ae=Symbol("internals");function le(e){return e&&String(e).trim().toLowerCase()}function ce(e){return!1===e||null==e?e:ee.isArray(e)?e.map(ce):(e=>oe(e,re))(String(e))}const ue=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function de(e){let t=0,n=e.length;for(;t<n;){const n=e.charCodeAt(t);if(9!==n&&32!==n)break;t+=1}for(;n>t;){const t=e.charCodeAt(n-1);if(9!==t&&32!==t)break;n-=1}return 0===t&&n===e.length?e:e.slice(t,n)}function fe(e,t,n,r,i){return ee.isFunction(r)?r.call(this,t,n):(i&&(t=n),ee.isString(t)?ee.isString(r)?-1!==t.indexOf(r):ee.isRegExp(r)?r.test(t):void 0:void 0)}class pe{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function i(e,t,n){const i=le(t);if(!i)return;const o=ee.findKey(r,i);(!o||void 0===r[o]||!0===n||void 0===n&&!1!==r[o])&&(r[o||t]=ce(e))}const o=(e,t)=>ee.forEach(e,(e,n)=>i(e,n,t));if(ee.isPlainObject(e)||e instanceof this.constructor)o(e,t);else if(ee.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))o(ne(e),t);else if(ee.isObject(e)&&ee.isSafeIterable(e)){let n,r,i=Object.create(null);for(const t of e){if(!ee.isArray(t))throw new TypeError("Object iterator must return a key-value pair");r=t[0],ee.hasOwnProp(i,r)?(n=i[r],i[r]=ee.isArray(n)?[...n,t[1]]:[n,t[1]]):i[r]=t[1]}o(i,t)}else null!=e&&i(t,e,n);return this}get(e,t){if(e=le(e)){const n=ee.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(ee.isFunction(t))return t.call(this,e,n);if(ee.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=le(e)){const n=ee.findKey(this,e);return!(!n||void 0===this[n]||t&&!fe(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function i(e){if(e=le(e)){const i=ee.findKey(n,e);!i||t&&!fe(0,n[i],i,t)||(delete n[i],r=!0)}}return ee.isArray(e)?e.forEach(i):i(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const i=t[n];e&&!fe(0,this[i],i,e,!0)||(delete this[i],r=!0)}return r}normalize(e){const t=this,n={};return ee.forEach(this,(r,i)=>{const o=ee.findKey(n,i);if(o)return t[o]=ce(r),void delete t[i];const s=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(i):String(i).trim();s!==i&&delete t[i],t[s]=ce(r),n[s]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return ee.forEach(this,(n,r)=>{null!=n&&!1!==n&&(t[r]=e&&ee.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){const e=this.get("set-cookie");return ee.isArray(e)?e:null==e||!1===e?[]:[e]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static parseParameters(e){return function(e){const t=Object.create(null),n=String(e);let r=0,i=!1,o=!1;function s(e){const i=de(n.slice(r,e)),o=i.indexOf("=");if(o<1)return;const s=de(i.slice(0,o));if(!ue.test(s))return;const a=s.toLowerCase();if("__proto__"===a||"constructor"===a||"prototype"===a)return;const l=de(i.slice(o+1));t[a]=function(e){const t=e.length-1;if(t<1||34!==e.charCodeAt(0)||34!==e.charCodeAt(t))return e;let n="";for(let r=1;r<t;r++){const i=e.charCodeAt(r);if(34===i)return e;if(92===i&&(r+=1,r>=t))return e;n+=e[r]}return n}(l)}for(let e=0;e<n.length;e++){const t=n.charCodeAt(e);i?o?o=!1:92===t?o=!0:34===t&&(i=!1):34===t?i=!0:44!==t&&59!==t||(s(e),r=e+1)}return s(n.length),t}(e)}static concat(e,...t){const n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){const t=(this[ae]=this[ae]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=le(e);t[r]||(!function(e,t){const n=ee.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{__proto__:null,value:function(e,n,i){return this[r].call(this,t,e,n,i)},configurable:!0})})}(n,e),t[r]=!0)}return ee.isArray(e)?e.forEach(r):r(e),this}}pe.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),ee.reduceDescriptors(pe.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),ee.freezeMethods(pe);const he=pe,me="[REDACTED ****]";function ve(e,t){const n=new Set(t.map(e=>String(e).toLowerCase())),r=[],i=e=>{if(null===e||"object"!=typeof e)return e;if(ee.isBuffer(e))return e;if(-1!==r.indexOf(e))return;let t;if(e instanceof he&&(e=e.toJSON()),r.push(e),ee.isArray(e))t=[],e.forEach((e,n)=>{const r=i(e);ee.isUndefined(r)||(t[n]=r)});else{if(!ee.isPlainObject(e)&&function(e){if(ee.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(ee.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}(e))return r.pop(),e;t=Object.create(null);for(const[r,o]of Object.entries(e)){const e=n.has(r.toLowerCase())?me:i(o);ee.isUndefined(e)||(t[r]=e)}}return r.pop(),t};return i(e)}function ge(e){try{return String(e)}catch(e){return""}}class ye extends Error{static from(e,t,n,r,i,o){let s=e.message;!s&&ee.isArray(e.errors)&&e.errors.length&&(s=function(e){return e.errors.map(e=>{try{return e&&e.message?ge(e.message):ge(e)}catch(e){return""}}).filter(Boolean).join("; ")||e.name||"AggregateError"}(e));const a=new ye(s,t||e.code,n,r,i);return Object.defineProperty(a,"cause",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),a.name=e.name,null!=e.status&&null==a.status&&(a.status=e.status),o&&Object.assign(a,o),a}constructor(e,t,n,r,i){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status)}toJSON(){const e=this.config,t=e&&ee.hasOwnProp(e,"redact")?e.redact:void 0,n=ee.isArray(t)&&t.length>0?ve(e,t):ee.toJSONObject(e);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:n,code:this.code,status:this.status}}}ye.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",ye.ERR_BAD_OPTION="ERR_BAD_OPTION",ye.ECONNABORTED="ECONNABORTED",ye.ETIMEDOUT="ETIMEDOUT",ye.ECONNREFUSED="ECONNREFUSED",ye.ERR_NETWORK="ERR_NETWORK",ye.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",ye.ERR_DEPRECATED="ERR_DEPRECATED",ye.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",ye.ERR_BAD_REQUEST="ERR_BAD_REQUEST",ye.ERR_CANCELED="ERR_CANCELED",ye.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",ye.ERR_INVALID_URL="ERR_INVALID_URL",ye.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const be=ye;function we(e){return ee.isPlainObject(e)||ee.isArray(e)}function Ee(e){return ee.endsWith(e,"[]")?e.slice(0,-2):e}function Se(e,t,n){return e?e.concat(t).map(function(e,t){return e=Ee(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}const xe=ee.toFlatObject(ee,{},null,function(e){return/^is[A-Z]/.test(e)});const Oe=function(e,t,n){if(!ee.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=ee.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!ee.isUndefined(t[e])})).metaTokens,i=n.visitor||p,o=n.dots,s=n.indexes,a=n.Blob||"undefined"!=typeof Blob&&Blob,l=void 0===n.maxDepth?100:n.maxDepth,c=a&&ee.isSpecCompliantForm(t),u=[];
vendor: 4,155 bytes, line 25
25if(!ee.isFunction(i))throw new TypeError("visitor must be a function");function d(e){if(null===e)return"";if(ee.isDate(e))return e.toISOString();if(ee.isBoolean(e))return e.toString();if(!c&&ee.isBlob(e))throw new be("Blob is not supported. Use a Buffer instead.");if(ee.isArrayBuffer(e)||ee.isTypedArray(e)){if(c&&"function"==typeof a)return new a([e]);throw new be("Blob is not supported. Use a Buffer instead.",be.ERR_NOT_SUPPORT)}return e}function f(e){if(e>l)throw new be("Object is too deeply nested ("+e+" levels). Max depth: "+l,be.ERR_FORM_DATA_DEPTH_EXCEEDED)}function p(e,n,i){let a=e;if(ee.isReactNative(t)&&ee.isReactNativeBlob(e))return t.append(Se(i,n,o),d(e)),!1;if(e&&!i&&"object"==typeof e)if(ee.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=function(e,t){if(l===1/0)return JSON.stringify(e);const n=[];return JSON.stringify(e,function(e,r){if(!ee.isObject(r))return r;for(;n.length&&n[n.length-1]!==this;)n.pop();return n.push(r),f(t+n.length-1),r})}(e,1);else if(ee.isArray(e)&&function(e){return ee.isArray(e)&&!e.some(we)}(e)||(ee.isFileList(e)||ee.endsWith(n,"[]"))&&(a=ee.toArray(e)))return n=Ee(n),a.forEach(function(e,r){!ee.isUndefined(e)&&null!==e&&t.append(!0===s?Se([n],r,o):null===s?n:n+"[]",d(e))}),!1;return!!we(e)||(t.append(Se(i,n,o),d(e)),!1)}const h=Object.assign(xe,{defaultVisitor:p,convertValue:d,isVisitable:we});if(!ee.isObject(e))throw new TypeError("data must be an object");return function e(n,r,o=0){if(!ee.isUndefined(n)){if(f(o),-1!==u.indexOf(n))throw new Error("Circular reference detected in "+r.join("."));u.push(n),ee.forEach(n,function(n,s){!0===(!(ee.isUndefined(n)||null===n)&&i.call(t,n,ee.isString(s)?s.trim():s,r,h))&&e(n,r?r.concat(s):[s],o+1)}),u.pop()}}(e),t};function Te(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function ke(e,t){this._pairs=[],e&&Oe(e,this,t)}const Ce=ke.prototype;Ce.append=function(e,t){this._pairs.push([e,t])},Ce.toString=function(e){const t=e?t=>e.call(this,t,Te):Te;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};const Ae=ke;function _e(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Pe(e,t,n){if(!t)return e;e=e||"";const r=ee.isFunction(n)?{serialize:n}:n,i=ee.getSafeProp(r,"encode")||_e,o=ee.getSafeProp(r,"serialize");let s;if(s=o?o(t,r):ee.isURLSearchParams(t)?t.toString():new Ae(t,r).toString(i),s){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+s}return e}const Le=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){ee.forEach(this.handlers,function(t){null!==t&&e(t)})}},je={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},Me={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Ae,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},Re="undefined"!=typeof window&&"undefined"!=typeof document,Ie="object"==typeof navigator&&navigator||void 0,Ne=Re&&(!Ie||["ReactNative","NativeScript","NS"].indexOf(Ie.product)<0),De="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Fe=Re&&window.location.href||"http://localhost",Be={...r,...Me};function qe(e){if(e>100)throw new be("FormData field is too deeply nested ("+e+" levels). Max depth: 100",be.ERR_FORM_DATA_DEPTH_EXCEEDED)}const He=function(e){function t(e,n,r,i){qe(i);let o=e[i++];if("__proto__"===o)return!0;const s=Number.isFinite(+o),a=i>=e.length;if(o=!o&&ee.isArray(r)?r.length:o,a)return ee.hasOwnProp(r,o)?r[o]=ee.isArray(r[o])?r[o].concat(n):[r[o],n]:r[o]=n,!s;ee.hasOwnProp(r,o)&&ee.isObject(r[o])||(r[o]=[]);
vendor: 8,130 bytes, line 25
25return t(e,n,r[o],i)&&ee.isArray(r[o])&&(r[o]=function(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r<i;r++)o=n[r],t[o]=e[o];return t}(r[o])),!s}if(ee.isFormData(e)&&ee.isFunction(e.entries)){const n={};return ee.forEachEntry(e,(e,r)=>{t(function(e){const t=[],n=/[^.[\]]+|\[([^.[\]]*)]/g;let r;for(;null!==(r=n.exec(e));)qe(t.length),t.push("[]"===r[0]?"":r[1]||r[0]);return t}(e),r,n,0)}),n}return null},$e=(e,t)=>null!=e&&ee.hasOwnProp(e,t)?e[t]:void 0;const Ve={transitional:je,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,i=ee.isObject(e);i&&ee.isHTMLForm(e)&&(e=new FormData(e));if(ee.isFormData(e))return r?JSON.stringify(He(e)):e;if(ee.isArrayBuffer(e)||ee.isBuffer(e)||ee.isStream(e)||ee.isFile(e)||ee.isBlob(e)||ee.isReadableStream(e))return e;if(ee.isArrayBufferView(e))return e.buffer;if(ee.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(i){const t=$e(this,"formSerializer");if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Oe(e,new Be.classes.URLSearchParams,{visitor:function(e,t,n,r){return Be.isNode&&ee.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...t})}(e,t).toString();if((o=ee.isFileList(e))||n.indexOf("multipart/form-data")>-1){const n=$e(this,"env"),r=n&&n.FormData;return Oe(o?{"files[]":e}:e,r&&new r,t)}}return i||r?(t.setContentType("application/json",!1),function(e,t,n){if(ee.isString(e))try{return(t||JSON.parse)(e),ee.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=$e(this,"transitional")||Ve.transitional,n=t&&t.forcedJSONParsing,r=$e(this,"responseType"),i="json"===r;if(ee.isResponse(e)||ee.isReadableStream(e))return e;if(e&&ee.isString(e)&&(n&&!r||i)){const n=!(t&&t.silentJSONParsing)&&i;try{return JSON.parse(e,$e(this,"parseReviver"))}catch(e){if(n){if("SyntaxError"===e.name)throw be.from(e,be.ERR_BAD_RESPONSE,this,null,$e(this,"response"));throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Be.classes.FormData,Blob:Be.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ee.forEach(["delete","get","head","post","put","patch","query"],e=>{Ve.headers[e]={}});const ze=Ve;function Ue(e,t){const n=this||ze,r=t||n,i=he.from(r.headers);let o=r.data;return ee.forEach(e,function(e){o=e.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function We(e){return!(!e||!e.__CANCEL__)}const Ge=class extends be{constructor(e,t,n){super(e??"canceled",be.ERR_CANCELED,t,n),this.name="CanceledError",this.__CANCEL__=!0}};function Ke(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new be("Request failed with status code "+n.status,n.status>=400&&n.status<500?be.ERR_BAD_REQUEST:be.ERR_BAD_RESPONSE,n.config,n.request,n)):e(n)}const Xe=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i,o=0,s=0;return t=void 0!==t?t:1e3,function(a){const l=Date.now(),c=r[s];i||(i=l),n[o]=a,r[o]=l;let u=s,d=0;for(;u!==o;)d+=n[u++],u%=e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),l-i<t)return;const f=c&&l-c;return f?Math.round(1e3*d/f):void 0}};const Je=function(e,t){let n,r,i=0,o=1e3/t;const s=(t,o=Date.now())=>{i=o,n=null,r&&(clearTimeout(r),r=null),e(...t)};return[(...e)=>{const t=Date.now(),a=t-i;a>=o?s(e,t):(n=e,r||(r=setTimeout(()=>{r=null,s(n)},o-a)))},()=>n&&s(n)]},Ye=(e,t,n=3)=>{let r=0;const i=Xe(50,250);return Je(n=>{if(!n||"number"!=typeof n.loaded)return;const o=n.loaded,s=n.lengthComputable?n.total:void 0,a=Math.max(0,null!=s?Math.min(o,s):o),l=Math.max(0,a-r),c=i(l);r=Math.max(r,a);e({loaded:a,total:s,progress:s?a/s:void 0,bytes:l,rate:c||void 0,estimated:c&&s?(s-a)/c:void 0,event:n,lengthComputable:null!=s,[t?"download":"upload"]:!0})},n)},Qe=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Ze=(e,t=ee.asap)=>(...n)=>t(()=>e(...n)),et=Be.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Be.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Be.origin),Be.navigator&&/(msie|trident)/i.test(Be.navigator.userAgent)):()=>!0,tt=Be.hasStandardBrowserEnv?{write(e,t,n,r,i,o,s){if("undefined"==typeof document)return;const a=[`${e}=${encodeURIComponent(t)}`];ee.isNumber(n)&&a.push(`expires=${new Date(n).toUTCString()}`),ee.isString(r)&&a.push(`path=${r}`),ee.isString(i)&&a.push(`domain=${i}`),!0===o&&a.push("secure"),ee.isString(s)&&a.push(`SameSite=${s}`),document.cookie=a.join("; ")},read(e){if("undefined"==typeof document)return null;const t=document.cookie.split(";");for(let n=0;n<t.length;n++){const r=t[n].replace(/^\s+/,""),i=r.indexOf("=");if(-1!==i&&r.slice(0,i)===e)try{return decodeURIComponent(r.slice(i+1))}catch(e){return r.slice(i+1)}}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};const nt=/^https?:(?!\/\/)/i,rt=/[\t\n\r]/g;function it(e){const t=e.replace(/^(https?:\/{0,2})[^/?#]*@/i,`$1${me}@`),n=t.indexOf("#"),r=(-1===n?t:t.slice(0,n)).replace(/([?&][^=&#]*=)[^&#]*/g,`$1${me}`);return-1===n?r:`${r}#${i=t.slice(n+1),i?i.replace(/(^|&)([^=&]*=)?[^&]+/g,(e,t,n="")=>`${t}${n}${me}`):i}`;var i}function ot(e,t){if("string"==typeof e){const n=function(e){return function(e){let t=0;for(;t<e.length&&e.charCodeAt(t)<=32;)t++;return e.slice(t)}(e).replace(rt,"")}(e);if(nt.test(n))throw new be(`Invalid URL ${JSON.stringify(it(n))}: missing "//" after protocol`,be.ERR_INVALID_URL,t)}}function st(e,t,n,r){ot(t,r);let i=!("string"==typeof(o=t)&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(o));var o;return e&&(i||!1===n)?(ot(e,r),function(e,t){if(!t)return e;let n=e.length;for(;n>0&&47===e.charCodeAt(n-1);)n--;return e.slice(0,n)+"/"+t.replace(/^\/+/,"")}(e,t)):t}const at=e=>e instanceof he?{...e}:e;function lt(e,t){e=e||{},t=t||{};const n=Object.create(null);function r(e,t,n,r){return ee.isPlainObject(e)&&ee.isPlainObject(t)?ee.merge.call({caseless:r},e,t):ee.isPlainObject(t)?ee.merge({},t):ee.isArray(t)?t.slice():t}function i(e,t,n,i){return ee.isUndefined(t)?ee.isUndefined(e)?void 0:r(void 0,e,0,i):r(e,t,0,i)}function o(e,t){if(!ee.isUndefined(t))return r(void 0,t)}function s(e,t){return ee.isUndefined(t)?ee.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function a(n,i,o){return ee.hasOwnProp(t,o)?r(n,i):ee.hasOwnProp(e,o)?r(void 0,n):void 0}Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});const l={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,allowedSocketPaths:s,responseEncoding:s,validateStatus:a,headers:(e,t,n)=>i(at(e),at(t),0,!0)};var c;return ee.forEach((c={...e,...t},Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor?Object.keys(c).concat(Object.getOwnPropertySymbols(c).filter(e=>Object.getOwnPropertyDescriptor(c,e).enumerable)):Object.keys(c)),function(r){if("__proto__"===r||"constructor"===r||"prototype"===r)return;const o=ee.hasOwnProp(l,r)?l[r]:i,s=o(ee.hasOwnProp(e,r)?e[r]:void 0,ee.hasOwnProp(t,r)?t[r]:void 0,r);ee.isUndefined(s)&&o!==a||(n[r]=s)}),ee.hasOwnProp(t,"validateStatus")&&ee.isUndefined(t.validateStatus)&&!1===function(n){const r=ee.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!ee.isUndefined(r)){if(!ee.isPlainObject(r))return;if(ee.hasOwnProp(r,n))return r[n]}const i=ee.hasOwnProp(e,"transitional")?e.transitional:void 0;if(ee.isPlainObject(i)&&ee.hasOwnProp(i,n))return i[n]}("validateStatusUndefinedResolves")&&(ee.hasOwnProp(e,"validateStatus")?n.validateStatus=r(void 0,e.validateStatus):delete n.val
vendor: 4,711 bytes, line 25
25idateStatus),n}const ct=["content-type","content-length"];const ut=function(e){const t=lt({},e),n=e=>ee.hasOwnProp(t,e)?t[e]:void 0,r=n("data");let i=n("withXSRFToken");const o=n("xsrfHeaderName"),s=n("xsrfCookieName");let a=n("headers");const l=n("auth"),c=n("baseURL"),u=n("allowAbsoluteUrls"),d=n("url");if(t.headers=a=he.from(a),t.url=Pe(st(c,d,u,t),n("params"),n("paramsSerializer")),l){const t=ee.getSafeProp(l,"username")||"",n=ee.getSafeProp(l,"password")||"";try{a.set("Authorization","Basic "+btoa(t+":"+(n?encodeURIComponent(n).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))):"")))}catch(t){throw be.from(t,be.ERR_BAD_OPTION_VALUE,e)}}if(ee.isFormData(r)&&(Be.hasStandardBrowserEnv||Be.hasStandardBrowserWebWorkerEnv||ee.isReactNative(r)?a.setContentType(void 0):ee.isFunction(r.getHeaders)&&function(e,t,n){"content-only"===n?Object.entries(t||{}).forEach(([t,n])=>{ct.includes(t.toLowerCase())&&e.set(t,n)}):e.set(t)}(a,r.getHeaders(),n("formDataHeaderPolicy"))),Be.hasStandardBrowserEnv){ee.isFunction(i)&&(i=i(t));if(!0===i||null==i&&et(t.url)){const e=o&&s&&tt.read(s);e&&a.set(o,e)}}return t},dt="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){const r=ut(e);let i=r.data;const o=he.from(r.headers).normalize();let s,a,l,c,u,{responseType:d,onUploadProgress:f,onDownloadProgress:p}=r;function h(){c&&c(),u&&u(),r.cancelToken&&r.cancelToken.unsubscribe(s),r.signal&&r.signal.removeEventListener("abort",s)}let m=new XMLHttpRequest;function v(){if(!m)return;const r=he.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());Ke(function(e){t(e),h()},function(e){n(e),h()},{data:d&&"text"!==d&&"json"!==d?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:r,config:e,request:m}),m=null}m.open(r.method.toUpperCase(),r.url,!0),m.timeout=r.timeout,"onloadend"in m?m.onloadend=v:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&m.responseURL.startsWith("file:"))&&setTimeout(v)},m.onabort=function(){m&&(n(new be("Request aborted",be.ECONNABORTED,e,m)),h(),m=null)},m.onerror=function(t){const r=t&&t.message?t.message:"Network Error",i=new be(r,be.ERR_NETWORK,e,m);i.event=t||null,n(i),h(),m=null},m.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const i=r.transitional||je;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new be(t,i.clarifyTimeoutError?be.ETIMEDOUT:be.ECONNABORTED,e,m)),h(),m=null},void 0===i&&o.setContentType(null),"setRequestHeader"in m&&ee.forEach(se(o),function(e,t){m.setRequestHeader(t,e)}),ee.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),d&&"json"!==d&&(m.responseType=r.responseType),p&&([l,u]=Ye(p,!0),m.addEventListener("progress",l)),f&&m.upload&&([a,c]=Ye(f),m.upload.addEventListener("progress",a),m.upload.addEventListener("loadend",c)),(r.cancelToken||r.signal)&&(s=t=>{m&&(n(!t||t.type?new Ge(null,e,m):t),m.abort(),h(),m=null)},r.cancelToken&&r.cancelToken.subscribe(s),r.signal&&(r.signal.aborted?s():r.signal.addEventListener("abort",s)));const g=function(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}(r.url);if(g&&!Be.protocols.includes(g))return n(new be("Unsupported protocol "+g+":",be.ERR_BAD_REQUEST,e)),void h();m.send(i||null)})},ft=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;const n=new AbortController;let r=!1;const i=function(e){if(!r){r=!0,s();const t=e instanceof Error?e:this.reason;n.abort(t instanceof be?t:new Ge(t instanceof Error?t.message:t))}};let o=t&&setTimeout(()=>{o=null,i(new be(`timeout of ${t}ms exceeded`,be.ETIMEDOUT))},t);const s=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener("abort",i)}),e=null)};e.forEach(e=>{r||(e.aborted?i.call(e):e.addEventListener("abort",i,{once:!0}))});const{signal:a}=n;return a.unsubscribe=()=>ee.asap(s),a},pt=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let r,i=0;for(;i<n;)r=i+t,yield e.slice(i,r),i=r},ht=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},mt=(e,t,n,r)=>{const i=async function*(e,t){for await(const n of ht(e))yield*pt(n,t)}(e,t);let o,s=0,a=e=>{o||(o=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await i.next();if(t)return a(),void e.close();let o=r.byteLength;if(n){let e=s+=o;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw a(e),e}},cancel:e=>(a(e),i.return())},{highWaterMark:2})},vt=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,gt=(e,t,n)=>t+2<n&&vt(e.charCodeAt(t+1))&&vt(e.charCodeAt(t+2)),yt=e=>
vendor: 4,072 bytes, line 25
25e<=57?e-48:(223&e)-55,bt=e=>e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||43===e||47===e||45===e||95===e,wt=e=>9===e||10===e||12===e||13===e||32===e,Et=e=>{const t=e.length;let n=0;return t>0&&61===e.charCodeAt(t-1)&&(n++,t>1&&61===e.charCodeAt(t-2)&&n++),Math.floor(3*(t-n)/4)},St=e=>{const t=e.length;let n=0,r=0,i=!1;for(let o=0;o<t;o++){let s=e.charCodeAt(o);37===s&>(e,o,t)&&(s=16*yt(e.charCodeAt(o+1))+yt(e.charCodeAt(o+2)),o+=2),wt(s)||(61!==s?!bt(s)||r>0?i=!0:n++:r++)}return i||r>2||r>0&&(n+r)%4!=0||n%4==1?Et(e):(e=>{const t=e%4;return 3*Math.floor(e/4)+(2===t?1:3===t?2:0)})(n)},xt=(e,t)=>{if(!e||"string"!=typeof e)return 0;if(!e.startsWith("data:"))return 0;const n=e.indexOf(",");if(n<0)return 0;const r=e.slice(5,n),i=e.slice(n+1);if(/;base64/i.test(r))return t(i);let o=0;for(let e=0,t=i.length;e<t;e++){const n=i.charCodeAt(e);if(37===n&>(i,e,t))o+=1,e+=2;else if(n<128)o+=1;else if(n<2048)o+=2;else if(n>=55296&&n<=56319&&e+1<t){const t=i.charCodeAt(e+1);t>=56320&&t<=57343?(o+=4,e++):o+=3}else o+=3}return o};const{isFunction:Ot}=ee,Tt=e=>{if(!ee.isString(e))return e;try{return decodeURIComponent(e)}catch(t){return e}},kt=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},Ct=e=>{const t=void 0!==ee.global&&null!==ee.global?ee.global:globalThis,{ReadableStream:n,TextEncoder:r}=t;e=ee.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:i,Request:o,Response:s}=e,a=i?Ot(i):"function"==typeof fetch,l=Ot(o),c=Ot(s);if(!a)return!1;const u=a&&Ot(n),d=a&&("function"==typeof r?(f=new r,e=>f.encode(e)):async e=>new Uint8Array(await new o(e).arrayBuffer()));var f;const p=l&&u&&kt(()=>{let e=!1;const t=new o(Be.origin,{body:new n,method:"POST",get duplex(){return e=!0,"half"}}),r=t.headers.has("Content-Type");return null!=t.body&&t.body.cancel(),e&&!r}),h=c&&u&&kt(()=>ee.isReadableStream(new s("").body)),m={stream:h&&(e=>e.body)};a&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!m[e]&&(m[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new be(`Response type '${e}' is not supported`,be.ERR_NOT_SUPPORT,n)})});const v=async e=>{if(null==e)return 0;if(ee.isBlob(e))return e.size;if(ee.isSpecCompliantForm(e)){const t=new o(Be.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return ee.isArrayBufferView(e)||ee.isArrayBuffer(e)?e.byteLength:(ee.isURLSearchParams(e)&&(e+=""),ee.isString(e)?(await d(e)).byteLength:void 0)};return async e=>{let{url:t,method:n,data:a,signal:c,cancelToken:d,timeout:f,onDownloadProgress:g,onUploadProgress:y,responseType:b,headers:w,withCredentials:E="same-origin",fetchOptions:S,maxContentLength:x,maxBodyLength:O}=ut(e);const T=ee.isNumber(x)&&x>-1,k=ee.isNumber(O)&&O>-1;let C=i||fetch;b=b?(b+"").toLowerCase():"text";let A=ft([c,d&&d.toAbortSignal()],f),_=null;const P=A&&A.unsubscribe&&(()=>{A.unsubscribe()});let L,j=null;const M=()=>new be("Request body larger than maxBodyLength limit",be.ERR_BAD_REQUEST,e,_);try{let i;const c=(I="auth",ee.hasOwnProp(e,I)?e[I]:void 0);if(c){const e=ee.getSafeProp(c,"username")||"";i={username:e,password:ee.getSafeProp(c,"password")||""}}if((e=>{const t=e.indexOf("://");let n=e;return-1!==t&&(n=n.slice(t+3)),n.includes("@")||n.includes(":")})(t)){const e=new URL(t,Be.origin);if(!i&&(e.username||e.password)){const t=Tt(e.username);i={username:t,password:Tt(e.password)}}(e.username||e.password)&&(e.username="",e.password="",t=e.href)}if(i&&(w.delete("authorization"),w.set("Authorization","Basic "+btoa((R=(i.username||"")+":"+(i.password||""),encodeURIComponent(R).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))))))),T&&"string"==typeof t&&t.startsWith("data:")){const n=function(e){const t="string"==typeof e?e.indexOf("#"):-1;return xt(-1===t?e:e.slice(0,t),St)}(t);if(n>x)throw new be("maxContentLength size of "+x+" exceeded",be.ERR_BAD_RESPONSE,e,_)}if(k&&"get"!==n&&"head"!==n){const e=await v(a);if("number"==typeof e&&isFinite(e)&&(L=e,e>O))throw M()}const d=k&&(ee.isReadableStream(a)||ee.isStream(a)),f=(e,t,n)=>mt(e,65536,e=>{if(k&&e>O)throw j=M();t&&t(e)},n);
vendor: 9,175 bytes, line 25
25if(p&&"get"!==n&&"head"!==n&&(y||d)){if(L=L??await(async(e,t)=>{const n=ee.toFiniteNumber(e.getContentLength());return n??v(t)})(w,a),0!==L||d){let e,n=new o(t,{method:"POST",body:a,duplex:"half"});if(ee.isFormData(a)&&(e=n.headers.get("content-type"))&&w.setContentType(e),n.body){const[e,t]=y&&Qe(L,Ye(Ze(y)))||[];a=f(n.body,e,t)}}}else if(d&&!l&&u&&"get"!==n&&"head"!==n)a=f(a);else if(d&&l&&!p&&"get"!==n&&"head"!==n)throw new be("Stream request bodies are not supported by the current fetch implementation",be.ERR_NOT_SUPPORT,e,_);ee.isString(E)||(E=E?"include":"omit");const N=l&&"credentials"in o.prototype;if(ee.isFormData(a)){const e=w.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&w.delete("content-type")}w.set("User-Agent","axios/1.19.0",!1);const D={...S,signal:A,method:n.toUpperCase(),headers:se(w.normalize()),body:a,duplex:"half",credentials:N?E:void 0};_=l&&new o(t,D);let F=await(l?C(_,S):C(t,D));const B=he.from(F.headers);if(T){const t=ee.toFiniteNumber(B.getContentLength());if(null!=t&&t>x)throw new be("maxContentLength size of "+x+" exceeded",be.ERR_BAD_RESPONSE,e,_)}const q=h&&("stream"===b||"response"===b);if(h&&F.body&&(g||T||q&&P)){const t={};["status","statusText","headers"].forEach(e=>{t[e]=F[e]});const n=ee.toFiniteNumber(B.getContentLength()),[r,i]=g&&Qe(n,Ye(Ze(g),!0))||[];let o=0;const a=t=>{if(T&&(o=t,o>x))throw new be("maxContentLength size of "+x+" exceeded",be.ERR_BAD_RESPONSE,e,_);r&&r(t)};F=new s(mt(F.body,65536,a,()=>{i&&i(),P&&P()}),t)}b=b||"text";let H=await m[ee.findKey(m,b)||"text"](F,e);if(T&&!h&&!q){let t;if(null!=H&&("number"==typeof H.byteLength?t=H.byteLength:"number"==typeof H.size?t=H.size:"string"==typeof H&&(t="function"==typeof r?(new r).encode(H).byteLength:H.length)),"number"==typeof t&&t>x)throw new be("maxContentLength size of "+x+" exceeded",be.ERR_BAD_RESPONSE,e,_)}return!q&&P&&P(),await new Promise((t,n)=>{Ke(t,n,{data:H,headers:he.from(F.headers),status:F.status,statusText:F.statusText,config:e,request:_})})}catch(t){if(P&&P(),A&&A.aborted&&A.reason instanceof be){const n=A.reason;throw n.config=e,_&&(n.request=_),t!==n&&Object.defineProperty(n,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),n}if(j)throw _&&!j.request&&(j.request=_),j;if(t instanceof be)throw _&&!t.request&&(t.request=_),t;if(t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message)){const n=new be("Network Error",be.ERR_NETWORK,e,_,t&&t.response);throw Object.defineProperty(n,"cause",{__proto__:null,value:t.cause||t,writable:!0,enumerable:!1,configurable:!0}),n}throw be.from(t,t&&t.code,e,_,t&&t.response)}var R,I}},At=new Map,_t=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:i}=t,o=[r,i,n];let s,a,l=o.length,c=At;for(;l--;)s=o[l],a=c.get(s),void 0===a&&c.set(s,a=l?new Map:Ct(t)),c=a;return a},Pt=(_t(),{http:null,xhr:dt,fetch:{get:_t}});ee.forEach(Pt,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch(e){}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const Lt=e=>`- ${e}`,jt=e=>ee.isFunction(e)||null===e||!1===e;const Mt={getAdapter:function(e,t){e=ee.isArray(e)?e:[e];const{length:n}=e;let r,i;const o={};for(let s=0;s<n;s++){let n;if(r=e[s],i=r,!jt(r)&&(i=Pt[(n=String(r)).toLowerCase()],void 0===i))throw new be(`Unknown adapter '${n}'`);if(i&&(ee.isFunction(i)||(i=i.get(t))))break;o[n||"#"+s]=i}if(!i){const e=Object.entries(o).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));let t=n?e.length>1?"since :\n"+e.map(Lt).join("\n"):" "+Lt(e[0]):"as no adapter specified";throw new be("There is no suitable adapter to dispatch the request "+t,be.ERR_NOT_SUPPORT)}return i},adapters:Pt};function Rt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ge(null,e)}function It(e){Rt(e),e.headers=he.from(e.headers),e.data=Ue.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return Mt.getAdapter(e.adapter||ze.adapter,e)(e).then(function(t){Rt(e),e.response=t;try{t.data=Ue.call(e,e.transformResponse,t)}finally{delete e.response}return t.headers=he.from(t.headers),t},function(t){if(!We(t)&&(Rt(e),t&&t.response)){e.response=t.response;try{t.response.data=Ue.call(e,e.transformResponse,t.response)}finally{delete e.response}t.response.headers=he.from(t.response.headers)}return Promise.reject(t)})}const Nt={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Nt[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const Dt={};Nt.transitional=function(e,t,n){function r(e,t){return"[Axios v1.19.0] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,i,o)=>{if(!1===e)throw new be(r(i," has been removed"+(t?" in "+t:"")),be.ERR_DEPRECATED);return t&&!Dt[i]&&(Dt[i]=!0,console.warn(r(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,i,o)}},Nt.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};const Ft={assertOptions:function(e,t,n){if("object"!=typeof e||null===e)throw new be("options must be an object",be.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],s=Object.prototype.hasOwnProperty.call(t,o)?t[o]:void 0;if(s){const t=e[o],n=void 0===t||s(t,o,e);if(!0!==n)throw new be("option "+o+" must be "+n,be.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new be("Unknown option "+o,be.ERR_BAD_OPTION)}},validators:Nt},Bt=Ft.validators;class qt{constructor(e){this.defaults=e||{},this.interceptors={request:new Le,response:new Le}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const n=(()=>{if(!t.stack)return"";const e=t.stack.indexOf("\n");return-1===e?"":t.stack.slice(e+1)})();try{if(e.stack){if(n){const t=n.indexOf("\n"),r=-1===t?-1:n.indexOf("\n",t+1),i=-1===r?"":n.slice(r+1);String(e.stack).endsWith(i)||(e.stack+="\n"+n)}}else e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=lt(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:i}=t;void 0!==n&&Ft.assertOptions(n,{silentJSONParsing:Bt.transitional(Bt.boolean),forcedJSONParsing:Bt.transitional(Bt.boolean),clarifyTimeoutError:Bt.transitional(Bt.boolean),legacyInterceptorReqResOrdering:Bt.transitional(Bt.boolean),advertiseZstdAcceptEncoding:Bt.transitional(Bt.boolean),validateStatusUndefinedResolves:Bt.transitional(Bt.boolean)},!1),null!=r&&(ee.isFunction(r)?t.paramsSerializer={serialize:r}:Ft.assertOptions(r,{encode:Bt.function,serialize:Bt.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),Ft.assertOptions(t,{baseUrl:Bt.spelling("baseURL"),withXsrfToken:Bt.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=i&&ee.merge(i.common,i[t.method]);i&&ee.forEach(["delete","get","head","post","put","patch","query","common"],e=>{delete i[e]}),t.headers=he.concat(o,i);const s=[];let a=!0;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;a=a&&e.synchronous;const n=t.transitional||je;n&&n.legacyInterceptorReqResOrdering?s.unshift(e.fulfilled,e.rejected):s.push(e.fulfilled,e.rejected)});const l=[];let c;this.interceptors.response.forEach(function(e){l.push(e.fulfilled,e.rejected)});let u,d=0;if(!a){const e=[It.bind(this),void 0];for(e.unshift(...s),e.push(...l),u=e.length,c=Promise.resolve(t);d<u;)c=c.then(e[d++],e[d++]);return c}u=s.length;let f=t;for(;d<u;){const e=s[d++],t=s[d++];try{f=e?e(f):f}catch(e){if(!t){c=Promise.reject(e);break}try{const n=t.call(this,e);ee.isThenable(n)&&(c=Promise.resolve(n).then(()=>It.call(this,f)))}catch(e){c=Promise.reject(e)}break}}if(!c)try{c=It.call(this,f)}catch(e){c=Promise.reject(e)}for(d=0,u=l.length;d<u;)c=c.then(l[d++],l[d++]);return c}getUri(e){return Pe(st((e=lt(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls,e),e.params,e.paramsSerializer)}}ee.forEach(["delete","get","head","options"],function(e){qt.prototype[e]=function(t,n){return this.request(lt(n||{},{method:e,url:t,data:n&&ee.hasOwnProp(n,"data")?n.data:void 0}))}}),ee.forEach(["post","put","patch","query"],function(e){function t(t){return function(n,r,i){return this.request(lt(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}qt.prototype[e]=t(),"query"!==e&&(qt.prototype[e+"Form"]=t(!0))});const Ht=qt;class $t{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e});const n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t;const r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,i){n.reason||(n.reason=new Ge(e,r,i),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}
25subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new $t(function(t){e=t}),cancel:e}}}const Vt=$t;const zt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerReturnsAnUnknownError:520,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(zt).forEach(([e,t])=>{zt[t]=e});const Ut=zt;const Wt=function e(t){const n=new Ht(t),r=i(Ht.prototype.request,n);return ee.extend(r,Ht.prototype,n,{allOwnKeys:!0}),ee.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(lt(t,n))},r}(ze);Wt.Axios=Ht,Wt.CanceledError=Ge,Wt.CancelToken=Vt,Wt.isCancel=We,Wt.VERSION="1.19.0",Wt.toFormData=Oe,Wt.AxiosError=be,Wt.Cancel=Wt.CanceledError,Wt.all=function(e){return Promise.all(e)},Wt.spread=function(e){return function(t){return e.apply(null,t)}},Wt.isAxiosError=function(e){return ee.isObject(e)&&!0===e.isAxiosError},Wt.mergeConfig=lt,Wt.AxiosHeaders=he,Wt.formToJSON=e=>He(ee.isHTMLForm(e)?new FormData(e):e),Wt.getAdapter=Mt.getAdapter,Wt.HttpStatusCode=Ut,Wt.default=Wt;const Gt=Wt},7422(e,t,n){"use strict";n.d(t,{Ay:()=>fe,QQ:()=>j});var r=n(2891);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function o(e,t,n){return t=a(t),function(e,t){if(t&&("object"==i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,s()?Reflect.construct(t,n||[],a(e).constructor):t.apply(e,n))}function s(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(s=function(){return!!e})()}function a(e){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},a(e)}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach(function(t){d(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEac
vendor: 4,114 bytes, line 25
25h(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function d(e,t,n){return(t=O(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=b(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,o=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function p(e){return function(e){if(Array.isArray(e))return w(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||b(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function o(n,r,i,o){var l=r&&r.prototype instanceof a?r:a,c=Object.create(l.prototype);return m(c,"_invoke",function(n,r,i){var o,a,l,c=0,u=i||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return o=t,a=0,l=e,f.n=n,s}};function p(n,r){for(a=n,l=r,t=0;!d&&c&&!i&&t<u.length;t++){var i,o=u[t],p=f.p,h=o[2];n>3?(i=h===r)&&(l=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=e):o[0]<=p&&((i=n<2&&p<o[1])?(a=0,f.v=r,f.n=o[1]):p<h&&(i=n<3||o[0]>r||r>h)&&(o[4]=n,o[5]=r,f.n=h,a=0))}if(i||n>1)return s;throw d=!0,r}return function(i,u,h){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,h),a=u,l=h;(t=a<2?e:l)||!d;){o||(a?a<3?(a>1&&(f.n=-1),p(a,l)):f.n=l:f.v=l);try{if(c=2,o){if(a||(i="next"),t=o[i]){if(!(t=t.call(o,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,a<2&&(a=0)}else 1===a&&(t=o.return)&&t.call(o),a<2&&(l=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=e}else if((t=(d=f.n<0)?l:n.call(r,f))!==s)break}catch(t){o=e,a=1,l=t}finally{c=1}}return{value:t,done:d}}}(n,i,o),!0),c}var s={};function a(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(m(t={},r,function(){return this}),t),d=c.prototype=a.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,m(e,i,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,m(d,"constructor",c),m(c,"constructor",l),l.displayName="GeneratorFunction",m(c,i,"GeneratorFunction"),m(d),m(d,i,"Generator"),m(d,r,function(){return this}),m(d,"toString",function(){return"[object Generator]"}),(h=function(){return{w:o,m:f}})()}function m(e,t,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}m=function(e,t,n,r){function o(t,n){m(e,t,function(e){return this._invoke(t,n,e)})}t?i?i(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(o("next",0),o("throw",1),o("return",2))},m(e,t,n,r)}function v(e,t,n,r,i,o,s){try{var a=e[o](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,i)}function g(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function s(e){v(o,r,i,s,a,"next",e)}function a(e){v(o,r,i,s,a,"throw",e)}s(void 0)})}}function y(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw i}}return a}}(e,t)||b(e,t)||function(){throw new TypeError("Invalid attempt to de
25structure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(e,t){if(e){if("string"==typeof e)return w(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?w(e,t):void 0}}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function E(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function S(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,O(r.key),r)}}function x(e,t,n){return t&&S(e.prototype,t),n&&S(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function O(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==i(t)?t:t+""}var T=function(){return x(function e(t,n,r){var i=this;E(this,e),this.isResolved=!1,this.promise=t,this.promise.then(function(e){return i.isResolved=!0,e}),this.actions=n,this.updatedModels=r},[{key:"containsOneOfActions",value:function(e){return this.actions.filter(function(t){return e.includes(t)}).length>0}},{key:"areAnyModelsUpdated",value:function(e){return this.updatedModels.filter(function(t){return e.includes(t)}).length>0}}])}(),k=function(){return x(function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"post",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"same-origin";E(this,e),this.url=t,this.method=n,this.credentials=r},[{key:"buildRequest",value:function(e,t,n,r,i,o){var s=this.url.split("?"),a=y(s,1)[0],l=y(s,2)[1],c=new URLSearchParams(l||""),u={};u.credentials=this.credentials,u.headers={Accept:"application/vnd.live-component+html","X-Requested-With":"XMLHttpRequest","X-Live-Url":window.location.pathname+window.location.search};var d=Object.entries(o).reduce(function(e,t){return e+t.length},0),f=Object.keys(r).length>0;if(0===t.length&&0===d&&"get"===this.method&&this.willDataFitInUrl(JSON.stringify(e),JSON.stringify(n),c,JSON.stringify(r),JSON.stringify(i)))c.set("props",JSON.stringify(e)),c.set("updated",JSON.stringify(n)),Object.keys(i).length>0&&c.set("propsFromParent",JSON.stringify(i)),f&&c.set("children",JSON.stringify(r)),u.method="GET";else{u.method="POST";var p={props:e,updated:n};Object.keys(i).length>0&&(p.propsFromParent=i),f&&(p.children=r),t.length>0&&(1===t.length?(p.args=t[0].args,a+="/".concat(encodeURIComponent(t[0].name))):(a+="/_batch",p.actions=t));var h=new FormData;h.append("data",JSON.stringify(p));for(var m=0,v=Object.entries(o);m<v.length;m++)for(var g=y(v[m],2),b=g[0],w=g[1],E=w.length,S=0;S<E;++S)h.append(b,w[S]);u.body=h}var x=c.toString();return{url:"".concat(a).concat(x.length>0?"?".concat(x):""),fetchOptions:u}}},{key:"willDataFitInUrl",value:function(e,t,n,r,i){return(new URLSearchParams(e+t+r+i).toString()+n.toString()).length<1500}}])}(),C=function(){return x(function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"post",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"same-origin";E(this,e),this.requestBuilder=new k(t,n,r)},[{key:"makeRequest",value:function(e,t,n,r,i,o){var s=this.requestBuilder.buildRequest(e,t,n,r,i,o),a=s.url,l=s.fetchOptions;return new T(fetch(a,l),t.map(function(e){return e.name}),Object.keys(n))}}])}(),A=function(){return x(function e(t){E(this,e),this.response=t},[{key:"getBody",value:(e=g(h().m(function e(){return h().w(function(e){for(;;)switch(e.n){case 0:if(this.body){e.n=2;break}return e.n=1,this.response.text();case 1:this.body=e.v;case 2:return e.a(2,this.body)}},e,this)})),function(){return e.apply(this,arguments)})},{key:"getLiveUrl",value:function(){return void 0===this.liveUrl&&(this.liveUrl=this.response.headers.get("X-Live-Url")),this.liveUrl}}]);var e}();function _(e){return e.innerHTML?e.outerHTML.slice(0,e.outerHTML.indexOf(e.innerHTML)):e.outerHTML}var P=new WeakMap,L=new Map,j=function(e){return new Promise(function(t,n){var r=0,i=setInterval(function(){var o=P.get(e);o&&(clearInterval(i),t(o)),++r>10&&(clearInterval(i),n(new Error("Component not found for element ".concat(_(e)))))},5)})};function M(e){var t=[];if(!e)return t;for(var n="",r="",i=[],o=[],s="action",a=function(){if(n)return n;if(0===t.length)throw new Error("Could not find any directives");return t[t.length-1].action},l=function(){t.push({action:n,args:i,modifiers:o,getString:function(){return e}}),n="",r="",i=[],o=[],s="action"},c=function(){i.push(r.trim()),r=""},u=function(){if(i.length>1)throw new Error('The modifier "'.concat(n,'()" does not support multiple arguments.'));o.push({name:n,value:i.length>0?i[0]:null}),n="",i=[],s="action"},d=0;d<e.length;d++){var f=e[d];switch(s){case"action":if("("===f){s="arguments";break}if(" "===f){n&&l();break}if("|"===f){u();break}n+=f;break;case"arguments":if(")"===f){c(),s="after_arguments";break}if(","===f){c();break}r+=f;break;case"after_arguments":if("|"===f){u();break}if(" "!==f)throw new Error("Missing space after ".concat(a(),"()"));l()}}switch(s){case"action":case"after_arguments":n&&l();break;default:throw new Error('Did you forget to add a closing ")" after "'.concat(n,'"?'))}return t}function R(e){var t=[];return e.forEach(function(e){var n;t.push.apply(t,p((n=e,n.replace(/[\s]+/g," ").trim()).split(" ")))}),t}function I(e){return e.replace(/\[]$/,"").split("[").map(function(e){return e.replace("]","")}).join(".")}function N(e,t){if(e instanceof HTMLInputElement){if("checkbox"===e.type){var n=B(e,!1);if(null!==n){var r=t.get(n.action);if(Array.isArray(r))return $(e,r);if(Object(r)===r)return $(e,Object.values(r))}return e.hasAttribute("value")?e.checked?e.getAttribute("value"):null:e.checked}return V(e)}return e instanceof HTMLSelectElement?e.multiple?Array.from(e.selectedOptions).map(function(e){return e.value}):e.value:e.hasAttribute("data-value")?e.dataset.value:"value"in e?e.value:e.hasAttribute("value")?e.getAttribute("value"):null}function D(e,t){if(e instanceof HTMLInputElement){if("file"===e.type)return;if("radio"===e.type)return void(e.checked=e.value==t);if("checkbox"===e.type)return void(Array.isArray(t)?e.checked=t.some(function(t){return t==e.value}):e.hasAttribute("value")?e.checked=e.value==t:e.checked=t)}if(e instanceof HTMLSelectElement){var n=[].concat(t).map(function(e){return"".concat(e)});
25Array.from(e.options).forEach(function(e){e.selected=n.includes(e.value)})}else t=void 0===t?"":t,e.value=t}function F(e){if(!e.dataset.model)return[];var t=M(e.dataset.model);return t.forEach(function(t){if(t.args.length>0)throw new Error('The data-model="'.concat(e.dataset.model,'" format is invalid: it does not support passing arguments to the model.'));t.action=I(t.action)}),t}function B(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=F(e);if(n.length>0)return n[0];if(e.getAttribute("name")){var r=e.closest("form");if(r&&"model"in r.dataset){var i=M(r.dataset.model||"*")[0];if(i.args.length>0)throw new Error('The data-model="'.concat(r.dataset.model,'" format is invalid: it does not support passing arguments to the model.'));return i.action=I(e.getAttribute("name")),i}}if(!t)return null;throw new Error('Cannot determine the model name for "'.concat(_(e),'": the element must either have a "data-model" (or "name" attribute living inside a <form data-model="*">).'))}function q(e,t){return t.element===e||!!t.element.contains(e)&&e.closest('[data-controller~="live"]')===t.element}function H(e){var t=e.cloneNode(!0);if(!(t instanceof HTMLElement))throw new Error("Could not clone element");return t}var $=function(e,t){var n=p(t),r=V(e),i=t.indexOf(r);return e.checked?(-1===i&&n.push(r),n):(i>-1&&n.splice(i,1),n)},V=function(e){return e.dataset.value?e.dataset.value:e.value};var z=function(){return x(function e(){E(this,e),this.hooks=new Map},[{key:"register",value:function(e,t){var n=this.hooks.get(e)||[];n.push(t),this.hooks.set(e,n)}},{key:"unregister",value:function(e,t){var n=this.hooks.get(e)||[],r=n.indexOf(t);-1!==r&&(n.splice(r,1),this.hooks.set(e,n))}},{key:"triggerHook",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];(this.hooks.get(e)||[]).forEach(function(e){e.apply(void 0,n)})}}])}(),U=function(){var e=new Set,t={morphStyle:"outerHTML",callbacks:{beforeNodeAdded:c,afterNodeAdded:c,beforeNodeMorphed:c,afterNodeMorphed:c,beforeNodeRemoved:c,afterNodeRemoved:c,beforeAttributeUpdated:c},head:{style:"merge",shouldPreserve:function(e){return"true"===e.getAttribute("im-preserve")},shouldReAppend:function(e){return"true"===e.getAttribute("im-re-append")},shouldRemove:c,afterHeadMorphed:c}};function n(e,t,r){if(r.head.block){var s=e.querySelector("head"),a=t.querySelector("head");if(s&&a){var c=l(a,s,r);return void Promise.all(c).then(function(){n(e,t,Object.assign(r,{head:{block:!1,ignore:!0}}))})}}if("innerHTML"===r.morphStyle)return o(t,e,r),e.children;if("outerHTML"===r.morphStyle||null==r.morphStyle){var u=function(e,t,n){var r,i=r=e.firstChild,o=0;for(;r;){var s=g(r,t,n);s>o&&(i=r,o=s),r=r.nextSibling}return i}(t,e,r),d=null==u?void 0:u.previousSibling,f=null==u?void 0:u.nextSibling,p=i(e,u,r);return u?function(e,t,n){var r=[],i=[];for(;null!=e;)r.push(e),e=e.previousSibling;for(;r.length>0;){var o=r.pop();i.push(o),t.parentElement.insertBefore(o,t)}i.push(t);for(;null!=n;)r.push(n),i.push(n),n=n.nextSibling;for(;r.length>0;)t.parentElement.insertBefore(r.pop(),t.nextSibling);return i}(d,p,f):[]}throw"Do not understand how to morph style "+r.morphStyle}function r(e,t){return t.ignoreActiveValue&&e===document.activeElement}function i(e,t,n){if(!n.ignoreActive||e!==document.activeElement)return null==t?!1===n.callbacks.beforeNodeRemoved(e)?e:(e.remove(),n.callbacks.afterNodeRemoved(e),null):d(e,t)?(!1===n.callbacks.beforeNodeMorphed(e,t)||(e instanceof HTMLHeadElement&&n.head.ignore||(e instanceof HTMLHeadElement&&"morph"!==n.head.style?l(t,e,n):(!function(e,t,n){var i=e.nodeType;if(1===i){var o,l=e.attributes,c=t.attributes,u=f(l);try{for(u.s();!(o=u.n()).done;){var d=o.value;s(d.name,t,"update",n)||t.getAttribute(d.name)!==d.value&&t.setAttribute(d.name,d.value)}}catch(e){u.e(e)}finally{u.f()}for(var p=c.length-1;0<=p;p--){var h=c[p];s(h.name,t,"remove",n)||(e.hasAttribute(h.name)||t.removeAttribute(h.name))}}8!==i&&3!==i||t.nodeValue!==e.nodeValue&&(t.nodeValue=e.nodeValue);r(t,n)||function(e,t,n){if(e instanceof HTMLInputElement&&t instanceof HTMLInputElement&&"file"!==e.type){var r=e.value,i=t.value;a(e,t,"checked",n),a(e,t,"disabled",n),e.hasAttribute("value")?r!==i&&(s("value",t,"update",n)||(t.setAttribute("value",r),t.value=r)):s("value",t,"remove",n)||(t.value="",t.removeAttribute("value"))}else if(e instanceof HTMLOptionElement)a(e,t,"selected",n);else if(e instanceof HTMLTextAreaElement&&t instanceof HTMLTextAreaElement){var o=e.value,l=t.value;if(s("value",t,"update",n))return;o!==l&&(t.value=o),t.firstChild&&t.firstChild.nodeValue!==o&&(t.firstChild.nodeValue=o)}}
25(e,t,n)}(t,e,n),r(e,n)||o(t,e,n))),n.callbacks.afterNodeMorphed(e,t)),e):!1===n.callbacks.beforeNodeRemoved(e)||!1===n.callbacks.beforeNodeAdded(t)?e:(e.parentElement.replaceChild(t,e),n.callbacks.afterNodeAdded(t),n.callbacks.afterNodeRemoved(e),t)}function o(e,t,n){for(var r,o=e.firstChild,s=t.firstChild;o;)if(o=(r=o).nextSibling,null!=s)if(u(r,s,n))i(s,r,n),s=s.nextSibling,E(n,r);else{var a=m(e,t,r,s,n);if(a)s=h(s,a,n),i(a,r,n),E(n,r);else{var l=v(e,t,r,s,n);if(l)s=h(s,l,n),i(l,r,n),E(n,r);else{if(!1===n.callbacks.beforeNodeAdded(r))return;t.insertBefore(r,s),n.callbacks.afterNodeAdded(r),E(n,r)}}}else{if(!1===n.callbacks.beforeNodeAdded(r))return;t.appendChild(r),n.callbacks.afterNodeAdded(r),E(n,r)}for(;null!==s;){var c=s;s=s.nextSibling,y(c,n)}}function s(e,t,n,r){return!("value"!==e||!r.ignoreActiveValue||t!==document.activeElement)||!1===r.callbacks.beforeAttributeUpdated(e,t,n)}function a(e,t,n,r){if(e[n]!==t[n]){var i=s(n,t,"update",r);i||(t[n]=e[n]),e[n]?i||t.setAttribute(n,e[n]):s(n,t,"remove",r)||t.removeAttribute(n)}}function l(e,t,n){var r,i=[],o=[],s=[],a=[],l=n.head.style,c=new Map,u=f(e.children);try{for(u.s();!(r=u.n()).done;){var d=r.value;c.set(d.outerHTML,d)}}catch(e){u.e(e)}finally{u.f()}var h,m=f(t.children);try{for(m.s();!(h=m.n()).done;){var v=h.value,g=c.has(v.outerHTML),y=n.head.shouldReAppend(v),b=n.head.shouldPreserve(v);g||b?y?o.push(v):(c.delete(v.outerHTML),s.push(v)):"append"===l?y&&(o.push(v),a.push(v)):!1!==n.head.shouldRemove(v)&&o.push(v)}}catch(e){m.e(e)}finally{m.f()}a.push.apply(a,p(c.values()));for(var w=[],E=function(){var e=x[S],r=document.createRange().createContextualFragment(e.outerHTML).firstChild;if(!1!==n.callbacks.beforeNodeAdded(r)){if(r.href||r.src){var o=null,s=new Promise(function(e){o=e});r.addEventListener("load",function(){o()}),w.push(s)}t.appendChild(r),n.callbacks.afterNodeAdded(r),i.push(r)}},S=0,x=a;S<x.length;S++)E();for(var O=0,T=o;O<T.length;O++){var k=T[O];!1!==n.callbacks.beforeNodeRemoved(k)&&(t.removeChild(k),n.callbacks.afterNodeRemoved(k))}return n.head.afterHeadMorphed(t,{added:i,kept:s,removed:o}),w}function c(){}function u(e,t,n){return null!=e&&null!=t&&(e.nodeType===t.nodeType&&e.tagName===t.tagName&&(""!==e.id&&e.id===t.id||S(n,e,t)>0))}function d(e,t){return null!=e&&null!=t&&(e.nodeType===t.nodeType&&e.tagName===t.tagName)}function h(e,t,n){for(;e!==t;){var r=e;e=e.nextSibling,y(r,n)}return E(n,t),t.nextSibling}function m(e,t,n,r,i){var o=S(i,n,t);if(o>0)for(var s=r,a=0;null!=s;){if(u(n,s,i))return s;if((a+=S(i,s,e))>o)return null;s=s.nextSibling}return null}function v(e,t,n,r,i){for(var o=r,s=n.nextSibling,a=0;null!=o;){if(S(i,o,e)>0)return null;if(d(n,o))return o;if(d(s,o)&&(a++,s=s.nextSibling,a>=2))return null;o=o.nextSibling}return o}function g(e,t,n){return d(e,t)?.5+S(n,e,t):0}function y(e,t){E(t,e),!1!==t.callbacks.beforeNodeRemoved(e)&&(e.remove(),t.callbacks.afterNodeRemoved(e))}function b(e,t){return!e.deadIds.has(t)}function w(t,n,r){return(t.idMap.get(r)||e).has(n)}function E(t,n){var r,i=f(t.idMap.get(n)||e);try{for(i.s();!(r=i.n()).done;){var o=r.value;t.deadIds.add(o)}}catch(e){i.e(e)}finally{i.f()}}function S(t,n,r){var i,o=0,s=f(t.idMap.get(n)||e);try{for(s.s();!(i=s.n()).done;){var a=i.value;b(t,a)&&w(t,a,r)&&++o}}catch(e){s.e(e)}finally{s.f()}return o}function x(e,t){var n,r=e.parentElement,i=f(e.querySelectorAll("[id]"));try{for(i.s();!(n=i.n()).done;)for(var o=n.value,s=o;s!==r&&null!=s;){var a=t.get(s);null==a&&(a=new Set,t.set(s,a)),a.add(o.id),s=s.parentElement}}catch(e){i.e(e)}finally{i.f()}}function O(e,t){var n=new Map;return x(e,n),x(t,n),n}return{morph:function(e,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};e instanceof Document&&(e=e.documentElement),"string"==typeof r&&(r=function(e){var t=new DOMParser,n=e.replace(/<svg(\s[^>]*>|>)([\s\S]*?)<\/svg>/gim,"");if(n.match(/<\/html>/)||n.match(/<\/head>/)||n.match(/<\/body>/)){var r=t.parseFromString(e,"text/html");if(n.match(/<\/html>/))return r.generatedByIdiomorph=!0,r;var i=r.firstChild;return i?(i.generatedByIdiomorph=!0,i):null}var o=t.parseFromString("<body><template>"+e+"</template></body>","text/html").body.querySelector("template").content;return o.generatedByIdiomorph=!0,o}(r));var o=function(e){if(null==e)return document.createElement("div");if(e.generatedByIdiomorph)return e;if(e instanceof Node){var t=document.createElement("div");return t.append(e),t}for(var n=document.createElement("div"),r=0,i=p(e);r<i.length;r++){var o=i[r];n.append(o)}return n}(r),s=function(e,n,r){return r=function(e){var n={};return Object.assign(n,t),Object.assign(n,e),n.callbacks={},Object.assign(n.callbacks,t.callbacks),Object.assign(n.callbacks,e.callbacks),n.head={},Object.assign(n.head,t.head),Object.assign(n.head,e.head),n}(r),{target:e,newContent:n,config:r,morphStyle:r.morphStyle,ignoreActive:r.ignoreActive,ignoreActiveValue:r.ignoreActiveValue,idMap:O(e,n),deadIds:new Set,callbacks:r.callbacks,head:r.head}}(e,o,i);return n(e,o,s)},defaults:t}}();function W(e){e instanceof HTMLInputElement&&"file"===e.type||("value"in e?e.setAttribute("value",e.value):e.hasAttribute("value")&&e.setAttribute("value","")),Array.from(e.children).forEac
25h(function(e){W(e)})}var G=function(){return x(function e(){E(this,e),this.changedItems=new Map,this.removedItems=new Map},[{key:"setItem",value:function(e,t,n){if(this.removedItems.has(e)){var r=this.removedItems.get(e);if(this.removedItems.delete(e),r.original===t)return}if(this.changedItems.has(e)){var i=this.changedItems.get(e);return i.original===t?void this.changedItems.delete(e):void this.changedItems.set(e,{original:i.original,new:t})}this.changedItems.set(e,{original:n,new:t})}},{key:"removeItem",value:function(e,t){var n=t;this.changedItems.has(e)&&(n=this.changedItems.get(e).original,this.changedItems.delete(e),null===n)||this.removedItems.has(e)||this.removedItems.set(e,{original:n})}},{key:"getChangedItems",value:function(){return Array.from(this.changedItems,function(e){var t=y(e,2);return{name:t[0],value:t[1].new}})}},{key:"getRemovedItems",value:function(){return Array.from(this.removedItems.keys())}},{key:"isEmpty",value:function(){return 0===this.changedItems.size&&0===this.removedItems.size}}])}(),K=function(){return x(function e(){E(this,e),this.addedClasses=new Set,this.removedClasses=new Set,this.styleChanges=new G,this.attributeChanges=new G},[{key:"addClass",value:function(e){this.removedClasses.delete(e)||this.addedClasses.add(e)}},{key:"removeClass",value:function(e){this.addedClasses.delete(e)||this.removedClasses.add(e)}},{key:"addStyle",value:function(e,t,n){this.styleChanges.setItem(e,t,n)}},{key:"removeStyle",value:function(e,t){this.styleChanges.removeItem(e,t)}},{key:"addAttribute",value:function(e,t,n){this.attributeChanges.setItem(e,t,n)}},{key:"removeAttribute",value:function(e,t){this.attributeChanges.removeItem(e,t)}},{key:"getAddedClasses",value:function(){return p(this.addedClasses)}},{key:"getRemovedClasses",value:function(){return p(this.removedClasses)}},{key:"getChangedStyles",value:function(){return this.styleChanges.getChangedItems()}},{key:"getRemovedStyles",value:function(){return this.styleChanges.getRemovedItems()}},{key:"getChangedAttributes",value:function(){return this.attributeChanges.getChangedItems()}},{key:"getRemovedAttributes",value:function(){return this.attributeChanges.getRemovedItems()}},{key:"applyToElement",value:function(e){var t,n;(t=e.classList).add.apply(t,p(this.addedClasses)),(n=e.classList).remove.apply(n,p(this.removedClasses)),this.styleChanges.getChangedItems().forEac
25h(function(t){/!\s*important/i.test(t.value)?e.style.setProperty(t.name,t.value.replace(/!\s*important/i,"").trim(),"important"):e.style.setProperty(t.name,t.value)}),this.styleChanges.getRemovedItems().forEach(function(t){e.style.removeProperty(t)}),this.attributeChanges.getChangedItems().forEach(function(t){e.setAttribute(t.name,t.value)}),this.attributeChanges.getRemovedItems().forEach(function(t){e.removeAttribute(t)})}},{key:"isEmpty",value:function(){return 0===this.addedClasses.size&&0===this.removedClasses.size&&this.styleChanges.isEmpty()&&this.attributeChanges.isEmpty()}}])}(),X=function(){return x(function e(t,n){E(this,e),this.changedElements=new WeakMap,this.changedElementsCount=0,this.addedElements=[],this.removedElements=[],this.isStarted=!1,this.element=t,this.shouldTrackChangeCallback=n,this.mutationObserver=new MutationObserver(this.onMutations.bind(this))},[{key:"start",value:function(){this.isStarted||(this.mutationObserver.observe(this.element,{childList:!0,subtree:!0,attributes:!0,attributeOldValue:!0}),this.isStarted=!0)}},{key:"stop",value:function(){this.isStarted&&(this.mutationObserver.disconnect(),this.isStarted=!1)}},{key:"getChangedElement",value:function(e){return this.changedElements.has(e)?this.changedElements.get(e):null}},{key:"getAddedElements",value:function(){return this.addedElements}},{key:"wasElementAdded",value:function(e){return this.addedElements.includes(e)}},{key:"handlePendingChanges",value:function(){this.onMutations(this.mutationObserver.takeRecords())}},{key:"onMutations",value:function(e){var t,n=new WeakMap,r=f(e);try{for(r.s();!(t=r.n()).done;){var i=t.value,o=i.target;if(this.shouldTrackChangeCallback(o)&&!this.isElementAddedByTranslation(o)){var s,a=!1,l=f(this.addedElements);try{for(l.s();!(s=l.n()).done;){if(s.value.contains(o)){a=!0;break}}}catch(e){l.e(e)}finally{l.f()}if(!a)switch(i.type){case"childList":this.handleChildListMutation(i);break;case"attributes":n.has(o)||n.set(o,[]),n.get(o).includes(i.attributeName)||(this.handleAttributeMutation(i),n.set(o,[].concat(p(n.get(o)),[i.attributeName])))}}}}catch(e){r.e(e)}finally{r.f()}}},{key:"handleChildListMutation",value:function(e){var t=this;e.addedNodes.forEach(function(e){e instanceof Element&&(t.removedElements.includes(e)?t.removedElements.splice(t.removedElements.indexOf(e),1):t.isElementAddedByTranslation(e)||t.addedElements.push(e))}),e.removedNodes.forEach(function(e){e instanceof Element&&(t.addedElements.includes(e)?t.addedElements.splice(t.addedElements.indexOf(e),1):t.removedElements.push(e))})}},{key:"handleAttributeMutation",value:function(e){var t=e.target;this.changedElements.has(t)||(this.changedElements.set(t,new K),this.changedElementsCount++);var n=this.changedElements.get(t);switch(e.attributeName){case"class":this.handleClassAttributeMutation(e,n);break;case"style":this.handleStyleAttributeMutation(e,n);break;default:this.handleGenericAttributeMutation(e,n)}n.isEmpty()&&(this.changedElements.delete(t),this.changedElementsCount--)}},{key:"handleClassAttributeMutation",value:function(e,t){var n=e.target,r=(e.oldValue||"").match(/((?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)/g)||[],i=[].slice.call(n.classList),o=i.filter(function(e){return!r.includes(e)}),s=r.filter(function(e){return!i.includes(e)});o.forEach(function(e){t.addClass(e)}),s.forEach(function(e){t.removeClass(e)})}},{key:"handleStyleAttributeMutation",value:function(e,t){var n=e.target,r=e.oldValue||"",i=this.extractStyles(r),o=n.getAttribute("style")||"",s=this.extractStyles(o),a=Object.keys(s).filter(function(e){return void 0===i[e]||i[e]!==s[e]}),l=Object.keys(i).filter(function(e){return!s[e]});a.forEach(function(e){t.addStyle(e,s[e],void 0===i[e]?null:i[e])}),l.forEach(function(e){t.removeStyle(e,i[e])})}},{key:"handleGenericAttributeMutation",value:function(e,t){var n=e.attributeName,r=e.target,i=e.oldValue,o=r.getAttribute(n);if(i===n&&(i=""),o===n&&(o=""),r.hasAttribute(n))o!==i&&t.addAttribute(n,r.getAttribute(n),e.oldValue);else{if(null===i)return;t.removeAttribute(n,e.oldValue)}}},{key:"extractStyles",value:function(e){var t={};return e.split(";").forEach(function(e){var n=e.split(":");if(1!==n.length){var r=n[0].trim();t[r]=n.slice(1).join(":").trim()}}),t}},{key:"isElementAddedByTranslation",value:function(e){return"FONT"===e.tagName&&"vertical-align: inherit;"===e.getAttribute("style")}}])}(),J=function(){return x(function e(t,n){var r=this;E(this,e),this.elementEventListeners=[{event:"input",callback:function(e){return r.handleInputEvent(e)}}],this.component=t,this.modelElementResolver=n,this.unsyncedInputs=new Y},[{key:"activate",value:function(){var e=this;
25this.elementEventListeners.forEach(function(t){var n=t.event,r=t.callback;e.component.element.addEventListener(n,r)})}},{key:"deactivate",value:function(){var e=this;this.elementEventListeners.forEach(function(t){var n=t.event,r=t.callback;e.component.element.removeEventListener(n,r)})}},{key:"markModelAsSynced",value:function(e){this.unsyncedInputs.markModelAsSynced(e)}},{key:"handleInputEvent",value:function(e){var t=e.target;t&&this.updateModelFromElement(t)}},{key:"updateModelFromElement",value:function(e){if(q(e,this.component)){if(!(e instanceof HTMLElement))throw new Error("Could not update model for non HTMLElement");var t=this.modelElementResolver.getModelName(e);this.unsyncedInputs.add(e,t)}}},{key:"getUnsyncedInputs",value:function(){return this.unsyncedInputs.allUnsyncedInputs()}},{key:"getUnsyncedModels",value:function(){return Array.from(this.unsyncedInputs.getUnsyncedModelNames())}},{key:"resetUnsyncedFields",value:function(){this.unsyncedInputs.resetUnsyncedFields()}}])}(),Y=function(){return x(function e(){E(this,e),this.unsyncedNonModelFields=[],this.unsyncedModelNames=[],this.unsyncedModelFields=new Map},[{key:"add",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(t)return this.unsyncedModelFields.set(t,e),void(this.unsyncedModelNames.includes(t)||this.unsyncedModelNames.push(t));this.unsyncedNonModelFields.push(e)}},{key:"resetUnsyncedFields",value:function(){var e=this;this.unsyncedModelFields.forEach(function(t,n){e.unsyncedModelNames.includes(n)||e.unsyncedModelFields.delete(n)})}},{key:"allUnsyncedInputs",value:function(){return[].concat(p(this.unsyncedNonModelFields),p(this.unsyncedModelFields.values()))}},{key:"markModelAsSynced",value:function(e){var t=this.unsyncedModelNames.indexOf(e);-1!==t&&this.unsyncedModelNames.splice(t,1)}},{key:"getUnsyncedModelNames",value:function(){return this.unsyncedModelNames}}])}();var Q=function(e,t){for(var n=JSON.parse(JSON.stringify(e)),r=n,i=t.split("."),o=0;o<i.length-1;o++)r=r[i[o]];return{currentLevelData:r,finalData:n,finalKey:i[i.length-1],parts:i}},Z=function(){return x(function e(t){E(this,e),this.props={},this.dirtyProps={},this.pendingProps={},this.updatedPropsFromParent={},this.props=t},[{key:"get",value:function(e){var t=I(e);return void 0!==this.dirtyProps[t]?this.dirtyProps[t]:void 0!==this.pendingProps[t]?this.pendingProps[t]:void 0!==this.props[t]?this.props[t]:function(e,t){var n=Q(e,t),r=n.currentLevelData,i=n.finalKey;if(void 0!==r)return r[i]}(this.props,t)}},{key:"has",value:function(e){return void 0!==this.get(e)}},{key:"set",value:function(e,t){var n=I(e);return this.get(n)!==t&&(this.dirtyProps[n]=t,!0)}},{key:"getOriginalProps",value:function(){return u({},this.props)}},{key:"getDirtyProps",value:function(){return u({},this.dirtyProps)}},{key:"getUpdatedPropsFromParent",value:function(){return u({},this.updatedPropsFromParent)}},{key:"flushDirtyPropsToPending",value:function(){this.pendingProps=u({},this.dirtyProps),this.dirtyProps={}}},{key:"reinitializeAllProps",value:function(e){this.props=e,this.updatedPropsFromParent={},this.pendingProps={}}},{key:"pushPendingPropsBackToDirty",value:function(){this.dirtyProps=u(u({},this.pendingProps),this.dirtyProps),this.pendingProps={}}},{key:"storeNewPropsFromParent",value:function(e){for(var t=!1,n=0,r=Object.entries(e);n<r.length;n++){var i=y(r[n],2),o=i[0],s=i[1];this.get(o)!==s&&(t=!0)}return t&&(this.updatedPropsFromParent=e),t}}])}(),ee=function(){return x(function e(t,n,r,i,o,s,a){var l=this;E(this,e),this.fingerprint="",this.defaultDebounce=150,this.backendRequest=null,this.pendingActions=[],this.pendingFiles={},this.isRequestPending=!1,this.requestDebounceTimeout=null,this.element=t,this.name=n,this.backend=s,this.elementDriver=a,this.id=o,this.listeners=new Map,i.forEach(function(e){var t;l.listeners.has(e.event)||l.listeners.set(e.event,[]),null===(t=l.listeners.get(e.event))||void 0===t||t.push(e.action)}),this.valueStore=new Z(r),this.unsyncedInputsTracker=new J(this,a),this.hooks=new z,this.resetPromise(),this.externalMutationTracker=new X(this.element,function(e){return q(e,l)}),this.externalMutationTracker.start()},[{key:"addPlugin",value:function(e){e.attachToComponent(this)}},{key:"connect",value:function(){var e;e=this,P.set(e.element,e),L.set(e,e.name),this.hooks.triggerHook("connect",this),this.unsyncedInputsTracker.activate(),this.externalMutationTracker.start()}},{key:"disconnect",value:function(){var e;e=this,P.delete(e.element),L.delete(e),this.hooks.triggerHook("disconnect",this),this.clearRequestDebounceTimeout(),this.unsyncedInputsTracker.deactivate(),this.externalMutationTracker.stop()}},{key:"on",value:function(e,t){this.hooks.register(e,t)}},{key:"off",value:function(e,t){this.hooks.unregister(e,t)}},{key:"set",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=this.nextRequestPromise,o=I(e);if(!this.valueStore.has(o))throw new Error('Invalid model name "'.concat(e,'".'));var s=this.valueStore.set(o,t);return this.hooks.triggerHook("model:set",e,t,this),this.unsyncedInputsTracker.markModelAsSynced(o),n&&s&&this.debouncedStartRequest
25(r),i}},{key:"getData",value:function(e){var t=I(e);if(!this.valueStore.has(t))throw new Error('Invalid model "'.concat(e,'".'));return this.valueStore.get(t)}},{key:"action",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this.nextRequestPromise;return this.pendingActions.push({name:e,args:t}),this.debouncedStartRequest(n),r}},{key:"files",value:function(e,t){this.pendingFiles[e]=t}},{key:"render",value:function(){var e=this.nextRequestPromise;return this.tryStartingRequest(),e}},{key:"getUnsyncedModels",value:function(){return this.unsyncedInputsTracker.getUnsyncedModels()}},{key:"emit",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this.performEmit(e,t,!1,n)}},{key:"emitUp",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this.performEmit(e,t,!0,n)}},{key:"emitSelf",value:function(e,t){this.doEmit(e,t)}},{key:"performEmit",value:function(e,t,n,r){var i,o,s,a;(i=this,o=n,s=r,a=[],L.forEach(function(e,t){(!o||i!==t&&t.element.contains(i.element))&&(s&&e!==s||a.push(t))}),a).forEach(function(n){n.doEmit(e,t)})}},{key:"doEmit",value:function(e,t){var n=this;this.listeners.has(e)&&(this.listeners.get(e)||[]).forEach(function(e){n.action(e,t,1)})}},{key:"isTurboEnabled",value:function(){return"undefined"!=typeof Turbo&&!this.element.closest('[data-turbo="false"]')}},{key:"tryStartingRequest",value:function(){this.backendRequest?this.isRequestPending=!0:this.performRequest()}},{key:"performRequest",value:function(){var e=this,t=this.nextRequestPromiseResolve;this.resetPromise(),this.unsyncedInputsTracker.resetUnsyncedFields();for(var n={},r=0,i=Object.entries(this.pendingFiles);r<i.length;r++){var o=y(i[r],2),s=o[0],a=o[1];a.files&&(n[s]=a.files)}var l=this.pendingActions.slice(0,50),c=this.pendingActions.slice(50),u={props:this.valueStore.getOriginalProps(),actions:l,updated:this.valueStore.getDirtyProps(),children:{},updatedPropsFromParent:this.valueStore.getUpdatedPropsFromParent(),files:n};this.hooks.triggerHook("request:started",u),this.backendRequest=this.backend.makeRequest(u.props,u.actions,u.updated,u.children,u.updatedPropsFromParent,u.files),this.hooks.triggerHook("loading.state:started",this.element,this.backendRequest),this.pendingActions=c,this.valueStore.flushDirtyPropsToPending(),this.isRequestPending=c.length>0,this.backendRequest.promise.then(function(){var n=g(h().m(function n(r){var i,o,s,a,l,c,u,d;return h().w(function(n){for(;;)switch(n.n){case 0:return o=new A(r),n.n=1,o.getBody();case 1:for(s=n.v,a=0,l=Object.values(e.pendingFiles);a<l.length;a++)l[a].value="";if(c=o.response.headers,null!==(i=c.get("Content-Type"))&&void 0!==i&&i.includes("application/vnd.live-component+html")||c.get("X-Live-Redirect")){n.n=2;break}return u={displayError:!0},e.valueStore.pushPendingPropsBackToDirty(),e.hooks.triggerHook("response:error",o,u),u.displayError&&e.renderError(s),e.backendRequest=null,t(o),n.a(2,r);case 2:return(d=o.getLiveUrl())&&history.replaceState(history.state,"",new URL(d+window.location.hash,window.location.origin)),e.processRerender(s,o),e.backendRequest=null,t(o),e.isRequestPending&&(e.isRequestPending=!1,e.performRequest()),n.a(2,r)}},n)}));return function(e){return n.apply(this,arguments)}}())}},{key:"processRerender",value:function(e,t){var n=this,r={shouldRender:!0};if(this.hooks.triggerHook("render:started",e,t,r),r.shouldRender)if(t.response.headers.get("Location"))this.isTurboEnabled()?Turbo.visit(t.response.headers.get("Location")):window.location.href=t.response.headers.get("Location")||"";else{this.hooks.triggerHook("loading.state:finished",this.element);var i,o,s,a,l,c,u,d,f,p={};Object.keys(this.valueStore.getDirtyProps()).forEach(function(e){p[e]=n.valueStore.get(e)});try{if(i=function(e){var t=document.createElement("template");if(e=e.trim(),t.innerHTML=e,t.content.childElementCount>1)throw new Error("Component HTML contains ".concat(t.content.childElementCount," elements, but only 1 root element is allowed."));var n=t.content.firstElementChild;if(!n)throw new Error("Child not found");if(!(n instanceof HTMLElement))throw new Error("Created element is not an HTMLElement: ".concat(e.trim()));return n}(e),!i.matches("[data-controller~=live]"))throw new Error("A live component template must contain a single root controller element.")}catch(e){throw console.error("There was a problem with the '".concat(this.name,"' component HTML returned:"),{id:this.id}),e}this.externalMutationTracker.handlePendingChanges(),this.externalMutationTracker.stop(),o=this.element,s=i,a=this.unsyncedInputsTracker.getUnsyncedInputs(),l=function(e){return N(e,n.valueStore)},c=this.externalMutationTracker,u=[],d=new Map,f=function(e,t){var n=d.get(e);if(!(n instanceof HTMLElement))throw new Error("Original element with id ".concat(e," not found"));if(u.push(e),!t)return null;var r=H(n);return n.replaceWith(r),r},s.querySelectorAll("[data-live-preserve]").forEach(function(e){var t=e.id;if(!t)throw new Error("The data-live-preserve attribute requires an id attribute to be set on the element");var n=o.querySelector("#".concat(t));if(!(n instanceof HTMLElement))throw new Error('The element with id "'.concat(t,'" was not found in the original HTML'));e.removeAttribute("data-live-preserve"),d.set(t,n),function(e,t){for(var n=0;n<e.attributes.length;n++){var r=e.attributes[n];t.setAttribute(r.name,r.value)}}(e,n)}),U.morph(o,s,{callbacks:{beforeNodeMorphed:function(e,t){var n;if(!(e instanceof Element&&t instanceof Element))return!0;
25if(e===o)return!0;if(e.id&&d.has(e.id)){if(e.id===t.id)return!1;var r=f(e.id,!0);if(!r)throw new Error("missing clone");return U.morph(r,t),!1}if(e instanceof HTMLElement&&t instanceof HTMLElement){if(void 0!==e.__x){if(!window.Alpine)throw new Error("Unable to access Alpine.js though the global window.Alpine variable. Please make sure Alpine.js is loaded before Symfony UX LiveComponent.");if("function"!=typeof window.Alpine.morph)throw new Error("Unable to access Alpine.js morph function. Please make sure the Alpine.js Morph plugin is installed and loaded, see https://alpinejs.dev/plugins/morph for more information.");window.Alpine.morph(e.__x,t)}if(c.wasElementAdded(e))return e.insertAdjacentElement("afterend",t),!1;a.includes(e)&&D(t,l(e)),e===document.activeElement&&e!==document.body&&null!==B(e,!1)&&D(t,l(e));var i=c.getChangedElement(e);if(i&&i.applyToElement(t),"OPTION"!==e.nodeName.toUpperCase()&&e.isEqualNode(t)){var s=H(e);W(s);var u=H(t);if(W(u),s.isEqualNode(u))return!1}}return e.hasAttribute("data-skip-morph")||e.id&&e.id!==t.id?(e.innerHTML=t.innerHTML,!0):!(null!==(n=e.parentElement)&&void 0!==n&&n.hasAttribute("data-skip-morph")||e.hasAttribute("data-live-ignore"))},beforeNodeRemoved:function(e){return!(e instanceof HTMLElement&&(e.id&&d.has(e.id)?(f(e.id,!1),0):c.wasElementAdded(e)||e.hasAttribute("data-live-ignore")))}}}),u.forEach(function(e){var t=o.querySelector("#".concat(e)),n=d.get(e);if(!(t instanceof HTMLElement&&n instanceof HTMLElement))throw new Error("Missing elements.");t.replaceWith(n)}),this.externalMutationTracker.start();var h=this.elementDriver.getComponentProps();this.valueStore.reinitializeAllProps(h);var m=this.elementDriver.getEventsToEmit(),v=this.elementDriver.getBrowserEventsToDispatch();Object.keys(p).forEach(function(e){n.valueStore.set(e,p[e])}),m.forEach(function(e){var t=e.event,r=e.data,i=e.target,o=e.componentName;"up"!==i?"self"!==i?n.emit(t,r,o):n.emitSelf(t,r):n.emitUp(t,r,o)}),v.forEach(function(e){var t=e.event,r=e.payload;n.element.dispatchEvent(new CustomEvent(t,{detail:r,bubbles:!0}))}),this.hooks.triggerHook("render:finished",this)}}},{key:"calculateDebounce",value:function(e){return!0===e?this.defaultDebounce:!1===e?0:e}},{key:"clearRequestDebounceTimeout",value:function(){this.requestDebounceTimeout&&(clearTimeout(this.requestDebounceTimeout),this.requestDebounceTimeout=null)}},{key:"debouncedStartRequest",value:function(e){var t=this;this.clearRequestDebounceTimeout(),this.requestDebounceTimeout=window.setTimeout(function(){t.render()},this.calculateDebounce(e))}},{key:"renderError",value:function(e){var t=document.getElementById("live-component-error");t?t.innerHTML="":((t=document.createElement("div")).id="live-component-error",t.style.padding="50px",t.style.backgroundColor="rgba(0, 0, 0, .5)",t.style.zIndex="100000",t.style.position="fixed",t.style.top="0px",t.style.bottom="0px",t.style.left="0px",t.style.right="0px",t.style.display="flex",t.style.flexDirection="column");var n=document.createElement("iframe");n.style.borderRadius="5px",n.style.flexGrow="1",t.appendChild(n),document.body.prepend(t),document.body.style.overflow="hidden",n.contentWindow&&(n.contentWindow.document.open(),n.contentWindow.document.write(e),n.contentWindow.document.close());var r=function(e){e&&(e.outerHTML=""),document.body.style.overflow="visible"};t.addEventListener("click",function(){return r(t)}),t.setAttribute("tabindex","0"),t.addEventListener("keydown",function(e){"Escape"===e.key&&r(t)}),t.focus()}},{key:"resetPromise",value:function(){var e=this;this.nextRequestPromise=new Promise(function(t){e.nextRequestPromiseResolve=t})}},{key:"_updateFromParentProps",value:function(e){this.valueStore.storeNewPropsFromParent(e)&&this.render()}}])}();var te=function(){return x(function e(t){E(this,e),this.controller=t},[{key:"getModelName",value:function(e){var t=B(e,!1);return t?t.action:null}},{key:"getComponentProps",value:function(){return this.controller.propsValue}},{key:"getEventsToEmit",value:function(){return this.controller.eventsToEmitValue}},{key:"getBrowserEventsToDispatch",value:function(){return this.controller.eventsToDispatchValue}}])}();function ne(e){var t=!0,n=null,r=!1,i=null,o=null,s=null,a=null;
25e.modifiers.forEach(function(l){switch(l.name){case"on":if(!l.value)throw new Error('The "on" modifier in '.concat(e.getString()," requires a value - e.g. on(change)."));if(!["input","change"].includes(l.value))throw new Error('The "on" modifier in '.concat(e.getString(),' only accepts the arguments "input" or "change".'));n=l.value;break;case"norender":t=!1;break;case"debounce":r=!l.value||Number.parseInt(l.value);break;case"min_length":i=l.value?Number.parseInt(l.value):null;break;case"max_length":o=l.value?Number.parseInt(l.value):null;break;case"min_value":s=l.value?Number.parseFloat(l.value):null;break;case"max_value":a=l.value?Number.parseFloat(l.value):null;break;default:throw new Error('Unknown modifier "'.concat(l.name,'" in data-model="').concat(e.getString(),'".'))}});var l=y(e.action.split(":"),2);return{modelName:l[0],innerModelName:l[1]||null,shouldRender:t,debounce:r,targetEventName:n,minLength:i,maxLength:o,minValue:s,maxValue:a}}var re=function(){return x(function e(t){E(this,e),this.parentModelBindings=[],this.component=t;var n=F(this.component.element);this.parentModelBindings=n.map(ne)},[{key:"attachToComponent",value:function(e){var t=this;e.on("request:started",function(e){e.children=t.getChildrenFingerprints()}),e.on("model:set",function(e,n){t.notifyParentModelChange(e,n)})}},{key:"getChildrenFingerprints",value:function(){var e={};
25return this.getChildren().forEach(function(t){if(!t.id)throw new Error("missing id");e[t.id]={fingerprint:t.fingerprint,tag:t.element.tagName.toLowerCase()}}),e}},{key:"notifyParentModelChange",value:function(e,t){var n=function(e){for(var t=e.element.parentElement;t;){var n=P.get(t);if(n)return n;t=t.parentElement}return null}(this.component);n&&this.parentModelBindings.forEach(function(r){(r.innerModelName||"value")===e&&n.set(r.modelName,t,r.shouldRender,r.debounce)})}},{key:"getChildren",value:function(){return e=this.component,t=[],L.forEach(function(n,r){if(e!==r&&e.element.contains(r.element)){var i=!1;L.forEach(function(e,t){i||t!==r&&t.element.contains(r.element)&&(i=!0)}),t.push(r)}}),t;var e,t}}])}(),ie=function(){return x(function e(){E(this,e),this.intersectionObserver=null},[{key:"attachToComponent",value:function(e){var t,n=this;"lazy"===(null===(t=e.element.attributes.getNamedItem("loading"))||void 0===t?void 0:t.value)&&(e.on("connect",function(){n.getObserver().observe(e.element)}),e.on("disconnect",function(){var t;null===(t=n.intersectionObserver)||void 0===t||t.unobserve(e.element)}))}},{key:"getObserver",value:function(){return this.intersectionObserver||(this.intersectionObserver=new IntersectionObserver(function(e,t){e.forEach(function(e){e.isIntersecting&&(e.target.dispatchEvent(new CustomEvent("live:appear")),t.unobserve(e.target))})})),this.intersectionObserver}}])}(),oe=function(){return x(function e(){E(this,e)},[{key:"attachToComponent",value:function(e){var t=this;e.on("loading.state:started",function(n,r){t.startLoading(e,n,r)}),e.on("loading.state:finished",function(n){t.finishLoading(e,n)}),this.finishLoading(e,e.element)}},{key:"startLoading",value:function(e,t,n){this.handleLoadingToggle(e,!0,t,n)}},{key:"finishLoading",value:function(e,t){this.handleLoadingToggle(e,!1,t,null)}},{key:"handleLoadingToggle",value:function(e,t,n,r){var i=this;t?n.setAttribute("aria-busy","true"):n.removeAttribute("aria-busy"),this.getLoadingDirectives(e,n).forEach(function(e){var n=e.element,o=e.directives;t?i.addAttributes(n,["data-live-is-loading"]):i.removeAttributes(n,["data-live-is-loading"]),o.forEach(function(e){i.handleLoadingDirective(n,t,e,r)})})}},{key:"handleLoadingDirective",value:function(e,t,n,r){var i=this,o=se(n.action,t),s=[],a=[],l=0,c=new Map;if(c.set("delay",function(e){t&&(l=e.value?Number.parseInt(e.value):200)}),c.set("action",function(e){if(!e.value)throw new Error('The "action" in data-loading must have an action name - e.g. action(foo). It\'s missing for "'.concat(n.getString(),'"'));s.push(e.value)}),c.set("model",function(e){if(!e.value)throw new Error('The "model" in data-loading must have an action name - e.g. model(foo). It\'s missing for "'.concat(n.getString(),'"'));a.push(e.value)}),n.modifiers.forEach(function(e){if(!c.has(e.name))throw new Error('Unknown modifier "'.concat(e.name,'" used in data-loading="').concat(n.getString(),'". Available modifiers are: ').concat(Array.from(c.keys()).join(", "),"."));var t;(null!==(t=c.get(e.name))&&void 0!==t?t:function(){})(e)}),(!(t&&s.length>0&&r)||r.containsOneOfActions(s))&&(!(t&&a.length>0&&r)||r.areAnyModelsUpdated(a))){var u;switch(o){case"show":u=function(){return i.showElement(e)};break;case"hide":u=function(){return i.hideElement(e)};break;case"addClass":u=function(){return i.addClass(e,n.args)};break;case"removeClass":u=function(){return i.removeClass(e,n.args)};break;case"addAttribute":u=function(){return i.addAttributes(e,n.args)};break;case"removeAttribute":u=function(){return i.removeAttributes(e,n.args)};break;default:throw new Error('Unknown data-loading action "'.concat(o,'"'))}l?window.setTimeout(function(){r&&!r.isResolved&&u()},l):u()}}},{key:"getLoadingDirectives",value:function(e,t){var n=[],r=Array.from(t.querySelectorAll("[data-loading]"));return r=(r=r.filter(function(t){return q(t,e)})).filter(function(e){return!e.closest("[data-live-ignore]")}),t.hasAttribute("data-loading")&&(r=[t].concat(p(r))),r.forEach(function(e){if(!(e instanceof HTMLElement||e instanceof SVGElement))throw new Error("Invalid Element Type");var t=M(e.dataset.loading||"show");n.push({element:e,directives:t})}),n}},{key:"showElement",value:function(e){e.style.display="revert"}},{key:"hideElement",value:function(e){e.style.display="none"}},{key:"addClass",value:function(e,t){var n;(n=e.classList).add.apply(n,p(R(t)))}},{key:"removeClass",value:function(e,t){var n;(n=e.classList).remove.apply(n,p(R(t))),0===e.classList.length&&e.removeAttribute("class")}},{key:"addAttributes",value:function(e,t){t.forEach(function(t){e.setAttribute(t,"")})}},{key:"removeAttributes",value:function(e,t){t.forEach(function(t){e.removeAttribute(t)})}}])}(),se=function(e,t){switch(e){case"show":return t?"show":"hide";case"hide":return t?"hide":"show";case"addClass":return t?"addClass":"removeClass";case"removeClass":return t?"removeClass":"addClass";case"addAttribute":return t?"addAttribute":"removeAttribute";case"removeAttribute":return t?"removeAttribute":"addAttribute"}throw new Error('Unknown data-loading action "'.concat(e,'"'))},ae=function(){return x(function e(){E(this,e),this.isConnected=!1},[{key:"attachToComponent",value:function(e){var t=this;e.on("render:started",function(e,n,r){t.isConnected||(r.shouldRender=!1)}),e.on("connect",function(){t.isConnected=!0}),e.on("disconnect",function(){t.isConnected=!1})}}])}(),le=function(){return x(function e(t){E(this,e),this.isPollingActive=!0,this.pollingIntervals=[],this.component=t},[{key:"addPoll",value:function(e,t){this.polls.push({actionName:e,duration:t}),this.isPollingActive&&this.initiatePoll(e,t)}},{key:"startAllPolling",value:function(){var e=this;this.isPollingActive||(this.isPollingActive=!0,this.polls.forEac
25h(function(t){var n=t.actionName,r=t.duration;e.initiatePoll(n,r)}))}},{key:"stopAllPolling",value:function(){this.isPollingActive=!1,this.pollingIntervals.forEach(function(e){clearInterval(e)})}},{key:"clearPolling",value:function(){this.stopAllPolling(),this.polls=[],this.startAllPolling()}},{key:"initiatePoll",value:function(e,t){var n,r=this;n="$render"===e?function(){r.component.render()}:function(){r.component.action(e,{},0)};var i=window.setInterval(function(){n()},t);this.pollingIntervals.push(i)}}])}(),ce=function(){return x(function e(){E(this,e)},[{key:"attachToComponent",value:function(e){var t=this;this.element=e.element,this.pollingDirector=new le(e),this.initializePolling(),e.on("connect",function(){t.pollingDirector.startAllPolling()}),e.on("disconnect",function(){t.pollingDirector.stopAllPolling()}),e.on("render:finished",function(){t.initializePolling()})}},{key:"addPoll",value:function(e,t){this.pollingDirector.addPoll(e,t)}},{key:"clearPolling",value:function(){this.pollingDirector.clearPolling()}},{key:"initializePolling",value:function(){var e=this;if(this.clearPolling(),void 0!==this.element.dataset.poll){var t=this.element.dataset.poll;M(t||"$render").forEach(function(n){var r=2e3;n.modifiers.forEach(function(e){if("delay"===e.name)e.value&&(r=Number.parseInt(e.value));else console.warn('Unknown modifier "'.concat(e.name,'" in data-poll "').concat(t,'".'))}),e.addPoll(n.action,r)})}}}])}(),ue=function(){return x(function e(){E(this,e)},[{key:"attachToComponent",value:function(e){var t=this;this.synchronizeValueOfModelFields(e),e.on("render:finished",function(){t.synchronizeValueOfModelFields(e)})}},{key:"synchronizeValueOfModelFields",value:function(e){e.element.querySelectorAll("[data-model]").forEach(function(t){if(!(t instanceof HTMLElement))throw new Error("Invalid element using data-model.");if(!(t instanceof HTMLFormElement)&&q(t,e)){var n=B(t);if(n){var r=n.action;e.getUnsyncedModels().includes(r)||(e.valueStore.has(r)&&D(t,e.valueStore.get(r)),t instanceof HTMLSelectElement&&!t.multiple&&e.valueStore.set(r,N(t,e.valueStore)))}}})}}])}(),de=function(){return x(function e(){E(this,e)},[{key:"attachToComponent",value:function(e){var t=this;e.on("model:set",function(n){t.handleModelSet(n,e.valueStore)})}},{key:"handleModelSet",value:function(e,t){if(t.has("validatedFields")){var n=p(t.get("validatedFields"));n.includes(e)||n.push(e),t.set("validatedFields",n)}}}])}(),fe=function(e){function t(){var e;E(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(e=o(this,t,[].concat(r))).pendingActionTriggerModelElement=null,e.elementEventListeners=[{event:"input",callback:function(t){return e.handleInputEvent(t)}},{event:"change",callback:function(t){return e.handleChangeEvent(t)}}],e.pendingFiles={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(t,e),x(t,[{key:"initialize",value:function(){this.mutationObserver=new MutationObserver(this.onMutations.bind(this)),this.createComponent()}},{key:"connect",value:function(){this.connectComponent(),this.mutationObserver.observe(this.element,{attributes:!0})}},{key:"disconnect",value:function(){this.disconnectComponent(),this.mutationObserver.disconnect()}},{key:"update",value:function(e){if("input"===e.type||"change"===e.type)throw new Error('Since LiveComponents 2.3, you no longer need data-action="live#update" on form elements. Found on element: '.concat(_(e.currentTarget)));this.updateModelFromElementEvent(e.currentTarget,null)}},{key:"action",value:function(e){var t=this,n=e.params;if(!n.action)throw new Error("No action name provided on element: ".concat(_(e.currentTarget),'. Did you forget to add the "data-live-action-param" attribute?'));var r=n.action,i=u({},n);delete i.action;var o=M(r),s=!1;o.forEach(function(n){var o={},a=new Map;a.set("stop",function(){e.stopPropagation()}),a.set("self",function(){e.target,e.currentTarget}),a.set("debounce",function(e){s=!e.value||Number.parseInt(e.value)}),a.set("files",function(e){e.value?t.pendingFiles[e.value]&&(o[e.value]=t.pendingFiles[e.value]):o=t.pendingFiles}
25),n.modifiers.forEach(function(e){var t;a.has(e.name)?(null!==(t=a.get(e.name))&&void 0!==t?t:function(){})(e):console.warn("Unknown modifier ".concat(e.name,' in action "').concat(r,'". Available modifiers are: ').concat(Array.from(a.keys()).join(", "),"."))});for(var l=0,c=Object.entries(o);l<c.length;l++){var u=y(c[l],2),d=u[0],f=u[1];f.files&&t.component.files(d,f),delete t.pendingFiles[d]}t.component.action(n.action,i,s),B(e.currentTarget,!1)&&(t.pendingActionTriggerModelElement=e.currentTarget)})}},{key:"$render",value:function(){return this.component.render()}},{key:"emit",value:function(e){var t=this;this.getEmitDirectives(e).forEach(function(e){var n=e.name,r=e.data,i=e.nameMatch;t.component.emit(n,r,i)})}},{key:"emitUp",value:function(e){var t=this;this.getEmitDirectives(e).forEach(function(e){var n=e.name,r=e.data,i=e.nameMatch;t.component.emitUp(n,r,i)})}},{key:"emitSelf",value:function(e){var t=this;this.getEmitDirectives(e).forEach(function(e){var n=e.name,r=e.data;t.component.emitSelf(n,r)})}},{key:"$updateModel",value:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return this.component.set(e,t,n,r)}},{key:"propsUpdatedFromParentValueChanged",value:function(){this.component._updateFromParentProps(this.propsUpdatedFromParentValue)}},{key:"fingerprintValueChanged",value:function(){this.component.fingerprint=this.fingerprintValue}},{key:"getEmitDirectives",value:function(e){var t=e.params;if(!t.event)throw new Error("No event name provided on element: ".concat(_(e.currentTarget),'. Did you forget to add the "data-live-event-param" attribute?'));var n=t.event,r=u({},t);delete r.event;var i=M(n),o=[];return i.forEach(function(e){var t=null;e.modifiers.forEach(function(e){if("name"!==e.name)throw new Error("Unknown modifier ".concat(e.name,' in event "').concat(n,'".'));t=e.value}),o.push({name:e.action,data:r,nameMatch:t})}),o}},{key:"createComponent",value:function(){var e,n=this,r=this.element.id||null;this.component=new ee(this.element,this.nameValue,this.propsValue,this.listenersValue,r,t.backendFactory(this),new te(this)),this.proxiedComponent=(e=this.component,new Proxy(e,{get:function(e,t){if(t in e||"string"!=typeof t){if("function"==typeof e[t]){var n=e[t];return function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return n.apply(e,r)}}return Reflect.get(e,t)}return e.valueStore.has(t)?e.getData(t):function(n){return e.action.apply(e,[t,n])}},set:function(e,t,n){return t in e?(e[t]=n,!0):(e.set(t,n),!0)}})),Object.defineProperty(this.element,"__component",{value:this.proxiedComponent,writable:!0}),this.hasDebounceValue&&(this.component.defaultDebounce=this.debounceValue),[new oe,new ie,new de,new ae,new ce,new ue,new re(this.component)].forEach(function(e){n.component.addPlugin(e)})}},{key:"connectComponent",value:function(){var e=this;this.component.connect(),this.mutationObserver.observe(this.element,{attributes:!0}),this.elementEventListeners.forEach(function(t){var n=t.event,r=t.callback;e.component.element.addEventListener(n,r)}),this.dispatchEvent("connect")}},{key:"disconnectComponent",value:function(){var e=this;this.component.disconnect(),this.elementEventListeners.forEach(function(t){var n=t.event,r=t.callback;e.component.element.removeEventListener(n,r)}),this.dispatchEvent("disconnect")}},{key:"handleInputEvent",value:function(e){var t=e.target;t&&this.updateModelFromElementEvent(t,"input")}},{key:"handleChangeEvent",value:function(e){var t=e.target;t&&this.updateModelFromElementEvent(t,"change")}},{key:"updateModelFromElementEvent",value:function(e,t){if(q(e,this.component)){if(!(e instanceof HTMLElement))throw new Error("Could not update model for non HTMLElement");if(e instanceof HTMLInputElement&&"file"===e.type){var n,r=e.name;null!==(n=e.files)&&void 0!==n&&n.length?this.pendingFiles[r]=e:this.pendingFiles[r]&&delete this.pendingFiles[r]}var i=B(e,!1);if(i){var o=ne(i);if(o.targetEventName||(o.targetEventName="input"),this.pendingActionTriggerModelElement===e&&(o.shouldRender=!1),"change"===t&&"input"===o.targetEventName&&(o.targetEventName="change"),!t||o.targetEventName===t){!1===o.debounce&&("input"===o.targetEventName?o.debounce=!0:o.debounce=0);var s,a=N(e,this.component.valueStore),l=""===a||null==a;if((s=e)instanceof HTMLInputElement&&["text","email","password","search","tel","url"].includes(s.type)||function(e){return e instanceof HTMLTextAreaElement}(e)){if(!l&&null!==o.minLength&&"string"==typeof a&&a.length<o.minLength)return;if(!l&&null!==o.maxLength&&"string"==typeof a&&a.length>o.maxLength)return}if(function(e){return e instanceof HTMLInputElement&&["number","range"].includes(e.type)}(e)&&!l){var c=Number(a);if(null!==o.minValue&&c<o.minValue)return;if(null!==o.maxValue&&c>o.maxValue)return}this.component.set(o.modelName,a,o.shouldRender,o.debounce)}}}}},{key:"dispatchEvent",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];t.controller=this,t.component=this.proxiedComponent,this.dispatch(e,{detail:t,prefix:"live",cancelable:r,bubbles:n})}},{key:"onMutations",value:function(e){var t=this;e.forEach(function(e){"attributes"===e.type&&"id"===e.attributeName&&t.element.i
25d!==t.component.id&&(t.disconnectComponent(),t.createComponent(),t.connectComponent())})}}])}(r.xI);fe.values={name:String,url:String,props:{type:Object,default:{}},propsUpdatedFromParent:{type:Object,default:{}},listeners:{type:Array,default:[]},eventsToEmit:{type:Array,default:[]},eventsToDispatch:{type:Array,default:[]},debounce:{type:Number,default:150},fingerprint:{type:String,default:""},requestMethod:{type:String,default:"post"},fetchCredentials:{type:String,default:"same-origin"}},fe.backendFactory=function(e){return new C(e.urlValue,e.requestMethodValue,e.fetchCredentialsValue)}},6855(e,t,n){"use strict";function r(e,t=100,n={}){if("function"!=typeof e)throw new TypeError(`Expected the first parameter to be a function, got \`${typeof e}\`.`);if(t<0)throw new RangeError("`wait` must not be negative.");if("boolean"==typeof n)throw new TypeError("The `options` parameter must be an object, not a boolean. Use `{immediate: true}` instead.");const{immediate:r}=n;let i,o,s,a,l;function c(){const t=i,n=o;return i=void 0,o=void 0,l=e.apply(t,n),l}function u(){const e=Date.now()-a;e<t&&e>=0?s=setTimeout(u,t-e):(s=void 0,r||(l=c()))}const d=function(...e){if(i&&this!==i&&Object.getPrototypeOf(this)===Object.getPrototypeOf(i))throw new Error("Debounced method called with different contexts of the same prototype.");i=this,o=e,a=Date.now();const n=r&&!s;if(s||(s=setTimeout(u,t)),n)return l=c(),l};return Object.defineProperty(d,"isPending",{get:()=>void 0!==s}),d.clear=()=>{s&&(clearTimeout(s),s=void 0,i=void 0,o=void 0)},d.flush=()=>{s&&d.trigger()},d.trigger=()=>{l=c(),d.clear()},d}n.d(t,{A:()=>r})},8842(e,t,n){"use strict";n.d(t,{jQuery:()=>r});var r=function(e,t){if(void 0===e||!e.document)throw new Error("jQuery requires a window with a document");var n=[],r=Object.getPrototypeOf,i=n.slice,o=n.flat?function(e){return n.flat.call(e)}:function(e){return n.concat.apply([],e)},s=n.push,a=n.indexOf,l={},c=l.toString,u=l.hasOwnProperty,d=u.toString,f=d.call(Object),p={};function h(e){return null==e?e+"":"object"==typeof e?l[c.call(e)]||"object":typeof e}function m(e){return null!=e&&e===e.window}function v(e){var t=!!e&&e.length,n=h(e);return"function"!=typeof e&&!m(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}var g=e.document,y={type:!0,src:!0,nonce:!0,noModule:!0};function b(e,t,n){var r,i=(n=n||g).createElement("script");for(r in i.text=e,y)t&&t[r]&&(i[r]=t[r]);n.head.appendChild(i).parentNode&&i.parentNode.removeChild(i)}var w="4.0.0",E=/HTML$/i,S=function(e,t){return new S.fn.init(e,t)};function x(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}S.fn=S.prototype={jquery:w,constructor:S,length:0,toArray:function(){return i.call(this)},get:function(e){return null==e?i.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=S.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return S.each(this,e)},map:function(e){return this.pushStack(S.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(i.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(S.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(S.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()}},S.extend=S.fn.extend=function(){var e,t,n,r,i,o,s=arguments[0]||{},a=1,l=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[a]||{},a++),"object"!=typeof s&&"function"!=typeof s&&(s={}),a===l&&(s=this,a--);a<l;a++)if(null!=(e=arguments[a]))for(t in e)r=e[t],"__proto__"!==t&&s!==r&&(c&&r&&(S.isPlainObject(r)||(i=Array.isArray(r)))?(n=s[t],o=i&&!Array.isArray(n)?[]:i||S.isPlainObject(n)?n:{},i=!1,s[t]=S.extend(c,o,r)):void 0!==r&&(s[t]=r));return s},S.extend({expando:"jQuery"+(w+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==c.call(e))&&(!(t=r(e))||"function"==typeof(n=u.call(t,"constructor")&&t.constructor)&&d.call(n)===f)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){b(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(v(e))for(n=e.length;r<n&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},text:function(e){var t,n="",r=0,i=e.nodeType;if(!i)for(;t=e[r++];)n+=S.text(t);return 1===i||11===i?e.textContent:9===i?e.documentElement.textContent:3===i||4===i?e.nodeValue:n},makeArray:function(e,t){var n=t||[];return null!=e&&(v(Object(e))?S.merge(n,"string"==typeof e?[e]:e):s.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:a.call(t,e,n)},isXMLDoc:function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!E.test(t||n&&n.nodeName||"HTML")},contains:function(e,t){var n=t&&t.parentNode;return e===n||!(!n||1!==n.nodeType||!(e.contains?e.contains(n):e.compareDocumentPosition&&16&e.compareDocumentPosition(n)))},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,s=!n;i<o;i++)!t(e[i],i)!==s&&r.push(e[i]);return r},map:function(e,t,n){var r,i,s=0,a=[];if(v(e))for(r=e.length;s<r;s++)null!=(i=t(e[s],s,n))&&a.push(i);else for(s in e)null!=(i=t(e[s],s,n))&&a.push(i);return o(a)},guid:1,support:p}),"function"==typeof Symbol&&(S.fn[Symbol.iterator]=n[Symbol.iterator]),S.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){l["[object "+t+"]"]=t.toLowerCase()});var O=n.pop,T="[\\x20\\t\\r\\n\\f]",k=g.documentMode,C=k&&new RegExp(":enabled|
25:disabled|\\["+T+"*name"+T+"*="+T+"*(?:''|\"\")"),A=new RegExp("^"+T+"+|((?:^|[^\\\\])(?:\\\\.)*)"+T+"+$","g"),_="(?:\\\\[\\da-fA-F]{1,6}"+T+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",P=new RegExp("^"+T+"*([>+~]|"+T+")"+T+"*"),L=new RegExp(T+"|>"),j=/[+~]/,M=g.documentElement,R=M.matches||M.msMatchesSelector;function I(){var e=[];return function t(n,r){return e.push(n+" ")>S.expr.cacheLength&&delete t[e.shift()],t[n+" "]=r}}function N(e){return e&&void 0!==e.getElementsByTagName&&e}var D="\\["+T+"*("+_+")(?:"+T+"*([*^$|!~]?=)"+T+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+_+"))|)"+T+"*\\]",F=":("+_+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+D+")*)|.*)\\)|)",B={ID:new RegExp("^#("+_+")"),CLASS:new RegExp("^\\.("+_+")"),TAG:new RegExp("^("+_+"|[*])"),ATTR:new RegExp("^"+D),PSEUDO:new RegExp("^"+F),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+T+"*(even|odd|(([+-]|)(\\d*)n|)"+T+"*(?:([+-]|)"+T+"*(\\d+)|))"+T+"*\\)|)","i")},q=new RegExp(F),H=new RegExp("\\\\[\\da-fA-F]{1,6}"+T+"?|\\\\([^\\r\\n\\f])","g"),$=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))};function V(e){return e.replace(H,$)}function z(e){S.error("Syntax error, unrecognized expression: "+e)}var U=new RegExp("^"+T+"*,"+T+"*"),W=I();function G(e,t){var n,r,i,o,s,a,l,c=W[e+" "];if(c)return t?0:c.slice(0);for(s=e,a=[],l=S.expr.preFilter;s;){for(o in n&&!(r=U.exec(s))||(r&&(s=s.slice(r[0].length)||s),a.push(i=[])),n=!1,(r=P.exec(s))&&(n=r.shift(),i.push({value:n,type:r[0].replace(A," ")}),s=s.slice(n.length)),B)!(r=S.expr.match[o].exec(s))||l[o]&&!(r=l[o](r))||(n=r.shift(),i.push({value:n,type:o,matches:r}),s=s.slice(n.length));if(!n)break}return t?s.length:s?z(e):W(e,a).slice(0)}var K={ATTR:function(e){return e[1]=V(e[1]),e[3]=V(e[3]||e[4]||e[5]||""),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||z(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&z(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return B.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&q.test(n)&&(t=G(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}};function X(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function J(e,t,n,r,i,o,s){var a=0,l=e.length,c=null==n;if("object"===h(n))for(a in i=!0,n)J(e,t,a,n[a],!0,o,s);else if(void 0!==r&&(i=!0,"function"!=typeof r&&(s=!0),c&&(s?(t.call(e,r),t=null):(c=t,t=function(e,t,n){return c.call(S(e),n)})),t))for(;a<l;a++)t(e[a],n,s?r:r.call(e[a],a,t(e[a],n)));return i?e:c?t.call(e):l?t(e[0],n):o}var Y=/[^\x20\t\r\n\f]+/g;S.fn.extend({attr:function(e,t){return J(this,S.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){S.removeAttr(this,e)})}}),S.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?S.prop(e,t,n):(1===o&&S.isXMLDoc(e)||(i=S.attrHooks[t.toLowerCase()]),void 0!==n?null===n||!1===n&&0!==t.toLowerCase().indexOf("aria-")?void S.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:(r=e.getAttribute(t))??void 0)},attrHooks:{},removeAttr:function(e,t){var n,r=0,i=t&&t.match(Y);if(i&&1===e.nodeType)for(;n=i[r++];)e.removeAttribute(n)}}),k&&(S.attrHooks.type={set:function(e,t){if("radio"===t&&x(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}});var Q=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function Z(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e}S.escapeSelector=function(e){return(e+"").replace(Q,Z)};var ee,te=n.sort,ne=n.splice;function re(e,t){if(e===t)return ee=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)?e==g||e.ownerDocument==g&&S.contains(g,e)?-1:t==g||t.ownerDocument==g&&S.contains(g,t)?1:0:4&n?-1:1)}S.uniqueSort=function(e){var t,n=[],r=0,i=0;if(ee=!1,te.call(e,re),ee){for(;t=e[i++];)t===e[i]&&(r=n.push(i));for(;r--;)ne.call(e,n[r],1)}return e},S.fn.uniqueSort=function(){return this.pushStack(S.uniqueSort(i.apply(this)))};var ie,oe,se,ae,le,ce=0,ue=0,de=I(),fe=I(),pe=I(),he=new RegExp(T+"+","g"),me=new RegExp("^"+_+"$"),ve=S.extend({needsContext:new RegExp("^"+T+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+T+"*((?:-\\d)?\\d*)"+T+"*\\)|)(?=[^-]|$)","i")},B),ge=/^(?:input|select|textarea|button)$/i,ye=/^h\d$/i,be=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,we=function(){Ae()},Ee=Pe(function(e){return!0===e.disabled&&x(e,"fieldset")},{dir:"parentNode",next:"legend"});function Se(e,t,n,r){var i,o,a,l,c,u,d,f=t&&t.ownerDocument,p=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==p&&9!==p&&11!==p)return n;if(!r&&(Ae(t),t=t||se,le)){if(11!==p&&(c=be.exec(e)))if(i=c[1]){if(9===p)return(a=t.getElementById(i))&&s.call(n,a),n;if(f&&(a=f.getElementById(i))&&S.contains(t,a))return s.call(n,a),n}else{if(c[2])return s.apply(n,t.getElementsByTagName(e)),n;if((i=c[3])&&t.getElementsByClassName)return s.apply(n,t.getElementsByClassName(i)),n}if(!(pe[e+" "]||C&&C.test(e))){if(d=e,f=t,1===p&&(L.test(e)||P.test(e))){for(((f=j.test(e)&&N(t.parentNode)||t)!=t||k)&&((l=t.getAttribute("id"))?l=S.escapeSelector(l):t.setAttribute("id",l=S.expando)),o=(u
25=G(e)).length;o--;)u[o]=(l?"#"+l:":scope")+" "+X(u[o]);d=u.join(",")}try{return s.apply(n,f.querySelectorAll(d)),n}catch(t){pe(e,!0)}finally{l===S.expando&&t.removeAttribute("id")}}}return Ne(e.replace(A,"$1"),t,n,r)}function xe(e){return e[S.expando]=!0,e}function Oe(e){return function(t){return x(t,"input")&&t.type===e}}function Te(e){return function(t){return(x(t,"input")||x(t,"button"))&&t.type===e}}function ke(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&Ee(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function Ce(e){return xe(function(t){return t=+t,xe(function(n,r){for(var i,o=e([],n.length,t),s=o.length;s--;)n[i=o[s]]&&(n[i]=!(r[i]=n[i]))})})}function Ae(e){var t,n=e?e.ownerDocument||e:g;n!=se&&9===n.nodeType&&(ae=(se=n).documentElement,le=!S.isXMLDoc(se),k&&g!=se&&(t=se.defaultView)&&t.top!==t&&t.addEventListener("unload",we))}for(ie in Se.matches=function(e,t){return Se(e,null,null,t)},Se.matchesSelector=function(e,t){if(Ae(e),le&&!pe[t+" "]&&(!C||!C.test(t)))try{return R.call(e,t)}catch(e){pe(t,!0)}return Se(t,se,null,[e]).length>0},S.expr={cacheLength:50,createPseudo:xe,match:ve,find:{ID:function(e,t){if(void 0!==t.getElementById&&le){var n=t.getElementById(e);return n?[n]:[]}},TAG:function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):t.querySelectorAll(e)},CLASS:function(e,t){if(void 0!==t.getElementsByClassName&&le)return t.getElementsByClassName(e)}},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:K,filter:{ID:function(e){var t=V(e);return function(e){return e.getAttribute("id")===t}},TAG:function(e){var t=V(e).toLowerCase();return"*"===e?function(){return!0}:function(e){return x(e,t)}},CLASS:function(e){var t=de[e+" "];return t||(t=new RegExp("(^|"+T+")"+e+"("+T+"|$)"))&&de(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r){var i=S.attr(r,e);return null==i?"!="===t:!t||(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i.replace(he," ")+" ").indexOf(n)>-1:"|="===t&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),s="last"!==e.slice(-4),a="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,l){var c,u,d,f,p,h=o!==s?"nextSibling":"previousSibling",m=t.parentNode,v=a&&t.nodeName.toLowerCase(),g=!l&&!a,y=!1;if(m){if(o){for(;h;){for(d=t;d=d[h];)if(a?x(d,v):1===d.nodeType)return!1;p=h="only"===e&&!p&&"nextSibling"}return!0}if(p=[s?m.firstChild:m.lastChild],s&&g){for(y=(f=(c=(u=m[S.expando]||(m[S.expando]={}))[e]||[])[0]===ce&&c[1])&&c[2],d=f&&m.childNodes[f];d=++f&&d&&d[h]||(y=f=0)||p.pop();)if(1===d.nodeType&&++y&&d===t){u[e]=[ce,f,y];break}}else if(g&&(y=f=(c=(u=t[S.expando]||(t[S.expando]={}))[e]||[])[0]===ce&&c[1]),!1===y)for(;(d=++f&&d&&d[h]||(y=f=0)||p.pop())&&(!(a?x(d,v):1===d.nodeType)||!++y||(g&&((u=d[S.expando]||(d[S.expando]={}))[e]=[ce,y]),d!==t)););return(y-=i)===r||y%r===0&&y/r>=0}}},PSEUDO:function(e,t){var n=S.expr.pseudos[e]||S.expr.setFilters[e.toLowerCase()]||z("unsupported pseudo: "+e);return n[S.expando]?n(t):n}},pseudos:{not:xe(function(e){var t=[],n=[],r=Ie(e.replace(A,"$1"));return r[S.expando]?xe(function(e,t,n,i){for(var o,s=r(e,null,i,[]),a=e.length;a--;)(o=s[a])&&(e[a]=!(t[a]=o))}):function(e,i,o){return t[0]=e,r(t,null,o,n),t[0]=null,!n.pop()}}),has:xe(function(e){return function(t){return Se(e,t).length>0}}),contains:xe(function(e){return e=V(e),function(t){return(t.textContent||S.text(t)).indexOf(e)>-1}}),lang:xe(function(e){return me.test(e||"")||z("unsupported lang: "+e),e=V(e).toLowerCase(),function(t){var n;do{if(n=le?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===ae},focus:function(e){return e===se.activeElement&&se.hasFocus()&&!!(e.type||e.href||~e.tabIndex)},enabled:ke(!1),disabled:ke(!0),checked:function(e){return x(e,"input")&&!!e.checked||x(e,"option")&&!!e.selected},selected:function(e){return k&&e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!S.expr.pseudos.empty(e)},header:function(e){return ye.test(e.nodeName)}
25,input:function(e){return ge.test(e.nodeName)},button:function(e){return x(e,"input")&&"button"===e.type||x(e,"button")},text:function(e){return x(e,"input")&&"text"===e.type},first:Ce(function(){return[0]}),last:Ce(function(e,t){return[t-1]}),eq:Ce(function(e,t,n){return[n<0?n+t:n]}),even:Ce(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:Ce(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:Ce(function(e,t,n){var r;for(r=n<0?n+t:n>t?t:n;--r>=0;)e.push(r);return e}),gt:Ce(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}},S.expr.pseudos.nth=S.expr.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})S.expr.pseudos[ie]=Oe(ie);for(ie in{submit:!0,reset:!0})S.expr.pseudos[ie]=Te(ie);function _e(){}function Pe(e,t,n){var r=t.dir,i=t.next,o=i||r,s=n&&"parentNode"===o,a=ue++;return t.first?function(t,n,i){for(;t=t[r];)if(1===t.nodeType||s)return e(t,n,i);return!1}:function(t,n,l){var c,u,d=[ce,a];if(l){for(;t=t[r];)if((1===t.nodeType||s)&&e(t,n,l))return!0}else for(;t=t[r];)if(1===t.nodeType||s)if(u=t[S.expando]||(t[S.expando]={}),i&&x(t,i))t=t[r]||t;else{if((c=u[o])&&c[0]===ce&&c[1]===a)return d[2]=c[2];if(u[o]=d,d[2]=e(t,n,l))return!0}return!1}}function Le(e){return e.length>1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function je(e,t,n,r,i){for(var o,s=[],a=0,l=e.length,c=null!=t;a<l;a++)(o=e[a])&&(n&&!n(o,r,i)||(s.push(o),c&&t.push(a)));return s}function Me(e,t,n,r,i,o){return r&&!r[S.expando]&&(r=Me(r)),i&&!i[S.expando]&&(i=Me(i,o)),xe(function(o,l,c,u){var d,f,p,h,m=[],v=[],g=l.length,y=o||function(e,t,n){for(var r=0,i=t.length;r<i;r++)Se(e,t[r],n);return n}(t||"*",c.nodeType?[c]:c,[]),b=!e||!o&&t?y:je(y,m,e,c,u);if(n?n(b,h=i||(o?e:g||r)?[]:l,c,u):h=b,r)for(d=je(h,v),r(d,[],c,u),f=d.length;f--;)(p=d[f])&&(h[v[f]]=!(b[v[f]]=p));if(o){if(i||e){if(i){for(d=[],f=h.length;f--;)(p=h[f])&&d.push(b[f]=p);i(null,h=[],d,u)}for(f=h.length;f--;)(p=h[f])&&(d=i?a.call(o,p):m[f])>-1&&(o[d]=!(l[d]=p))}}else h=je(h===l?h.splice(g,h.length):h),i?i(null,l,h,u):s.apply(l,h)})}function Re(e){for(var t,n,r,i=e.length,o=S.expr.relative[e[0].type],s=o||S.expr.relative[" "],l=o?1:0,c=Pe(function(e){return e===t},s,!0),u=Pe(function(e){return a.call(t,e)>-1},s,!0),d=[function(e,n,r){var i=!o&&(r||n!=oe)||((t=n).nodeType?c(e,n,r):u(e,n,r));return t=null,i}];l<i;l++)if(n=S.expr.relative[e[l].type])d=[Pe(Le(d),n)];else{if((n=S.expr.filter[e[l].type].apply(null,e[l].matches))[S.expando]){for(r=++l;r<i&&!S.expr.relative[e[r].type];r++);return Me(l>1&&Le(d),l>1&&X(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(A,"$1"),n,l<r&&Re(e.slice(l,r)),r<i&&Re(e=e.slice(r)),r<i&&X(e))}d.push(n)}return Le(d)}function Ie(e,t){var n,r=[],i=[],o=fe[e+" "];if(!o){for(t||(t=G(e)),n=t.length;n--;)(o=Re(t[n]))[S.expando]?r.push(o):i.push(o);o=fe(e,function(e,t){var n=t.length>0,r=e.length>0,i=function(i,o,a,l,c){var u,d,f,p=0,h="0",m=i&&[],v=[],g=oe,y=i||r&&S.expr.find.TAG("*",c),b=ce+=null==g?1:Math.random()||.1;for(c&&(oe=o==se||o||c);null!=(u=y[h]);h++){if(r&&u){for(d=0,o||u.ownerDocument==se||(Ae(u),a=!le);f=e[d++];)if(f(u,o||se,a)){s.call(l,u);break}c&&(ce=b)}n&&((u=!f&&u)&&p--,i&&m.push(u))}if(p+=h,n&&h!==p){for(d=0;f=t[d++];)f(m,v,o,a);if(i){if(p>0)for(;h--;)m[h]||v[h]||(v[h]=O.call(l));v=je(v)}s.apply(l,v),c&&!i&&v.length>0&&p+t.length>1&&S.uniqueSort(l)}return c&&(ce=b,oe=g),m};return n?xe(i):i}(i,r)),o.selector=e}return o}function Ne(e,t,n,r){var i,o,a,l,c,u="function"==typeof e&&e,d=!r&&G(e=u.selector||e);if(n=n||[],1===d.length){if((o=d[0]=d[0].slice(0)).length>2&&"ID"===(a=o[0]).type&&9===t.nodeType&&le&&S.expr.relative[o[1].type]){if(!(t=(S.expr.find.ID(V(a.matches[0]),t)||[])[0]))return n;u&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(i=ve.needsContext.test(e)?0:o.length;i--&&(a=o[i],!S.expr.relative[l=a.type]);)if((c=S.expr.find[l])&&(r=c(V(a.matches[0]),j.test(o[0].type)&&N(t.parentNode)||t))){if(o.splice(i,1),!(e=r.length&&X(o)))return s.apply(n,r),n;break}}return(u||Ie(e,d))(r,t,!le,n,!t||j.test(e)&&N(t.parentNode)||t),n}function De(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&S(e).is(n))break;r.push(e)}return r}function Fe(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}_e.prototype=S.expr.pseudos,S.expr.setFilters=new _e,Ae(),S.find=Se,Se.compile=Ie,Se.select=Ne,Se.setDocument=Ae,Se.tokenize=G;var Be=S.expr.match.needsContext,qe=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function He(e){return"<"===e[0]&&">"===e[e.length-1]&&e.length>=3}function $e(e,t,n){return"function"==typeof t?S.grep(e,function(e,r){return!!t.call(e,r,e)!==n}):t.nodeType?S.grep(e,function(e){return e===t!==n}):"string"!=typeof t?S.grep(e,function(e){return a.call(t,e)>-1!==n}):S.filter(t,e,n)}S.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?S.find.matchesSelector(r,e)?[r]:[]:S.find.matches(e,S.grep(t,function(e){return 1===e.nodeType}))},S.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(S(e).filter(function(){for(t=0;t<r;t++)if(S.contains(i[t],this))return!0}));for(n=this.pushStack([]),t=0;t<r;t++)S.find(e,i[t],n);return r>1?S.uniqueSort(n):n},filter:function(e){return this.pushStack($e(this,e||[],!1))},not:function(e){return this.pushStack($e(this,e||[],!0))},is:function(e){return!!$e(this,"string"==typeof e&&Be.test(e)?S(e):e||[],!1).length}});var Ve,ze=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(S.fn.init=function(e,t){var n,r;if(!e)return this;if(e.nodeType)return this[0]=e,this.length=1,this;if("function"==typeof e)return void 0!==Ve.ready?Ve.ready(e):e(S);if(He(n=e+""))n=[null,e,null];else{if("string"!=typeof e)return S.makeArray(e,this);n=ze.exec(e)}if(!n||!n[1]&&t)return!t||t.jquery?(t||Ve).find(e):this.constructor(t).find(e);if(n[1]){if(t=t instanceof S?t[0]:t,S.merge(this,S.parseHTML(n[1],t&&t.nodeType?t.ownerDocument||t:g,!0)),qe.test(n[1])&&S.isPlainObject(t))for(n in t)"function"==typeof this[n]?this[n](t[n]):this.attr(n,t[n]);return this}return(r=g.getElementById(n[2]))&&(this[0]=r,this.length=1),this}).prototype=S.fn,Ve=S(g);var Ue=/^(?:parents|prev(?:Until|All))/,We={children:!0,contents:!0,next:!0,prev:!0};function Ge(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}function Ke(e){return e}function Xe(e){throw e}function Je(e,t,n,r){var i;
vendor: 5,167 bytes, line 25
25try{e&&"function"==typeof(i=e.promise)?i.call(e).done(t).fail(n):e&&"function"==typeof(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n(e)}}S.fn.extend({has:function(e){var t=S(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(S.contains(this,t[e]))return!0})},closest:function(e,t){var n,r=0,i=this.length,o=[],s="string"!=typeof e&&S(e);if(!Be.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(s?s.index(n)>-1:1===n.nodeType&&S.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?S.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?a.call(S(e),this[0]):a.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(S.uniqueSort(S.merge(this.get(),S(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),S.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return De(e,"parentNode")},parentsUntil:function(e,t,n){return De(e,"parentNode",n)},next:function(e){return Ge(e,"nextSibling")},prev:function(e){return Ge(e,"previousSibling")},nextAll:function(e){return De(e,"nextSibling")},prevAll:function(e){return De(e,"previousSibling")},nextUntil:function(e,t,n){return De(e,"nextSibling",n)},prevUntil:function(e,t,n){return De(e,"previousSibling",n)},siblings:function(e){return Fe((e.parentNode||{}).firstChild,e)},children:function(e){return Fe(e.firstChild)},contents:function(e){return null!=e.contentDocument&&r(e.contentDocument)?e.contentDocument:(x(e,"template")&&(e=e.content||e),S.merge([],e.childNodes))}},function(e,t){S.fn[e]=function(n,r){var i=S.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=S.filter(r,i)),this.length>1&&(We[e]||S.uniqueSort(i),Ue.test(e)&&i.reverse()),this.pushStack(i)}}),S.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return S.each(e.match(Y)||[],function(e,n){t[n]=!0}),t}(e):S.extend({},e);var t,n,r,i,o=[],s=[],a=-1,l=function(){for(i=i||e.once,r=t=!0;s.length;a=-1)for(n=s.shift();++a<o.length;)!1===o[a].apply(n[0],n[1])&&e.stopOnFalse&&(a=o.length,n=!1);e.memory||(n=!1),t=!1,i&&(o=n?[]:"")},c={add:function(){return o&&(n&&!t&&(a=o.length-1,s.push(n)),function t(n){S.each(n,function(n,r){"function"==typeof r?e.unique&&c.has(r)||o.push(r):r&&r.length&&"string"!==h(r)&&t(r)})}(arguments),n&&!t&&l()),this},remove:function(){return S.each(arguments,function(e,t){for(var n;(n=S.inArray(t,o,n))>-1;)o.splice(n,1),n<=a&&a--}),this},has:function(e){return e?S.inArray(e,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return i=s=[],o=n="",this},disabled:function(){return!o},lock:function(){return i=s=[],n||t||(o=n=""),this},locked:function(){return!!i},fireWith:function(e,n){return i||(n=[e,(n=n||[]).slice?n.slice():n],s.push(n),t||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!r}};return c},S.extend({Deferred:function(t){var n=[["notify","progress",S.Callbacks("memory"),S.Callbacks("memory"),2],["resolve","done",S.Callbacks("once memory"),S.Callbacks("once memory"),0,"resolved"],["reject","fail",S.Callbacks("once memory"),S.Callbacks("once memory"),1,"rejected"]],r="pending",i={state:function(){return r},always:function(){return o.done(arguments).fail(arguments),this},catch:function(e){return i.then(null,e)},pipe:function(){var e=arguments;return S.Deferred(function(t){S.each(n,function(n,r){var i="function"==typeof e[r[4]]&&e[r[4]];o[r[1]](function(){var e=i&&i.apply(this,arguments);e&&"function"==typeof e.promise?e.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[r[0]+"With"](this,i?[e]:arguments)})}),e=null}).promise()},then:function(t,r,i){var o=0;function s(t,n,r,i){return function(){var a=this,l=arguments,c=function(){var e,c;if(!(t<o)){if((e=r.apply(a,l))===n.promise())throw new TypeError("Thenable self-resolution");"function"==typeof(c=e&&("object"==typeof e||"function"==typeof e)&&e.then)?i?c.call(e,s(o,n,Ke,i),s(o,n,Xe,i)):(o++,c.call(e,s(o,n,Ke,i),s(o,n,Xe,i),s(o,n,Ke,n.notifyWith))):(r!==Ke&&(a=void 0,l=[e]),(i||n.resolveWith)(a,l))}},u=i?c:function(){try{c()}catch(e){S.Deferred.exceptionHook&&S.Deferred.exceptionHook(e,u.error),t+1>=o&&(r!==Xe&&(a=void 0,l=[e]),n.rejectWith(a,l))}};t?u():(S.Deferred.getErrorHook&&(u.error=S.Deferred.getErrorHook()),e.setTimeout(u))}}return S.Deferred(function(e){n[0][3].add(s(0,e,"function"==typeof i?i:Ke,e.notifyWith)),n[1][3].add(s(0,e,"function"==typeof t?t:Ke)),n[2][3].add(s(0,e,"function"==typeof r?r:Xe))}).promise()},promise:function(e){return null!=e?S.extend(e,i):i}},o={};return S.each(n,function(e,t){var s=t[2],a=t[5];i[t[1]]=s.add,a&&s.add(function(){r=a},n[3-e][2].disable,n[3-e][3].disable,n[0][2].lock,n[0][3].lock),s.add(t[3].fire),o[t[0]]=function(){return o[t[0]+"With"](this===o?void 0:this,arguments),this},o[t[0]+"With"]=s.fireWith}),i.promise(o),t&&t.call(o,o),o},when:function(e){var t=arguments.length,n=t,r=Array(n),o=i.call(arguments),s=S.Deferred(),a=function(e){return function(n){r[e]=this,o[e]=arguments.length>
vendor: 12,693 bytes, line 25
251?i.call(arguments):n,--t||s.resolveWith(r,o)}};if(t<=1&&(Je(e,s.done(a(n)).resolve,s.reject,!t),"pending"===s.state()||"function"==typeof(o[n]&&o[n].then)))return s.then();for(;n--;)Je(o[n],a(n),s.reject);return s.promise()}});var Ye=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;S.Deferred.exceptionHook=function(t,n){t&&Ye.test(t.name)&&e.console.warn("jQuery.Deferred exception",t,n)},S.readyException=function(t){e.setTimeout(function(){throw t})};var Qe=S.Deferred();function Ze(){g.removeEventListener("DOMContentLoaded",Ze),e.removeEventListener("load",Ze),S.ready()}S.fn.ready=function(e){return Qe.then(e).catch(function(e){S.readyException(e)}),this},S.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--S.readyWait:S.isReady)||(S.isReady=!0,!0!==e&&--S.readyWait>0||Qe.resolveWith(g,[S]))}}),S.ready.then=Qe.then,"loading"!==g.readyState?e.setTimeout(S.ready):(g.addEventListener("DOMContentLoaded",Ze),e.addEventListener("load",Ze));var et=/-([a-z])/g;function tt(e,t){return t.toUpperCase()}function nt(e){return e.replace(et,tt)}function rt(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType}function it(){this.expando=S.expando+it.uid++}it.uid=1,it.prototype={cache:function(e){var t=e[this.expando];return t||(t=Object.create(null),rt(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[nt(t)]=n;else for(r in t)i[nt(r)]=t[r];return n},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][nt(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(nt):(t=nt(t))in r?[t]:t.match(Y)||[]).length;for(;n--;)delete r[t[n]]}(void 0===t||S.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!S.isEmptyObject(t)}};var ot=new it,st=new it,at=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,lt=/[A-Z]/g;function ct(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(lt,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:at.test(e)?JSON.parse(e):e)}(n)}catch(e){}st.set(e,t,n)}else n=void 0;return n}S.extend({hasData:function(e){return st.hasData(e)||ot.hasData(e)},data:function(e,t,n){return st.access(e,t,n)},removeData:function(e,t){st.remove(e,t)},_data:function(e,t,n){return ot.access(e,t,n)},_removeData:function(e,t){ot.remove(e,t)}}),S.fn.extend({data:function(e,t){var n,r,i,o=this[0],s=o&&o.attributes;if(void 0===e){if(this.length&&(i=st.get(o),1===o.nodeType&&!ot.get(o,"hasDataAttrs"))){for(n=s.length;n--;)s[n]&&0===(r=s[n].name).indexOf("data-")&&(r=nt(r.slice(5)),ct(o,r,i[r]));ot.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof e?this.each(function(){st.set(this,e)}):J(this,function(t){var n;if(o&&void 0===t)return void 0!==(n=st.get(o,e))||void 0!==(n=ct(o,e))?n:void 0;this.each(function(){st.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){st.remove(this,e)})}}),S.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=ot.get(e,t),n&&(!r||Array.isArray(n)?r=ot.set(e,t,S.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=S.queue(e,t),r=n.length,i=n.shift(),o=S._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,function(){S.dequeue(e,t)},o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return ot.get(e,n)||ot.set(e,n,{empty:S.Callbacks("once memory").add(function(){ot.remove(e,[t+"queue",n])})})}}),S.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?S.queue(this[0],e):void 0===t?this:this.each(function(){var n=S.queue(this,e,t);S._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&S.dequeue(this,e)})},dequeue:function(e){return this.each(function(){S.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=S.Deferred(),o=this,s=this.length,a=function(){--r||i.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";s--;)(n=ot.get(o[s],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(a));return a(),i.promise(t)}});var ut=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,dt=new RegExp("^(?:([+-])=|)("+ut+")([a-z%]*)$","i"),ft=["Top","Right","Bottom","Left"];function pt(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&"none"===S.css(e,"display")}var ht=/^[a-z]/,mt=/^(?:Border(?:Top|Right|Bottom|Left)?(?:Width|)|(?:Margin|Padding)?(?:Top|Right|Bottom|Left)?|(?:Min|Max)?(?:Width|Height))$/;function vt(e){return ht.test(e)&&mt.test(e[0].toUpperCase()+e.slice(1))}function gt(e,t,n,r){var i,o,s=20,a=r?function(){return r.cur()}:function(){return S.css(e,t,"")},l=a(),c=n&&n[3]||(vt(t)?"px":""),u=e.nodeType&&(!vt(t)||"px"!==c&&+l)&&dt.exec(S.css(e,t));if(u&&u[3]!==c){for(l/=2,c=c||u[3],u=+l||1;s--;)S.style(e,t,u+c),(1-o)*(1-(o=a()/l||.5))<=0&&(s=0),u/=o;u*=2,S.style(e,t,u+c),n=n||[]}return n&&(u=+u||+l||0,i=n[1]?u+(n[1]+1)*n[2]:+n[2],r&&(r.unit=c,r.start=u,r.end=i)),i}var yt=/^-ms-/;function bt(e){return nt(e.replace(yt,"ms-"))}var wt={};function Et(e){var t,n=e.ownerDocument,r=e.nodeName,i=wt[r];return i||(t=n.body.appendChild(n.createElement(r)),i=S.css(t,"display"),t.parentNode.removeChild(t),"none"===i&&(i="block"),wt[r]=i,i)}function St(e,t){for(var n,r,i=[],o=0,s=e.length;o<s;o++)(r=e[o]).style&&(n=r.style.display,t?("none"===n&&(i[o]=ot.get(r,"display")||null,i[o]||(r.style.display="")),""===r.style.display&&pt(r)&&(i[o]=Et(r))):"none"!==n&&(i[o]="none",ot.set(r,"display",n)));for(o=0;o<s;o++)null!=i[o]&&(e[o].style.display=i[o]);return e}S.fn.extend({show:function(){return St(this,!0)},hide:function(){return St(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){pt(this)?S(this).show():S(this).hide()})}});var xt=function(e){return S.contains(e.ownerDocument,e)||e.getRootNode(Ot)===e.ownerDocument},Ot={composed:!0};M.getRootNode||(xt=function(e){return S.contains(e.ownerDocument,e)});var Tt=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,kt={thead:["table"],col:["colgroup","table"],tr:["tbody","table"],td:["tr","tbody","table"]};function Ct(e,t){var r;return r=void 0!==e.getElementsByTagName?n.slice.call(e.getElementsByTagName(t||"*")):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&x(e,t)?S.merge([e],r):r}kt.tbody=kt.tfoot=kt.colgroup=kt.caption=kt.thead,kt.th=kt.td;var At=/^$|^module$|\/(?:java|ecma)script/i;function _t(e,t){for(var n=0,r=e.length;n<r;n++)ot.set(e[n],"globalEval",!t||ot.get(t[n],"globalEval"))}var Pt=/<|&#?\w+;/;function Lt(e,t,r,i,o){for(var s,a,l,c,u,d,f=t.createDocumentFragment(),p=[],m=0,g=e.length;m<g;m++)if((s=e[m])||0===s)if("object"===h(s)&&(s.nodeType||v(s)))S.merge(p,s.nodeType?[s]:s);else if(Pt.test(s)){for(a=a||f.appendChild(t.createElement("div")),l=(Tt.exec(s)||["",""])[1].toLowerCase(),d=(c=kt[l]||n).length;--d>-1;)a=a.appendChild(t.createElement(c[d]));a.innerHTML=S.htmlPrefilter(s),S.merge(p,a.childNodes),(a=f.firstChild).textContent=""}else p.push(t.createTextNode(s));for(f.textContent="",m=0;s=p[m++];)if(i&&S.inArray(s,i)>-1)o&&o.push(s);else if(u=xt(s),a=Ct(f.appendChild(s),"script"),u&&_t(a),r)for(d=0;s=a[d++];)At.test(s.type||"")&&r.push(s);return f}function jt(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Mt(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Rt(e,t,n,r){t=o(t);var i,s,a,l,c,u,d=0,f=e.length,p=f-1,h=t[0];if("function"==typeof h)return e.each(function(i){var o=e.eq(i);t[0]=h.call(this,i,o.html()),Rt(o,t,n,r)});if(f&&(s=(i=Lt(t,e[0].ownerDocument,!1,e,r)).firstChild,1===i.childNodes.length&&(i=s),s||r)){for(l=(a=S.map(Ct(i,"script"),jt)).length;d<f;d++)c=i,d!==p&&(c=S.clone(c,!0,!0),l&&S.merge(a,Ct(c,"script"))),n.call(e[d],c,d);if(l)for(u=a[a.length-1].ownerDocument,S.map(a,Mt),d=0;d<l;d++)c=a[d],At.test(c.type||"")&&!ot.get(c,"globalEval")&&S.contains(u,c)&&(c.src&&"module"!==(c.type||"").toLowerCase()?S._evalUrl&&!c.noModule&&S._evalUrl(c.src,{nonce:c.nonce,crossOrigin:c.crossOrigin},u):b(c.textContent,c,u))}return e}var It=/^(?:checkbox|radio)$/i,Nt=/^([^.]*)(?:\.(.+)|)/;function Dt(){return!0}function Ft(){return!1}function Bt(e,t,n,r,i,o){var s,a;if("object"==typeof t){for(a in"string"!=typeof n&&(r=r||n,n=void 0),t)Bt(e,a,n,r,t[a],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=Ft;else if(!i)return e;return 1===o&&(s=i,i=function(e){return S().off(e),s.apply(this,arguments)},i.guid=s.guid||(s.guid=S.guid++)),e.each(function(){S.event.add(this,t,i,r,n)})}function qt(e,t,n){n?(ot.set(e,t,!1),S.event.add(e,t,{namespace:!1,handler:function(e){var n,r=ot.get(this,t);if(1&e.isTrigger&&this[t]){if(r.length)(S.event.special[t]||{}).delegateType&&e.stopPropagation();else if(r=i.call(arguments),ot.set(this,t,r),this[t](),n=ot.get(this,t),ot.set(this,t,!1),r!==n)return e.stopImmediatePropagation(),e.preventDefault(),n&&n.value}else r.length&&(ot.set(this,t,{value:S.event.trigger(r[0],r.slice(1),this)}),e.stopPropagation(),e.isImmediatePropagationStopped=Dt)}})):void 0===ot.get(e,t)&&S.event.add(e,t,Dt)}S.event={add:function(e,t,n,r,i){var o,s,a,l,c,u,d,f,p,h,m,v=ot.get(e);if(rt(e))for(n.handler&&(n=(o=n).handler,i=o.selector),i&&S.find.matchesSelector(M,i),n.guid||(n.guid=S.guid++),(l=v.events)||(l=v.events=Object.create(null)),(s=v.handle)||(s=v.handle=function(t){return void 0!==S&&S.event.triggered!==t.type?S.event.dispatch.apply(e,arguments):void 0}),c=(t=(t||"").match(Y)||[""]).length;c--;)p=m=(a=Nt.exec(t[c])||[])[1],h=(a[2]||"").split(".").sort(),p&&(d=S.event.special[p]||{},p=(i?d.delegateType:d.bindType)||p,d=S.event.special[p]||{},u=S.extend({type:p,origType:m,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&S.expr.match.needsContext.test(i),namespace:h.join(".")},o),(f=l[p])||((f=l[p]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(e,r,h,s)||e.addEventListener&&e.addEventListener(p,s)),d.add&&(d.add.call(e,u),u.handler.guid||(u.handler.guid=n.guid)),i?f.splice(f.delegateCount++,0,u):f.push(u))},remove:function(e,t,n,r,i){var o,s,a,l,c,u,d,f,p,h,m,v=ot.hasData(e)&&ot.get(e);if(v&&(l=v.events)){for(c=(t=(t||"").match(Y)||[""]).length;c--;)if(p=m=(a=Nt.exec(t[c])||[])[1],h=(a[2]||"").split(".").sort(),p){for(d=S.event.special[p]||{},f=l[p=(r?d.delegateType:d.bindType)||p]||[],a=a[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=o=f.length;o--;)u=f[o],!i&&m!==u.origType||n&&n.guid!==u.guid||a&&!a.test(u.namespace)||r&&r!==u.selector&&("**"!==r||!u.selector)||(f.splice(o,1),u.selector&&f.delegateCount--,d.remove&&d.remove.call(e,u));s&&!f.length&&(d.teardown&&!1!==d.teardown.call(e,h,v.handle)||S.removeEvent(e,p,v.handle),delete l[p])}else for(p in l)S.event.remove(e,p+t[c],n,r,!0);S.isEmptyObject(l)&&ot.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,s,a=new Array(arguments.length),l=S.event.fix(e),c=(ot.get(this,"events")||Object.create(null))[l.type]||[],u=S.event.special[l.type]||{};for(a[0]=l,t=1;t<arguments.length;t++)a[t]=arguments[t];if(l.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,l)){for(s=S.event.handlers.call(this,l,c),t=0;(i=s[t++])&&!l.isPropagationStopped();)for(l.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==o.namespace&&!l.rnamespace.test(o.namespace)||(l.handleObj=o,l.data=o.data,void 0!==(r=((S.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,a))&&!1===(l.result=r)&&(l.preventDefault(),l.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,l),l.result}},handlers:function(e,t){var n,r,i,o,s,a=[],l=t.delegateCount,c=e.target;if(l&&!("click"===e.type&&e.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(o=[],s={},n=0;n<l;n++)void 0===s[i=(r=t[n]).selector+" "]&&(s[i]=r.needsContext?S(i,this).index(c)>-1:S.find(i,this,null,[c]).length),s[i]&&o.push(r);o.length&&a.push({elem:c,handlers:o})}return c=this,l<t.length&&a.push({elem:c,handlers:t.slice(l)}),a},addProp:function(e,t){Object.defineProperty(S.Event.prototype,e,{enumerable:!0,configurable:!0,get:"function"==typeof t?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]}
vendor: 2,448 bytes, line 25
25,set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[S.expando]?e:new S.Event(e)},special:S.extend(Object.create(null),{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return It.test(t.type)&&t.click&&x(t,"input")&&qt(t,"click",!0),!1},trigger:function(e){var t=this||e;return It.test(t.type)&&t.click&&x(t,"input")&&qt(t,"click"),!0},_default:function(e){var t=e.target;return It.test(t.type)&&t.click&&x(t,"input")&&ot.get(t,"click")||x(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.preventDefault()}}})},S.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},S.Event=function(e,t){if(!(this instanceof S.Event))return new S.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented?Dt:Ft,this.target=e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&S.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[S.expando]=!0},S.Event.prototype={constructor:S.Event,isDefaultPrevented:Ft,isPropagationStopped:Ft,isImmediatePropagationStopped:Ft,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Dt,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Dt,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Dt,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},S.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},S.event.addProp),S.each({focus:"focusin",blur:"focusout"},function(e,t){function n(e){var t=S.event.fix(e);t.type="focusin"===e.type?"focus":"blur",t.isSimulated=!0,t.target===t.currentTarget&&ot.get(this,"handle")(t)}S.event.special[e]={setup:function(){if(qt(this,e,!0),!k)return!1;this.addEventListener(t,n)},trigger:function(){return qt(this,e),!0},teardown:function(){if(!k)return!1;this.removeEventListener(t,n)},_default:function(t){return ot.get(t.target,e)},delegateType:t}}
25),S.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){S.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=e.relatedTarget,i=e.handleObj;return r&&(r===this||S.contains(this,r))||(e.type=i.origType,n=i.handler.apply(this,arguments),e.type=t),n}}}),S.fn.extend({on:function(e,t,n,r){return Bt(this,e,t,n,r)},one:function(e,t,n,r){return Bt(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,S(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=Ft),this.each(function(){S.event.remove(this,e,n,t)})}});var Ht=/<script|<style|<link/i;function $t(e,t){return x(e,"table")&&x(11!==t.nodeType?t:t.firstChild,"tr")&&S(e).children("tbody")[0]||e}function Vt(e,t){var n,r,i,o=ot.get(e,"events");if(1===t.nodeType){if(o)for(n in ot.remove(t,"handle events"),o)for(r=0,i=o[n].length;r<i;r++)S.event.add(t,n,o[n][r]);st.hasData(e)&&st.set(t,S.extend({},st.get(e)))}}function zt(e,t,n){for(var r,i=t?S.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||S.cleanData(Ct(r)),r.parentNode&&(n&&xt(r)&&_t(Ct(r,"script")),r.parentNode.removeChild(r));return e}S.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,i,o,s,a=e.cloneNode(!0),l=xt(e);if(k&&(1===e.nodeType||11===e.nodeType)&&!S.isXMLDoc(e))for(s=Ct(a),r=0,i=(o=Ct(e)).length;r<i;r++)x(s[r],"textarea")&&(s[r].defaultValue=o[r].defaultValue);if(t)if(n)for(o=o||Ct(e),s=s||Ct(a),r=0,i=o.length;r<i;r++)Vt(o[r],s[r]);else Vt(e,a);return(s=Ct(a,"script")).length>0&&_t(s,!l&&Ct(e,"script")),a},cleanData:function(e){for(var t,n,r,i=S.event.special,o=0;void 0!==(n=e[o]);o++)if(rt(n)){if(t=n[ot.expando]){if(t.events)for(r in t.events)i[r]?S.event.remove(n,r):S.removeEvent(n,r,t.handle);n[ot.expando]=void 0}n[st.expando]&&(n[st.expando]=void 0)}}}),S.fn.extend({detach:function(e){return zt(this,e,!0)},remove:function(e){return zt(this,e)},text:function(e){return J(this,function(e){return void 0===e?S.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return Rt(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||$t(this,e).appendChild(e)})},prepend:function(){return Rt(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=$t(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return Rt(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return Rt(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(S.cleanData(Ct(e,!1)),e.textContent="");return this},clone:function(e,t){return e=e??!1,t=t??e,this.map(function(){return S.clone(this,e,t)})},html:function(e){return J(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Ht.test(e)&&!kt[(Tt.exec(e)||["",""])[1].toLowerCase()]){e=S.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(S.cleanData(Ct(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return Rt(this,arguments,function(t){var n=this.parentNode;S.inArray(this,e)<0&&(S.cleanData(Ct(this)),n&&n.replaceChild(t,this))},e)}}),S.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){S.fn[e]=function(e){for(var n,r=[],i=S(e),o=i.length-1,a=0;a<=o;a++)n=a===o?this:this.clone(!0),S(i[a])[t](n),s.apply(r,n);return this.pushStack(r)}});var Ut=new RegExp("^("+ut+")(?!px)[a-z%]+$","i"),Wt=/^--/;function Gt(t){var n=t.ownerDocument.defaultView;return n||(n=e),n.getComputedStyle(t)}function Kt(e,t,n){var r,i=Wt.test(t);return(n=n||Gt(e))&&(r=n.getPropertyValue(t)||n[t],i&&r&&(r=r.replace(A,"$1")||void 0),""!==r||xt(e)||(r=S.style(e,t))),void 0!==r?r+"":r}var Xt=["Webkit","Moz","ms"],Jt=g.createElement("div").style;function Yt(e){return e in Jt?e:function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=Xt.length;n--;)if((e=Xt[n]+t)in Jt)return e}(e)||e}var Qt,Zt,en=g.createElement("table");function tn(){if(en&&en.style){var t,n=g.createElement("col"),r=g.createElement("tr"),i=g.createElement("td");en.style.cssText="position:absolute;
25left:-11111px;border-collapse:separate;border-spacing:0",r.style.cssText="box-sizing:content-box;border:1px solid;height:1px",i.style.cssText="height:9px;width:9px;padding:0",n.span=2,M.appendChild(en).appendChild(n).parentNode.appendChild(r).appendChild(i).parentNode.appendChild(i.cloneNode(!0)),0!==en.offsetWidth?(t=e.getComputedStyle(r),Zt=k||18===Math.round(parseFloat(e.getComputedStyle(n).width)),Qt=Math.round(parseFloat(t.height)+parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth))===r.offsetHeight,M.removeChild(en),en=null):M.removeChild(en)}}S.extend(p,{reliableTrDimensions:function(){return tn(),Qt},reliableColDimensions:function(){return tn(),Zt}});var nn={position:"absolute",visibility:"hidden",display:"block"},rn={letterSpacing:"0",fontWeight:"400"};function on(e,t,n){var r=dt.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function sn(e,t,n,r,i,o){var s="width"===t?1:0,a=0,l=0,c=0;if(n===(r?"border":"content"))return 0;for(;s<4;s+=2)"margin"===n&&(c+=S.css(e,n+ft[s],!0,i)),r?("content"===n&&(l-=S.css(e,"padding"+ft[s],!0,i)),"margin"!==n&&(l-=S.css(e,"border"+ft[s]+"Width",!0,i))):(l+=S.css(e,"padding"+ft[s],!0,i),"padding"!==n?l+=S.css(e,"border"+ft[s]+"Width",!0,i):a+=S.css(e,"border"+ft[s]+"Width",!0,i));return!r&&o>=0&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-l-a-.5))||0),l+c}function an(e,t,n){var r=Gt(e),i=(k||n)&&"border-box"===S.css(e,"boxSizing",!1,r),o=i,s=Kt(e,t,r),a="offset"+t[0].toUpperCase()+t.slice(1);if(Ut.test(s)){if(!n)return s;s="auto"}return("auto"===s||k&&i||!p.reliableColDimensions()&&x(e,"col")||!p.reliableTrDimensions()&&x(e,"tr"))&&e.getClientRects().length&&(i="border-box"===S.css(e,"boxSizing",!1,r),(o=a in e)&&(s=e[a])),(s=parseFloat(s)||0)+sn(e,t,n||(i?"border":"content"),o,r,s)+"px"}function ln(e,t,n,r,i){return new ln.prototype.init(e,t,n,r,i)}S.extend({cssHooks:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,s,a=bt(t),l=Wt.test(t),c=e.style;
vendor: 3,177 bytes, line 25
25if(l||(t=Yt(a)),s=S.cssHooks[t]||S.cssHooks[a],void 0===n)return s&&"get"in s&&void 0!==(i=s.get(e,!1,r))?i:c[t];"string"===(o=typeof n)&&(i=dt.exec(n))&&i[1]&&(n=gt(e,t,i),o="number"),null!=n&&n==n&&("number"===o&&(n+=i&&i[3]||(vt(a)?"px":"")),k&&""===n&&0===t.indexOf("background")&&(c[t]="inherit"),s&&"set"in s&&void 0===(n=s.set(e,n,r))||(l?c.setProperty(t,n):c[t]=n))}},css:function(e,t,n,r){var i,o,s,a=bt(t);return Wt.test(t)||(t=Yt(a)),(s=S.cssHooks[t]||S.cssHooks[a])&&"get"in s&&(i=s.get(e,!0,n)),void 0===i&&(i=Kt(e,t,r)),"normal"===i&&t in rn&&(i=rn[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),S.each(["height","width"],function(e,t){S.cssHooks[t]={get:function(e,n,r){if(n)return"none"===S.css(e,"display")?function(e,t,n){var r,i,o={};for(i in t)o[i]=e.style[i],e.style[i]=t[i];for(i in r=n.call(e),t)e.style[i]=o[i];return r}(e,nn,function(){return an(e,t,r)}):an(e,t,r)},set:function(e,n,r){var i,o=Gt(e),s=r&&"border-box"===S.css(e,"boxSizing",!1,o),a=r?sn(e,t,r,s,o):0;return a&&(i=dt.exec(n))&&"px"!==(i[3]||"px")&&(e.style[t]=n,n=S.css(e,t)),on(0,n,a)}}}),S.each({margin:"",padding:"",border:"Width"},function(e,t){S.cssHooks[e+t]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[e+ft[r]+t]=o[r]||o[r-2]||o[0];return i}},"margin"!==e&&(S.cssHooks[e+t].set=on)}),S.fn.extend({css:function(e,t){return J(this,function(e,t,n){var r,i,o={},s=0;if(Array.isArray(t)){for(r=Gt(e),i=t.length;s<i;s++)o[t[s]]=S.css(e,t[s],!1,r);return o}return void 0!==n?S.style(e,t,n):S.css(e,t)},e,t,arguments.length>1)}}),S.Tween=ln,ln.prototype={constructor:ln,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||S.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(vt(n)?"px":"")},cur:function(){var e=ln.propHooks[this.prop];return e&&e.get?e.get(this):ln.propHooks._default.get(this)},run:function(e){var t,n=ln.propHooks[this.prop];return this.options.duration?this.pos=t=S.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):ln.propHooks._default.set(this),this}},ln.prototype.init.prototype=ln.prototype,ln.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=S.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){S.fx.step[e.prop]?S.fx.step[e.prop](e):1!==e.elem.nodeType||!S.cssHooks[e.prop]&&null==e.elem.style[Yt(e.prop)]?e.elem[e.prop]=e.now:S.style(e.elem,e.prop,e.now+e.unit)}}},S.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},S.fx=ln.prototype.init,S.fx.step={};var cn,un,dn=/^(?:toggle|show|hide)$/,fn=/queueHooks$/;function pn(){un&&(!1===g.hidden&&e.requestAnimationFrame?e.requestAnimationFrame(pn):e.setTimeout(pn,13),S.fx.tick())}function hn(){return e.setTimeout(function(){cn=void 0}),cn=Date.now()}function mn(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=ft[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}
vendor: 4,946 bytes, line 25
25function vn(e,t,n){for(var r,i=(gn.tweeners[t]||[]).concat(gn.tweeners["*"]),o=0,s=i.length;o<s;o++)if(r=i[o].call(n,t,e))return r}function gn(e,t,n){var r,i,o=0,s=gn.prefilters.length,a=S.Deferred().always(function(){delete l.elem}),l=function(){if(i)return!1;for(var t=cn||hn(),n=Math.max(0,c.startTime+c.duration-t),r=1-(n/c.duration||0),o=0,s=c.tweens.length;o<s;o++)c.tweens[o].run(r);return a.notifyWith(e,[c,r,n]),r<1&&s?n:(s||a.notifyWith(e,[c,1,0]),a.resolveWith(e,[c]),!1)},c=a.promise({elem:e,props:S.extend({},t),opts:S.extend(!0,{specialEasing:{},easing:S.easing._default},n),originalProperties:t,originalOptions:n,startTime:cn||hn(),duration:n.duration,tweens:[],createTween:function(t,n){var r=S.Tween(e,c.opts,t,n,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(r),r},stop:function(t){var n=0,r=t?c.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)c.tweens[n].run(1);return t?(a.notifyWith(e,[c,1,0]),a.resolveWith(e,[c,t])):a.rejectWith(e,[c,t]),this}}),u=c.props;for(!function(e,t){var n,r,i,o,s;for(n in e)if(i=t[r=bt(n)],o=e[n],Array.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(s=S.cssHooks[r])&&"expand"in s)for(n in o=s.expand(o),delete e[r],o)n in e||(e[n]=o[n],t[n]=i);else t[r]=i}(u,c.opts.specialEasing);o<s;o++)if(r=gn.prefilters[o].call(c,e,u,c.opts))return"function"==typeof r.stop&&(S._queueHooks(c.elem,c.opts.queue).stop=r.stop.bind(r)),r;return S.map(u,vn,c),"function"==typeof c.opts.start&&c.opts.start.call(e,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),S.fx.timer(S.extend(l,{elem:e,anim:c,queue:c.opts.queue})),c}S.Animation=S.extend(gn,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return gt(n.elem,e,dt.exec(t),n),n}]},tweener:function(e,t){"function"==typeof e?(t=e,e=["*"]):e=e.match(Y);for(var n,r=0,i=e.length;r<i;r++)n=e[r],gn.tweeners[n]=gn.tweeners[n]||[],gn.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,i,o,s,a,l,c,u,d="width"in t||"height"in t,f=this,p={},h=e.style,m=e.nodeType&&pt(e),v=ot.get(e,"fxshow");for(r in n.queue||(null==(s=S._queueHooks(e,"fx")).unqueued&&(s.unqueued=0,a=s.empty.fire,s.empty.fire=function(){s.unqueued||a()}),s.unqueued++,f.always(function(){f.always(function(){s.unqueued--,S.queue(e,"fx").length||s.empty.fire()})})),t)if(i=t[r],dn.test(i)){if(delete t[r],o=o||"toggle"===i,i===(m?"hide":"show")){if("show"!==i||!v||void 0===v[r])continue;m=!0}p[r]=v&&v[r]||S.style(e,r)}if((l=!S.isEmptyObject(t))||!S.isEmptyObject(p))for(r in d&&1===e.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],null==(c=v&&v.display)&&(c=ot.get(e,"display")),"none"===(u=S.css(e,"display"))&&(c?u=c:(St([e],!0),c=e.style.display||c,u=S.css(e,"display"),St([e]))),("inline"===u||"inline-block"===u&&null!=c)&&"none"===S.css(e,"float")&&(l||(f.done(function(){h.display=c}),null==c&&(u=h.display,c="none"===u?"":u)),h.display="inline-block")),n.overflow&&(h.overflow="hidden",f.always(function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]})),l=!1,p)l||(v?"hidden"in v&&(m=v.hidden):v=ot.set(e,"fxshow",{display:c}),o&&(v.hidden=!m),m&&St([e],!0),f.done(function(){for(r in m||St([e]),ot.remove(e,"fxshow"),p)S.style(e,r,p[r])})),l=vn(m?v[r]:0,r,f),r in v||(v[r]=l.start,m&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?gn.prefilters.unshift(e):gn.prefilters.push(e)}}),S.speed=function(e,t,n){var r=e&&"object"==typeof e?S.extend({},e):{complete:n||t||"function"==typeof e&&e,duration:e,easing:n&&t||t&&"function"!=typeof t&&t};return S.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in S.fx.speeds?r.duration=S.fx.speeds[r.duration]:r.duration=S.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){"function"==typeof r.old&&r.old.call(this),r.queue&&S.dequeue(this,r.queue)},r},S.fn.extend({fadeTo:function(e,t,n,r){return this.filter(pt).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=S.isEmptyObject(e),o=S.speed(t,n,r),s=function(){var t=gn(this,S.extend({},e),o);(i||ot.get(this,"finish"))&&t.stop(!0)};return s.finish=s,i||!1===o.queue?this.each(s):this.queue(o.queue,s)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each(function(){var t=!0,i=null!=e&&e+"queueHooks",o=S.timers,s=ot.get(this);if(i)s[i]&&s[i].stop&&r(s[i]);else for(i in s)s[i]&&s[i].stop&&fn.test(i)&&r(s[i]);for(i=o.length;i--;)o[i].elem!==this||null!=e&&o[i].queue!==e||(o[i].anim.stop(n),t=!1,o.splice(i,1));!t&&n||S.dequeue(this,e)})},finish:function(e){return!1!==e&&(e=e||"fx"),this.each(function(){var t,n=ot.get(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=S.timers,s=r?r.length:0;for(n.finish=!0,S.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1)
vendor: 14,615 bytes, line 25
25);for(t=0;t<s;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}}),S.each(["toggle","show","hide"],function(e,t){var n=S.fn[t];S.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(mn(t,!0),e,r,i)}}),S.each({slideDown:mn("show"),slideUp:mn("hide"),slideToggle:mn("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){S.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),S.timers=[],S.fx.tick=function(){var e,t=0,n=S.timers;for(cn=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||S.fx.stop(),cn=void 0},S.fx.timer=function(e){S.timers.push(e),S.fx.start()},S.fx.start=function(){un||(un=!0,pn())},S.fx.stop=function(){un=null},S.fx.speeds={slow:600,fast:200,_default:400},S.fn.delay=function(t,n){return t=S.fx&&S.fx.speeds[t]||t,n=n||"fx",this.queue(n,function(n,r){var i=e.setTimeout(n,t);r.stop=function(){e.clearTimeout(i)}})};var yn=/^(?:input|select|textarea|button)$/i,bn=/^(?:a|area)$/i;function wn(e){return(e.match(Y)||[]).join(" ")}function En(e){return e.getAttribute&&e.getAttribute("class")||""}function Sn(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(Y)||[]}S.fn.extend({prop:function(e,t){return J(this,S.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[S.propFix[e]||e]})}}),S.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&S.isXMLDoc(e)||(t=S.propFix[t]||t,i=S.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=e.getAttribute("tabindex");return t?parseInt(t,10):yn.test(e.nodeName)||bn.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),k&&(S.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),S.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){S.propFix[this.toLowerCase()]=this}),S.fn.extend({addClass:function(e){var t,n,r,i,o,s;return"function"==typeof e?this.each(function(t){S(this).addClass(e.call(this,t,En(this)))}):(t=Sn(e)).length?this.each(function(){if(r=En(this),n=1===this.nodeType&&" "+wn(r)+" "){for(o=0;o<t.length;o++)i=t[o],n.indexOf(" "+i+" ")<0&&(n+=i+" ");s=wn(n),r!==s&&this.setAttribute("class",s)}}):this},removeClass:function(e){var t,n,r,i,o,s;return"function"==typeof e?this.each(function(t){S(this).removeClass(e.call(this,t,En(this)))}):arguments.length?(t=Sn(e)).length?this.each(function(){if(r=En(this),n=1===this.nodeType&&" "+wn(r)+" "){for(o=0;o<t.length;o++)for(i=t[o];n.indexOf(" "+i+" ")>-1;)n=n.replace(" "+i+" "," ");s=wn(n),r!==s&&this.setAttribute("class",s)}}):this:this.attr("class","")},toggleClass:function(e,t){var n,r,i,o;return"function"==typeof e?this.each(function(n){S(this).toggleClass(e.call(this,n,En(this),t),t)}):"boolean"==typeof t?t?this.addClass(e):this.removeClass(e):(n=Sn(e)).length?this.each(function(){for(o=S(this),i=0;i<n.length;i++)r=n[i],o.hasClass(r)?o.removeClass(r):o.addClass(r)}):this},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+wn(En(n))+" ").indexOf(t)>-1)return!0;return!1}}),S.fn.extend({val:function(e){var t,n,r,i=this[0];return arguments.length?(r="function"==typeof e,this.each(function(n){var i;1===this.nodeType&&(null==(i=r?e.call(this,n,S(this).val()):e)?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=S.map(i,function(e){return null==e?"":e+""})),(t=S.valHooks[this.type]||S.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))})):i?(t=S.valHooks[i.type]||S.valHooks[i.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:(n=i.value)??"":void 0}}),S.extend({valHooks:{select:{get:function(e){var t,n,r,i=e.options,o=e.selectedIndex,s="select-one"===e.type,a=s?null:[],l=s?o+1:i.length;for(r=o<0?l:s?o:0;r<l;r++)if((n=i[r]).selected&&!n.disabled&&(!n.parentNode.disabled||!x(n.parentNode,"optgroup"))){if(t=S(n).val(),s)return t;a.push(t)}return a},set:function(e,t){for(var n,r,i=e.options,o=S.makeArray(t),s=i.length;s--;)((r=i[s]).selected=S.inArray(S(r).val(),o)>-1)&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),k&&(S.valHooks.option={get:function(e){var t=e.getAttribute("value");return null!=t?t:wn(S.text(e))}}),S.each(["radio","checkbox"],function(){S.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=S.inArray(S(e).val(),t)>-1}}});var xn=/^(?:focusinfocus|focusoutblur)$/,On=function(e){e.stopPropagation()};S.extend(S.event,{trigger:function(t,n,r,i){var o,s,a,l,c,d,f,p,h=[r||g],v=u.call(t,"type")?t.type:t,y=u.call(t,"namespace")?t.namespace.split("."):[];if(s=p=a=r=r||g,3!==r.nodeType&&8!==r.nodeType&&!xn.test(v+S.event.triggered)&&(v.indexOf(".")>-1&&(y=v.split("."),v=y.shift(),y.sort()),c=v.indexOf(":")<0&&"on"+v,(t=t[S.expando]?t:new S.Event(v,"object"==typeof t&&t)).isTrigger=i?2:3,t.namespace=y.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+y.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=r),n=null==n?[t]:S.makeArray(n,[t]),f=S.event.special[v]||{},i||!f.trigger||!1!==f.trigger.apply(r,n))){if(!i&&!f.noBubble&&!m(r)){for(l=f.delegateType||v,xn.test(l+v)||(s=s.parentNode);s;s=s.parentNode)h.push(s),a=s;a===(r.ownerDocument||g)&&h.push(a.defaultView||a.parentWindow||e)}for(o=0;(s=h[o++])&&!t.isPropagationStopped();)p=s,t.type=o>1?l:f.bindType||v,(d=(ot.get(s,"events")||Object.create(null))[t.type]&&ot.get(s,"handle"))&&d.apply(s,n),(d=c&&s[c])&&d.apply&&rt(s)&&(t.result=d.apply(s,n),!1===t.result&&t.preventDefault());return t.type=v,i||t.isDefaultPrevented()||f._default&&!1!==f._default.apply(h.pop(),n)||!rt(r)||c&&"function"==typeof r[v]&&!m(r)&&((a=r[c])&&(r[c]=null),S.event.triggered=v,t.isPropagationStopped()&&p.addEventListener(v,On),r[v](),t.isPropagationStopped()&&p.removeEventListener(v,On),S.event.triggered=void 0,a&&(r[c]=a)),t.result}},simulate:function(e,t,n){var r=S.extend(new S.Event,n,{type:e,isSimulated:!0});S.event.trigger(r,null,t)}}),S.fn.extend({trigger:function(e,t){return this.each(function(){S.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return S.event.trigger(e,t,n,!0)}});var Tn=e.location,kn={guid:Date.now()},Cn=/\?/;S.parseXML=function(t){var n,r;if(!t||"string"!=typeof t)return null;try{n=(new e.DOMParser).parseFromString(t,"text/xml")}catch(e){}return r=n&&n.getElementsByTagName("parsererror")[0],n&&!r||S.error("Invalid XML: "+(r?S.map(r.childNodes,function(e){return e.textContent}).join("\n"):t)),n};var An=/\[\]$/,_n=/\r?\n/g,Pn=/^(?:submit|button|image|reset|file)$/i,Ln=/^(?:input|select|textarea|keygen)/i;function jn(e,t,n,r){var i;if(Array.isArray(t))S.each(t,function(t,i){n||An.test(e)?r(e,i):jn(e+"["+("object"==typeof i&&null!=i?t:"")+"]",i,n,r)});else if(n||"object"!==h(t))r(e,t);else for(i in t)jn(e+"["+i+"]",t[i],n,r)}S.param=function(e,t){var n,r=[],i=function(e,t){var n="function"==typeof t?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(n??"")};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!S.isPlainObject(e))S.each(e,function(){i(this.name,this.value)});else for(n in e)jn(n,e[n],t,i);return r.join("&")},S.fn.extend({serialize:function(){return S.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=S.prop(this,"elements");return e?S.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!S(this).is(":disabled")&&Ln.test(this.nodeName)&&!Pn.test(e)&&(this.checked||!It.test(e))}).map(function(e,t){var n=S(this).val();return null==n?null:Array.isArray(n)?S.map(n,function(e){return{name:t.name,value:e.replace(_n,"\r\n")}}):{name:t.name,value:n.replace(_n,"\r\n")}}).get()}});var Mn=/%20/g,Rn=/#.*$/,In=/([?&])_=[^&]*/,Nn=/^(.*?):[ \t]*([^\r\n]*)$/gm,Dn=/^(?:GET|HEAD)$/,Fn=/^\/\//,Bn={},qn={},Hn="*/".concat("*"),$n=g.createElement("a");function Vn(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,o=t.toLowerCase().match(Y)||[];if("function"==typeof n)for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function zn(e,t,n,r){var i={},o=e===qn;function s(a){var l;return i[a]=!0,S.each(e[a]||[],function(e,a){var c=a(t,n,r);return"string"!=typeof c||o||i[c]?o?!(l=c):void 0:(t.dataTypes.unshift(c),s(c),!1)}),l}return s(t.dataTypes[0])||!i["*"]&&s("*")}function Un(e,t){var n,r,i=S.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&S.extend(!0,e,r),e}$n.href=Tn.href,S.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Tn.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Tn.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Hn,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":S.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Un(Un(e,S.ajaxSettings),t):Un(S.ajaxSettings,e)},ajaxPrefilter:Vn(Bn),ajaxTransport:Vn(qn),ajax:function(t,n){"object"==typeof t&&(n=t,t=void 0),n=n||{};var r,i,o,s,a,l,c,u,d,f,p=S.ajaxSetup({},n),h=p.context||p,m=p.context&&(h.nodeType||h.jquery)?S(h):S.event,v=S.Deferred(),y=S.Callbacks("once memory"),b=p.statusCode||{},w={},E={},x="canceled",O={readyState:0,getResponseHeader:function(e){var t;if(c){if(!s)for(s={};t=Nn.exec(o);)s[t[1].toLowerCase()+" "]=(s[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=s[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return c?o:null},setRequestHeader:function(e,t){return null==c&&(e=E[e.toLowerCase()]=E[e.toLowerCase()]||e,w[e]=t),this},overrideMimeType:function(e){return null==c&&(p.mimeType=e),this},statusCode:function(e){var t;if(e)if(c)O.always(e[O.status]);else for(t in e)b[t]=[b[t],e[t]];return this},abort:function(e){var t=e||x;return r&&r.abort(t),T(0,t),this}};if(v.promise(O),p.url=((t||p.url||Tn.href)+"").replace(Fn,Tn.protocol+"//"),p.type=n.method||n.type||p.method||p.type,p.dataTypes=(p.dataType||"*").toLowerCase().match(Y)||[""],null==p.crossDomain){l=g.createElement("a");try{l.href=p.url,l.href=l.href,p.crossDomain=$n.protocol+"//"+$n.host!=l.protocol+"//"+l.host}catch(e){p.crossDomain=!0}}if(zn(Bn,p,n,O),p.data&&p.processData&&"string"!=typeof p.data&&(p.data=S.param(p.data,p.traditional)),c)return O;for(d in(u=S.event&&p.global)&&0===S.active++&&S.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!Dn.test(p.type),i=p.url.replace(Rn,""),p.hasContent?p.data&&p.processData&&0===(p.contentType||"").indexOf("application/x-www-form-urlencoded")&&(p.data=p.data.replace(Mn,"+")):(f=p.url.slice(i.length),p.data&&(p.processData||"string"==typeof p.data)&&(i+=(Cn.test(i)?"&":"?")+p.data,delete p.data),!1===p.cache&&(i=i.replace(In,"$1"),f=(Cn.test(i)?"&":"?")+"_="+kn.guid+++f),p.url=i+f),p.ifModified&&(S.lastModified[i]&&O.setRequestHeader("If-Modified-Since",S.lastModified[i]),S.etag[i]&&O.setRequestHeader("If-None-Match",S.etag[i])),(p.data&&p.hasContent&&!1!==p.contentType||n.contentType)&&O.setRequestHeader("Content-Type",p.contentType),O.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+Hn+"; q=0.01":""):p.accepts["*"]),p.headers)O.setRequestHeader(d,p.headers[d]);if(p.beforeSend&&(!1===p.beforeSend.call(h,O,p)||c))return O.abort();if(x="abort",y.add(p.complete),O.done(p.success),O.fail(p.error),r=zn(qn,p,n,O)){if(O.readyState=1,u&&m.trigger("ajaxSend",[O,p]),c)return O;p.async&&p.timeout>0&&(a=e.setTimeout(function(){O.abort("timeout")},p.timeout));try{c=!1,r.send(w,T)}catch(e){if(c)throw e;T(-1,e)}}else T(-1,"No Transport");function T(t,n,s,l){var d,f,g,w,E,x=n;c||(c=!0,a&&e.clearTimeout(a),r=void 0,o=l||"",O.readyState=t>0?4:0,d=t>=200&&t<300||304===t,s&&(w=function(e,t,n){for(var r,i,o,s,a=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in a)if(a[i]&&a[i].test(r)){l.unshift(i);break}if(l[0]in n)o=l[0];else{for(i in n){if(!l[0]||e.converters[i+" "+l[0]]){o=i;break}s||(s=i)}o=o||s}if(o)return o!==l[0]&&l.unshift(o),n[o]}(p,O,s)),!d&&S.inArray("script",p.dataTypes)>-1&&S.inArray("json",p.dataTypes)<0&&(p.converters["text script"]=function(){}),w=function(e,t,n,r){var i,o,s,a,l,c={},u=e.dataTypes.slice();if(u[1])for(s in e.converters)c[s.toLowerCase()]=e.converters[s];for(o=u.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!l&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=o,o=u.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(s=c[l+" "+o]||c["* "+o]))for(i in c)if((a=i.split(" "))[1]===o&&(s=c[l+" "+a[0]]||c["* "+a[0]])){!0===s?s=c[i]:!0!==c[i]&&(o=a[0],u.unshift(a[1]));break}if(!0!==s)if(s&&e.throws)t=s(t);else try{t=s(t)}catch(e){return{state:"parsererror",error:s?e:"No conversion from "+l+" to "+o}}}return{state:"success",data:t}}(p,w,O,d),d?(p.ifModified&&((E=O.getResponseHeader("Last-Modified"))&&(S.lastModified[i]=E),(E=O.getResponseHeader("etag"))&&(S.etag[i]=E)),204===t||"HEAD"===p.type?x="nocontent":304===t?x="notmodified":(x=w.state,f=w.data,d=!(g=w.error))):(g=x,!t&&x||(x="error",t<0&&(t=0))),O.status=t,O.statusText=(n||x)+"",d?v.resolveWith(h,[f,x,O]):v.rejectWith(h,[O,x,g]),O.statusCode(b),b=void 0,u&&m.trigger(d?"ajaxSuccess":"ajaxError",[O,p,d?f:g]),y.fireWith(h,[O,x]),u&&(m.trigger("ajaxComplete",[O,p]),--S.active||S.event.trigger("ajaxStop")))}return O},getJSON:function(e,t,n){return S.get(e,t,n,"json")},getScript:function(e,t){return S.get(e,void 0,t,"script")}}),S.each(["get","post"],function(e,t){S[t]=function(e,n,r,i){return"function"!=typeof n&&null!==n||(i=i||r,r=n,n=void 0),S.ajax(S.extend({url:e,type:t,dataType:i,data:n,success:r},S.isPlainObject(e)&&e))}}),S.ajaxPrefilter(function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")}),S._evalUrl=function(e,t,n){return S.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,scriptAttrs:t.crossOrigin?{crossOrigin:t.crossOrigin}:void 0,converters:{"text script":function(){}}
vendor: 4,509 bytes, line 25
25,dataFilter:function(e){S.globalEval(e,t,n)}})},S.fn.extend({wrapAll:function(e){var t;return this[0]&&("function"==typeof e&&(e=e.call(this[0])),t=S(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(e){return"function"==typeof e?this.each(function(t){S(this).wrapInner(e.call(this,t))}):this.each(function(){var t=S(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t="function"==typeof e;return this.each(function(n){S(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){S(this).replaceWith(this.childNodes)}),this}}),S.expr.pseudos.hidden=function(e){return!S.expr.pseudos.visible(e)},S.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},S.ajaxSettings.xhr=function(){return new e.XMLHttpRequest};var Wn={0:200};function Gn(e){return e.scriptAttrs||!e.headers&&(e.crossDomain||e.async&&S.inArray("json",e.dataTypes)<0)}S.ajaxTransport(function(e){var t;return{send:function(n,r){var i,o=e.xhr();if(o.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(i in e.xhrFields)o[i]=e.xhrFields[i];for(i in e.mimeType&&o.overrideMimeType&&o.overrideMimeType(e.mimeType),e.crossDomain||n["X-Requested-With"]||(n["X-Requested-With"]="XMLHttpRequest"),n)o.setRequestHeader(i,n[i]);t=function(e){return function(){t&&(t=o.onload=o.onerror=o.onabort=o.ontimeout=null,"abort"===e?o.abort():"error"===e?r(o.status,o.statusText):r(Wn[o.status]||o.status,o.statusText,"text"===(o.responseType||"text")?{text:o.responseText}:{binary:o.response},o.getAllResponseHeaders()))}},o.onload=t(),o.onabort=o.onerror=o.ontimeout=t("error"),t=t("abort");try{o.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}}),S.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},converters:{"text script":function(e){return S.globalEval(e),e}}}),S.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),Gn(e)&&(e.type="GET")}),S.ajaxTransport("script",function(e){var t,n;if(Gn(e))return{send:function(r,i){t=S("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&i("error"===e.type?404:200,e.type)}),g.head.appendChild(t[0])},abort:function(){n&&n()}}});var Kn=[],Xn=/(=)\?(?=&|$)|\?\?/;S.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Kn.pop()||S.expando+"_"+kn.guid++;return this[e]=!0,e}}),S.ajaxPrefilter("jsonp",function(t,n,r){var i,o,s,a=!1!==t.jsonp&&(Xn.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Xn.test(t.data)&&"data");return i=t.jsonpCallback="function"==typeof t.jsonpCallback?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace(Xn,"$1"+i):!1!==t.jsonp&&(t.url+=(Cn.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return s||S.error(i+" was not called"),s[0]},t.dataTypes[0]="json",o=e[i],e[i]=function(){s=arguments},r.always(function(){void 0===o?S(e).removeProp(i):e[i]=o,t[i]&&(t.jsonpCallback=n.jsonpCallback,Kn.push(i)),s&&"function"==typeof o&&o(s[0]),s=o=void 0}),"script"}),S.ajaxPrefilter(function(t,n){"string"==typeof t.data||S.isPlainObject(t.data)||Array.isArray(t.data)||"processData"in n||(t.processData=!1),t.data instanceof e.FormData&&(t.contentType=!1)}),S.parseHTML=function(t,n,r){return"string"==typeof t||He(t+"")?("boolean"==typeof n&&(r=n,n=!1),n||(n=(new e.DOMParser).parseFromString("","text/html")),o=!r&&[],(i=qe.exec(t))?[n.createElement(i[1])]:(i=Lt([t],n,o),o&&o.length&&S(o).remove(),S.merge([],i.childNodes))):[];var i,o},S.fn.load=function(e,t,n){var r,i,o,s=this,a=e.indexOf(" ");return a>-1&&(r=wn(e.slice(a)),e=e.slice(0,a)),"function"==typeof t?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),s.length>0&&S.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done(function(e){o=arguments,s.html(r?S("<div>").append(S.parseHTML(e)).find(r):e)}).always(n&&function(e,t){s.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},S.expr.pseudos.animated=function(e){return S.grep(S.timers,function(t){return e===t.elem}).length},S.offset={setOffset:function(e,t,n){var r,i,o,s,a,l,c=S.css(e,"position"),u=S(e),d={};"static"===c&&(e.style.position="relative"),a=u.offset(),o=S.css(e,"to
25p"),l=S.css(e,"left"),("absolute"===c||"fixed"===c)&&(o+l).indexOf("auto")>-1?(s=(r=u.position()).top,i=r.left):(s=parseFloat(o)||0,i=parseFloat(l)||0),"function"==typeof t&&(t=t.call(e,n,S.extend({},a))),null!=t.top&&(d.top=t.top-a.top+s),null!=t.left&&(d.left=t.left-a.left+i),"using"in t?t.using.call(e,d):u.css(d)}},S.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){S.offset.setOffset(this,e,t)});var t,n,r=this[0];return r?r.getClientRects().length?(t=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===S.css(r,"position"))t=r.getBoundingClientRect();else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&e!==n.documentElement&&"static"===S.css(e,"position");)e=e.offsetParent||n.documentElement;e&&e!==r&&1===e.nodeType&&"static"!==S.css(e,"position")&&((i=S(e).offset()).top+=S.css(e,"borderTopWidth",!0),i.left+=S.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-S.css(r,"marginTop",!0),left:t.left-i.left-S.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===S.css(e,"position");)e=e.offsetParent;return e||M})}}),S.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n="pageYOffset"===t;S.fn[e]=function(r){return J(this,function(e,r,i){var o;if(m(e)?o=e:9===e.nodeType&&(o=e.defaultView),void 0===i)return o?o[t]:e[r];o?o.scrollTo(n?o.pageXOffset:i,n?i:o.pageYOffset):e[r]=i},e,r,arguments.length)}}),S.each({Height:"height",Width:"width"},function(e,t){S.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,r){S.fn[r]=function(i,o){var s=arguments.length&&(n||"boolean"!=typeof i),a=n||(!0===i||!0===o?"margin":"border");return J(this,function(t,n,i){var o;return m(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(o=t.documentElement,Math.max(t.body["scroll"+e],o["scroll"+e],t.body["offset"+e],o["offset"+e],o["client"+e])):void 0===i?S.css(t,n,a):S.style(t,n,i,a)},t,s?i:void 0,s)}})}),S.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){S.fn[t]=function(e){return this.on(t,e)}}),S.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)}}),S.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,t){S.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),S.proxy=function(e,t){var n,r,o;if("string"==typeof t&&(n=e[t],t=e,e=n),"function"==typeof e)return r=i.call(arguments,2),o=function(){return e.apply(t||this,r.concat(i.call(arguments)))},o.guid=e.guid=e.guid||S.guid++,o},S.holdReady=function(e){e?S.readyWait++:S.ready(!0)},S.expr[":"]=S.expr.filters=S.expr.pseudos,"function"==typeof define&&define.amd&&define("jquery",[],function(){return S});var Jn=e.jQuery,Yn=e.$;return S.noConflict=function(t){return e.$===S&&(e.$=Yn),t&&e.jQuery===S&&(e.jQuery=Jn),S},void 0===t&&(e.jQuery=e.$=S),S}(window,!0);const i=r;n.d(t,["A",0,i])},2354(e,t,n){"use strict";function r(e,t){e.split(/\s+/).forEach(e=>{t(e)})}n.d(t,{A:()=>Re});class i{constructor(){this._events={}}on(e,t){r(e,e=>{const n=this._events[e]||[];n.push(t),this._events[e]=n})}off(e,t){var n=arguments.length;0!==n?r(e,e=>{if(1===n)return void delete this._events[e];const r=this._events[e];void 0!==r&&(r.splice(r.indexOf(t),1),this._events[e]=r)}):this._events={}}trigger(e,...t){var n=this;r(e,e=>{const r=n._events[e];void 0!==r&&r.forEach(e=>{e.apply(n,t)})})}}const o=e=>(e=e.filter(Boolean)).length<2?e[0]||"":1==u(e)?"["+e.join("")+"]":"(?:"+e.join("|")+")",s=e=>{if(!l(e))return e.join("");let t="",n=0;const r=()=>{n>1&&(t+="{"+n+"}")};return e.forEach((i,o)=>{i!==e[o-1]?(r(),t+=i,n=1):n++}),r(),t},a=e=>{let t=Array.from(e);return o(t)},l=e=>new Set(e).size!==e.length,c=e=>(e+"").replace(/([\$\(\)\*\+\.\?\[\]\^\{\|\}\\])/gu,"\\$1"),u=e=>e.reduce((e,t)=>
25Math.max(e,d(t)),0),d=e=>Array.from(e).length,f=e=>{if(1===e.length)return[[e]];let t=[];const n=e.substring(1);return f(n).forEach(function(n){let r=n.slice(0);r[0]=e.charAt(0)+r[0],t.push(r),r=n.slice(0),r.unshift(e.charAt(0)),t.push(r)}),t},p=[[0,65535]];let h,m;const v={},g={"/":"ââ",0:"ß",a:"â±¥ÉÉ",aa:"ê³",ae:"æǽǣ",ao:"êµ",au:"ê·",av:"ê¹ê»",ay:"ê½",b:"ÆÉÆ",c:"ê¿ÆÈ¼â",d:"ÄÉÉá´
Æê®·Ôɦ",e:"ÉÇá´É",f:"ê¼Æ",g:"Ç¥É ê¡áµ¹ê¿É¢",h:"ħⱨⱶɥ",i:"ɨı",j:"ÉÈ·",k:"Æâ±ªêêê
ê£",l:"ÅÆÉ«â±¡êêêÉ",m:"ɱɯϻ",n:"ê¥ÆÉ²êá´Ð»Ô",o:"øǿÉɵêêá´",oe:"Å",oi:"Æ£",oo:"ê",ou:"È£",p:"ƥᵽêêêÏ",q:"êêÉ",r:"Éɽêê§ê",s:"ÃÈ¿ê©ê
Ê",t:"ŧÆÊⱦê",th:"þ",tz:"ê©",u:"Ê",v:"ÊêÊ",vy:"ê¡",w:"â±³",y:"Æ´Éỿ",z:"ƶȥÉⱬê£",hv:"Æ"};for(let e in g){let t=g[e]||"";for(let n=0;n<t.length;n++){let r=t.substring(n,n+1);v[r]=e}}const y=new RegExp(Object.keys(v).join("|")+"|[Ì-ͯ·ʾʼ]","gu"),b=(e,t="NFKD")=>e.normalize(t),w=e=>Array.from(e).reduce((e,t)=>e+E(t),""),E=e=>(e=b(e).toLowerCase().replace(y,e=>v[e]||""),b(e,"NFC"));const S=e=>{const t={},n=(e,n)=>{const r=t[e]||new Set,i=new RegExp("^"+a(r)+"$","iu");n.match(i)||(r.add(c(n)),t[e]=r)};for(let t of function*(e){for(const[t,n]of e)for(let e=t;e<=n;e++){let t=String.fromCharCode(e),n=w(t);n!=t.toLowerCase()&&(n.length>3||0!=n.length&&(yield{folded:n,composed:t,code_point:e}))}}(e))n(t.folded,t.folded),n(t.folded,t.composed);return t},x=e=>{const t=S(e),n={};let r=[];for(let e in t){let i=t[e];i&&(n[e]=a(i)),e.length>1&&r.push(c(e))}r.sort((e,t)=>t.length-e.length);const i=o(r);return m=new RegExp("^"+i,"u"),n},O=(e,t=1)=>(t=Math.max(t,e.length-1),o(f(e).map(e=>((e,t=1)=>{let n=0;return e=e.map(e=>(h[e]&&(n+=e.length),h[e]||e)),n>=t?s(e):""})(e,t)))),T=(e,t=!0)=>{let n=e.length>1?1:0;return o(e.map(e=>{let r=[];const i=t?e.length():e.length()-1;for(let t=0;t<i;t++)r.push(O(e.substrs[t]||"",n));return s(r)}))},k=(e,t)=>{for(const n of t){if(n.start!=e.start||n.end!=e.end)continue;if(n.substrs.join("")!==e.substrs.join(""))continue;let t=e.parts;const r=e=>{for(const n of t){if(n.start===e.start&&n.substr===e.substr)return!1;if(1!=e.length&&1!=n.length){if(e.start<n.start&&e.end>n.start)return!0;if(n.start<e.start&&n.end>e.start)return!0}}return!1};if(!(n.parts.filter(r).length>0))return!0}return!1};class C{parts;substrs;start;end;constructor(){this.parts=[],this.substrs=[],this.start=0,this.end=0}add(e){e&&(this.parts.push(e),this.substrs.push(e.substr),this.start=Math.min(e.start,this.start),this.end=Math.max(e.end,this.end))}last(){return this.parts[this.parts.length-1]}length(){return this.parts.length}clone(e,t){let n=new C,r=JSON.parse(JSON.stringify(this.parts)),i=r.pop();for(const e of r)n.add(e);let o=t.substr.substring(0,e-i.start),s=o.length;return n.add({start:i.start,end:i.start+s,length:s,substr:o}),n}}const A=e=>{var t;void 0===h&&(h=x(t||p)),e=w(e);let n="",r=[new C];for(let t=0;t<e.length;t++){let i=e.substring(t).match(m);const o=e.substring(t,t+1),s=i?i[0]:null;let a=[],l=new Set;for(const e of r){const n=e.last();if(!n||1==n.length||n.end<=t)if(s){const n=s.length;e.add({start:t,end:t+n,length:n,substr:s}),l.add("1")}else e.add({start:t,end:t+1,length:1,substr:o}),l.add("2");else if(s){let r=e.clone(t,n);const i=s.length;r.add({start:t,end:t+i,length:i,substr:s}),a.push(r)}else l.add("3")}if(a.length>0){a=a.sort((e,t)=>e.length()-t.length());for(let e of a)k(e,r)||r.push(e)}else if(t>0&&1==l.size&&!l.has("3")){n+=T(r,!1);let e=new C;const t=r[0];t&&e.add(t.last()),r=[e]}}return n+=T(r,!0),n},_=(e,t)=>{if(e)return e[t]},P=(e,t)=>{if(e){for(var n,r=t.split(".");(n=r.shift())&&(e=e[n]););return e}},L=(e,t,n)=>{var r,i;return e?(e+="",null==t.regex||-1===(i=e.search(t.regex))?0:(r=t.string.length/e.length,0===i&&(r+=.5),r*n)):0},j=(e,t)=>{var n=e[t];if("function"==typeof n)return n;n&&!Array.isArray(n)&&(e[t]=[n])},M=(e,t)=>{if(Array.isArray(e))e.forEach(t);else for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)},R=(e,t)=>"number"==typeof e&&"number"==typeof t?e>t?1:e<t?-1:0:(e=w(e+"").toLowerCase())>(t=w(t+"").toLowerCase())?1:t>e?-1:0;class I{items;settings;constructor(e,t){this.items=e,this.settings=t||{diacritics:!0}}tokenize(e,t,n){if(!e||!e.length)return[];const r=[],i=e.split(/\s+/);var o;return n&&(o=new RegExp("^("+Object.keys(n).map(c).join("|")+"):(.*)$")),i.forEac
25h(e=>{let n,i=null,s=null;o&&(n=e.match(o))&&(i=n[1],e=n[2]),e.length>0&&(s=this.settings.diacritics?A(e)||null:c(e),s&&t&&(s="\\b"+s)),r.push({string:e,regex:s?new RegExp(s,"iu"):null,field:i})}),r}getScoreFunction(e,t){var n=this.prepareSearch(e,t);return this._getScoreFunction(n)}_getScoreFunction(e){const t=e.tokens,n=t.length;if(!n)return function(){return 0};const r=e.options.fields,i=e.weights,o=r.length,s=e.getAttrFn;if(!o)return function(){return 1};const a=1===o?function(e,t){const n=r[0].field;return L(s(t,n),e,i[n]||1)}:function(e,t){var n=0;if(e.field){const r=s(t,e.field);!e.regex&&r?n+=1/o:n+=L(r,e,1)}else M(i,(r,i)=>{n+=L(s(t,i),e,r)});return n/o};return 1===n?function(e){return a(t[0],e)}:"and"===e.options.conjunction?function(e){var r,i=0;for(let n of t){if((r=a(n,e))<=0)return 0;i+=r}return i/n}:function(e){var r=0;return M(t,t=>{r+=a(t,e)}),r/n}}getSortFunction(e,t){var n=this.prepareSearch(e,t);return this._getSortFunction(n)}_getSortFunction(e){var t,n=[];const r=this,i=e.options,o=!e.query&&i.sort_empty?i.sort_empty:i.sort;if("function"==typeof o)return o.bind(this);const s=function(t,n){return"$score"===t?n.score:e.getAttrFn(r.items[n.id],t)};if(o)for(let t of o)(e.query||"$score"!==t.field)&&n.push(t);if(e.query){t=!0;for(let e of n)if("$score"===e.field){t=!1;break}t&&n.unshift({field:"$score",direction:"desc"})}else n=n.filter(e=>"$score"!==e.field);return n.length?function(e,t){var r,i;for(let o of n){if(i=o.field,r=("desc"===o.direction?-1:1)*R(s(i,e),s(i,t)))return r}return 0}:null}prepareSearch(e,t){const n={};var r=Object.assign({},t);if(j(r,"sort"),j(r,"sort_empty"),r.fields){j(r,"fields");const e=[];r.fields.forEach(t=>{"string"==typeof t&&(t={field:t,weight:1}),e.push(t),n[t.field]="weight"in t?t.weight:1}),r.fields=e}return{options:r,query:e.toLowerCase().trim(),tokens:this.tokenize(e,r.respect_word_boundaries,n),total:0,items:[],weights:n,getAttrFn:r.nesting?P:_}}search(e,t){var n,r,i=this;r=this.prepareSearch(e,t),t=r.options,e=r.query;const o=t.score||i._getScoreFunction(r);e.length?M(i.items,(e,i)=>{n=o(e),(!1===t.filter||n>0)&&r.items.push({score:n,id:i})}):M(i.items,(e,t)=>{r.items.push({score:1,id:t})});const s=i._getSortFunction(r);return s&&r.items.sort(s),r.total=r.items.length,"number"==typeof t.limit&&(r.items=r.items.slice(0,t.limit)),r}}const N=e=>null==e?null:D(e),D=e=>"boolean"==typeof e?e?"1":"0":e+"",F=e=>(e+"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""),B=(e,t)=>{var n;return function(r,i){var o=this;n&&(o.loading=Math.max(o.loading-1,0),clearTimeout(n)),n=setTimeout(function(){n=null,o.loadedSearches[r]=!0,e.call(o,r,i)},t)}},q=(e,t,n)=>{var r,i=e.trigger,o={};for(r of(e.trigger=function(){var n=arguments[0];if(-1===t.indexOf(n))return i.apply(e,arguments);o[n]=arguments},n.apply(e,[]),e.trigger=i,t))r in o&&i.apply(e,o[r])},H=(e,t=!1)=>{e&&(e.preventDefault(),t&&e.stopPropagation())},$=(e,t,n,r)=>{e.addEventListener(t,n,r)},V=(e,t)=>!!t&&(!!t[e]&&1===(t.altKey?1:0)+(t.ctrlKey?1:0)+(t.shiftKey?1:0)+(t.metaKey?1:0)),z=(e,t)=>{const n=e.getAttribute("id");return n||(e.setAttribute("id",t),t)},U=e=>e.replace(/[\\"']/g,"\\$&"),W=(e,t)=>{t&&e.append(t)},G=(e,t)=>{if(Array.isArray(e))e.forEach(t);else for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)},K=e=>{if(e.jquery)return e[0];if(e instanceof HTMLElement)return e;if(X(e)){var t=document.createElement("template");return t.innerHTML=e.trim(),t.content.firstChild}return document.querySelector(e)},X=e=>"string"==typeof e&&e.indexOf("<")>-1,J=(e,t)=>
25{var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!1),e.dispatchEvent(n)},Y=(e,t)=>{Object.assign(e.style,t)},Q=(e,...t)=>{var n=ee(t);(e=te(e)).map(e=>{n.map(t=>{e.classList.add(t)})})},Z=(e,...t)=>{var n=ee(t);(e=te(e)).map(e=>{n.map(t=>{e.classList.remove(t)})})},ee=e=>{var t=[];return G(e,e=>{"string"==typeof e&&(e=e.trim().split(/[\t\n\f\r\s]/)),Array.isArray(e)&&(t=t.concat(e))}),t.filter(Boolean)},te=e=>(Array.isArray(e)||(e=[e]),e),ne=(e,t,n)=>{if(!n||n.contains(e))for(;e&&e.matches;){if(e.matches(t))return e;e=e.parentNode}},re=(e,t=0)=>t>0?e[e.length-1]:e[0],ie=(e,t)=>{if(!e)return-1;t=t||e.nodeName;for(var n=0;e=e.previousElementSibling;)e.matches(t)&&n++;return n},oe=(e,t)=>{G(t,(t,n)=>{null==t?e.removeAttribute(n):e.setAttribute(n,""+t)})},se=(e,t)=>{e.parentNode&&e.parentNode.replaceChild(t,e)},ae=(e,t)=>{if(null===t)return;if("string"==typeof t){if(!t.length)return;t=new RegExp(t,"i")}const n=e=>3===e.nodeType?(e=>{var n=e.data.match(t);if(n&&e.data.length>0){var r=document.createElement("span");r.className="highlight";var i=e.splitText(n.index);i.splitText(n[0].length);var o=i.cloneNode(!0);return r.appendChild(o),se(i,r),1}return 0})(e):((e=>{1!==e.nodeType||!e.childNodes||/(script|style)/i.test(e.tagName)||"highlight"===e.className&&"SPAN"===e.tagName||Array.from(e.childNodes).forEach(e=>{n(e)})})(e),0);n(e)},le="undefined"!=typeof navigator&&/Mac/.test(navigator.userAgent)?"metaKey":"ctrlKey",ce={options:[],optgroups:[],plugins:[],delimiter:",",splitOn:null,persist:!0,diacritics:!0,create:null,createOnBlur:!1,createFilter:null,clearAfterSelect:!1,highlight:!0,openOnFocus:!0,shouldOpen:null,maxOptions:50,maxItems:null,hideSelected:null,duplicates:!1,addPrecedence:!1,selectOnTab:!1,preload:null,allowEmptyOption:!1,refreshThrottle:300,loadThrottle:300,loadingClass:"loading",dataAttr:null,optgroupField:"optgroup",valueField:"value",labelField:"text",disabledField:"disabled",optgroupLabelField:"label",optgroupValueField:"value",lockOptgroupOrder:!1,sortField:"$order",searchField:["text"],searchConjunction:"and",mode:null,wrapperClass:"ts-wrapper",controlClass:"ts-control",dropdownClass:"ts-dropdown",dropdownContentClass:"ts-dropdown-content",itemClass:"item",optionClass:"option",dropdownParent:null,controlInput:'<input type="text" autocomplete="off" size="1" />',copyClassesToDropdown:!1,placeholder:null,hidePlaceholder:null,shouldLoad:function(e){return e.length>0},render:{}};function ue(e,t){var n=Object.assign({},ce,t),r=n.dataAttr,i=n.labelField,o=n.valueField,s=n.disabledField,a=n.optgroupField,l=n.optgroupLabelField,c=n.optgroupValueField,u=e.tagName.toLowerCase(),d=e.getAttribute("placeholder")||e.getAttribute("data-placeholder");if(!d&&!n.allowEmptyOption){let t=e.querySelector('option[value=""]');t&&(d=t.textContent)}var f={placeholder:d,options:[],optgroups:[],items:[],maxItems:null};return"select"===u?(()=>{var t,u=f.options,d={},p=1;let h=0;var m=e=>{var t=Object.assign({},e.dataset),n=r&&t[r];return"string"==typeof n&&n.length&&(t=Object.assign(t,JSON.parse(n))),t},v=(e,t)=>{var r=N(e.value);if(null!=r&&(r||n.allowEmptyOption)){if(d.hasOwnProperty(r)){if(t){var l=d[r][a];l?Array.isArray(l)?l.push(t):d[r][a]=[l,t]:d[r][a]=t}}else{var c=m(e);c[i]=c[i]||e.textContent,c[o]=c[o]||r,c[s]=c[s]||e.disabled,c[a]=c[a]||t,c.$option=e,c.$order=c.$order||++h,d[r]=c,u.push(c)}e.selected&&f.items.push(r)}};f.maxItems=e.hasAttribute("multiple")?null:1,G(e.children,e=>{var n,r,i;"optgroup"===(t=e.tagName.toLowerCase())?((i=m(n=e))[l]=i[l]||n.getAttribute("label")||"",i[c]=i[c]||p++,i[s]=i[s]||n.disabled,i.$order=i.$order||++h,f.optgroups.push(i),r=i[c],G(n.children,e=>{v(e,r)})):"option"===t&&v(e)})})():(()=>{var t,s;const a=e.getAttribute(r);if(a)f.options=JSON.parse(a),G(f.options,e=>{f.items.push(e[o])});else{var l=null!==(s=null===(t=null==e?void 0:e.value)||void 0===t?void 0:t.trim())&&void 0!==s?s:"";if(!n.allowEmptyOption&&!l.length)return;const r=l.split(n.delimiter);G(r,e=>{const t={};t[i]=e,t[o]=e,f.options.push(t)}),f.items=r}})(),Object.assign({},ce,f,t)}var de=0;class fe extends(function(e){return e.plugins={},class extends e{constructor(){super(...arguments),this.plugins={names:[],settings:{},requested:{},loaded:{}}}static define(t,n){e.plugins[t]={name:t,fn:n}}initializePlugins(e){var t,n;const r=this,i=[];
25if(Array.isArray(e))e.forEach(e=>{"string"==typeof e?i.push(e):(r.plugins.settings[e.name]=e.options,i.push(e.name))});else if(e)for(t in e)e.hasOwnProperty(t)&&(r.plugins.settings[t]=e[t],i.push(t));for(;n=i.shift();)r.require(n)}loadPlugin(t){var n=this,r=n.plugins,i=e.plugins[t];if(!e.plugins.hasOwnProperty(t))throw new Error('Unable to find "'+t+'" plugin');r.requested[t]=!0,r.loaded[t]=i.fn.apply(n,[n.plugins.settings[t]||{}]),r.names.push(t)}require(e){var t=this,n=t.plugins;if(!t.plugins.loaded.hasOwnProperty(e)){if(n.requested[e])throw new Error('Plugin has circular dependency ("'+e+'")');t.loadPlugin(e)}return n.loaded[e]}}}(i)){constructor(e,t){var n;super(),this.order=0,this.isOpen=!1,this.isDisabled=!1,this.isReadOnly=!1,this.isInvalid=!1,this.isValid=!0,this.isLocked=!1,this.isFocused=!1,this.isInputHidden=!1,this.isSetup=!1,this.isDropdownContentStale=!0,this.ignoreFocus=!1,this.ignoreHover=!1,this.hasOptions=!1,this.lastValue="",this.caretPos=0,this.loading=0,this.loadedSearches={},this.activeOption=null,this.activeItems=[],this.optgroups={},this.options={},this.userOptions={},this.items=[],this.refreshTimeout=null,de++;var r=K(e);if(r.tomselect)throw new Error("Tom Select already initialized on this element");r.tomselect=this,n=(window.getComputedStyle&&window.getComputedStyle(r,null)).getPropertyValue("direction");const i=ue(r,t);this.settings=i,this.input=r,this.tabIndex=r.tabIndex||0,this.is_select_tag="select"===r.tagName.toLowerCase(),this.rtl=/rtl/i.test(n),this.inputId=z(r,"tomselect-"+de),this.isRequired=r.required,this.sifter=new I(this.options,{diacritics:i.diacritics}),i.mode=i.mode||(1===i.maxItems?"single":"multi"),"boolean"!=typeof i.hideSelected&&(i.hideSelected="multi"===i.mode),"boolean"!=typeof i.hidePlaceholder&&(i.hidePlaceholder="multi"!==i.mode);var o=i.createFilter;"function"!=typeof o&&("string"==typeof o&&(o=new RegExp(o)),o instanceof RegExp?i.createFilter=e=>o.test(e):i.createFilter=e=>this.settings.duplicates||!this.options[e]),this.initializePlugins(i.plugins),this.setupCallbacks(),this.setupTemplates();const s=K("<div>"),a=K("<div>"),l=this._render("dropdown"),c=K('<div role="listbox" tabindex="-1">'),u=this.input.getAttribute("class")||"",d=i.mode;var f;if(Q(s,i.wrapperClass,u,d),Q(a,i.controlClass),W(s,a),Q(l,i.dropdownClass,d),i.copyClassesToDropdown&&Q(l,u),Q(c,i.dropdownContentClass),W(l,c),K(i.dropdownParent||s).appendChild(l),X(i.controlInput)){f=K(i.controlInput);G(["autocorrect","autocapitalize","autocomplete","spellcheck","aria-label"],e=>{r.getAttribute(e)&&oe(f,{[e]:r.getAttribute(e)})}),f.tabIndex=-1,a.appendChild(f),this.focus_node=f}else i.controlInput?(f=K(i.controlInput),this.focus_node=f):(f=K("<input/>"),this.focus_node=a);this.wrapper=s,this.dropdown=l,this.dropdown_content=c,this.control=a,this.control_input=f,this.setup()}setup(){const e=this,t=e.settings,n=e.control_input,r=e.dropdown,i=e.dropdown_content,o=e.wrapper,s=e.control,a=e.input,l=e.focus_node,u={passive:!0},d=e.inputId+"-ts-dropdown";oe(i,{id:d}),oe(l,{role:"combobox","aria-haspopup":"listbox","aria-expanded":"false","aria-controls":d});const f=z(l,e.inputId+"-ts-control"),p="label[for='"+(e=>e.replace(/['"\\]/g,"\\$&"))(e.inputId)+"']",h=document.querySelector(p),m=e.focus.bind(e);if(h){$(h,"click",m),oe(h,{for:f});const t=z(h,e.inputId+"-ts-label");oe(l,{"aria-labelledby":t}),oe(i,{"aria-labelledby":t})}if(o.style.width=a.style.width,o.style.minWidth=a.style.minWidth,o.style.maxWidth=a.style.maxWidth,e.plugins.names.length){const t="plugin-"+e.plugins.names.join(" plugin-");Q([o,r],t)}(null===t.maxItems||t.maxItems>1)&&e.is_select_tag&&oe(a,{multiple:"multiple"}),t.placeholder&&oe(n,{placeholder:t.placeholder}),!t.splitOn&&t.delimiter&&(t.splitOn=new RegExp("\\s*"+c(t.delimiter)+"+\\s*")),t.load&&t.loadThrottle&&(t.load=B(t.load,t.loadThrottle)),$(r,"mousemove",()=>{e.ignoreHover=!1}),$(r,"mouseenter",t=>{var n=ne(t.target,"[data-selectable]",r);n&&e.onOptionHover(t,n)},{capture:!0}),$(r,"click",t=>{const n=ne(t.target,"[data-selectable]");n&&(e.onOptionSelect(t,n),H(t,!0))}),$(s,"click",t=>{var r=ne(t.target,"[data-ts-item]",s);r&&e.onItemSelect(t,r)?H(t,!0):""==n.value&&(e.onClick(),H(t,!0))}),$(l,"keydown",t=>e.onKeyDown(t)),$(n,"keypress",t=>e.onKeyPress(t)),$(n,"input",t=>e.onInput(t)),$(l,"blur",t=>e.onBlur(t)),$(l,"focus",t=>e.onFocus(t)),$(n,"paste",t=>e.onPaste(t));const v=t=>{const i=t.composedPath()[0];if(!o.contains(i)&&!r.contains(i))return e.isFocused&&e.blur(),void e.inputState();i==n&&e.isOpen?t.stopPropagation():H(t,!0)},g=()=>{e.isOpen&&e.positionDropdown()},y=()=>
25{e.isValid&&(e.isValid=!1,e.isInvalid=!0,e.refreshState())};$(a,"invalid",y),$(document,"mousedown",v),$(window,"scroll",g,u),$(window,"resize",g,u),this._destroy=()=>{a.removeEventListener("invalid",y),document.removeEventListener("mousedown",v),window.removeEventListener("scroll",g),window.removeEventListener("resize",g),h&&h.removeEventListener("click",m)},this.revertSettings={innerHTML:a.innerHTML,tabIndex:a.tabIndex},a.tabIndex=-1,a.insertAdjacentElement("afterend",e.wrapper),e.sync(!1),t.items=[],delete t.optgroups,delete t.options,e.refreshItems(),e.close(!1),e.inputState(),e.isSetup=!0,e.on("change",this.onChange),Q(a,"tomselected","ts-hidden-accessible"),e.trigger("initialize"),!0===t.preload&&e.preload()}setupOptions(e=[],t=[]){this.addOptions(e),G(t,e=>{this.registerOptionGroup(e)})}setupTemplates(){var e=this,t=e.settings.labelField,n=e.settings.optgroupLabelField,r={optgroup:e=>{let t=document.createElement("div");return t.className="optgroup",t.appendChild(e.options),t},optgroup_header:(e,t)=>'<div class="optgroup-header">'+t(e[n])+"</div>",option:(e,n)=>"<div>"+n(e[t])+"</div>",item:(e,n)=>"<div>"+n(e[t])+"</div>",option_create:(e,t)=>'<div class="create">Add <strong>'+t(e.input)+"</strong>…</div>",no_results:()=>'<div class="no-results">No results found</div>',loading:()=>'<div class="spinner"></div>',not_loading:()=>{},dropdown:()=>"<div></div>"};e.settings.render=Object.assign({},r,e.settings.render)}setupCallbacks(){var e,t,n={initialize:"onInitialize",change:"onChange",item_add:"onItemAdd",item_remove:"onItemRemove",item_select:"onItemSelect",clear:"onClear",option_add:"onOptionAdd",option_remove:"onOptionRemove",option_clear:"onOptionClear",optgroup_add:"onOptionGroupAdd",optgroup_remove:"onOptionGroupRemove",optgroup_clear:"onOptionGroupClear",dropdown_open:"onDropdownOpen",dropdown_close:"onDropdownClose",type:"onType",load:"onLoad",focus:"onFocus",blur:"onBlur"};for(e in n)(t=this.settings[n[e]])&&this.on(e,t)}sync(e=!0){const t=this,n=e?ue(t.input,{delimiter:t.settings.delimiter,allowEmptyOption:t.settings.allowEmptyOption}):t.settings;t.setupOptions(n.options,n.optgroups),t.setValue(n.items||[],!0),t.input.disabled?t.disable():t.input.readOnly?t.setReadOnly(!0):t.enable(),t.lastQuery=null}onClick(){var e=this;if(e.activeItems.length>0)return e.clearActiveItems(),void e.focus();e.isFocused&&e.isOpen?e.blur():e.focus()}onMouseDown(){}onChange(){J(this.input,"input"),J(this.input,"change")}onPaste(e){var t=this;t.isInputHidden||t.isLocked?H(e):t.settings.splitOn&&setTimeout(()=>{var e=t.inputValue();if(e.match(t.settings.splitOn)){var n=e.trim().split(t.settings.splitOn);G(n,e=>{N(e)&&(this.options[e]?t.addItem(e):t.createItem(e))})}},0)}onKeyPress(e){var t=this;if(!t.isLocked){var n=String.fromCharCode(e.keyCode||e.which);return t.settings.create&&"multi"===t.settings.mode&&n===t.settings.delimiter?(t.createItem(),void H(e)):void 0}H(e)}onKeyDown(e){var t=this;if(t.ignoreHover=!0,t.isLocked)9!==e.keyCode&&H(e);else{switch(e.keyCode){case 65:if(V(le,e)&&""==t.control_input.value)return H(e),void t.selectAll();break;case 27:return t.isOpen&&(H(e,!0),t.close()),void t.clearActiveItems();case 40:if(!t.isOpen&&t.hasOptions)t.open();else if(t.activeOption){let e=t.getAdjacent(t.activeOption,1);e&&t.setActiveOption(e)}return void H(e);case 38:if(t.activeOption){let e=t.getAdjacent(t.activeOption,-1);e&&t.setActiveOption(e)}return void H(e);case 13:return void(t.canSelect(t.activeOption)?(t.onOptionSelect(e,t.activeOption),H(e)):(t.settings.create&&t.createItem()||document.activeElement==t.control_input&&t.isOpen)&&H(e));case 37:return void t.advanceSelection(-1,e);case 39:return void t.advanceSelection(1,e);case 9:return void(t.settings.selectOnTab&&(t.canSelect(t.activeOption)?(t.onOptionSelect(e,t.activeOption),H(e)):t.settings.create&&t.createItem()&&H(e)));case 8:case 46:return void t.deleteSelection(e)}t.isInputHidden&&!V(le,e)&&H(e)}}onInput(e){if(this.isLocked)return;const t=this.inputValue();this.lastValue!==t&&(this.lastValue=t,""!=t?(this.refreshTimeout&&window.clearTimeout(this.refreshTimeout),this.refreshTimeout=((e,t)=>t>0?window.setTimeout(e,t):(e.call(null),null))(()=>{this.refreshTimeout=null,this._onInput()},this.settings.refreshThrottle)):this._onInput())}_onInput(){const e=this.lastValue;this.settings.shouldLoad.call(this,e)&&this.load(e),this.refreshOptions(),this.trigger("type",e)}onOptionHover(e,t){this.ignoreHover||this.setActiveOption(t,!1)}onFocus(e){var t=this,n=t.isFocused;if(t.isDisabled||t.isReadOnly)return t.blur(),void H(e);
25t.ignoreFocus||(t.isFocused=!0,"focus"===t.settings.preload&&t.preload(),n||t.trigger("focus"),t.activeItems.length||(t.inputState(),t.refreshOptions(!!t.settings.openOnFocus)),t.refreshState())}onBlur(e){if(!1!==document.hasFocus()){var t=this;if(t.isFocused){t.isFocused=!1,t.ignoreFocus=!1;var n=()=>{t.close(),t.setActiveItem(),t.setCaret(t.items.length),t.trigger("blur")};t.settings.create&&t.settings.createOnBlur?t.createItem(null,n):n()}}}onOptionSelect(e,t){var n,r=this;t.parentElement&&t.parentElement.matches("[data-disabled]")||(t.classList.contains("create")?r.createItem(null,()=>{r.settings.closeAfterSelect?r.close():r.settings.clearAfterSelect&&r.setTextboxValue()}):void 0!==(n=t.dataset.value)&&(r.isDropdownContentStale=r.settings.hideSelected,r.addItem(n),r.settings.closeAfterSelect?r.close():r.settings.clearAfterSelect&&r.setTextboxValue(),!r.settings.hideSelected&&e.type&&/click/.test(e.type)&&r.setActiveOption(t)))}canSelect(e){return!!(this.isOpen&&e&&this.dropdown_content.contains(e))}onItemSelect(e,t){var n=this;return!n.isLocked&&"multi"===n.settings.mode&&(H(e),n.setActiveItem(t,e),!0)}canLoad(e){return!!this.settings.load&&!this.loadedSearches.hasOwnProperty(e)}load(e){const t=this;if(!t.canLoad(e))return;Q(t.wrapper,t.settings.loadingClass),t.loading++;const n=t.loadCallback.bind(t);t.settings.load.call(t,e,n)}loadCallback(e,t){const n=this;n.loading=Math.max(n.loading-1,0),n.isDropdownContentStale=!0,n.clearActiveOption(),n.setupOptions(e,t),n.refreshOptions(n.isFocused&&!n.isInputHidden),n.loading||Z(n.wrapper,n.settings.loadingClass),n.trigger("load",e,t)}preload(){var e=this.wrapper.classList;e.contains("preloaded")||(e.add("preloaded"),this.load(""))}setTextboxValue(e=""){var t=this.control_input;t.value!==e&&(t.value=e,J(t,"update"),this.lastValue=e)}getValue(){return this.is_select_tag&&this.input.hasAttribute("multiple")?this.items:this.items.join(this.settings.delimiter)}setValue(e,t){q(this,t?[]:["change"],()=>{this.clear(t),this.addItems(e,t)})}setMaxItems(e){0===e&&(e=null),this.settings.maxItems=e,this.refreshState()}setActiveItem(e,t){var n,r,i,o,s,a,l=this;if("single"!==l.settings.mode){if(!e)return l.clearActiveItems(),void(l.isFocused&&l.inputState());if("click"===(n=t&&t.type.toLowerCase())&&V("shiftKey",t)&&l.activeItems.length){for(a=l.getLastActive(),(i=Array.prototype.indexOf.call(l.control.children,a))>(o=Array.prototype.indexOf.call(l.control.children,e))&&(s=i,i=o,o=s),r=i;r<=o;r++)e=l.control.children[r],-1===l.activeItems.indexOf(e)&&l.setActiveItemClass(e);H(t)}else"click"===n&&V(le,t)||"keydown"===n&&V("shiftKey",t)?e.classList.contains("active")?l.removeActiveItem(e):l.setActiveItemClass(e):(l.clearActiveItems(),l.setActiveItemClass(e));l.inputState(),l.isFocused||l.focus()}}setActiveItemClass(e){const t=this,n=t.control.querySelector(".last-active");n&&Z(n,"last-active"),Q(e,"active last-active"),t.trigger("item_select",e),-1==t.activeItems.indexOf(e)&&t.activeItems.push(e)}removeActiveItem(e){var t=this.activeItems.indexOf(e);this.activeItems.splice(t,1),Z(e,"active")}clearActiveItems(){Z(this.activeItems,"active"),this.activeItems=[]}setActiveOption(e,t=!0){e!==this.activeOption&&(this.clearActiveOption(),e&&(this.activeOption=e,oe(this.focus_node,{"aria-activedescendant":e.getAttribute("id")}),oe(e,{"aria-selected":"true"}),Q(e,"active"),t&&this.scrollToOption(e)))}scrollToOption(e,t){if(!e)return;const n=this.dropdown_content,r=n.clientHeight,i=n.scrollTop||0,o=e.offsetHeight,s=e.getBoundingClientRect().top-n.getBoundingClientRect().top+i;s+o>r+i?this.scroll(s-r+o,t):s<i&&this.scroll(s,t)}scroll(e,t){const n=this.dropdown_content;t&&(n.style.scrollBehavior=t),n.scrollTop=e,n.style.scrollBehavior=""}clearActiveOption(){this.activeOption&&(Z(this.activeOption,"active"),oe(this.activeOption,{"aria-selected":null})),this.activeOption=null,oe(this.focus_node,{"aria-activedescendant":null})}selectAll(){const e=this;if("single"===e.settings.mode)return;const t=e.controlChildren();t.length&&(e.inputState(),e.close(),e.activeItems=t,G(t,t=>{e.setActiveItemClass(t)}))}inputState(){var e=this;e.control.contains(e.control_input)&&(oe(e.control_input,{placeholder:e.settings.placeholder}),e.activeItems.length>0||!e.isFocused&&e.settings.hidePlaceholder&&e.items.length>0?(e.setTextboxValue(),e.isInputHidden=!0):(e.settings.hidePlaceholder&&e.items.length>0&&oe(e.control_input,{placeholder:""}),e.isInputHidden=!1),e.wrapper.classList.toggle("input-hidden",e.isInputHidden))}inputValue(){return this.control_input.value.trim()}focus(){var e=this;if(e.isDisabled||e.isReadOnly)return;e.ignoreFocus=!0;const t=this.control_input.offsetWidth?this.control_input:this.focus_node;
25t.focus(),setTimeout(()=>{e.ignoreFocus=!1;t.getRootNode().activeElement===t&&this.onFocus()},0)}blur(){this.focus_node.blur(),this.onBlur()}getScoreFunction(e){return this.sifter.getScoreFunction(e,this.getSearchOptions())}getSearchOptions(){var e=this.settings,t=e.sortField;return"string"==typeof e.sortField&&(t=[{field:e.sortField}]),{fields:e.searchField,conjunction:e.searchConjunction,sort:t,nesting:e.nesting}}search(e){var t,n,r=this,i=this.getSearchOptions();if(r.settings.score&&"function"!=typeof(n=r.settings.score.call(r,e)))throw new Error('Tom Select "score" setting must be a function that returns a function');return r.isDropdownContentStale||e!==r.lastQuery?(r.lastQuery=e,/(.)\1{15,}/.test(e)&&(e=""),t=r.sifter.search(e,Object.assign(i,{score:n})),r.currentResults=t):t=Object.assign({},r.currentResults),r.settings.hideSelected&&(t.items=t.items.filter(e=>{let t=N(e.id);return!(null!==t&&-1!==r.items.indexOf(t))})),t}refreshOptions(e=!0){var t,n,r,i,o,s,a,l,c,u;const d={},f=[];var p=this,h=p.inputValue();const m=h===p.lastQuery||""==h&&null==p.lastQuery;var v=p.search(h),g=null,y=p.settings.shouldOpen||!1,b=p.dropdown_content;m&&(g=p.activeOption)&&(c=g.closest("[data-group]")),i=v.items.length,"number"==typeof p.settings.maxOptions&&(i=Math.min(i,p.settings.maxOptions)),i>0&&(y=!0);const w=(e,t)=>{let n=d[e];if(void 0!==n){let e=f[n];if(void 0!==e)return[n,e.fragment]}let r=document.createDocumentFragment();return n=f.length,f.push({fragment:r,order:t,optgroup:e}),[n,r]};for(t=0;t<i;t++){let e=v.items[t];if(!e)continue;let i=e.id,a=p.options[i];if(void 0===a)continue;let l=D(i),u=p.getOption(l,!0);for(p.settings.hideSelected||u.classList.toggle("selected",p.items.includes(l)),o=a[p.settings.optgroupField]||"",n=0,r=(s=Array.isArray(o)?o:[o])&&s.length;n<r;n++){o=s[n];let e=a.$order,t=p.optgroups[o];var E;if(void 0===t&&"function"==typeof p.settings.optionGroupRegister)(E=p.settings.optionGroupRegister.apply(p,[o]))&&p.registerOptionGroup(E);t=p.optgroups[o],void 0===t?o="":e=t.$order;const[r,l]=w(o,e);n>0&&(u=u.cloneNode(!0),oe(u,{id:a.$id+"-clone-"+n,"aria-selected":null}),u.classList.add("ts-cloned"),Z(u,"active"),p.activeOption&&p.activeOption.dataset.value==i&&c&&c.dataset.group===o.toString()&&(g=u)),l.appendChild(u),""!=o&&(d[o]=r)}}var S;p.settings.lockOptgroupOrder&&f.sort((e,t)=>e.order-t.order),a=document.createDocumentFragment(),G(f,e=>{let t=e.fragment,n=e.optgroup;if(!t||!t.children.length)return;let r=p.optgroups[n];if(void 0!==r){let e=document.createDocumentFragment(),n=p.render("optgroup_header",r);W(e,n),W(e,t);let i=p.render("optgroup",{group:r,options:e});W(a,i)}else W(a,t)}),b.innerHTML="",W(b,a),p.isDropdownContentStale=!1,p.settings.highlight&&(S=b.querySelectorAll("span.highlight"),Array.prototype.forEach.call(S,function(e){var t=e.parentNode;t.replaceChild(e.firstChild,e),t.normalize()}),v.query.length&&v.tokens.length&&G(v.tokens,e=>{ae(b,e.regex)}));var x=e=>{let t=p.render(e,{input:h});return t&&(y=!0,b.insertBefore(t,b.firstChild)),t};if(p.loading?x("loading"):p.settings.shouldLoad.call(p,h)?0===v.items.length&&x("no_results"):x("not_loading"),(l=p.canCreate(h))&&(u=x("option_create")),p.hasOptions=v.items.length>0||l,y){if(v.items.length>0){if(g||"single"!==p.settings.mode||null==p.items[0]||(g=p.getOption(p.items[0])),!b.contains(g)){let e=0;u&&!p.settings.addPrecedence&&(e=1),g=p.selectable()[e]}}else u&&(g=u);e&&!p.isOpen&&(p.open(),p.scrollToOption(g,"auto")),p.setActiveOption(g)}else p.clearActiveOption(),e&&p.isOpen&&p.close(!1)}selectable(){return this.dropdown_content.querySelectorAll("[data-selectable]")}addOption(e,t=!1){const n=this;if(Array.isArray(e))return n.addOptions(e,t),!1;const r=N(e[n.settings.valueField]);return null===r||n.options.hasOwnProperty(r)?(n.updateOption(e[n.settings.valueField],e),!1):(e.$order=e.$order||++n.order,e.$id=n.inputId+"-opt-"+e.$order,n.options[r]=e,n.isDropdownContentStale=!0,t&&(n.userOptions[r]=t,n.trigger("option_add",r,e)),r)}addOptions(e,t=!1){G(e,e=>{this.addOption(e,t)})}registerOption(e){return this.addOption(e)}registerOptionGroup(e){var t=N(e[this.settings.optgroupValueField]);return null!==t&&(e.$order=e.$order||++this.order,this.optgroups[t]=e,t)}addOptionGroup(e,t){var n;t[this.settings.optgroupValueField]=e,(n=this.registerOptionGroup(t))&&this.trigger("optgroup_add",n,t)}removeOptionGroup(e){this.optgroups.hasOwnProperty(e)&&(delete this.optgroups[e],this.clearCache(),this.trigger("optgroup_remove",e))}clearOptionGroups(){this.optgroups={},this.clearCache(),this.trigger("optgroup_clear")}updateOption(e,t){const n=this;var r,i;const o=N(e),s=N(t[n.settings.valueField]);if(null===o)return;const a=n.options[o];if(null==a)return;if("string"!=typeof s)throw new Error("Value must be set in option data");const l=n.getOption(o),c=n.getItem(o);if(t.$order=t.$order||a.$order,delete n.options[o],n.uncacheValue(s),n.options[s]=t,l){if(n.dropdown_content.contains(l)){const e=n._render("option",t);se(l,e),n.activeOption===l&&n.setActiveOption(e)}l.remove()}c&&(-1!==(i=n.items.indexOf(o))&&n.items.splice(i,1,s),r=n._render("item",t),c.classList.contains("active")&&Q(r,"active"),se(c,r)),n.isDropdownContentStale=!0}removeOption(e,t){const n=this;e=D(e),n.uncacheValue(e),delete n.userOptions[e],delete n.options[e],n.isDropdownContentStale=!0,n.trigger("option_remove",e),n.removeItem(e,t)}clearOptions(e){const t=(e||this.clearFilter).bind(this);this.loadedSearches={},this.userOptions={},this.clearCache();const n={};
25G(this.options,(e,r)=>{t(e,r)&&(n[r]=e)}),this.options=this.sifter.items=n,this.isDropdownContentStale=!0,this.trigger("option_clear")}clearFilter(e,t){return this.items.indexOf(t)>=0}getOption(e,t=!1){const n=N(e);if(null===n)return null;const r=this.options[n];if(null!=r){if(r.$div)return r.$div;if(t)return this._render("option",r)}return null}getAdjacent(e,t,n="option"){var r;if(!e)return null;r="item"==n?this.controlChildren():this.dropdown_content.querySelectorAll("[data-selectable]");for(let n=0;n<r.length;n++)if(r[n]==e)return t>0?r[n+1]:r[n-1];return null}getItem(e){if("object"==typeof e)return e;var t=N(e);return null!==t?this.control.querySelector(`[data-value="${U(t)}"]`):null}addItems(e,t){var n=this,r=Array.isArray(e)?e:[e];const i=(r=r.filter(e=>-1===n.items.indexOf(e)))[r.length-1];r.forEach(e=>{n.isPending=e!==i,n.addItem(e,t)})}addItem(e,t){q(this,t?[]:["change","dropdown_close"],()=>{var n,r;const i=this,o=i.settings.mode,s=N(e);if((!s||-1===i.items.indexOf(s)||("single"===o&&i.close(),"single"!==o&&i.settings.duplicates))&&null!==s&&i.options.hasOwnProperty(s)&&("single"===o&&i.clear(t),"multi"!==o||!i.isFull())){if(n=i._render("item",i.options[s]),i.control.contains(n)&&(n=n.cloneNode(!0)),r=i.isFull(),i.items.splice(i.caretPos,0,s),i.insertAtCaret(n),i.isSetup){if(!i.isPending&&i.settings.hideSelected){let e=i.getOption(s),t=i.getAdjacent(e,1);t&&i.setActiveOption(t)}i.settings.clearAfterSelect&&i.setTextboxValue(),i.isPending||i.settings.closeAfterSelect||i.refreshOptions(i.isFocused&&"single"!==o),0!=i.settings.closeAfterSelect&&i.isFull()?i.close():i.isPending||i.positionDropdown(),i.trigger("item_add",s,n),i.isPending||i.updateOriginalInput({silent:t})}(!i.isPending||!r&&i.isFull())&&(i.inputState(),i.refreshState())}})}removeItem(e=null,t){const n=this;if(!(e=n.getItem(e)))return;var r,i;const o=e.dataset.value;r=ie(e),e.remove(),e.classList.contains("active")&&(i=n.activeItems.indexOf(e),n.activeItems.splice(i,1),Z(e,"active")),n.items.splice(r,1),n.isDropdownContentStale=!0,!n.settings.persist&&n.userOptions.hasOwnProperty(o)&&n.removeOption(o,t),r<n.caretPos&&n.setCaret(n.caretPos-1),n.updateOriginalInput({silent:t}),n.refreshState(),n.positionDropdown(),n.trigger("item_remove",o,e)}createItem(e=null,t=()=>{}){3===arguments.length&&(t=arguments[2]),"function"!=typeof t&&(t=()=>{});var n,r=this,i=r.caretPos;if(e=e||r.inputValue(),!r.canCreate(e)){return N(e)&&this.options[e]&&r.addItem(e),t(),!1}r.lock();var o=!1,s=e=>{if(r.unlock(),!e||"object"!=typeof e)return t();var n=N(e[r.settings.valueField]);if("string"!=typeof n)return t();r.setTextboxValue(),r.addOption(e,!0),r.setCaret(i),r.addItem(n),t(e),o=!0};return n="function"==typeof r.settings.create?r.settings.create.call(this,e,s):{[r.settings.labelField]:e,[r.settings.valueField]:e},o||s(n),!0}refreshItems(){var e=this;e.isDropdownContentStale=!0,e.isSetup&&e.addItems(e.items),e.updateOriginalInput(),e.refreshState()}refreshState(){const e=this;e.refreshValidityState();const t=e.isFull(),n=e.isLocked;e.wrapper.classList.toggle("rtl",e.rtl);const r=e.wrapper.classList;var i;r.toggle("focus",e.isFocused),r.toggle("disabled",e.isDisabled),r.toggle("readonly",e.isReadOnly),r.toggle("required",e.isRequired),r.toggle("invalid",!e.isValid),r.toggle("locked",n),r.toggle("full",t),r.toggle("input-active",e.isFocused&&!e.isInputHidden),r.toggle("dropdown-active",e.isOpen),r.toggle("has-options",(i=e.options,0===Object.keys(i).length)),r.toggle("has-items",e.items.length>0)}refreshValidityState(){var e=this;e.input.validity&&(e.isValid=e.input.validity.valid,e.isInvalid=!e.isValid)}isFull(){return null!==this.settings.maxItems&&this.items.length>=this.settings.maxItems}updateOriginalInput(e={}){const t=this;var n,r;const i=t.input.querySelector('option[value=""]');if(t.is_select_tag){const o=[],s=t.input.querySelectorAll("option:checked").length;function a(e,n,r){return e||(e=K('<option value="'+F(n)+'">'+F(r)+"</option>")),e!=i&&t.input.append(e),o.push(e),(e!=i||s>0||"multi"==t.settings.mode)&&(e.selected=!0),e}
25t.input.querySelectorAll("option:checked").forEach(e=>{e.selected=!1}),0==t.items.length&&"single"==t.settings.mode?a(i,"",""):t.items.forEach(e=>{if(n=t.options[e],r=n[t.settings.labelField]||"",o.includes(n.$option)){a(t.input.querySelector(`option[value="${U(e)}"]:not(:checked)`),e,r)}else n.$option=a(n.$option,e,r)})}else t.input.value=t.getValue();t.isSetup&&(e.silent||t.trigger("change",t.getValue()))}open(){var e=this;e.isLocked||e.isOpen||"multi"===e.settings.mode&&e.isFull()||(e.isOpen=!0,oe(e.focus_node,{"aria-expanded":"true"}),e.refreshState(),Y(e.dropdown,{visibility:"hidden",display:"block"}),e.positionDropdown(),Y(e.dropdown,{visibility:"visible",display:"block"}),e.focus(),e.trigger("dropdown_open",e.dropdown))}close(e=!0){var t=this,n=t.isOpen;e&&(t.setTextboxValue(),"single"===t.settings.mode&&t.items.length&&t.inputState()),t.isOpen=!1,oe(t.focus_node,{"aria-expanded":"false"}),Y(t.dropdown,{display:"none"}),t.settings.hideSelected&&t.clearActiveOption(),t.refreshState(),n&&t.trigger("dropdown_close",t.dropdown)}positionDropdown(){if("body"===this.settings.dropdownParent){var e=this.control,t=e.getBoundingClientRect(),n=e.offsetHeight+t.top+window.scrollY,r=t.left+window.scrollX;Y(this.dropdown,{width:t.width+"px",top:n+"px",left:r+"px"})}}clear(e){var t=this;if(t.items.length){var n=t.controlChildren();G(n,e=>{t.removeItem(e,!0)}),t.inputState(),e||t.updateOriginalInput(),t.trigger("clear")}}insertAtCaret(e){const t=this,n=t.caretPos,r=t.control;r.insertBefore(e,r.children[n]||null),t.setCaret(n+1)}deleteSelection(e){var t,n,r,i,o,s=this;t=e&&8===e.keyCode?-1:1,n={start:(o=s.control_input).selectionStart||0,length:(o.selectionEnd||0)-(o.selectionStart||0)};const a=[];if(s.activeItems.length)i=re(s.activeItems,t),r=ie(i),t>0&&r++,G(s.activeItems,e=>a.push(e));else if((s.isFocused||"single"===s.settings.mode)&&s.items.length){const e=s.controlChildren();let r;t<0&&0===n.start&&0===n.length?r=e[s.caretPos-1]:t>0&&n.start===s.inputValue().length&&(r=e[s.caretPos]),void 0!==r&&a.push(r)}if(!s.shouldDelete(a,e))return!1;for(H(e,!0),void 0!==r&&s.setCaret(r);a.length;)s.removeItem(a.pop());return s.inputState(),s.positionDropdown(),s.refreshOptions(!1),!0}shouldDelete(e,t){const n=e.map(e=>e.dataset.value);return!(!n.length||"function"==typeof this.settings.onDelete&&!1===this.settings.onDelete.call(this,n,t))}advanceSelection(e,t){var n,r,i=this;i.rtl&&(e*=-1),i.inputValue().length||(V(le,t)||V("shiftKey",t)?(r=(n=i.getLastActive(e))?n.classList.contains("active")?i.getAdjacent(n,e,"item"):n:e>0?i.control_input.nextElementSibling:i.control_input.previousElementSibling)&&(r.classList.contains("active")&&i.removeActiveItem(n),i.setActiveItemClass(r)):i.moveCaret(e))}moveCaret(e){}getLastActive(e){let t=this.control.querySelector(".last-active");if(t)return t;var n=this.control.querySelectorAll(".active");return n?re(n,e):void 0}setCaret(e){this.caretPos=this.items.length}controlChildren(){return Array.from(this.control.querySelectorAll("[data-ts-item]"))}lock(){this.setLocked(!0)}unlock(){this.setLocked(!1)}setLocked(e=this.isReadOnly||this.isDisabled){this.isLocked=e,this.refreshState()}disable(){this.setDisabled(!0),this.close()}enable(){this.setDisabled(!1)}setDisabled(e){this.focus_node.tabIndex=e?-1:this.tabIndex,this.isDisabled=e,this.input.disabled=e,this.control_input.disabled=e,this.setLocked()}setReadOnly(e){this.isReadOnly=e,this.input.readOnly=e,this.control_input.readOnly=e,this.setLocked()}destroy(){var e=this,t=e.revertSettings;e.trigger("destroy"),e.off(),e.wrapper.remove(),e.dropdown.remove(),e.input.innerHTML=t.innerHTML,e.input.tabIndex=t.tabIndex,Z(e.input,"tomselected","ts-hidden-accessible"),e._destroy(),delete e.input.tomselect}render(e,t){var n,r;const i=this;if("function"!=typeof this.settings.render[e])return null;if(!(r=i.settings.render[e].call(this,t,F)))return null;if(r=K(r),"option"===e||"option_create"===e?t[i.settings.disabledField]?oe(r,{"aria-disabled":"true"}):oe(r,{"data-selectable":""}):"optgroup"===e&&(n=t.group[i.settings.optgroupValueField],oe(r,{"data-group":n}),t.group[i.settings.disabledField]&&oe(r,{"data-disabled":""})),"option"===e||"item"===e){const n=D(t[i.settings.valueField]);oe(r,{"data-value":n}
25),"item"===e?(Q(r,i.settings.itemClass),oe(r,{"data-ts-item":""})):(Q(r,i.settings.optionClass),oe(r,{role:"option",id:t.$id}),t.$div=r,i.options[n]=t)}return r}_render(e,t){const n=this.render(e,t);if(null==n)throw"HTMLElement expected";return n}clearCache(){G(this.options,e=>{e.$div&&(e.$div.remove(),delete e.$div)})}uncacheValue(e){const t=this.getOption(e);t&&t.remove()}canCreate(e){return this.settings.create&&e.length>0&&this.settings.createFilter.call(this,e)}hook(e,t,n){var r=this,i=r[t];r[t]=function(){var t,o;return"after"===e&&(t=i.apply(r,arguments)),o=n.apply(r,arguments),"instead"===e?o:("before"===e&&(t=i.apply(r,arguments)),t)}}}const pe=e=>"boolean"==typeof e?e?"1":"0":e+"",he=(e,t=!1)=>{e&&(e.preventDefault(),t&&e.stopPropagation())},me=e=>"string"==typeof e&&e.indexOf("<")>-1;const ve=e=>"string"==typeof e&&e.indexOf("<")>-1;const ge=(e,t,n,r)=>{e.addEventListener(t,n,r)},ye=e=>"string"==typeof e&&e.indexOf("<")>-1,be=(e,t)=>{((e,t)=>{if(Array.isArray(e))e.forEach(t);else for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)})(t,(t,n)=>{null==t?e.removeAttribute(n):e.setAttribute(n,""+t)})};const we=e=>"string"==typeof e&&e.indexOf("<")>-1;const Ee=e=>{var t=[];return((e,t)=>{if(Array.isArray(e))e.forEach(t);else for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)})(e,e=>{"string"==typeof e&&(e=e.trim().split(/[\t\n\f\r\s]/)),Array.isArray(e)&&(t=t.concat(e))}),t.filter(Boolean)},Se=e=>(Array.isArray(e)||(e=[e]),e);const xe=e=>{if(e.jquery)return e[0];if(e instanceof HTMLElement)return e;if(Oe(e)){var t=document.createElement("template");return t.innerHTML=e.trim(),t.content.firstChild}return document.querySelector(e)},Oe=e=>"string"==typeof e&&e.indexOf("<")>-1,Te=e=>{var t=[];return((e,t)=>{if(Array.isArray(e))e.forEach(t);else for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)})(e,e=>{"string"==typeof e&&(e=e.trim().split(/[\t\n\f\r\s]/)),Array.isArray(e)&&(t=t.concat(e))}),t.filter(Boolean)},ke=e=>(Array.isArray(e)||(e=[e]),e);const Ce=(e,t,n,r)=>{e.addEventListener(t,n,r)};const Ae=(e,t=!1)=>{e&&(e.preventDefault(),t&&e.stopPropagation())},_e=(e,t,n,r)=>{e.addEventListener(t,n,r)},Pe=e=>{if(e.jquery)return e[0];if(e instanceof HTMLElement)return e;if(Le(e)){var t=document.createElement("template");return t.innerHTML=e.trim(),t.content.firstChild}return document.querySelector(e)},Le=e=>"string"==typeof e&&e.indexOf("<")>-1;const je=e=>{var t=[];return((e,t)=>{if(Array.isArray(e))e.forEach(t);else for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)})(e,e=>{"string"==typeof e&&(e=e.trim().split(/[\t\n\f\r\s]/)),Array.isArray(e)&&(t=t.concat(e))}),t.filter(Boolean)},Me=e=>(Array.isArray(e)||(e=[e]),e);fe.define("change_listener",function(){var e,t,n,r;e=this.input,t="change",n=()=>{this.sync()},e.addEventListener(t,n,r)}),fe.define("checkbox_options",function(e){var t=this,n=t.onOptionSelect;t.settings.hideSelected=!1;const r=Object.assign({className:"tomselect-checkbox",checkedClassNames:void 0,uncheckedClassNames:void 0},e);var i=function(e,t){t?(e.checked=!0,r.uncheckedClassNames&&e.classList.remove(...r.uncheckedClassNames),r.checkedClassNames&&e.classList.add(...r.checkedClassNames)):(e.checked=!1,r.checkedClassNames&&e.classList.remove(...r.checkedClassNames),r.uncheckedClassNames&&e.classList.add(...r.uncheckedClassNames))},o=function(e){setTimeout(()=>{var t=e.querySelector("input."+r.className);t instanceof HTMLInputElement&&i(t,e.classList.contains("selected"))},1)};t.hook("after","setupTemplates",()=>{var e=t.settings.render.option;t.settings.render.option=(n,o)=>{var s=(e=>{if(e.jquery)return e[0];if(e instanceof HTMLElement)return e;if(me(e)){var t=document.createElement("template");return t.innerHTML=e.trim(),t.content.firstChild}return document.querySelector(e)})(e.call(t,n,o)),a=document.createElement("input");r.className&&a.classList.add(r.className),a.addEventListener("click",function(e){he(e)}),a.type="checkbox";const l=null==(c=n[t.settings.valueField])?null:pe(c);var c;return i(a,!!(l&&t.items.indexOf(l)>-1)),s.prepend(a),s}}),t.on("item_remove",e=>{var n=t.getOption(e);n&&(n.classList.remove("selected"),o(n))}),t.on("item_add",e=>{var n=t.getOption(e);n&&o(n)}),t.hook("instead","onOptionSelect",(e,r)=>{if(r.classList.contains("selected"))return r.classList.remove("selected"),t.removeItem(r.dataset.value),t.refreshOptions(),void he(e,!0);n.call(t,e,r),o(r)})}),fe.define("clear_button",function(e){const t=this,n=Object.assign({className:"clear-button",title:"Clear All",role:"button",tabindex:0,html:e=>`<div class="${e.className}" title="${e.title}" role="${e.role}" tabindex="${e.tabindex}">×</div>`},e);t.on("initialize",()=>{var e=(e=>{if(e.jquery)return e[0];if(e instanceof HTMLElement)return e;if(ve(e)){var t=document.createElement("template");return t.innerHTML=e.trim(),t.content.firstChild}return document.querySelector(e)})(n.html(n));e.addEventListener("click",e=>{t.isLocked||(t.clear(),"single"===t.settings.mode&&t.settings.allowEmptyOption&&t.addItem(""),t.refreshOptions(!1),e.preventDefault(),e.stopPropagation())}),t.control.appendChild(e)})}),fe.define("drag_drop",function(){var e=this;if("multi"!==e.settings.mode)return;var t=e.lock,n=e.unlock;let r,i=!0;e.hook("after","setupTemplates",()=>{var t=e.settings.render.item;e.settings.render.item=(n,o)=>{const s=(e=>{if(e.jquery)return e[0];if(e instanceof HTMLElement)return e;if(ye(e)){var t=document.createElement("template");return t.innerHTML=e.trim(),t.content.firstChild}return document.querySelector(e)})(t.call(e,n,o));be(s,{draggable:"true"});const a=e=>{e.preventDefault(),s.classList.add("ts-drag-over"),l(s,r)},l=(e,t)=>
25{var n,r,i;void 0!==t&&(((e,t)=>{do{var n;if(e==(t=null==(n=t)?void 0:n.previousElementSibling))return!0}while(t&&t.previousElementSibling);return!1})(t,s)?(r=t,null==(i=(n=e).parentNode)||i.insertBefore(r,n.nextSibling)):((e,t)=>{var n;null==(n=e.parentNode)||n.insertBefore(t,e)})(e,t))};return ge(s,"mousedown",e=>{i||((e,t=!1)=>{e&&(e.preventDefault(),t&&e.stopPropagation())})(e),e.stopPropagation()}),ge(s,"dragstart",e=>{r=s,setTimeout(()=>{s.classList.add("ts-dragging")},0)}),ge(s,"dragenter",a),ge(s,"dragover",a),ge(s,"dragleave",()=>{s.classList.remove("ts-drag-over")}),ge(s,"dragend",()=>{var t;document.querySelectorAll(".ts-drag-over").forEach(e=>e.classList.remove("ts-drag-over")),null==(t=r)||t.classList.remove("ts-dragging"),r=void 0;var n=[];e.control.querySelectorAll("[data-value]").forEach(e=>{if(e.dataset.value){let t=e.dataset.value;t&&n.push(t)}}),e.setValue(n)}),s}}),e.hook("instead","lock",()=>(i=!1,t.call(e))),e.hook("instead","unlock",()=>(i=!0,n.call(e)))}),fe.define("dropdown_header",function(e){const t=this,n=Object.assign({title:"Untitled",headerClass:"dropdown-header",titleRowClass:"dropdown-header-title",labelClass:"dropdown-header-label",closeClass:"dropdown-header-close",html:e=>'<div class="'+e.headerClass+'"><div class="'+e.titleRowClass+'"><span class="'+e.labelClass+'">'+e.title+'</span><a class="'+e.closeClass+'">×</a></div></div>'},e);t.on("initialize",()=>{var e=(e=>{if(e.jquery)return e[0];if(e instanceof HTMLElement)return e;if(we(e)){var t=document.createElement("template");return t.innerHTML=e.trim(),t.content.firstChild}return document.querySelector(e)})(n.html(n)),r=e.querySelector("."+n.closeClass);r&&r.addEventListener("click",e=>{((e,t=!1)=>{e&&(e.preventDefault(),t&&e.stopPropagation())})(e,!0),t.close()}),t.dropdown.insertBefore(e,t.dropdown.firstChild)})}),fe.define("caret_position",function(){var e=this;e.hook("instead","setCaret",t=>{"single"!==e.settings.mode&&e.control.contains(e.control_input)?(t=Math.max(0,Math.min(e.items.length,t)))==e.caretPos||e.isPending||e.controlChildren().forEac
25h((n,r)=>{r<t?e.control_input.insertAdjacentElement("beforebegin",n):e.control.appendChild(n)}):t=e.items.length,e.caretPos=t}),e.hook("instead","moveCaret",t=>{if(!e.isFocused)return;const n=e.getLastActive(t);if(n){const r=((e,t)=>{if(!e)return-1;t=t||e.nodeName;for(var n=0;e=e.previousElementSibling;)e.matches(t)&&n++;return n})(n);e.setCaret(t>0?r+1:r),e.setActiveItem(),((e,...t)=>{var n=Ee(t);(e=Se(e)).map(e=>{n.map(t=>{e.classList.remove(t)})})})(n,"last-active")}else e.setCaret(e.caretPos+t)})}),fe.define("dropdown_input",function(){const e=this;e.settings.shouldOpen=!0,e.hook("before","setup",()=>{var t;e.focus_node=e.control,((e,...t)=>{var n=Te(t);(e=ke(e)).map(e=>{n.map(t=>{e.classList.add(t)})})})(e.control_input,"dropdown-input");const n=xe('<div class="dropdown-input-wrap">');n.append(e.control_input),e.dropdown.insertBefore(n,e.dropdown.firstChild);const r=xe('<input class="items-placeholder" tabindex="-1" />');r.placeholder=e.settings.placeholder||"",e.control.append(r);const i=null==(t=e.input)?void 0:t.getAttribute("aria-label");i&&r.setAttribute("aria-label",i)}),e.on("initialize",()=>{e.control_input.addEventListener("keydown",t=>{switch(t.keyCode){case 27:return e.isOpen&&(((e,t=!1)=>{e&&(e.preventDefault(),t&&e.stopPropagation())})(t,!0),e.close()),void e.clearActiveItems();case 9:e.focus_node.tabIndex=-1}return e.onKeyDown.call(e,t)}),e.on("blur",()=>{e.focus_node.tabIndex=e.isDisabled?-1:e.tabIndex}),e.on("dropdown_open",()=>{e.control_input.focus()});const t=e.onBlur;var n,r,i,o;e.hook("instead","onBlur",n=>{if(!n||n.relatedTarget!=e.control_input)return t.call(e)}),n=e.control_input,r="blur",i=()=>e.onBlur(),n.addEventListener(r,i,o),e.hook("before","close",()=>{e.isOpen&&e.focus_node.focus({preventScroll:!0})})})}),fe.define("input_autogrow",function(){var e=this;e.on("initialize",()=>{var t=document.createElement("span"),n=e.control_input;t.style.cssText="position:absolute; top:-99999px; left:-99999px; width:auto; padding:0; white-space:pre; ",e.wrapper.appendChild(t);for(const e of["letterSpacing","fontSize","fontFamily","fontWeight","textTransform"])t.style[e]=n.style[e];var r=()=>{t.textContent=n.value,n.style.width=t.clientWidth+"px"};r(),e.on("update item_add item_remove",r),Ce(n,"input",r),Ce(n,"keyup",r),Ce(n,"blur",r),Ce(n,"update",r)})}),fe.define("no_backspace_delete",function(){var e=this,t=e.deleteSelection;this.hook("instead","deleteSelection",n=>!!e.activeItems.length&&t.call(e,n))}),fe.define("no_active_items",function(){this.hook("instead","setActiveItem",()=>{}),this.hook("instead","selectAll",()=>{})}),fe.define("optgroup_columns",function(){var e=this,t=e.onKeyDown;e.hook("instead","onKeyDown",n=>{var r,i,o,s;if(!e.isOpen||37!==n.keyCode&&39!==n.keyCode)return t.call(e,n);e.ignoreHover=!0,s=((e,t)=>{for(;e&&e.matches;){if(e.matches(t))return e;e=e.parentNode}})(e.activeOption,"[data-group]"),r=((e,t)=>{if(!e)return-1;t=t||e.nodeName;for(var n=0;e=e.previousElementSibling;)e.matches(t)&&n++;return n})(e.activeOption,"[data-selectable]"),s&&(s=37===n.keyCode?s.previousSibling:s.nextSibling)&&(i=(o=s.querySelectorAll("[data-selectable]"))[Math.min(o.length-1,r)])&&e.setActiveOption(i)})}),fe.define("remove_button",function(e){const t=this,n=Object.assign({label:"Ã",title:"Remove",className:"remove",tabindex:-1,role:"button",html:e=>{var t;const n=document.createElement("div");return n.className=e.className||"",n.title=e.title||"",n.setAttribute("role",e.role||"button"),n.tabIndex=null!=(t=e.tabindex)?t:-1,n.textContent=e.label||"",n}},e);t.hook("after","setupTemplates",()=>{var e=t.settings.render.item;t.settings.render.item=(r,i)=>{var o=Pe(e.call(t,r,i)),s=Pe(n.html(n));return o.appendChild(s),_e(s,"mousedown",e=>{Ae(e,!0)}),_e(s,"click",e=>{t.isLocked||(Ae(e,!0),t.isLocked||t.shouldDelete([o],e)&&(t.removeItem(o),t.refreshOptions(!1),t.inputState()))}),o}})}),fe.define("restore_on_backspace",function(e){const t=this,n=Object.assign({text:e=>e[t.settings.labelField]},e);t.on("item_remove",function(e){if(t.isFocused&&""===t.control_input.value.trim()){var r=t.options[e];r&&t.setTextboxValue(n.text.call(t,r))}})}),fe.define("virtual_scroll",function(){const e=this,t=e.canLoad,n=e.clearActiveOption,r=e.loadCallback;var i,o,s,a={},l=!1,c=[],u=!1,d=[],f=[];if(e.settings.shouldLoadMore||(e.settings.shouldLoadMore=()=>{if(i.clientHeight/(i.scrollHeight-i.scrollTop)>.9)return!0;
25if(e.activeOption){var t=e.selectable();if(Array.from(t).indexOf(e.activeOption)>=t.length-2)return!0}return!1}),!e.settings.firstUrl)throw"virtual_scroll plugin requires a firstUrl() method";e.settings.sortField=[{field:"$order"},{field:"$score"}];const p=t=>!(null!==e.settings.maxOptions&&"number"==typeof e.settings.maxOptions&&i.children.length>=e.settings.maxOptions)&&!(!(t in a)||!a[t]),h=(t,n)=>e.items.indexOf(n)>=0||c.indexOf(n)>=0;e.setNextUrl=(e,t)=>{a[e]=t},e.getUrl=t=>{if(t in a){const e=a[t];return a[t]=!1,e}return e.clearPagination(),e.settings.firstUrl.call(e,t)},e.clearPagination=()=>{a={}},e.hook("instead","clearActiveOption",()=>{if(!l)return n.call(e)}),e.hook("instead","canLoad",n=>n in a?p(n):t.call(e,n)),e.hook("instead","loadCallback",(t,n)=>{if(l){if(o){const n=t[0];void 0!==n&&(o.dataset.value=n[e.settings.valueField])}}else{const t=""!==e.lastValue?(t,n)=>e.items.indexOf(n)>=0||f.indexOf(n)>=0:h;e.clearOptions(t)}r.call(e,t,n),l||u||(u=!0,""===e.lastValue&&(c=Object.keys(e.options),s=a[""],d=Object.values(e.options))),l=!1}),e.hook("before","refreshOptions",()=>{e.activeOption&&"option"!==e.activeOption.getAttribute("role")&&e.setActiveOption(e.activeOption.previousElementSibling)}),e.hook("after","refreshOptions",()=>{const t=e.lastValue;var n;p(t)?(n=e.render("loading_more",{query:t}))&&(n.setAttribute("data-selectable",""),o=n):t in a&&!i.querySelector(".no-results")&&(n=e.render("no_more_results",{query:t})),n&&(((e,...t)=>{var n=je(t);(e=Me(e)).map(e=>{n.map(t=>{e.classList.add(t)})})})(n,e.settings.optionClass),i.append(n))});const m=()=>{u&&(e.addOptions(d),e.clearOptions(h),s&&(a[""]=s))};e.on("type",t=>{""===t&&(m(),e.refreshOptions(!1))}),e.on("dropdown_close",m),e.on("initialize",()=>{f=Object.keys(e.options),c=Object.keys(e.options),i=e.dropdown_content,e.settings.render=Object.assign({},{loading_more:()=>'<div class="loading-more-results">Loading more results ... </div>',no_more_results:()=>'<div class="no-more-results">No more results</div>'},e.settings.render),i.addEventListener("scroll",()=>{e.settings.shouldLoadMore.call(e)&&p(e.lastValue)&&(l||(l=!0,e.load.call(e,e.lastValue)))})})});const Re=fe}},e=>{var t;t=4316,e(e.s=t)}]);
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.