(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const l of i)if(l.type==="childList")for(const o of l.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const l={};return i.integrity&&(l.integrity=i.integrity),i.referrerPolicy&&(l.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?l.credentials="include":i.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function r(i){if(i.ep)return;i.ep=!0;const l=n(i);fetch(i.href,l)}})();var nl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Zs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Pf={exports:{}},bl={},If={exports:{}},q={};/** * @license React * react.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var ci=Symbol.for("react.element"),Yh=Symbol.for("react.portal"),Xh=Symbol.for("react.fragment"),Kh=Symbol.for("react.strict_mode"),Zh=Symbol.for("react.profiler"),Jh=Symbol.for("react.provider"),em=Symbol.for("react.context"),tm=Symbol.for("react.forward_ref"),nm=Symbol.for("react.suspense"),rm=Symbol.for("react.memo"),im=Symbol.for("react.lazy"),yu=Symbol.iterator;function lm(e){return e===null||typeof e!="object"?null:(e=yu&&e[yu]||e["@@iterator"],typeof e=="function"?e:null)}var Lf={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},zf=Object.assign,_f={};function fr(e,t,n){this.props=e,this.context=t,this.refs=_f,this.updater=n||Lf}fr.prototype.isReactComponent={};fr.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};fr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Mf(){}Mf.prototype=fr.prototype;function Js(e,t,n){this.props=e,this.context=t,this.refs=_f,this.updater=n||Lf}var ea=Js.prototype=new Mf;ea.constructor=Js;zf(ea,fr.prototype);ea.isPureReactComponent=!0;var vu=Array.isArray,Nf=Object.prototype.hasOwnProperty,ta={current:null},Of={key:!0,ref:!0,__self:!0,__source:!0};function bf(e,t,n){var r,i={},l=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(l=""+t.key),t)Nf.call(t,r)&&!Of.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(1>>1,Z=D[Q];if(0>>1;Qi(st,w))lei(gt,st)?(D[Q]=gt,D[le]=w,Q=le):(D[Q]=st,D[ye]=w,Q=ye);else if(lei(gt,w))D[Q]=gt,D[le]=w,Q=le;else break e}}return F}function i(D,F){var w=D.sortIndex-F.sortIndex;return w!==0?w:D.id-F.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var a=[],u=[],c=1,f=null,p=3,d=!1,y=!1,v=!1,C=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function g(D){for(var F=n(u);F!==null;){if(F.callback===null)r(u);else if(F.startTime<=D)r(u),F.sortIndex=F.expirationTime,t(a,F);else break;F=n(u)}}function x(D){if(v=!1,g(D),!y)if(n(a)!==null)y=!0,G(E);else{var F=n(u);F!==null&&ie(x,F.startTime-D)}}function E(D,F){y=!1,v&&(v=!1,m(I),I=-1),d=!0;var w=p;try{for(g(F),f=n(a);f!==null&&(!(f.expirationTime>F)||D&&!L());){var Q=f.callback;if(typeof Q=="function"){f.callback=null,p=f.priorityLevel;var Z=Q(f.expirationTime<=F);F=e.unstable_now(),typeof Z=="function"?f.callback=Z:f===n(a)&&r(a),g(F)}else r(a);f=n(a)}if(f!==null)var S=!0;else{var ye=n(u);ye!==null&&ie(x,ye.startTime-F),S=!1}return S}finally{f=null,p=w,d=!1}}var k=!1,P=null,I=-1,z=5,T=-1;function L(){return!(e.unstable_now()-TD||125Q?(D.sortIndex=w,t(u,D),n(a)===null&&D===n(u)&&(v?(m(I),I=-1):v=!0,ie(x,w-Q))):(D.sortIndex=Z,t(a,D),y||d||(y=!0,G(E))),D},e.unstable_shouldYield=L,e.unstable_wrapCallback=function(D){var F=p;return function(){var w=p;p=F;try{return D.apply(this,arguments)}finally{p=w}}}})(Ff);Rf.exports=Ff;var gm=Rf.exports;/** * @license React * react-dom.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var ym=W,Ke=gm;function b(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Go=Object.prototype.hasOwnProperty,vm=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,xu={},Su={};function wm(e){return Go.call(Su,e)?!0:Go.call(xu,e)?!1:vm.test(e)?Su[e]=!0:(xu[e]=!0,!1)}function xm(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Sm(e,t,n,r){if(t===null||typeof t>"u"||xm(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function be(e,t,n,r,i,l,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=l,this.removeEmptyString=o}var Te={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Te[e]=new be(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Te[t]=new be(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Te[e]=new be(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Te[e]=new be(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Te[e]=new be(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Te[e]=new be(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Te[e]=new be(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Te[e]=new be(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Te[e]=new be(e,5,!1,e.toLowerCase(),null,!1,!1)});var ra=/[\-:]([a-z])/g;function ia(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(ra,ia);Te[t]=new be(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(ra,ia);Te[t]=new be(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(ra,ia);Te[t]=new be(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Te[e]=new be(e,1,!1,e.toLowerCase(),null,!1,!1)});Te.xlinkHref=new be("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Te[e]=new be(e,1,!1,e.toLowerCase(),null,!0,!0)});function la(e,t,n,r){var i=Te.hasOwnProperty(t)?Te[t]:null;(i!==null?i.type!==0:r||!(2s||i[o]!==l[s]){var a=` `+i[o].replace(" at new "," at ");return e.displayName&&a.includes("")&&(a=a.replace("",e.displayName)),a}while(1<=o&&0<=s);break}}}finally{no=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?zr(e):""}function km(e){switch(e.tag){case 5:return zr(e.type);case 16:return zr("Lazy");case 13:return zr("Suspense");case 19:return zr("SuspenseList");case 0:case 2:case 15:return e=ro(e.type,!1),e;case 11:return e=ro(e.type.render,!1),e;case 1:return e=ro(e.type,!0),e;default:return""}}function Xo(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Rn:return"Fragment";case jn:return"Portal";case qo:return"Profiler";case oa:return"StrictMode";case Qo:return"Suspense";case Yo:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case $f:return(e.displayName||"Context")+".Consumer";case Vf:return(e._context.displayName||"Context")+".Provider";case sa:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case aa:return t=e.displayName||null,t!==null?t:Xo(e.type)||"Memo";case $t:t=e._payload,e=e._init;try{return Xo(e(t))}catch{}}return null}function Em(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Xo(t);case 8:return t===oa?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function rn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Uf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Cm(e){var t=Uf(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,l=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,l.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function xi(e){e._valueTracker||(e._valueTracker=Cm(e))}function Wf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Uf(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function rl(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Ko(e,t){var n=t.checked;return fe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Eu(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=rn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Gf(e,t){t=t.checked,t!=null&&la(e,"checked",t,!1)}function Zo(e,t){Gf(e,t);var n=rn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Jo(e,t.type,n):t.hasOwnProperty("defaultValue")&&Jo(e,t.type,rn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Cu(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Jo(e,t,n){(t!=="number"||rl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var _r=Array.isArray;function Yn(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=Si.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function qr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Or={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Tm=["Webkit","ms","Moz","O"];Object.keys(Or).forEach(function(e){Tm.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Or[t]=Or[e]})});function Xf(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Or.hasOwnProperty(e)&&Or[e]?(""+t).trim():t+"px"}function Kf(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Xf(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Pm=fe({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ns(e,t){if(t){if(Pm[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(b(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(b(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(b(61))}if(t.style!=null&&typeof t.style!="object")throw Error(b(62))}}function rs(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var is=null;function ua(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ls=null,Xn=null,Kn=null;function Iu(e){if(e=pi(e)){if(typeof ls!="function")throw Error(b(280));var t=e.stateNode;t&&(t=Fl(t),ls(e.stateNode,e.type,t))}}function Zf(e){Xn?Kn?Kn.push(e):Kn=[e]:Xn=e}function Jf(){if(Xn){var e=Xn,t=Kn;if(Kn=Xn=null,Iu(e),t)for(e=0;e>>=0,e===0?32:31-(jm(e)/Rm|0)|0}var ki=64,Ei=4194304;function Mr(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function sl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,l=e.pingedLanes,o=n&268435455;if(o!==0){var s=o&~i;s!==0?r=Mr(s):(l&=o,l!==0&&(r=Mr(l)))}else o=n&~i,o!==0?r=Mr(o):l!==0&&(r=Mr(l));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,l=t&-t,i>=l||i===16&&(l&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function fi(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-pt(t),e[t]=n}function $m(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Ar),Du=" ",ju=!1;function wd(e,t){switch(e){case"keyup":return gg.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function xd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Fn=!1;function vg(e,t){switch(e){case"compositionend":return xd(t);case"keypress":return t.which!==32?null:(ju=!0,Du);case"textInput":return e=t.data,e===Du&&ju?null:e;default:return null}}function wg(e,t){if(Fn)return e==="compositionend"||!ya&&wd(e,t)?(e=yd(),Ui=ha=Gt=null,Fn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Vu(n)}}function Cd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Cd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Td(){for(var e=window,t=rl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=rl(e.document)}return t}function va(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Lg(e){var t=Td(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Cd(n.ownerDocument.documentElement,n)){if(r!==null&&va(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,l=Math.min(r.start,i);r=r.end===void 0?l:Math.min(r.end,i),!e.extend&&l>r&&(i=r,r=l,l=i),i=$u(n,l);var o=$u(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),l>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Bn=null,fs=null,jr=null,ds=!1;function Hu(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ds||Bn==null||Bn!==rl(r)||(r=Bn,"selectionStart"in r&&va(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),jr&&Jr(jr,r)||(jr=r,r=cl(fs,"onSelect"),0Hn||(e.current=vs[Hn],vs[Hn]=null,Hn--)}function ne(e,t){Hn++,vs[Hn]=e.current,e.current=t}var ln={},ze=sn(ln),Fe=sn(!1),xn=ln;function lr(e,t){var n=e.type.contextTypes;if(!n)return ln;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},l;for(l in n)i[l]=t[l];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Be(e){return e=e.childContextTypes,e!=null}function dl(){se(Fe),se(ze)}function Xu(e,t,n){if(ze.current!==ln)throw Error(b(168));ne(ze,t),ne(Fe,n)}function bd(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(b(108,Em(e)||"Unknown",i));return fe({},n,r)}function pl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ln,xn=ze.current,ne(ze,e),ne(Fe,Fe.current),!0}function Ku(e,t,n){var r=e.stateNode;if(!r)throw Error(b(169));n?(e=bd(e,t,xn),r.__reactInternalMemoizedMergedChildContext=e,se(Fe),se(ze),ne(ze,e)):se(Fe),ne(Fe,n)}var _t=null,Bl=!1,vo=!1;function Ad(e){_t===null?_t=[e]:_t.push(e)}function Bg(e){Bl=!0,Ad(e)}function an(){if(!vo&&_t!==null){vo=!0;var e=0,t=J;try{var n=_t;for(J=1;e>=o,i-=o,Mt=1<<32-pt(t)+i|n<I?(z=P,P=null):z=P.sibling;var T=p(m,P,g[I],x);if(T===null){P===null&&(P=z);break}e&&P&&T.alternate===null&&t(m,P),h=l(T,h,I),k===null?E=T:k.sibling=T,k=T,P=z}if(I===g.length)return n(m,P),ae&&dn(m,I),E;if(P===null){for(;II?(z=P,P=null):z=P.sibling;var L=p(m,P,T.value,x);if(L===null){P===null&&(P=z);break}e&&P&&L.alternate===null&&t(m,P),h=l(L,h,I),k===null?E=L:k.sibling=L,k=L,P=z}if(T.done)return n(m,P),ae&&dn(m,I),E;if(P===null){for(;!T.done;I++,T=g.next())T=f(m,T.value,x),T!==null&&(h=l(T,h,I),k===null?E=T:k.sibling=T,k=T);return ae&&dn(m,I),E}for(P=r(m,P);!T.done;I++,T=g.next())T=d(P,m,I,T.value,x),T!==null&&(e&&T.alternate!==null&&P.delete(T.key===null?I:T.key),h=l(T,h,I),k===null?E=T:k.sibling=T,k=T);return e&&P.forEach(function(N){return t(m,N)}),ae&&dn(m,I),E}function C(m,h,g,x){if(typeof g=="object"&&g!==null&&g.type===Rn&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case wi:e:{for(var E=g.key,k=h;k!==null;){if(k.key===E){if(E=g.type,E===Rn){if(k.tag===7){n(m,k.sibling),h=i(k,g.props.children),h.return=m,m=h;break e}}else if(k.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===$t&&ec(E)===k.type){n(m,k.sibling),h=i(k,g.props),h.ref=Er(m,k,g),h.return=m,m=h;break e}n(m,k);break}else t(m,k);k=k.sibling}g.type===Rn?(h=wn(g.props.children,m.mode,x,g.key),h.return=m,m=h):(x=Zi(g.type,g.key,g.props,null,m.mode,x),x.ref=Er(m,h,g),x.return=m,m=x)}return o(m);case jn:e:{for(k=g.key;h!==null;){if(h.key===k)if(h.tag===4&&h.stateNode.containerInfo===g.containerInfo&&h.stateNode.implementation===g.implementation){n(m,h.sibling),h=i(h,g.children||[]),h.return=m,m=h;break e}else{n(m,h);break}else t(m,h);h=h.sibling}h=Po(g,m.mode,x),h.return=m,m=h}return o(m);case $t:return k=g._init,C(m,h,k(g._payload),x)}if(_r(g))return y(m,h,g,x);if(vr(g))return v(m,h,g,x);_i(m,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,h!==null&&h.tag===6?(n(m,h.sibling),h=i(h,g),h.return=m,m=h):(n(m,h),h=To(g,m.mode,x),h.return=m,m=h),o(m)):n(m,h)}return C}var sr=Fd(!0),Bd=Fd(!1),gl=sn(null),yl=null,Gn=null,ka=null;function Ea(){ka=Gn=yl=null}function Ca(e){var t=gl.current;se(gl),e._currentValue=t}function Ss(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Jn(e,t){yl=e,ka=Gn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Re=!0),e.firstContext=null)}function lt(e){var t=e._currentValue;if(ka!==e)if(e={context:e,memoizedValue:t,next:null},Gn===null){if(yl===null)throw Error(b(308));Gn=e,yl.dependencies={lanes:0,firstContext:e}}else Gn=Gn.next=e;return t}var gn=null;function Ta(e){gn===null?gn=[e]:gn.push(e)}function Vd(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,Ta(t)):(n.next=i.next,i.next=n),t.interleaved=n,Dt(e,r)}function Dt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Ht=!1;function Pa(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function $d(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ot(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Jt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,X&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Dt(e,n)}return i=r.interleaved,i===null?(t.next=t,Ta(r)):(t.next=i.next,i.next=t),r.interleaved=t,Dt(e,n)}function Gi(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,fa(e,n)}}function tc(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,l=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};l===null?i=l=o:l=l.next=o,n=n.next}while(n!==null);l===null?i=l=t:l=l.next=t}else i=l=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:l,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function vl(e,t,n,r){var i=e.updateQueue;Ht=!1;var l=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var a=s,u=a.next;a.next=null,o===null?l=u:o.next=u,o=a;var c=e.alternate;c!==null&&(c=c.updateQueue,s=c.lastBaseUpdate,s!==o&&(s===null?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=a))}if(l!==null){var f=i.baseState;o=0,c=u=a=null,s=l;do{var p=s.lane,d=s.eventTime;if((r&p)===p){c!==null&&(c=c.next={eventTime:d,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var y=e,v=s;switch(p=t,d=n,v.tag){case 1:if(y=v.payload,typeof y=="function"){f=y.call(d,f,p);break e}f=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=v.payload,p=typeof y=="function"?y.call(d,f,p):y,p==null)break e;f=fe({},f,p);break e;case 2:Ht=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,p=i.effects,p===null?i.effects=[s]:p.push(s))}else d={eventTime:d,lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},c===null?(u=c=d,a=f):c=c.next=d,o|=p;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(!0);if(c===null&&(a=f),i.baseState=a,i.firstBaseUpdate=u,i.lastBaseUpdate=c,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else l===null&&(i.shared.lanes=0);En|=o,e.lanes=o,e.memoizedState=f}}function nc(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=xo.transition;xo.transition={};try{e(!1),t()}finally{J=n,xo.transition=r}}function lp(){return ot().memoizedState}function Ug(e,t,n){var r=tn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},op(e))sp(t,n);else if(n=Vd(e,t,n,r),n!==null){var i=Ne();ht(n,e,r,i),ap(n,t,r)}}function Wg(e,t,n){var r=tn(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(op(e))sp(t,i);else{var l=e.alternate;if(e.lanes===0&&(l===null||l.lanes===0)&&(l=t.lastRenderedReducer,l!==null))try{var o=t.lastRenderedState,s=l(o,n);if(i.hasEagerState=!0,i.eagerState=s,mt(s,o)){var a=t.interleaved;a===null?(i.next=i,Ta(t)):(i.next=a.next,a.next=i),t.interleaved=i;return}}catch{}finally{}n=Vd(e,t,i,r),n!==null&&(i=Ne(),ht(n,e,r,i),ap(n,t,r))}}function op(e){var t=e.alternate;return e===ce||t!==null&&t===ce}function sp(e,t){Rr=xl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ap(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,fa(e,n)}}var Sl={readContext:lt,useCallback:Pe,useContext:Pe,useEffect:Pe,useImperativeHandle:Pe,useInsertionEffect:Pe,useLayoutEffect:Pe,useMemo:Pe,useReducer:Pe,useRef:Pe,useState:Pe,useDebugValue:Pe,useDeferredValue:Pe,useTransition:Pe,useMutableSource:Pe,useSyncExternalStore:Pe,useId:Pe,unstable_isNewReconciler:!1},Gg={readContext:lt,useCallback:function(e,t){return vt().memoizedState=[e,t===void 0?null:t],e},useContext:lt,useEffect:ic,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Qi(4194308,4,ep.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Qi(4194308,4,e,t)},useInsertionEffect:function(e,t){return Qi(4,2,e,t)},useMemo:function(e,t){var n=vt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=vt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Ug.bind(null,ce,e),[r.memoizedState,e]},useRef:function(e){var t=vt();return e={current:e},t.memoizedState=e},useState:rc,useDebugValue:ba,useDeferredValue:function(e){return vt().memoizedState=e},useTransition:function(){var e=rc(!1),t=e[0];return e=Hg.bind(null,e[1]),vt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ce,i=vt();if(ae){if(n===void 0)throw Error(b(407));n=n()}else{if(n=t(),ke===null)throw Error(b(349));kn&30||Gd(r,t,n)}i.memoizedState=n;var l={value:n,getSnapshot:t};return i.queue=l,ic(Qd.bind(null,r,l,e),[e]),r.flags|=2048,si(9,qd.bind(null,r,l,n,t),void 0,null),n},useId:function(){var e=vt(),t=ke.identifierPrefix;if(ae){var n=Nt,r=Mt;n=(r&~(1<<32-pt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=li++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[xt]=t,e[ni]=r,vp(e,t,!1,!1),t.stateNode=e;e:{switch(o=rs(n,r),n){case"dialog":oe("cancel",e),oe("close",e),i=r;break;case"iframe":case"object":case"embed":oe("load",e),i=r;break;case"video":case"audio":for(i=0;icr&&(t.flags|=128,r=!0,Cr(l,!1),t.lanes=4194304)}else{if(!r)if(e=wl(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Cr(l,!0),l.tail===null&&l.tailMode==="hidden"&&!o.alternate&&!ae)return Ie(t),null}else 2*pe()-l.renderingStartTime>cr&&n!==1073741824&&(t.flags|=128,r=!0,Cr(l,!1),t.lanes=4194304);l.isBackwards?(o.sibling=t.child,t.child=o):(n=l.last,n!==null?n.sibling=o:t.child=o,l.last=o)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=pe(),t.sibling=null,n=ue.current,ne(ue,r?n&1|2:n&1),t):(Ie(t),null);case 22:case 23:return Ba(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ge&1073741824&&(Ie(t),t.subtreeFlags&6&&(t.flags|=8192)):Ie(t),null;case 24:return null;case 25:return null}throw Error(b(156,t.tag))}function ey(e,t){switch(xa(t),t.tag){case 1:return Be(t.type)&&dl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ar(),se(Fe),se(ze),za(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return La(t),null;case 13:if(se(ue),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(b(340));or()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return se(ue),null;case 4:return ar(),null;case 10:return Ca(t.type._context),null;case 22:case 23:return Ba(),null;case 24:return null;default:return null}}var Ni=!1,Le=!1,ty=typeof WeakSet=="function"?WeakSet:Set,V=null;function qn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){de(e,t,r)}else n.current=null}function _s(e,t,n){try{n()}catch(r){de(e,t,r)}}var mc=!1;function ny(e,t){if(ps=al,e=Td(),va(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,l=r.focusNode;r=r.focusOffset;try{n.nodeType,l.nodeType}catch{n=null;break e}var o=0,s=-1,a=-1,u=0,c=0,f=e,p=null;t:for(;;){for(var d;f!==n||i!==0&&f.nodeType!==3||(s=o+i),f!==l||r!==0&&f.nodeType!==3||(a=o+r),f.nodeType===3&&(o+=f.nodeValue.length),(d=f.firstChild)!==null;)p=f,f=d;for(;;){if(f===e)break t;if(p===n&&++u===i&&(s=o),p===l&&++c===r&&(a=o),(d=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=d}n=s===-1||a===-1?null:{start:s,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(hs={focusedElem:e,selectionRange:n},al=!1,V=t;V!==null;)if(t=V,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,V=e;else for(;V!==null;){t=V;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var v=y.memoizedProps,C=y.memoizedState,m=t.stateNode,h=m.getSnapshotBeforeUpdate(t.elementType===t.type?v:ct(t.type,v),C);m.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var g=t.stateNode.containerInfo;g.nodeType===1?g.textContent="":g.nodeType===9&&g.documentElement&&g.removeChild(g.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(b(163))}}catch(x){de(t,t.return,x)}if(e=t.sibling,e!==null){e.return=t.return,V=e;break}V=t.return}return y=mc,mc=!1,y}function Fr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var l=i.destroy;i.destroy=void 0,l!==void 0&&_s(t,n,l)}i=i.next}while(i!==r)}}function Hl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Ms(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Sp(e){var t=e.alternate;t!==null&&(e.alternate=null,Sp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[xt],delete t[ni],delete t[ys],delete t[Rg],delete t[Fg])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function kp(e){return e.tag===5||e.tag===3||e.tag===4}function gc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||kp(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Ns(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=fl));else if(r!==4&&(e=e.child,e!==null))for(Ns(e,t,n),e=e.sibling;e!==null;)Ns(e,t,n),e=e.sibling}function Os(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Os(e,t,n),e=e.sibling;e!==null;)Os(e,t,n),e=e.sibling}var Ee=null,ft=!1;function Bt(e,t,n){for(n=n.child;n!==null;)Ep(e,t,n),n=n.sibling}function Ep(e,t,n){if(Et&&typeof Et.onCommitFiberUnmount=="function")try{Et.onCommitFiberUnmount(Al,n)}catch{}switch(n.tag){case 5:Le||qn(n,t);case 6:var r=Ee,i=ft;Ee=null,Bt(e,t,n),Ee=r,ft=i,Ee!==null&&(ft?(e=Ee,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ee.removeChild(n.stateNode));break;case 18:Ee!==null&&(ft?(e=Ee,n=n.stateNode,e.nodeType===8?yo(e.parentNode,n):e.nodeType===1&&yo(e,n),Kr(e)):yo(Ee,n.stateNode));break;case 4:r=Ee,i=ft,Ee=n.stateNode.containerInfo,ft=!0,Bt(e,t,n),Ee=r,ft=i;break;case 0:case 11:case 14:case 15:if(!Le&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var l=i,o=l.destroy;l=l.tag,o!==void 0&&(l&2||l&4)&&_s(n,t,o),i=i.next}while(i!==r)}Bt(e,t,n);break;case 1:if(!Le&&(qn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){de(n,t,s)}Bt(e,t,n);break;case 21:Bt(e,t,n);break;case 22:n.mode&1?(Le=(r=Le)||n.memoizedState!==null,Bt(e,t,n),Le=r):Bt(e,t,n);break;default:Bt(e,t,n)}}function yc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new ty),t.forEach(function(r){var i=fy.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function ut(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=o),r&=~l}if(r=i,r=pe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*iy(r/1960))-r,10e?16:e,qt===null)var r=!1;else{if(e=qt,qt=null,Cl=0,X&6)throw Error(b(331));var i=X;for(X|=4,V=e.current;V!==null;){var l=V,o=l.child;if(V.flags&16){var s=l.deletions;if(s!==null){for(var a=0;ape()-Ra?vn(e,0):ja|=n),Ve(e,t)}function Mp(e,t){t===0&&(e.mode&1?(t=Ei,Ei<<=1,!(Ei&130023424)&&(Ei=4194304)):t=1);var n=Ne();e=Dt(e,t),e!==null&&(fi(e,t,n),Ve(e,n))}function cy(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Mp(e,n)}function fy(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(b(314))}r!==null&&r.delete(t),Mp(e,n)}var Np;Np=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Fe.current)Re=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Re=!1,Zg(e,t,n);Re=!!(e.flags&131072)}else Re=!1,ae&&t.flags&1048576&&Dd(t,ml,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Yi(e,t),e=t.pendingProps;var i=lr(t,ze.current);Jn(t,n),i=Ma(null,t,r,e,i,n);var l=Na();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Be(r)?(l=!0,pl(t)):l=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Pa(t),i.updater=$l,t.stateNode=i,i._reactInternals=t,Es(t,r,e,n),t=Ps(null,t,r,!0,l,n)):(t.tag=0,ae&&l&&wa(t),Me(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Yi(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=py(r),e=ct(r,e),i){case 0:t=Ts(null,t,r,e,n);break e;case 1:t=dc(null,t,r,e,n);break e;case 11:t=cc(null,t,r,e,n);break e;case 14:t=fc(null,t,r,ct(r.type,e),n);break e}throw Error(b(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ct(r,i),Ts(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ct(r,i),dc(e,t,r,i,n);case 3:e:{if(mp(t),e===null)throw Error(b(387));r=t.pendingProps,l=t.memoizedState,i=l.element,$d(e,t),vl(t,r,null,n);var o=t.memoizedState;if(r=o.element,l.isDehydrated)if(l={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=l,t.memoizedState=l,t.flags&256){i=ur(Error(b(423)),t),t=pc(e,t,r,n,i);break e}else if(r!==i){i=ur(Error(b(424)),t),t=pc(e,t,r,n,i);break e}else for(Qe=Zt(t.stateNode.containerInfo.firstChild),Xe=t,ae=!0,dt=null,n=Bd(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(or(),r===i){t=jt(e,t,n);break e}Me(e,t,r,n)}t=t.child}return t;case 5:return Hd(t),e===null&&xs(t),r=t.type,i=t.pendingProps,l=e!==null?e.memoizedProps:null,o=i.children,ms(r,i)?o=null:l!==null&&ms(r,l)&&(t.flags|=32),hp(e,t),Me(e,t,o,n),t.child;case 6:return e===null&&xs(t),null;case 13:return gp(e,t,n);case 4:return Ia(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=sr(t,null,r,n):Me(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ct(r,i),cc(e,t,r,i,n);case 7:return Me(e,t,t.pendingProps,n),t.child;case 8:return Me(e,t,t.pendingProps.children,n),t.child;case 12:return Me(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,l=t.memoizedProps,o=i.value,ne(gl,r._currentValue),r._currentValue=o,l!==null)if(mt(l.value,o)){if(l.children===i.children&&!Fe.current){t=jt(e,t,n);break e}}else for(l=t.child,l!==null&&(l.return=t);l!==null;){var s=l.dependencies;if(s!==null){o=l.child;for(var a=s.firstContext;a!==null;){if(a.context===r){if(l.tag===1){a=Ot(-1,n&-n),a.tag=2;var u=l.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?a.next=a:(a.next=c.next,c.next=a),u.pending=a}}l.lanes|=n,a=l.alternate,a!==null&&(a.lanes|=n),Ss(l.return,n,t),s.lanes|=n;break}a=a.next}}else if(l.tag===10)o=l.type===t.type?null:l.child;else if(l.tag===18){if(o=l.return,o===null)throw Error(b(341));o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),Ss(o,n,t),o=l.sibling}else o=l.child;if(o!==null)o.return=l;else for(o=l;o!==null;){if(o===t){o=null;break}if(l=o.sibling,l!==null){l.return=o.return,o=l;break}o=o.return}l=o}Me(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Jn(t,n),i=lt(i),r=r(i),t.flags|=1,Me(e,t,r,n),t.child;case 14:return r=t.type,i=ct(r,t.pendingProps),i=ct(r.type,i),fc(e,t,r,i,n);case 15:return dp(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ct(r,i),Yi(e,t),t.tag=1,Be(r)?(e=!0,pl(t)):e=!1,Jn(t,n),up(t,r,i),Es(t,r,i,n),Ps(null,t,r,!0,e,n);case 19:return yp(e,t,n);case 22:return pp(e,t,n)}throw Error(b(156,t.tag))};function Op(e,t){return od(e,t)}function dy(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function rt(e,t,n,r){return new dy(e,t,n,r)}function $a(e){return e=e.prototype,!(!e||!e.isReactComponent)}function py(e){if(typeof e=="function")return $a(e)?1:0;if(e!=null){if(e=e.$$typeof,e===sa)return 11;if(e===aa)return 14}return 2}function nn(e,t){var n=e.alternate;return n===null?(n=rt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Zi(e,t,n,r,i,l){var o=2;if(r=e,typeof e=="function")$a(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Rn:return wn(n.children,i,l,t);case oa:o=8,i|=8;break;case qo:return e=rt(12,n,t,i|2),e.elementType=qo,e.lanes=l,e;case Qo:return e=rt(13,n,t,i),e.elementType=Qo,e.lanes=l,e;case Yo:return e=rt(19,n,t,i),e.elementType=Yo,e.lanes=l,e;case Hf:return Wl(n,i,l,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Vf:o=10;break e;case $f:o=9;break e;case sa:o=11;break e;case aa:o=14;break e;case $t:o=16,r=null;break e}throw Error(b(130,e==null?e:typeof e,""))}return t=rt(o,n,t,i),t.elementType=e,t.type=r,t.lanes=l,t}function wn(e,t,n,r){return e=rt(7,e,r,t),e.lanes=n,e}function Wl(e,t,n,r){return e=rt(22,e,r,t),e.elementType=Hf,e.lanes=n,e.stateNode={isHidden:!1},e}function To(e,t,n){return e=rt(6,e,null,t),e.lanes=n,e}function Po(e,t,n){return t=rt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function hy(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=lo(0),this.expirationTimes=lo(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=lo(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Ha(e,t,n,r,i,l,o,s,a){return e=new hy(e,t,n,s,a),t===1?(t=1,l===!0&&(t|=8)):t=0,l=rt(3,null,null,t),e.current=l,l.stateNode=e,l.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Pa(l),e}function my(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(jp)}catch(e){console.error(e)}}jp(),jf.exports=Ze;var xy=jf.exports,Tc=xy;Wo.createRoot=Tc.createRoot,Wo.hydrateRoot=Tc.hydrateRoot;const Rp=()=>_.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-triangle-filled",width:"20",height:"20",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"white",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[_.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),_.jsx("path",{d:"M12 1.67a2.914 2.914 0 0 0 -2.492 1.403l-8.11 13.537a2.914 2.914 0 0 0 2.484 4.385h16.225a2.914 2.914 0 0 0 2.503 -4.371l-8.116 -13.546a2.917 2.917 0 0 0 -2.494 -1.408z",strokeWidth:"0",fill:"white"})]}),fn=({title:e,backgroundColor:t,textColor:n,titleFontSize:r,children:i,last:l})=>{const o=()=>{window.scrollTo({top:0,behavior:"smooth"})};return _.jsxs("div",{className:"relative px-40 py-10 break-words",style:{backgroundColor:t},children:[_.jsx("div",{className:`text-center font-semibold ${r?`${r}`:"text-4xl"}`,style:{color:n},children:e}),i&&_.jsx("div",{className:"text-justify text-xl pt-5 mx-auto w-[1050px]",style:{color:n,textAlignLast:"left"},children:i}),l&&_.jsxs("div",{className:"absolute rounded-lg top-1/2 right-5 h-10 flex flex-col justify-center items-center text-white text-sm cursor-pointer select-none",onClick:o,children:[_.jsx(Rp,{}),_.jsx("div",{children:"TOP"})]})]})},Sy=W.createContext({windowWidth:window.innerWidth,windowHeight:window.innerHeight});let Pc;const ky=({children:e})=>{const[t,n]=W.useState(window.innerWidth),[r,i]=W.useState(window.innerHeight),l=()=>{window.clearTimeout(Pc),Pc=window.setTimeout(()=>{n(window.innerWidth),i(window.innerHeight)},500)};return W.useEffect(()=>(window.addEventListener("resize",l),()=>{window.removeEventListener("resize",l)}),[]),_.jsx(Sy.Provider,{value:{windowWidth:t,windowHeight:r},children:e})};function Ey(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const Cy=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Ty=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Py={};function Ic(e,t){return(Py.jsx?Ty:Cy).test(e)}const Iy=/[ \t\n\f\r]/g;function Ly(e){return typeof e=="object"?e.type==="text"?Lc(e.value):!1:Lc(e)}function Lc(e){return e.replace(Iy,"")===""}class mi{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}mi.prototype.normal={};mi.prototype.property={};mi.prototype.space=void 0;function Fp(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new mi(n,r,t)}function Rs(e){return e.toLowerCase()}class He{constructor(t,n){this.attribute=n,this.property=t}}He.prototype.attribute="";He.prototype.booleanish=!1;He.prototype.boolean=!1;He.prototype.commaOrSpaceSeparated=!1;He.prototype.commaSeparated=!1;He.prototype.defined=!1;He.prototype.mustUseProperty=!1;He.prototype.number=!1;He.prototype.overloadedBoolean=!1;He.prototype.property="";He.prototype.spaceSeparated=!1;He.prototype.space=void 0;let zy=0;const U=Ln(),he=Ln(),Bp=Ln(),A=Ln(),te=Ln(),tr=Ln(),We=Ln();function Ln(){return 2**++zy}const Fs=Object.freeze(Object.defineProperty({__proto__:null,boolean:U,booleanish:he,commaOrSpaceSeparated:We,commaSeparated:tr,number:A,overloadedBoolean:Bp,spaceSeparated:te},Symbol.toStringTag,{value:"Module"})),Io=Object.keys(Fs);class qa extends He{constructor(t,n,r,i){let l=-1;if(super(t,n),zc(this,"space",i),typeof r=="number")for(;++l4&&n.slice(0,4)==="data"&&by.test(t)){if(t.charAt(4)==="-"){const l=t.slice(5).replace(_c,jy);r="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=t.slice(4);if(!_c.test(l)){let o=l.replace(Oy,Dy);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=qa}return new i(r,t)}function Dy(e){return"-"+e.toLowerCase()}function jy(e){return e.charAt(1).toUpperCase()}const Ry=Fp([Vp,_y,Up,Wp,Gp],"html"),Qa=Fp([Vp,My,Up,Wp,Gp],"svg");function Fy(e){return e.join(" ").trim()}var Ya={},Mc=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,By=/\n/g,Vy=/^\s*/,$y=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Hy=/^:\s*/,Uy=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Wy=/^[;\s]*/,Gy=/^\s+|\s+$/g,qy=` `,Nc="/",Oc="*",hn="",Qy="comment",Yy="declaration",Xy=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(y){var v=y.match(By);v&&(n+=v.length);var C=y.lastIndexOf(qy);r=~C?y.length-C:r+y.length}function l(){var y={line:n,column:r};return function(v){return v.position=new o(y),u(),v}}function o(y){this.start=y,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function s(y){var v=new Error(t.source+":"+n+":"+r+": "+y);if(v.reason=y,v.filename=t.source,v.line=n,v.column=r,v.source=e,!t.silent)throw v}function a(y){var v=y.exec(e);if(v){var C=v[0];return i(C),e=e.slice(C.length),v}}function u(){a(Vy)}function c(y){var v;for(y=y||[];v=f();)v!==!1&&y.push(v);return y}function f(){var y=l();if(!(Nc!=e.charAt(0)||Oc!=e.charAt(1))){for(var v=2;hn!=e.charAt(v)&&(Oc!=e.charAt(v)||Nc!=e.charAt(v+1));)++v;if(v+=2,hn===e.charAt(v-1))return s("End of comment missing");var C=e.slice(2,v-2);return r+=2,i(C),e=e.slice(v),r+=2,y({type:Qy,comment:C})}}function p(){var y=l(),v=a($y);if(v){if(f(),!a(Hy))return s("property missing ':'");var C=a(Uy),m=y({type:Yy,property:bc(v[0].replace(Mc,hn)),value:C?bc(C[0].replace(Mc,hn)):hn});return a(Wy),m}}function d(){var y=[];c(y);for(var v;v=p();)v!==!1&&(y.push(v),c(y));return y}return u(),d()};function bc(e){return e?e.replace(Gy,hn):hn}var Ky=nl&&nl.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ya,"__esModule",{value:!0});Ya.default=Jy;var Zy=Ky(Xy);function Jy(e,t){var n=null;if(!e||typeof e!="string")return n;var r=(0,Zy.default)(e),i=typeof t=="function";return r.forEach(function(l){if(l.type==="declaration"){var o=l.property,s=l.value;i?t(o,s,l):s&&(n=n||{},n[o]=s)}}),n}var Xl={};Object.defineProperty(Xl,"__esModule",{value:!0});Xl.camelCase=void 0;var ev=/^--[a-zA-Z0-9_-]+$/,tv=/-([a-z])/g,nv=/^[^-]+$/,rv=/^-(webkit|moz|ms|o|khtml)-/,iv=/^-(ms)-/,lv=function(e){return!e||nv.test(e)||ev.test(e)},ov=function(e,t){return t.toUpperCase()},Ac=function(e,t){return"".concat(t,"-")},sv=function(e,t){return t===void 0&&(t={}),lv(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(iv,Ac):e=e.replace(rv,Ac),e.replace(tv,ov))};Xl.camelCase=sv;var av=nl&&nl.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},uv=av(Ya),cv=Xl;function Bs(e,t){var n={};return!e||typeof e!="string"||(0,uv.default)(e,function(r,i){r&&i&&(n[(0,cv.camelCase)(r,t)]=i)}),n}Bs.default=Bs;var fv=Bs;const dv=Zs(fv),qp=Qp("end"),Xa=Qp("start");function Qp(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function pv(e){const t=Xa(e),n=qp(e);if(t&&n)return{start:t,end:n}}function $r(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Dc(e.position):"start"in e||"end"in e?Dc(e):"line"in e||"column"in e?Vs(e):""}function Vs(e){return jc(e&&e.line)+":"+jc(e&&e.column)}function Dc(e){return Vs(e&&e.start)+"-"+Vs(e&&e.end)}function jc(e){return e&&typeof e=="number"?e:1}class _e extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",l={},o=!1;if(n&&("line"in n&&"column"in n?l={place:n}:"start"in n&&"end"in n?l={place:n}:"type"in n?l={ancestors:[n],place:n.position}:l={...n}),typeof t=="string"?i=t:!l.cause&&t&&(o=!0,i=t.message,l.cause=t),!l.ruleId&&!l.source&&typeof r=="string"){const a=r.indexOf(":");a===-1?l.ruleId=r:(l.source=r.slice(0,a),l.ruleId=r.slice(a+1))}if(!l.place&&l.ancestors&&l.ancestors){const a=l.ancestors[l.ancestors.length-1];a&&(l.place=a.position)}const s=l.place&&"start"in l.place?l.place.start:l.place;this.ancestors=l.ancestors||void 0,this.cause=l.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file,this.message=i,this.line=s?s.line:void 0,this.name=$r(l.place)||"1:1",this.place=l.place||void 0,this.reason=this.message,this.ruleId=l.ruleId||void 0,this.source=l.source||void 0,this.stack=o&&l.cause&&typeof l.cause.stack=="string"?l.cause.stack:"",this.actual,this.expected,this.note,this.url}}_e.prototype.file="";_e.prototype.name="";_e.prototype.reason="";_e.prototype.message="";_e.prototype.stack="";_e.prototype.column=void 0;_e.prototype.line=void 0;_e.prototype.ancestors=void 0;_e.prototype.cause=void 0;_e.prototype.fatal=void 0;_e.prototype.place=void 0;_e.prototype.ruleId=void 0;_e.prototype.source=void 0;const Ka={}.hasOwnProperty,hv=new Map,mv=/[A-Z]/g,gv=new Set(["table","tbody","thead","tfoot","tr"]),yv=new Set(["td","th"]),Yp="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function vv(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=Pv(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=Tv(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Qa:Ry,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},l=Xp(i,e,void 0);return l&&typeof l!="string"?l:i.create(e,i.Fragment,{children:l||void 0},void 0)}function Xp(e,t,n){if(t.type==="element")return wv(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return xv(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return kv(e,t,n);if(t.type==="mdxjsEsm")return Sv(e,t);if(t.type==="root")return Ev(e,t,n);if(t.type==="text")return Cv(e,t)}function wv(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=Qa,e.schema=i),e.ancestors.push(t);const l=Zp(e,t.tagName,!1),o=Iv(e,t);let s=Ja(e,t);return gv.has(t.tagName)&&(s=s.filter(function(a){return typeof a=="string"?!Ly(a):!0})),Kp(e,o,l,t),Za(o,s),e.ancestors.pop(),e.schema=r,e.create(t,l,o,n)}function xv(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}ui(e,t.position)}function Sv(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);ui(e,t.position)}function kv(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=Qa,e.schema=i),e.ancestors.push(t);const l=t.name===null?e.Fragment:Zp(e,t.name,!0),o=Lv(e,t),s=Ja(e,t);return Kp(e,o,l,t),Za(o,s),e.ancestors.pop(),e.schema=r,e.create(t,l,o,n)}function Ev(e,t,n){const r={};return Za(r,Ja(e,t)),e.create(t,e.Fragment,r,n)}function Cv(e,t){return t.value}function Kp(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Za(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function Tv(e,t,n){return r;function r(i,l,o,s){const u=Array.isArray(o.children)?n:t;return s?u(l,o,s):u(l,o)}}function Pv(e,t){return n;function n(r,i,l,o){const s=Array.isArray(l.children),a=Xa(r);return t(i,l,o,s,{columnNumber:a?a.column-1:void 0,fileName:e,lineNumber:a?a.line:void 0},void 0)}}function Iv(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&Ka.call(t.properties,i)){const l=zv(e,i,t.properties[i]);if(l){const[o,s]=l;e.tableCellAlignToStyle&&o==="align"&&typeof s=="string"&&yv.has(t.tagName)?r=s:n[o]=s}}if(r){const l=n.style||(n.style={});l[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function Lv(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const l=r.data.estree.body[0];l.type;const o=l.expression;o.type;const s=o.properties[0];s.type,Object.assign(n,e.evaluater.evaluateExpression(s.argument))}else ui(e,t.position);else{const i=r.name;let l;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const s=r.value.data.estree.body[0];s.type,l=e.evaluater.evaluateExpression(s.expression)}else ui(e,t.position);else l=r.value===null?!0:r.value;n[i]=l}return n}function Ja(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:hv;for(;++ri?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);l0?(Tt(e,e.length,0,t),e):t}const Bc={}.hasOwnProperty;function jv(e){const t={};let n=-1;for(;++n13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function nr(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const St=un(/[A-Za-z]/),Ye=un(/[\dA-Za-z]/),Bv=un(/[#-'*+\--9=?A-Z^-~]/);function $s(e){return e!==null&&(e<32||e===127)}const Hs=un(/\d/),Vv=un(/[\dA-Fa-f]/),$v=un(/[!-/:-@[-`{-~]/);function $(e){return e!==null&&e<-2}function $e(e){return e!==null&&(e<0||e===32)}function K(e){return e===-2||e===-1||e===32}const Hv=un(new RegExp("\\p{P}|\\p{S}","u")),Uv=un(/\s/);function un(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function mr(e){const t=[];let n=-1,r=0,i=0;for(;++n55295&&l<57344){const s=e.charCodeAt(n+1);l<56320&&s>56319&&s<57344?(o=String.fromCharCode(l,s),i=1):o="�"}else o=String.fromCharCode(l);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,o=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function re(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let l=0;return o;function o(a){return K(a)?(e.enter(n),s(a)):t(a)}function s(a){return K(a)&&l++o))return;const P=t.events.length;let I=P,z,T;for(;I--;)if(t.events[I][0]==="exit"&&t.events[I][1].type==="chunkFlow"){if(z){T=t.events[I][1].end;break}z=!0}for(m(r),k=P;kg;){const E=n[x];t.containerState=E[1],E[0].exit.call(t,e)}n.length=g}function h(){i.write([null]),l=void 0,i=void 0,t.containerState._closeFlow=void 0}}function Yv(e,t,n){return re(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function $c(e){if(e===null||$e(e)||Uv(e))return 1;if(Hv(e))return 2}function tu(e,t,n){const r=[];let i=-1;for(;++i1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const f={...e[r][1].end},p={...e[n][1].start};Hc(f,-a),Hc(p,a),o={type:a>1?"strongSequence":"emphasisSequence",start:f,end:{...e[r][1].end}},s={type:a>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:p},l={type:a>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:a>1?"strong":"emphasis",start:{...o.start},end:{...s.end}},e[r][1].end={...o.start},e[n][1].start={...s.end},u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=nt(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=nt(u,[["enter",i,t],["enter",o,t],["exit",o,t],["enter",l,t]]),u=nt(u,tu(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=nt(u,[["exit",l,t],["enter",s,t],["exit",s,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(c=2,u=nt(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):c=0,Tt(e,r-1,n-r+3,u),n=r+u.length-c-2;break}}for(n=-1;++n0&&K(k)?re(e,h,"linePrefix",l+1)(k):h(k)}function h(k){return k===null||$(k)?e.check(Uc,v,x)(k):(e.enter("codeFlowValue"),g(k))}function g(k){return k===null||$(k)?(e.exit("codeFlowValue"),h(k)):(e.consume(k),g)}function x(k){return e.exit("codeFenced"),t(k)}function E(k,P,I){let z=0;return T;function T(R){return k.enter("lineEnding"),k.consume(R),k.exit("lineEnding"),L}function L(R){return k.enter("codeFencedFence"),K(R)?re(k,N,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(R):N(R)}function N(R){return R===s?(k.enter("codeFencedFenceSequence"),O(R)):I(R)}function O(R){return R===s?(z++,k.consume(R),O):z>=o?(k.exit("codeFencedFenceSequence"),K(R)?re(k,B,"whitespace")(R):B(R)):I(R)}function B(R){return R===null||$(R)?(k.exit("codeFencedFence"),P(R)):I(R)}}}function sw(e,t,n){const r=this;return i;function i(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),l)}function l(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}const zo={name:"codeIndented",tokenize:uw},aw={partial:!0,tokenize:cw};function uw(e,t,n){const r=this;return i;function i(u){return e.enter("codeIndented"),re(e,l,"linePrefix",5)(u)}function l(u){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?o(u):n(u)}function o(u){return u===null?a(u):$(u)?e.attempt(aw,o,a)(u):(e.enter("codeFlowValue"),s(u))}function s(u){return u===null||$(u)?(e.exit("codeFlowValue"),o(u)):(e.consume(u),s)}function a(u){return e.exit("codeIndented"),t(u)}}function cw(e,t,n){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?n(o):$(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):re(e,l,"linePrefix",5)(o)}function l(o){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):$(o)?i(o):n(o)}}const fw={name:"codeText",previous:pw,resolve:dw,tokenize:hw};function dw(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return tthis.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const l=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&Pr(this.left,r),l.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Pr(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Pr(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}function lh(e,t,n,r,i,l,o,s,a){const u=a||Number.POSITIVE_INFINITY;let c=0;return f;function f(m){return m===60?(e.enter(r),e.enter(i),e.enter(l),e.consume(m),e.exit(l),p):m===null||m===32||m===41||$s(m)?n(m):(e.enter(r),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),v(m))}function p(m){return m===62?(e.enter(l),e.consume(m),e.exit(l),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),d(m))}function d(m){return m===62?(e.exit("chunkString"),e.exit(s),p(m)):m===null||m===60||$(m)?n(m):(e.consume(m),m===92?y:d)}function y(m){return m===60||m===62||m===92?(e.consume(m),d):d(m)}function v(m){return!c&&(m===null||m===41||$e(m))?(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(r),t(m)):c999||d===null||d===91||d===93&&!a||d===94&&!s&&"_hiddenFootnoteSupport"in o.parser.constructs?n(d):d===93?(e.exit(l),e.enter(i),e.consume(d),e.exit(i),e.exit(r),t):$(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),f(d))}function f(d){return d===null||d===91||d===93||$(d)||s++>999?(e.exit("chunkString"),c(d)):(e.consume(d),a||(a=!K(d)),d===92?p:f)}function p(d){return d===91||d===92||d===93?(e.consume(d),s++,f):f(d)}}function sh(e,t,n,r,i,l){let o;return s;function s(p){return p===34||p===39||p===40?(e.enter(r),e.enter(i),e.consume(p),e.exit(i),o=p===40?41:p,a):n(p)}function a(p){return p===o?(e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):(e.enter(l),u(p))}function u(p){return p===o?(e.exit(l),a(o)):p===null?n(p):$(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),re(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(p))}function c(p){return p===o||p===null||$(p)?(e.exit("chunkString"),u(p)):(e.consume(p),p===92?f:c)}function f(p){return p===o||p===92?(e.consume(p),c):c(p)}}function Hr(e,t){let n;return r;function r(i){return $(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):K(i)?re(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const kw={name:"definition",tokenize:Cw},Ew={partial:!0,tokenize:Tw};function Cw(e,t,n){const r=this;let i;return l;function l(d){return e.enter("definition"),o(d)}function o(d){return oh.call(r,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(d)}function s(d){return i=nr(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),d===58?(e.enter("definitionMarker"),e.consume(d),e.exit("definitionMarker"),a):n(d)}function a(d){return $e(d)?Hr(e,u)(d):u(d)}function u(d){return lh(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(d)}function c(d){return e.attempt(Ew,f,f)(d)}function f(d){return K(d)?re(e,p,"whitespace")(d):p(d)}function p(d){return d===null||$(d)?(e.exit("definition"),r.parser.defined.push(i),t(d)):n(d)}}function Tw(e,t,n){return r;function r(s){return $e(s)?Hr(e,i)(s):n(s)}function i(s){return sh(e,l,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function l(s){return K(s)?re(e,o,"whitespace")(s):o(s)}function o(s){return s===null||$(s)?t(s):n(s)}}const Pw={name:"hardBreakEscape",tokenize:Iw};function Iw(e,t,n){return r;function r(l){return e.enter("hardBreakEscape"),e.consume(l),i}function i(l){return $(l)?(e.exit("hardBreakEscape"),t(l)):n(l)}}const Lw={name:"headingAtx",resolve:zw,tokenize:_w};function zw(e,t){let n=e.length-2,r=3,i,l;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},l={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Tt(e,r,n-r+1,[["enter",i,t],["enter",l,t],["exit",l,t],["exit",i,t]])),e}function _w(e,t,n){let r=0;return i;function i(c){return e.enter("atxHeading"),l(c)}function l(c){return e.enter("atxHeadingSequence"),o(c)}function o(c){return c===35&&r++<6?(e.consume(c),o):c===null||$e(c)?(e.exit("atxHeadingSequence"),s(c)):n(c)}function s(c){return c===35?(e.enter("atxHeadingSequence"),a(c)):c===null||$(c)?(e.exit("atxHeading"),t(c)):K(c)?re(e,s,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function a(c){return c===35?(e.consume(c),a):(e.exit("atxHeadingSequence"),s(c))}function u(c){return c===null||c===35||$e(c)?(e.exit("atxHeadingText"),s(c)):(e.consume(c),u)}}const Mw=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Gc=["pre","script","style","textarea"],Nw={concrete:!0,name:"htmlFlow",resolveTo:Aw,tokenize:Dw},Ow={partial:!0,tokenize:Rw},bw={partial:!0,tokenize:jw};function Aw(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function Dw(e,t,n){const r=this;let i,l,o,s,a;return u;function u(S){return c(S)}function c(S){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(S),f}function f(S){return S===33?(e.consume(S),p):S===47?(e.consume(S),l=!0,v):S===63?(e.consume(S),i=3,r.interrupt?t:w):St(S)?(e.consume(S),o=String.fromCharCode(S),C):n(S)}function p(S){return S===45?(e.consume(S),i=2,d):S===91?(e.consume(S),i=5,s=0,y):St(S)?(e.consume(S),i=4,r.interrupt?t:w):n(S)}function d(S){return S===45?(e.consume(S),r.interrupt?t:w):n(S)}function y(S){const ye="CDATA[";return S===ye.charCodeAt(s++)?(e.consume(S),s===ye.length?r.interrupt?t:N:y):n(S)}function v(S){return St(S)?(e.consume(S),o=String.fromCharCode(S),C):n(S)}function C(S){if(S===null||S===47||S===62||$e(S)){const ye=S===47,st=o.toLowerCase();return!ye&&!l&&Gc.includes(st)?(i=1,r.interrupt?t(S):N(S)):Mw.includes(o.toLowerCase())?(i=6,ye?(e.consume(S),m):r.interrupt?t(S):N(S)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(S):l?h(S):g(S))}return S===45||Ye(S)?(e.consume(S),o+=String.fromCharCode(S),C):n(S)}function m(S){return S===62?(e.consume(S),r.interrupt?t:N):n(S)}function h(S){return K(S)?(e.consume(S),h):T(S)}function g(S){return S===47?(e.consume(S),T):S===58||S===95||St(S)?(e.consume(S),x):K(S)?(e.consume(S),g):T(S)}function x(S){return S===45||S===46||S===58||S===95||Ye(S)?(e.consume(S),x):E(S)}function E(S){return S===61?(e.consume(S),k):K(S)?(e.consume(S),E):g(S)}function k(S){return S===null||S===60||S===61||S===62||S===96?n(S):S===34||S===39?(e.consume(S),a=S,P):K(S)?(e.consume(S),k):I(S)}function P(S){return S===a?(e.consume(S),a=null,z):S===null||$(S)?n(S):(e.consume(S),P)}function I(S){return S===null||S===34||S===39||S===47||S===60||S===61||S===62||S===96||$e(S)?E(S):(e.consume(S),I)}function z(S){return S===47||S===62||K(S)?g(S):n(S)}function T(S){return S===62?(e.consume(S),L):n(S)}function L(S){return S===null||$(S)?N(S):K(S)?(e.consume(S),L):n(S)}function N(S){return S===45&&i===2?(e.consume(S),G):S===60&&i===1?(e.consume(S),ie):S===62&&i===4?(e.consume(S),Q):S===63&&i===3?(e.consume(S),w):S===93&&i===5?(e.consume(S),F):$(S)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(Ow,Z,O)(S)):S===null||$(S)?(e.exit("htmlFlowData"),O(S)):(e.consume(S),N)}function O(S){return e.check(bw,B,Z)(S)}function B(S){return e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),R}function R(S){return S===null||$(S)?O(S):(e.enter("htmlFlowData"),N(S))}function G(S){return S===45?(e.consume(S),w):N(S)}function ie(S){return S===47?(e.consume(S),o="",D):N(S)}function D(S){if(S===62){const ye=o.toLowerCase();return Gc.includes(ye)?(e.consume(S),Q):N(S)}return St(S)&&o.length<8?(e.consume(S),o+=String.fromCharCode(S),D):N(S)}function F(S){return S===93?(e.consume(S),w):N(S)}function w(S){return S===62?(e.consume(S),Q):S===45&&i===2?(e.consume(S),w):N(S)}function Q(S){return S===null||$(S)?(e.exit("htmlFlowData"),Z(S)):(e.consume(S),Q)}function Z(S){return e.exit("htmlFlow"),t(S)}}function jw(e,t,n){const r=this;return i;function i(o){return $(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),l):n(o)}function l(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}function Rw(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Kl,t,n)}}const Fw={name:"htmlText",tokenize:Bw};function Bw(e,t,n){const r=this;let i,l,o;return s;function s(w){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(w),a}function a(w){return w===33?(e.consume(w),u):w===47?(e.consume(w),E):w===63?(e.consume(w),g):St(w)?(e.consume(w),I):n(w)}function u(w){return w===45?(e.consume(w),c):w===91?(e.consume(w),l=0,y):St(w)?(e.consume(w),h):n(w)}function c(w){return w===45?(e.consume(w),d):n(w)}function f(w){return w===null?n(w):w===45?(e.consume(w),p):$(w)?(o=f,ie(w)):(e.consume(w),f)}function p(w){return w===45?(e.consume(w),d):f(w)}function d(w){return w===62?G(w):w===45?p(w):f(w)}function y(w){const Q="CDATA[";return w===Q.charCodeAt(l++)?(e.consume(w),l===Q.length?v:y):n(w)}function v(w){return w===null?n(w):w===93?(e.consume(w),C):$(w)?(o=v,ie(w)):(e.consume(w),v)}function C(w){return w===93?(e.consume(w),m):v(w)}function m(w){return w===62?G(w):w===93?(e.consume(w),m):v(w)}function h(w){return w===null||w===62?G(w):$(w)?(o=h,ie(w)):(e.consume(w),h)}function g(w){return w===null?n(w):w===63?(e.consume(w),x):$(w)?(o=g,ie(w)):(e.consume(w),g)}function x(w){return w===62?G(w):g(w)}function E(w){return St(w)?(e.consume(w),k):n(w)}function k(w){return w===45||Ye(w)?(e.consume(w),k):P(w)}function P(w){return $(w)?(o=P,ie(w)):K(w)?(e.consume(w),P):G(w)}function I(w){return w===45||Ye(w)?(e.consume(w),I):w===47||w===62||$e(w)?z(w):n(w)}function z(w){return w===47?(e.consume(w),G):w===58||w===95||St(w)?(e.consume(w),T):$(w)?(o=z,ie(w)):K(w)?(e.consume(w),z):G(w)}function T(w){return w===45||w===46||w===58||w===95||Ye(w)?(e.consume(w),T):L(w)}function L(w){return w===61?(e.consume(w),N):$(w)?(o=L,ie(w)):K(w)?(e.consume(w),L):z(w)}function N(w){return w===null||w===60||w===61||w===62||w===96?n(w):w===34||w===39?(e.consume(w),i=w,O):$(w)?(o=N,ie(w)):K(w)?(e.consume(w),N):(e.consume(w),B)}function O(w){return w===i?(e.consume(w),i=void 0,R):w===null?n(w):$(w)?(o=O,ie(w)):(e.consume(w),O)}function B(w){return w===null||w===34||w===39||w===60||w===61||w===96?n(w):w===47||w===62||$e(w)?z(w):(e.consume(w),B)}function R(w){return w===47||w===62||$e(w)?z(w):n(w)}function G(w){return w===62?(e.consume(w),e.exit("htmlTextData"),e.exit("htmlText"),t):n(w)}function ie(w){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),D}function D(w){return K(w)?re(e,F,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(w):F(w)}function F(w){return e.enter("htmlTextData"),o(w)}}const nu={name:"labelEnd",resolveAll:Uw,resolveTo:Ww,tokenize:Gw},Vw={tokenize:qw},$w={tokenize:Qw},Hw={tokenize:Yw};function Uw(e){let t=-1;const n=[];for(;++t=3&&(u===null||$(u))?(e.exit("thematicBreak"),t(u)):n(u)}function a(u){return u===i?(e.consume(u),r++,a):(e.exit("thematicBreakSequence"),K(u)?re(e,s,"whitespace")(u):s(u))}}const De={continuation:{tokenize:l0},exit:s0,name:"list",tokenize:i0},n0={partial:!0,tokenize:a0},r0={partial:!0,tokenize:o0};function i0(e,t,n){const r=this,i=r.events[r.events.length-1];let l=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(d){const y=r.containerState.type||(d===42||d===43||d===45?"listUnordered":"listOrdered");if(y==="listUnordered"?!r.containerState.marker||d===r.containerState.marker:Hs(d)){if(r.containerState.type||(r.containerState.type=y,e.enter(y,{_container:!0})),y==="listUnordered")return e.enter("listItemPrefix"),d===42||d===45?e.check(Ji,n,u)(d):u(d);if(!r.interrupt||d===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),a(d)}return n(d)}function a(d){return Hs(d)&&++o<10?(e.consume(d),a):(!r.interrupt||o<2)&&(r.containerState.marker?d===r.containerState.marker:d===41||d===46)?(e.exit("listItemValue"),u(d)):n(d)}function u(d){return e.enter("listItemMarker"),e.consume(d),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||d,e.check(Kl,r.interrupt?n:c,e.attempt(n0,p,f))}function c(d){return r.containerState.initialBlankLine=!0,l++,p(d)}function f(d){return K(d)?(e.enter("listItemPrefixWhitespace"),e.consume(d),e.exit("listItemPrefixWhitespace"),p):n(d)}function p(d){return r.containerState.size=l+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(d)}}function l0(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Kl,i,l);function i(s){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,re(e,t,"listItemIndent",r.containerState.size+1)(s)}function l(s){return r.containerState.furtherBlankLines||!K(s)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(s)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(r0,t,o)(s))}function o(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,re(e,e.attempt(De,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function o0(e,t,n){const r=this;return re(e,i,"listItemIndent",r.containerState.size+1);function i(l){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(l):n(l)}}function s0(e){e.exit(this.containerState.type)}function a0(e,t,n){const r=this;return re(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(l){const o=r.events[r.events.length-1];return!K(l)&&o&&o[1].type==="listItemPrefixWhitespace"?t(l):n(l)}}const qc={name:"setextUnderline",resolveTo:u0,tokenize:c0};function u0(e,t){let n=e.length,r,i,l;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!l&&e[n][1].type==="definition"&&(l=n);const o={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",l?(e.splice(i,0,["enter",o,t]),e.splice(l+1,0,["exit",e[r][1],t]),e[r][1].end={...e[l][1].end}):e[r][1]=o,e.push(["exit",o,t]),e}function c0(e,t,n){const r=this;let i;return l;function l(u){let c=r.events.length,f;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){f=r.events[c][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(e.enter("setextHeadingLine"),i=u,o(u)):n(u)}function o(u){return e.enter("setextHeadingLineSequence"),s(u)}function s(u){return u===i?(e.consume(u),s):(e.exit("setextHeadingLineSequence"),K(u)?re(e,a,"lineSuffix")(u):a(u))}function a(u){return u===null||$(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const f0={tokenize:d0};function d0(e){const t=this,n=e.attempt(Kl,r,e.attempt(this.parser.constructs.flowInitial,i,re(e,e.attempt(this.parser.constructs.flow,i,e.attempt(yw,i)),"linePrefix")));return n;function r(l){if(l===null){e.consume(l);return}return e.enter("lineEndingBlank"),e.consume(l),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const p0={resolveAll:uh()},h0=ah("string"),m0=ah("text");function ah(e){return{resolveAll:uh(e==="text"?g0:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],l=n.attempt(i,o,s);return o;function o(c){return u(c)?l(c):s(c)}function s(c){if(c===null){n.consume(c);return}return n.enter("data"),n.consume(c),a}function a(c){return u(c)?(n.exit("data"),l(c)):(n.consume(c),a)}function u(c){if(c===null)return!0;const f=i[c];let p=-1;if(f)for(;++p-1){const s=o[0];typeof s=="string"?o[0]=s.slice(r):o.shift()}l>0&&o.push(e[i].slice(0,l))}return o}function z0(e,t){let n=-1;const r=[];let i;for(;++n0){const at=H.tokenStack[H.tokenStack.length-1];(at[1]||Yc).call(H,void 0,at[0])}for(j.position={start:Vt(M.length>0?M[0][1].start:{line:1,column:1,offset:0}),end:Vt(M.length>0?M[M.length-2][1].end:{line:1,column:1,offset:0})},ee=-1;++ee1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,a);const u={type:"element",tagName:"sup",properties:{},children:[a]};return e.patch(t,u),e.applyData(t,u)}function G0(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function q0(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function dh(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),l=i[0];l&&l.type==="text"?l.value="["+l.value:i.unshift({type:"text",value:"["});const o=i[i.length-1];return o&&o.type==="text"?o.value+=r:i.push({type:"text",value:r}),i}function Q0(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return dh(e,t);const i={src:mr(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const l={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,l),e.applyData(t,l)}function Y0(e,t){const n={src:mr(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function X0(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function K0(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return dh(e,t);const i={href:mr(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const l={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,l),e.applyData(t,l)}function Z0(e,t){const n={href:mr(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function J0(e,t,n){const r=e.all(t),i=n?e1(n):ph(t),l={},o=[];if(typeof t.checked=="boolean"){const c=r[0];let f;c&&c.type==="element"&&c.tagName==="p"?f=c:(f={type:"element",tagName:"p",properties:{},children:[]},r.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),l.className=["task-list-item"]}let s=-1;for(;++s1}function t1(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},s=Xa(t.children[1]),a=qp(t.children[t.children.length-1]);s&&a&&(o.position={start:s,end:a}),i.push(o)}const l={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,l),e.applyData(t,l)}function o1(e,t,n){const r=n?n.children:void 0,l=(r?r.indexOf(t):1)===0?"th":"td",o=n&&n.type==="table"?n.align:void 0,s=o?o.length:t.children.length;let a=-1;const u=[];for(;++a0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return l.push(Zc(t.slice(i),i>0,!1)),l.join("")}function Zc(e,t,n){let r=0,i=e.length;if(t){let l=e.codePointAt(r);for(;l===Xc||l===Kc;)r++,l=e.codePointAt(r)}if(n){let l=e.codePointAt(i-1);for(;l===Xc||l===Kc;)i--,l=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function u1(e,t){const n={type:"text",value:a1(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function c1(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const f1={blockquote:B0,break:V0,code:$0,delete:H0,emphasis:U0,footnoteReference:W0,heading:G0,html:q0,imageReference:Q0,image:Y0,inlineCode:X0,linkReference:K0,link:Z0,listItem:J0,list:t1,paragraph:n1,root:r1,strong:i1,table:l1,tableCell:s1,tableRow:o1,text:u1,thematicBreak:c1,toml:Ai,yaml:Ai,definition:Ai,footnoteDefinition:Ai};function Ai(){}const hh=-1,Zl=0,Ur=1,Il=2,ru=3,iu=4,lu=5,ou=6,mh=7,gh=8,Jc=typeof self=="object"?self:globalThis,d1=(e,t)=>{const n=(i,l)=>(e.set(l,i),i),r=i=>{if(e.has(i))return e.get(i);const[l,o]=t[i];switch(l){case Zl:case hh:return n(o,i);case Ur:{const s=n([],i);for(const a of o)s.push(r(a));return s}case Il:{const s=n({},i);for(const[a,u]of o)s[r(a)]=r(u);return s}case ru:return n(new Date(o),i);case iu:{const{source:s,flags:a}=o;return n(new RegExp(s,a),i)}case lu:{const s=n(new Map,i);for(const[a,u]of o)s.set(r(a),r(u));return s}case ou:{const s=n(new Set,i);for(const a of o)s.add(r(a));return s}case mh:{const{name:s,message:a}=o;return n(new Jc[s](a),i)}case gh:return n(BigInt(o),i);case"BigInt":return n(Object(BigInt(o)),i);case"ArrayBuffer":return n(new Uint8Array(o).buffer,o);case"DataView":{const{buffer:s}=new Uint8Array(o);return n(new DataView(s),o)}}return n(new Jc[l](o),i)};return r},ef=e=>d1(new Map,e)(0),bn="",{toString:p1}={},{keys:h1}=Object,Ir=e=>{const t=typeof e;if(t!=="object"||!e)return[Zl,t];const n=p1.call(e).slice(8,-1);switch(n){case"Array":return[Ur,bn];case"Object":return[Il,bn];case"Date":return[ru,bn];case"RegExp":return[iu,bn];case"Map":return[lu,bn];case"Set":return[ou,bn];case"DataView":return[Ur,n]}return n.includes("Array")?[Ur,n]:n.includes("Error")?[mh,n]:[Il,n]},Di=([e,t])=>e===Zl&&(t==="function"||t==="symbol"),m1=(e,t,n,r)=>{const i=(o,s)=>{const a=r.push(o)-1;return n.set(s,a),a},l=o=>{if(n.has(o))return n.get(o);let[s,a]=Ir(o);switch(s){case Zl:{let c=o;switch(a){case"bigint":s=gh,c=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+a);c=null;break;case"undefined":return i([hh],o)}return i([s,c],o)}case Ur:{if(a){let p=o;return a==="DataView"?p=new Uint8Array(o.buffer):a==="ArrayBuffer"&&(p=new Uint8Array(o)),i([a,[...p]],o)}const c=[],f=i([s,c],o);for(const p of o)c.push(l(p));return f}case Il:{if(a)switch(a){case"BigInt":return i([a,o.toString()],o);case"Boolean":case"Number":case"String":return i([a,o.valueOf()],o)}if(t&&"toJSON"in o)return l(o.toJSON());const c=[],f=i([s,c],o);for(const p of h1(o))(e||!Di(Ir(o[p])))&&c.push([l(p),l(o[p])]);return f}case ru:return i([s,o.toISOString()],o);case iu:{const{source:c,flags:f}=o;return i([s,{source:c,flags:f}],o)}case lu:{const c=[],f=i([s,c],o);for(const[p,d]of o)(e||!(Di(Ir(p))||Di(Ir(d))))&&c.push([l(p),l(d)]);return f}case ou:{const c=[],f=i([s,c],o);for(const p of o)(e||!Di(Ir(p)))&&c.push(l(p));return f}}const{message:u}=o;return i([s,{name:a,message:u}],o)};return l},tf=(e,{json:t,lossy:n}={})=>{const r=[];return m1(!(t||n),!!t,new Map,r)(e),r},Ll=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?ef(tf(e,t)):structuredClone(e):(e,t)=>ef(tf(e,t));function g1(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function y1(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function v1(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||g1,r=e.options.footnoteBackLabel||y1,i=e.options.footnoteLabel||"Footnotes",l=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let a=-1;for(;++a0&&y.push({type:"text",value:" "});let h=typeof n=="string"?n:n(a,d);typeof h=="string"&&(h={type:"text",value:h}),y.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+p+(d>1?"-"+d:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(a,d),className:["data-footnote-backref"]},children:Array.isArray(h)?h:[h]})}const C=c[c.length-1];if(C&&C.type==="element"&&C.tagName==="p"){const h=C.children[C.children.length-1];h&&h.type==="text"?h.value+=" ":C.children.push({type:"text",value:" "}),C.children.push(...y)}else c.push(...y);const m={type:"element",tagName:"li",properties:{id:t+"fn-"+p},children:e.wrap(c,!0)};e.patch(u,m),s.push(m)}if(s.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:l,properties:{...Ll(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:` `},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:` `}]}}const yh=function(e){if(e==null)return k1;if(typeof e=="function")return Jl(e);if(typeof e=="object")return Array.isArray(e)?w1(e):x1(e);if(typeof e=="string")return S1(e);throw new Error("Expected function, string, or object as test")};function w1(e){const t=[];let n=-1;for(;++n":""))+")"})}return p;function p(){let d=vh,y,v,C;if((!t||l(a,u,c[c.length-1]||void 0))&&(d=I1(n(a,c)),d[0]===nf))return d;if("children"in a&&a.children){const m=a;if(m.children&&d[0]!==T1)for(v=(r?m.children.length:-1)+o,C=c.concat(m);v>-1&&v0&&n.push({type:"text",value:` `}),n}function rf(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function lf(e,t){const n=z1(e,t),r=n.one(e,void 0),i=v1(n),l=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&l.children.push({type:"text",value:` `},i),l}function b1(e,t){return e&&"run"in e?async function(n,r){const i=lf(n,{file:r,...t});await e.run(i,r)}:function(n,r){return lf(n,{file:r,...e||t})}}function of(e){if(e)throw e}var el=Object.prototype.hasOwnProperty,xh=Object.prototype.toString,sf=Object.defineProperty,af=Object.getOwnPropertyDescriptor,uf=function(t){return typeof Array.isArray=="function"?Array.isArray(t):xh.call(t)==="[object Array]"},cf=function(t){if(!t||xh.call(t)!=="[object Object]")return!1;var n=el.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&el.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||el.call(t,i)},ff=function(t,n){sf&&n.name==="__proto__"?sf(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},df=function(t,n){if(n==="__proto__")if(el.call(t,n)){if(af)return af(t,n).value}else return;return t[n]},A1=function e(){var t,n,r,i,l,o,s=arguments[0],a=1,u=arguments.length,c=!1;for(typeof s=="boolean"&&(c=s,s=arguments[1]||{},a=2),(s==null||typeof s!="object"&&typeof s!="function")&&(s={});ao.length;let a;s&&o.push(i);try{a=e.apply(this,o)}catch(u){const c=u;if(s&&n)throw c;return i(c)}s||(a&&a.then&&typeof a.then=="function"?a.then(l,i):a instanceof Error?i(a):l(a))}function i(o,...s){n||(n=!0,t(o,...s))}function l(o){i(null,o)}}const wt={basename:R1,dirname:F1,extname:B1,join:V1,sep:"/"};function R1(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');gi(e);let n=0,r=-1,i=e.length,l;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(l){n=i+1;break}}else r<0&&(l=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let o=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(l){n=i+1;break}}else o<0&&(l=!0,o=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(r=i):(s=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function F1(e){if(gi(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function B1(e){gi(e);let t=e.length,n=-1,r=0,i=-1,l=0,o;for(;t--;){const s=e.codePointAt(t);if(s===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),s===46?i<0?i=t:l!==1&&(l=1):i>-1&&(l=-1)}return i<0||n<0||l===0||l===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function V1(...e){let t=-1,n;for(;++t0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function H1(e,t){let n="",r=0,i=-1,l=0,o=-1,s,a;for(;++o<=e.length;){if(o2){if(a=n.lastIndexOf("/"),a!==n.length-1){a<0?(n="",r=0):(n=n.slice(0,a),r=n.length-1-n.lastIndexOf("/")),i=o,l=0;continue}}else if(n.length>0){n="",r=0,i=o,l=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1;i=o,l=0}else s===46&&l>-1?l++:l=-1}return n}function gi(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const U1={cwd:W1};function W1(){return"/"}function qs(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function G1(e){if(typeof e=="string")e=new URL(e);else if(!qs(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return q1(e)}function q1(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n0){let[d,...y]=c;const v=r[p][1];Gs(v)&&Gs(d)&&(d=Mo(!0,v,d)),r[p]=[u,d,...y]}}}}const K1=new su().freeze();function Ao(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Do(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function jo(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function hf(e){if(!Gs(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function mf(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function ji(e){return Z1(e)?e:new Sh(e)}function Z1(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function J1(e){return typeof e=="string"||ex(e)}function ex(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const tx="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",gf=[],yf={allowDangerousHtml:!0},nx=/^(https?|ircs?|mailto|xmpp)$/i,rx=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function ix(e){const t=lx(e),n=ox(e);return sx(t.runSync(t.parse(n),n),e)}function lx(e){const t=e.rehypePlugins||gf,n=e.remarkPlugins||gf,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...yf}:yf;return K1().use(F0).use(n).use(b1,r).use(t)}function ox(e){const t=e.children||"",n=new Sh;return typeof t=="string"&&(n.value=t),n}function sx(e,t){const n=t.allowedElements,r=t.allowElement,i=t.components,l=t.disallowedElements,o=t.skipHtml,s=t.unwrapDisallowed,a=t.urlTransform||ax;for(const c of rx)Object.hasOwn(t,c.from)&&(""+c.from+(c.to?"use `"+c.to+"` instead":"remove it")+tx+c.id,void 0);return t.className&&(e={type:"element",tagName:"div",properties:{className:t.className},children:e.type==="root"?e.children:[e]}),wh(e,u),vv(e,{Fragment:_.Fragment,components:i,ignoreInvalidStyle:!0,jsx:_.jsx,jsxs:_.jsxs,passKeys:!0,passNode:!0});function u(c,f,p){if(c.type==="raw"&&p&&typeof f=="number")return o?p.children.splice(f,1):p.children[f]={type:"text",value:c.value},f;if(c.type==="element"){let d;for(d in Lo)if(Object.hasOwn(Lo,d)&&Object.hasOwn(c.properties,d)){const y=c.properties[d],v=Lo[d];(v===null||v.includes(c.tagName))&&(c.properties[d]=a(String(y||""),d,c))}}if(c.type==="element"){let d=n?!n.includes(c.tagName):l?l.includes(c.tagName):!1;if(!d&&r&&typeof f=="number"&&(d=!r(c,f,p)),d&&p&&typeof f=="number")return s&&c.children?p.children.splice(f,1,...c.children):p.children.splice(f,1),f}}}function ax(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||nx.test(e.slice(0,t))?e:""}const An=({text:e})=>_.jsx(ix,{children:e}),ux=({title:e,backgroundColor:t,textColor:n,titleFontSize:r,children:i,last:l})=>{const o=()=>{window.scrollTo({top:0,behavior:"smooth"})};return _.jsxs("div",{className:"relative px-40 py-10 break-words",style:{backgroundColor:t},children:[_.jsx("div",{className:`text-center font-semibold ${r?`${r}`:"text-4xl"}`,style:{color:n},children:e}),i&&_.jsx("div",{className:"text-justify text-xl pt-5 mx-auto w-[1050px]",children:i}),l&&_.jsxs("div",{className:"absolute rounded-lg top-1/3 right-5 h-10 flex flex-col justify-center items-center text-white text-sm cursor-pointer",onClick:o,children:[_.jsx(Rp,{}),_.jsx("div",{children:"TOP"})]})]})},Dn="#666b89",cx=[{url:"/teaser/0.jpeg"},{url:"/teaser/1.jpeg"},{url:"/teaser/2.jpeg"},{url:"/teaser/3.jpeg"},{url:"/teaser/4.jpeg"},{url:"/teaser/5.jpeg"}],fx="/pipeline.jpeg",dx=[{url:"/qual/0.png"},{url:"/qual/1.png"},{url:"/qual/2.png"},{url:"/qual/3.png"},{url:"/qual/4.png"},{url:"/qual/5.png"},{url:"/qual/6.png"},{url:"/qual/7.png"}],px=[[{url:"/inthewild/0/h/0.jpeg"},{url:"/inthewild/0/h/1.jpeg"},{url:"/inthewild/0/h/2.jpeg"},{url:"/inthewild/0/h/3.jpeg"}],[{url:"/inthewild/1/h/0.jpeg"},{url:"/inthewild/1/h/1.jpeg"},{url:"/inthewild/1/h/2.jpeg"},{url:"/inthewild/1/h/3.jpeg"}],[{url:"/inthewild/2/h/0.jpeg"},{url:"/inthewild/2/h/1.jpeg"},{url:"/inthewild/2/h/2.jpeg"},{url:"/inthewild/2/h/3.jpeg"}],[{url:"/inthewild/3/h/0.jpeg"},{url:"/inthewild/3/h/1.jpeg"},{url:"/inthewild/3/h/2.jpeg"},{url:"/inthewild/3/h/3.jpeg"}],[{url:"/inthewild/4/h/0.jpeg"},{url:"/inthewild/4/h/1.jpeg"},{url:"/inthewild/4/h/2.jpeg"},{url:"/inthewild/4/h/3.jpeg"}]],hx=[[{url:"/inthewild/0/c1/c1.jpeg"},{url:"/inthewild/0/c2/c2.jpeg"},{url:"/inthewild/0/c3/c3.jpeg"},{url:"/inthewild/0/c4/c4.jpeg"}],[{url:"/inthewild/1/c1/c1.jpeg"},{url:"/inthewild/1/c2/c2.jpeg"},{url:"/inthewild/1/c3/c3.jpeg"},{url:"/inthewild/1/c4/c4.jpeg"}],[{url:"/inthewild/2/c1/c1.jpeg"},{url:"/inthewild/2/c2/c2.jpeg"},{url:"/inthewild/2/c3/c3.jpeg"},{url:"/inthewild/2/c4/c4.jpeg"}],[{url:"/inthewild/3/c1/c1.jpeg"},{url:"/inthewild/3/c2/c2.jpeg"},{url:"/inthewild/3/c3/c3.jpeg"},{url:"/inthewild/3/c4/c4.jpeg"}],[{url:"/inthewild/4/c1/c1.jpeg"},{url:"/inthewild/4/c2/c2.jpeg"},{url:"/inthewild/4/c3/c3.jpeg"},{url:"/inthewild/4/c4/c4.jpeg"}]],mx=[{url:"/qualcmp/0.png"},{url:"/qualcmp/1.png"},{url:"/qualcmp/2.png"},{url:"/qualcmp/3.png"}],gx="IDM-VTON enhances image fidelity and detail preservation in virtual try-on task, particularly in a real-world scenario.",yx=`This paper considers image-based virtual try-on, which renders an image of a person wearing a curated garment, given a pair of images depicting the person and the garment, respectively. Previous works adapt existing exemplar-based inpainting diffusion models for virtual try-on to improve the naturalness of the generated visuals compared to other methods (e.g., GAN-based), but they fail to preserve the identity of the garments. To overcome this limitation, we propose a novel diffusion model that improves garment fidelity and generates authentic virtual try-on images. Our method, coined IDM-VTON, uses two different modules to encode the semantics of garment image; given the base UNet of the diffusion model, 1) the high-level semantics extracted from a visual encoder are fused to the cross-attention layer, and then 2) the low-level features extracted from parallel UNet are fused to the self-attention layer. In addition, we provide detailed textual prompts for both garment and person images to enhance the authenticity of the generated visuals. Finally, we present a customization method using a pair of person-garment images, which significantly improves fidelity and authenticity. Our experimental results show that our method outperforms previous approaches (both diffusion-based and GAN-based) in preserving garment details and generating authentic virtual try-on images, both qualitatively and quantitatively. Furthermore, the proposed customization method demonstrates its effectiveness in a real-world scenario. More visualizations are available in our project page.`,vx=`**Overview of pipelne (Left):** Our model consists of 1) TryonNet which is a main UNet that processes person image, 2) image prompt adapter (IP-Adapter) that encodes high-level semantics of garment image , and 3) GarmentNet that encodes low-level features. As of input for UNet, we concatenate the noised latents of person image latents with the segmentation mask, masked image, and Densepose. We provide a detailed caption to the garment (e.g., [V]: "short sleeve round neck t-shirts"). Then it is used for input prompt of GarmentNet (e.g., "A photo of [V]") and TryonNet (e.g., "Model is wearing [V]").   **Details of attention modules (Right):** We demonstrate the proposed model architecture and details on the attention modules. The intermediate features of TryonNet and GarmentNet are concatenated and passed to the self-attention layer, and we use the first half (i.e., that from TryonNet) of the output. Then we fuse the output with features from text encoder and IP-Adapter by cross-attention layer. We fine-tune the TryonNet and the IP-Adapter modules, and freeze other components.`,wx=`Qualitative results of VITON-HD and DressCode datasets. IDM-VTON enables generating high-fidelity images with identifying fine details of the garment. Multiple people are wearing same garment showing the consistency in the garment details.`,xx=`**Virtual Try-on in the wild:** To enable virtual try-on in the wild (i.e., real-world scenario), we collect images of garment and mutiple images of person wearing each garment from the internet and social media platforms.   **Customization:** We further fine-tune TryonNet with a pair of garment and person images via our proposed customization method. Details are illustrated in the paper.   IDM-VTON generates images with a high degree of garment consistency in the real-world scenario. Even with the complex backgrounds or diverse poses of the person, it is possible to generate high quality images.`,Sx=`Qualitative comparisons on three different datasets. While prior works struggles to achieving both high fidelity and detail perservation, IDM-VTON generates authentic images and preserve fine-grained details of the garment.`,kx=`This work is intended solely for academic research and practical illustration purposes without any commercial benefits. All models and clothing images used are from internet, social media platforms and public datasets (VITON, DressCode). All images and brands belong to their rightful owners.`,Ex=({authors:e})=>_.jsx("div",{className:"py-1",children:e.map((t,n)=>_.jsxs("span",{className:"relative p-4",children:[_.jsx("a",{className:"text-2xl font-normal text-#0065a2 no-underline hover-text-#03396C",href:t.page,target:"_blank",children:t.name}),_.jsx("span",{className:"font-normal text-sm absolute top-2 right-2 tracking-tight text-#555555",children:t.ref})]},n))}),Cx=({departments:e})=>_.jsx("div",{className:"py-1 pt-5",children:e.map((t,n)=>_.jsxs("span",{className:"relative p-4",children:[_.jsx("a",{className:"text-2xl font-normal text-#0065a2 no-underline hover-text-#03396C",href:t.page,target:"_blank",children:t.name}),_.jsx("span",{className:"font-normal text-sm absolute top-3 left-2 tracking-tight text-#666666",children:t.ref})]},n))}),Tx=()=>_.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-brand-github",width:"24",height:"24",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[_.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),_.jsx("path",{d:"M9 19c-4.3 1.4 -4.3 -2.5 -6 -3m12 5v-3.5c0 -1 .1 -1.4 -.5 -2c2.8 -.3 5.5 -1.4 5.5 -6a4.6 4.6 0 0 0 -1.3 -3.2a4.2 4.2 0 0 0 -.1 -3.2s-1.1 -.3 -3.5 1.3a12.3 12.3 0 0 0 -6.2 0c-2.4 -1.6 -3.5 -1.3 -3.5 -1.3a4.2 4.2 0 0 0 -.1 3.2a4.6 4.6 0 0 0 -1.3 3.2c0 4.6 2.7 5.7 5.5 6c-.6 .6 -.6 1.2 -.5 2v3.5"})]}),Px=({placeholder:e})=>{const t=()=>{window.open("https://github.com/yisol/IDM-VTON")};return _.jsxs("button",{className:"rounded-3xl flex items-center px-3 py-1 border border-solid border-gray-500 bg-gray-500 text-white mt-4 cursor-pointer ml-3",onClick:t,children:[_.jsx(Tx,{}),_.jsx("div",{children:e})]})},Ix=()=>_.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-shirt",width:"24",height:"24",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[_.jsx("path",{stroke:"none",d:"M0 0h24v24H0z"}),_.jsx("path",{d:"M15 4l6 2v5h-3v8a1 1 0 0 1 -1 1h-10a1 1 0 0 1 -1 -1v-8h-3v-5l6 -2a3 3 0 0 0 6 0"})]}),Lx=({placeholder:e})=>{const t=()=>{window.open("https://huggingface.co/spaces/yisol/IDM-VTON")};return _.jsxs("button",{className:"rounded-3xl flex items-center px-3 py-1 border border-solid border-gray-500 bg-gray-500 text-white mt-4 cursor-pointer mx-auto",onClick:t,children:[_.jsx(Ix,{}),_.jsx("div",{children:e})]})},zx=()=>_.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-file-type-pdf",width:"24",height:"24",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[_.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),_.jsx("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),_.jsx("path",{d:"M5 12v-7a2 2 0 0 1 2 -2h7l5 5v4"}),_.jsx("path",{d:"M5 18h1.5a1.5 1.5 0 0 0 0 -3h-1.5v6"}),_.jsx("path",{d:"M17 18h2"}),_.jsx("path",{d:"M20 15h-3v6"}),_.jsx("path",{d:"M11 15v6h1a2 2 0 0 0 2 -2v-2a2 2 0 0 0 -2 -2h-1z"})]}),_x=({placeholder:e})=>{const t=()=>{window.open("https://arxiv.org/abs/2403.05139")};return _.jsxs("button",{className:"rounded-3xl flex items-center px-3 py-1 border border-solid border-gray-500 bg-gray-500 text-white mt-4 cursor-pointer mr-3",onClick:t,children:[_.jsx(zx,{}),_.jsx("div",{children:e})]})},Mx=[{name:"Yisol Choi",ref:"1",page:"https://www.linkedin.com/in/yisol-choi-b91862263/"},{name:"Sangkyung Kwak",ref:"1",page:"https://alinlab.kaist.ac.kr/members.html"},{name:"Kyungmin Lee",ref:"1",page:"https://kyungmnlee.github.io/"},{name:"Hyungwon Choi",ref:"2",page:"https://www.linkedin.com/in/hyungwon-choi"},{name:"Jinwoo Shin",ref:"1",page:"https://alinlab.kaist.ac.kr/shin.html"}],Nx=[{name:"KAIST",ref:"1"},{name:"OMNIOUS.AI",ref:"2",page:"https://omnious.ai/"}],Ox=()=>_.jsxs("div",{className:"flex flex-col justify-center items-center",children:[_.jsx("div",{children:_.jsx(Ex,{authors:Mx})}),_.jsx("div",{children:_.jsx(Cx,{departments:Nx})}),_.jsxs("div",{className:"flex justify-center items-center",children:[_.jsx(_x,{placeholder:"Paper"}),_.jsx(Lx,{placeholder:"Demo"}),_.jsx(Px,{placeholder:"Code"})]})]}),bx=({image:e,backgroundColor:t})=>_.jsx(_.Fragment,{children:_.jsx("div",{className:"flex justify-center items-center relative pt-10px",style:{backgroundColor:t},children:_.jsx("img",{loading:"lazy",src:e,width:1050})})}),Ax=({images:e,title:t,backgroundColor:n,textColor:r})=>{const[i,l]=W.useState(0),[o,s]=W.useState(0),[a,u]=W.useState(!1);let c;W.useEffect(()=>{let d;const y=window.setInterval(()=>{l(C=>(C+180)%360)},3e3),v=window.setInterval(()=>{d=window.setTimeout(()=>{s(C=>(C+1)%e.length)},500)},3e3);return()=>{clearInterval(y),clearInterval(v),clearTimeout(d)}},[a]),W.useEffect(()=>()=>{clearTimeout(c)},[]);const f={transform:`rotateY(${i}deg)`,transition:"transform 1.0s ease-in-out"},p=()=>{u(d=>!d),c=window.setTimeout(()=>{s(d=>(d+1)%e.length)},500),l(d=>(d+180)%360)};return _.jsxs("div",{className:"text-center",style:{backgroundColor:n},children:[_.jsx("div",{className:"font-semibold text-4xl px-5 pt-8",style:{color:r}}),_.jsx("img",{onClick:p,src:e[o].url,alt:"representation",style:{...f,width:"360px",height:"480px"}}),_.jsx("div",{className:"text-gray-5",children:t})]})};function vf(e){return e!==null&&typeof e=="object"&&"constructor"in e&&e.constructor===Object}function au(e,t){e===void 0&&(e={}),t===void 0&&(t={});const n=["__proto__","constructor","prototype"];Object.keys(t).filter(r=>n.indexOf(r)<0).forEach(r=>{typeof e[r]>"u"?e[r]=t[r]:vf(t[r])&&vf(e[r])&&Object.keys(t[r]).length>0&&au(e[r],t[r])})}const kh={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function zn(){const e=typeof document<"u"?document:{};return au(e,kh),e}const Dx={document:kh,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(e){return typeof setTimeout>"u"?(e(),null):setTimeout(e,0)},cancelAnimationFrame(e){typeof setTimeout>"u"||clearTimeout(e)}};function Ae(){const e=typeof window<"u"?window:{};return au(e,Dx),e}function jx(e){return e===void 0&&(e=""),e.trim().split(" ").filter(t=>!!t.trim())}function Rx(e){const t=e;Object.keys(t).forEach(n=>{try{t[n]=null}catch{}try{delete t[n]}catch{}})}function Qs(e,t){return t===void 0&&(t=0),setTimeout(e,t)}function zl(){return Date.now()}function Fx(e){const t=Ae();let n;return t.getComputedStyle&&(n=t.getComputedStyle(e,null)),!n&&e.currentStyle&&(n=e.currentStyle),n||(n=e.style),n}function Bx(e,t){t===void 0&&(t="x");const n=Ae();let r,i,l;const o=Fx(e);return n.WebKitCSSMatrix?(i=o.transform||o.webkitTransform,i.split(",").length>6&&(i=i.split(", ").map(s=>s.replace(",",".")).join(", ")),l=new n.WebKitCSSMatrix(i==="none"?"":i)):(l=o.MozTransform||o.OTransform||o.MsTransform||o.msTransform||o.transform||o.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),r=l.toString().split(",")),t==="x"&&(n.WebKitCSSMatrix?i=l.m41:r.length===16?i=parseFloat(r[12]):i=parseFloat(r[4])),t==="y"&&(n.WebKitCSSMatrix?i=l.m42:r.length===16?i=parseFloat(r[13]):i=parseFloat(r[5])),i||0}function Ri(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"}function Vx(e){return typeof window<"u"&&typeof window.HTMLElement<"u"?e instanceof HTMLElement:e&&(e.nodeType===1||e.nodeType===11)}function qe(){const e=Object(arguments.length<=0?void 0:arguments[0]),t=["__proto__","constructor","prototype"];for(let n=1;nt.indexOf(l)<0);for(let l=0,o=i.length;ll?"next":"prev",c=(p,d)=>u==="next"&&p>=d||u==="prev"&&p<=d,f=()=>{s=new Date().getTime(),o===null&&(o=s);const p=Math.max(Math.min((s-o)/a,1),0),d=.5-Math.cos(p*Math.PI)/2;let y=l+d*(n-l);if(c(y,n)&&(y=n),t.wrapperEl.scrollTo({[r]:y}),c(y,n)){t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.scrollSnapType="",setTimeout(()=>{t.wrapperEl.style.overflow="",t.wrapperEl.scrollTo({[r]:y})}),i.cancelAnimationFrame(t.cssModeFrameID);return}t.cssModeFrameID=i.requestAnimationFrame(f)};f()}function kt(e,t){t===void 0&&(t="");const n=Ae(),r=[...e.children];return n.HTMLSlotElement&&e instanceof HTMLSlotElement&&r.push(...e.assignedElements()),t?r.filter(i=>i.matches(t)):r}function $x(e,t){const n=[t];for(;n.length>0;){const r=n.shift();if(e===r)return!0;n.push(...r.children,...r.shadowRoot?r.shadowRoot.children:[],...r.assignedElements?r.assignedElements():[])}}function Hx(e,t){const n=Ae();let r=t.contains(e);return!r&&n.HTMLSlotElement&&t instanceof HTMLSlotElement&&(r=[...t.assignedElements()].includes(e),r||(r=$x(e,t))),r}function _l(e){try{console.warn(e);return}catch{}}function Ml(e,t){t===void 0&&(t=[]);const n=document.createElement(e);return n.classList.add(...Array.isArray(t)?t:jx(t)),n}function Ux(e,t){const n=[];for(;e.previousElementSibling;){const r=e.previousElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}function Wx(e,t){const n=[];for(;e.nextElementSibling;){const r=e.nextElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}function Qt(e,t){return Ae().getComputedStyle(e,null).getPropertyValue(t)}function Nl(e){let t=e,n;if(t){for(n=0;(t=t.previousSibling)!==null;)t.nodeType===1&&(n+=1);return n}}function Ch(e,t){const n=[];let r=e.parentElement;for(;r;)t?r.matches(t)&&n.push(r):n.push(r),r=r.parentElement;return n}function Ys(e,t,n){const r=Ae();return e[t==="width"?"offsetWidth":"offsetHeight"]+parseFloat(r.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-right":"margin-top"))+parseFloat(r.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-left":"margin-bottom"))}function xe(e){return(Array.isArray(e)?e:[e]).filter(t=>!!t)}function Th(e,t,n,r){return e.params.createElements&&Object.keys(r).forEach(i=>{if(!n[i]&&n.auto===!0){let l=kt(e.el,`.${r[i]}`)[0];l||(l=Ml("div",r[i]),l.className=r[i],e.el.append(l)),n[i]=l,t[i]=l}}),n}function Ph(e){let{swiper:t,extendParams:n,on:r,emit:i}=e;n({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),t.navigation={nextEl:null,prevEl:null};function l(y){let v;return y&&typeof y=="string"&&t.isElement&&(v=t.el.querySelector(y)||t.hostEl.querySelector(y),v)?v:(y&&(typeof y=="string"&&(v=[...document.querySelectorAll(y)]),t.params.uniqueNavElements&&typeof y=="string"&&v&&v.length>1&&t.el.querySelectorAll(y).length===1?v=t.el.querySelector(y):v&&v.length===1&&(v=v[0])),y&&!v?y:v)}function o(y,v){const C=t.params.navigation;y=xe(y),y.forEach(m=>{m&&(m.classList[v?"add":"remove"](...C.disabledClass.split(" ")),m.tagName==="BUTTON"&&(m.disabled=v),t.params.watchOverflow&&t.enabled&&m.classList[t.isLocked?"add":"remove"](C.lockClass))})}function s(){const{nextEl:y,prevEl:v}=t.navigation;if(t.params.loop){o(v,!1),o(y,!1);return}o(v,t.isBeginning&&!t.params.rewind),o(y,t.isEnd&&!t.params.rewind)}function a(y){y.preventDefault(),!(t.isBeginning&&!t.params.loop&&!t.params.rewind)&&(t.slidePrev(),i("navigationPrev"))}function u(y){y.preventDefault(),!(t.isEnd&&!t.params.loop&&!t.params.rewind)&&(t.slideNext(),i("navigationNext"))}function c(){const y=t.params.navigation;if(t.params.navigation=Th(t,t.originalParams.navigation,t.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(y.nextEl||y.prevEl))return;let v=l(y.nextEl),C=l(y.prevEl);Object.assign(t.navigation,{nextEl:v,prevEl:C}),v=xe(v),C=xe(C);const m=(h,g)=>{h&&h.addEventListener("click",g==="next"?u:a),!t.enabled&&h&&h.classList.add(...y.lockClass.split(" "))};v.forEach(h=>m(h,"next")),C.forEach(h=>m(h,"prev"))}function f(){let{nextEl:y,prevEl:v}=t.navigation;y=xe(y),v=xe(v);const C=(m,h)=>{m.removeEventListener("click",h==="next"?u:a),m.classList.remove(...t.params.navigation.disabledClass.split(" "))};y.forEach(m=>C(m,"next")),v.forEach(m=>C(m,"prev"))}r("init",()=>{t.params.navigation.enabled===!1?d():(c(),s())}),r("toEdge fromEdge lock unlock",()=>{s()}),r("destroy",()=>{f()}),r("enable disable",()=>{let{nextEl:y,prevEl:v}=t.navigation;if(y=xe(y),v=xe(v),t.enabled){s();return}[...y,...v].filter(C=>!!C).forEach(C=>C.classList.add(t.params.navigation.lockClass))}),r("click",(y,v)=>{let{nextEl:C,prevEl:m}=t.navigation;C=xe(C),m=xe(m);const h=v.target;let g=m.includes(h)||C.includes(h);if(t.isElement&&!g){const x=v.path||v.composedPath&&v.composedPath();x&&(g=x.find(E=>C.includes(E)||m.includes(E)))}if(t.params.navigation.hideOnClick&&!g){if(t.pagination&&t.params.pagination&&t.params.pagination.clickable&&(t.pagination.el===h||t.pagination.el.contains(h)))return;let x;C.length?x=C[0].classList.contains(t.params.navigation.hiddenClass):m.length&&(x=m[0].classList.contains(t.params.navigation.hiddenClass)),i(x===!0?"navigationShow":"navigationHide"),[...C,...m].filter(E=>!!E).forEach(E=>E.classList.toggle(t.params.navigation.hiddenClass))}});const p=()=>{t.el.classList.remove(...t.params.navigation.navigationDisabledClass.split(" ")),c(),s()},d=()=>{t.el.classList.add(...t.params.navigation.navigationDisabledClass.split(" ")),f()};Object.assign(t.navigation,{enable:p,disable:d,update:s,init:c,destroy:f})}function Lr(e){return e===void 0&&(e=""),`.${e.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function Ih(e){let{swiper:t,extendParams:n,on:r,emit:i}=e;const l="swiper-pagination";n({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:h=>h,formatFractionTotal:h=>h,bulletClass:`${l}-bullet`,bulletActiveClass:`${l}-bullet-active`,modifierClass:`${l}-`,currentClass:`${l}-current`,totalClass:`${l}-total`,hiddenClass:`${l}-hidden`,progressbarFillClass:`${l}-progressbar-fill`,progressbarOppositeClass:`${l}-progressbar-opposite`,clickableClass:`${l}-clickable`,lockClass:`${l}-lock`,horizontalClass:`${l}-horizontal`,verticalClass:`${l}-vertical`,paginationDisabledClass:`${l}-disabled`}}),t.pagination={el:null,bullets:[]};let o,s=0;function a(){return!t.params.pagination.el||!t.pagination.el||Array.isArray(t.pagination.el)&&t.pagination.el.length===0}function u(h,g){const{bulletActiveClass:x}=t.params.pagination;h&&(h=h[`${g==="prev"?"previous":"next"}ElementSibling`],h&&(h.classList.add(`${x}-${g}`),h=h[`${g==="prev"?"previous":"next"}ElementSibling`],h&&h.classList.add(`${x}-${g}-${g}`)))}function c(h,g,x){if(h=h%x,g=g%x,g===h+1)return"next";if(g===h-1)return"previous"}function f(h){const g=h.target.closest(Lr(t.params.pagination.bulletClass));if(!g)return;h.preventDefault();const x=Nl(g)*t.params.slidesPerGroup;if(t.params.loop){if(t.realIndex===x)return;const E=c(t.realIndex,x,t.slides.length);E==="next"?t.slideNext():E==="previous"?t.slidePrev():t.slideToLoop(x)}else t.slideTo(x)}function p(){const h=t.rtl,g=t.params.pagination;if(a())return;let x=t.pagination.el;x=xe(x);let E,k;const P=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,I=t.params.loop?Math.ceil(P/t.params.slidesPerGroup):t.snapGrid.length;if(t.params.loop?(k=t.previousRealIndex||0,E=t.params.slidesPerGroup>1?Math.floor(t.realIndex/t.params.slidesPerGroup):t.realIndex):typeof t.snapIndex<"u"?(E=t.snapIndex,k=t.previousSnapIndex):(k=t.previousIndex||0,E=t.activeIndex||0),g.type==="bullets"&&t.pagination.bullets&&t.pagination.bullets.length>0){const z=t.pagination.bullets;let T,L,N;if(g.dynamicBullets&&(o=Ys(z[0],t.isHorizontal()?"width":"height"),x.forEach(O=>{O.style[t.isHorizontal()?"width":"height"]=`${o*(g.dynamicMainBullets+4)}px`}),g.dynamicMainBullets>1&&k!==void 0&&(s+=E-(k||0),s>g.dynamicMainBullets-1?s=g.dynamicMainBullets-1:s<0&&(s=0)),T=Math.max(E-s,0),L=T+(Math.min(z.length,g.dynamicMainBullets)-1),N=(L+T)/2),z.forEach(O=>{const B=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(R=>`${g.bulletActiveClass}${R}`)].map(R=>typeof R=="string"&&R.includes(" ")?R.split(" "):R).flat();O.classList.remove(...B)}),x.length>1)z.forEach(O=>{const B=Nl(O);B===E?O.classList.add(...g.bulletActiveClass.split(" ")):t.isElement&&O.setAttribute("part","bullet"),g.dynamicBullets&&(B>=T&&B<=L&&O.classList.add(...`${g.bulletActiveClass}-main`.split(" ")),B===T&&u(O,"prev"),B===L&&u(O,"next"))});else{const O=z[E];if(O&&O.classList.add(...g.bulletActiveClass.split(" ")),t.isElement&&z.forEach((B,R)=>{B.setAttribute("part",R===E?"bullet-active":"bullet")}),g.dynamicBullets){const B=z[T],R=z[L];for(let G=T;G<=L;G+=1)z[G]&&z[G].classList.add(...`${g.bulletActiveClass}-main`.split(" "));u(B,"prev"),u(R,"next")}}if(g.dynamicBullets){const O=Math.min(z.length,g.dynamicMainBullets+4),B=(o*O-o)/2-N*o,R=h?"right":"left";z.forEach(G=>{G.style[t.isHorizontal()?R:"top"]=`${B}px`})}}x.forEach((z,T)=>{if(g.type==="fraction"&&(z.querySelectorAll(Lr(g.currentClass)).forEach(L=>{L.textContent=g.formatFractionCurrent(E+1)}),z.querySelectorAll(Lr(g.totalClass)).forEach(L=>{L.textContent=g.formatFractionTotal(I)})),g.type==="progressbar"){let L;g.progressbarOpposite?L=t.isHorizontal()?"vertical":"horizontal":L=t.isHorizontal()?"horizontal":"vertical";const N=(E+1)/I;let O=1,B=1;L==="horizontal"?O=N:B=N,z.querySelectorAll(Lr(g.progressbarFillClass)).forEach(R=>{R.style.transform=`translate3d(0,0,0) scaleX(${O}) scaleY(${B})`,R.style.transitionDuration=`${t.params.speed}ms`})}g.type==="custom"&&g.renderCustom?(z.innerHTML=g.renderCustom(t,E+1,I),T===0&&i("paginationRender",z)):(T===0&&i("paginationRender",z),i("paginationUpdate",z)),t.params.watchOverflow&&t.enabled&&z.classList[t.isLocked?"add":"remove"](g.lockClass)})}function d(){const h=t.params.pagination;if(a())return;const g=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.grid&&t.params.grid.rows>1?t.slides.length/Math.ceil(t.params.grid.rows):t.slides.length;let x=t.pagination.el;x=xe(x);let E="";if(h.type==="bullets"){let k=t.params.loop?Math.ceil(g/t.params.slidesPerGroup):t.snapGrid.length;t.params.freeMode&&t.params.freeMode.enabled&&k>g&&(k=g);for(let P=0;P`}h.type==="fraction"&&(h.renderFraction?E=h.renderFraction.call(t,h.currentClass,h.totalClass):E=` / `),h.type==="progressbar"&&(h.renderProgressbar?E=h.renderProgressbar.call(t,h.progressbarFillClass):E=``),t.pagination.bullets=[],x.forEach(k=>{h.type!=="custom"&&(k.innerHTML=E||""),h.type==="bullets"&&t.pagination.bullets.push(...k.querySelectorAll(Lr(h.bulletClass)))}),h.type!=="custom"&&i("paginationRender",x[0])}function y(){t.params.pagination=Th(t,t.originalParams.pagination,t.params.pagination,{el:"swiper-pagination"});const h=t.params.pagination;if(!h.el)return;let g;typeof h.el=="string"&&t.isElement&&(g=t.el.querySelector(h.el)),!g&&typeof h.el=="string"&&(g=[...document.querySelectorAll(h.el)]),g||(g=h.el),!(!g||g.length===0)&&(t.params.uniqueNavElements&&typeof h.el=="string"&&Array.isArray(g)&&g.length>1&&(g=[...t.el.querySelectorAll(h.el)],g.length>1&&(g=g.find(x=>Ch(x,".swiper")[0]===t.el))),Array.isArray(g)&&g.length===1&&(g=g[0]),Object.assign(t.pagination,{el:g}),g=xe(g),g.forEach(x=>{h.type==="bullets"&&h.clickable&&x.classList.add(...(h.clickableClass||"").split(" ")),x.classList.add(h.modifierClass+h.type),x.classList.add(t.isHorizontal()?h.horizontalClass:h.verticalClass),h.type==="bullets"&&h.dynamicBullets&&(x.classList.add(`${h.modifierClass}${h.type}-dynamic`),s=0,h.dynamicMainBullets<1&&(h.dynamicMainBullets=1)),h.type==="progressbar"&&h.progressbarOpposite&&x.classList.add(h.progressbarOppositeClass),h.clickable&&x.addEventListener("click",f),t.enabled||x.classList.add(h.lockClass)}))}function v(){const h=t.params.pagination;if(a())return;let g=t.pagination.el;g&&(g=xe(g),g.forEach(x=>{x.classList.remove(h.hiddenClass),x.classList.remove(h.modifierClass+h.type),x.classList.remove(t.isHorizontal()?h.horizontalClass:h.verticalClass),h.clickable&&(x.classList.remove(...(h.clickableClass||"").split(" ")),x.removeEventListener("click",f))})),t.pagination.bullets&&t.pagination.bullets.forEach(x=>x.classList.remove(...h.bulletActiveClass.split(" ")))}r("changeDirection",()=>{if(!t.pagination||!t.pagination.el)return;const h=t.params.pagination;let{el:g}=t.pagination;g=xe(g),g.forEach(x=>{x.classList.remove(h.horizontalClass,h.verticalClass),x.classList.add(t.isHorizontal()?h.horizontalClass:h.verticalClass)})}),r("init",()=>{t.params.pagination.enabled===!1?m():(y(),d(),p())}),r("activeIndexChange",()=>{typeof t.snapIndex>"u"&&p()}),r("snapIndexChange",()=>{p()}),r("snapGridLengthChange",()=>{d(),p()}),r("destroy",()=>{v()}),r("enable disable",()=>{let{el:h}=t.pagination;h&&(h=xe(h),h.forEach(g=>g.classList[t.enabled?"remove":"add"](t.params.pagination.lockClass)))}),r("lock unlock",()=>{p()}),r("click",(h,g)=>{const x=g.target,E=xe(t.pagination.el);if(t.params.pagination.el&&t.params.pagination.hideOnClick&&E&&E.length>0&&!x.classList.contains(t.params.pagination.bulletClass)){if(t.navigation&&(t.navigation.nextEl&&x===t.navigation.nextEl||t.navigation.prevEl&&x===t.navigation.prevEl))return;const k=E[0].classList.contains(t.params.pagination.hiddenClass);i(k===!0?"paginationShow":"paginationHide"),E.forEach(P=>P.classList.toggle(t.params.pagination.hiddenClass))}});const C=()=>{t.el.classList.remove(t.params.pagination.paginationDisabledClass);let{el:h}=t.pagination;h&&(h=xe(h),h.forEach(g=>g.classList.remove(t.params.pagination.paginationDisabledClass))),y(),d(),p()},m=()=>{t.el.classList.add(t.params.pagination.paginationDisabledClass);let{el:h}=t.pagination;h&&(h=xe(h),h.forEach(g=>g.classList.add(t.params.pagination.paginationDisabledClass))),v()};Object.assign(t.pagination,{enable:C,disable:m,render:d,update:p,init:y,destroy:v})}let Ro;function Gx(){const e=Ae(),t=zn();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}function Lh(){return Ro||(Ro=Gx()),Ro}let Fo;function qx(e){let{userAgent:t}=e===void 0?{}:e;const n=Lh(),r=Ae(),i=r.navigator.platform,l=t||r.navigator.userAgent,o={ios:!1,android:!1},s=r.screen.width,a=r.screen.height,u=l.match(/(Android);?[\s\/]+([\d.]+)?/);let c=l.match(/(iPad).*OS\s([\d_]+)/);const f=l.match(/(iPod)(.*OS\s([\d_]+))?/),p=!c&&l.match(/(iPhone\sOS|iOS)\s([\d_]+)/),d=i==="Win32";let y=i==="MacIntel";const v=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!c&&y&&n.touch&&v.indexOf(`${s}x${a}`)>=0&&(c=l.match(/(Version)\/([\d.]+)/),c||(c=[0,1,"13_0_0"]),y=!1),u&&!d&&(o.os="android",o.android=!0),(c||p||f)&&(o.os="ios",o.ios=!0),o}function zh(e){return e===void 0&&(e={}),Fo||(Fo=qx(e)),Fo}let Bo;function Qx(){const e=Ae(),t=zh();let n=!1;function r(){const s=e.navigator.userAgent.toLowerCase();return s.indexOf("safari")>=0&&s.indexOf("chrome")<0&&s.indexOf("android")<0}if(r()){const s=String(e.navigator.userAgent);if(s.includes("Version/")){const[a,u]=s.split("Version/")[1].split(" ")[0].split(".").map(c=>Number(c));n=a<16||a===16&&u<2}}const i=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent),l=r(),o=l||i&&t.ios;return{isSafari:n||l,needPerspectiveFix:n,need3dFix:o,isWebView:i}}function _h(){return Bo||(Bo=Qx()),Bo}function Yx(e){let{swiper:t,on:n,emit:r}=e;const i=Ae();let l=null,o=null;const s=()=>{!t||t.destroyed||!t.initialized||(r("beforeResize"),r("resize"))},a=()=>{!t||t.destroyed||!t.initialized||(l=new ResizeObserver(f=>{o=i.requestAnimationFrame(()=>{const{width:p,height:d}=t;let y=p,v=d;f.forEach(C=>{let{contentBoxSize:m,contentRect:h,target:g}=C;g&&g!==t.el||(y=h?h.width:(m[0]||m).inlineSize,v=h?h.height:(m[0]||m).blockSize)}),(y!==p||v!==d)&&s()})}),l.observe(t.el))},u=()=>{o&&i.cancelAnimationFrame(o),l&&l.unobserve&&t.el&&(l.unobserve(t.el),l=null)},c=()=>{!t||t.destroyed||!t.initialized||r("orientationchange")};n("init",()=>{if(t.params.resizeObserver&&typeof i.ResizeObserver<"u"){a();return}i.addEventListener("resize",s),i.addEventListener("orientationchange",c)}),n("destroy",()=>{u(),i.removeEventListener("resize",s),i.removeEventListener("orientationchange",c)})}function Xx(e){let{swiper:t,extendParams:n,on:r,emit:i}=e;const l=[],o=Ae(),s=function(c,f){f===void 0&&(f={});const p=o.MutationObserver||o.WebkitMutationObserver,d=new p(y=>{if(t.__preventObserver__)return;if(y.length===1){i("observerUpdate",y[0]);return}const v=function(){i("observerUpdate",y[0])};o.requestAnimationFrame?o.requestAnimationFrame(v):o.setTimeout(v,0)});d.observe(c,{attributes:typeof f.attributes>"u"?!0:f.attributes,childList:t.isElement||(typeof f.childList>"u"?!0:f).childList,characterData:typeof f.characterData>"u"?!0:f.characterData}),l.push(d)},a=()=>{if(t.params.observer){if(t.params.observeParents){const c=Ch(t.hostEl);for(let f=0;f{l.forEach(c=>{c.disconnect()}),l.splice(0,l.length)};n({observer:!1,observeParents:!1,observeSlideChildren:!1}),r("init",a),r("destroy",u)}var Kx={on(e,t,n){const r=this;if(!r.eventsListeners||r.destroyed||typeof t!="function")return r;const i=n?"unshift":"push";return e.split(" ").forEach(l=>{r.eventsListeners[l]||(r.eventsListeners[l]=[]),r.eventsListeners[l][i](t)}),r},once(e,t,n){const r=this;if(!r.eventsListeners||r.destroyed||typeof t!="function")return r;function i(){r.off(e,i),i.__emitterProxy&&delete i.__emitterProxy;for(var l=arguments.length,o=new Array(l),s=0;s=0&&t.eventsAnyListeners.splice(n,1),t},off(e,t){const n=this;return!n.eventsListeners||n.destroyed||!n.eventsListeners||e.split(" ").forEach(r=>{typeof t>"u"?n.eventsListeners[r]=[]:n.eventsListeners[r]&&n.eventsListeners[r].forEach((i,l)=>{(i===t||i.__emitterProxy&&i.__emitterProxy===t)&&n.eventsListeners[r].splice(l,1)})}),n},emit(){const e=this;if(!e.eventsListeners||e.destroyed||!e.eventsListeners)return e;let t,n,r;for(var i=arguments.length,l=new Array(i),o=0;o{e.eventsAnyListeners&&e.eventsAnyListeners.length&&e.eventsAnyListeners.forEach(u=>{u.apply(r,[a,...n])}),e.eventsListeners&&e.eventsListeners[a]&&e.eventsListeners[a].forEach(u=>{u.apply(r,n)})}),e}};function Zx(){const e=this;let t,n;const r=e.el;typeof e.params.width<"u"&&e.params.width!==null?t=e.params.width:t=r.clientWidth,typeof e.params.height<"u"&&e.params.height!==null?n=e.params.height:n=r.clientHeight,!(t===0&&e.isHorizontal()||n===0&&e.isVertical())&&(t=t-parseInt(Qt(r,"padding-left")||0,10)-parseInt(Qt(r,"padding-right")||0,10),n=n-parseInt(Qt(r,"padding-top")||0,10)-parseInt(Qt(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}))}function Jx(){const e=this;function t(T,L){return parseFloat(T.getPropertyValue(e.getDirectionLabel(L))||0)}const n=e.params,{wrapperEl:r,slidesEl:i,size:l,rtlTranslate:o,wrongRTL:s}=e,a=e.virtual&&n.virtual.enabled,u=a?e.virtual.slides.length:e.slides.length,c=kt(i,`.${e.params.slideClass}, swiper-slide`),f=a?e.virtual.slides.length:c.length;let p=[];const d=[],y=[];let v=n.slidesOffsetBefore;typeof v=="function"&&(v=n.slidesOffsetBefore.call(e));let C=n.slidesOffsetAfter;typeof C=="function"&&(C=n.slidesOffsetAfter.call(e));const m=e.snapGrid.length,h=e.slidesGrid.length;let g=n.spaceBetween,x=-v,E=0,k=0;if(typeof l>"u")return;typeof g=="string"&&g.indexOf("%")>=0?g=parseFloat(g.replace("%",""))/100*l:typeof g=="string"&&(g=parseFloat(g)),e.virtualSize=-g,c.forEach(T=>{o?T.style.marginLeft="":T.style.marginRight="",T.style.marginBottom="",T.style.marginTop=""}),n.centeredSlides&&n.cssMode&&(Fi(r,"--swiper-centered-offset-before",""),Fi(r,"--swiper-centered-offset-after",""));const P=n.grid&&n.grid.rows>1&&e.grid;P?e.grid.initSlides(c):e.grid&&e.grid.unsetSlides();let I;const z=n.slidesPerView==="auto"&&n.breakpoints&&Object.keys(n.breakpoints).filter(T=>typeof n.breakpoints[T].slidesPerView<"u").length>0;for(let T=0;T1&&p.push(e.virtualSize-l)}if(a&&n.loop){const T=y[0]+g;if(n.slidesPerGroup>1){const L=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/n.slidesPerGroup),N=T*n.slidesPerGroup;for(let O=0;O!n.cssMode||n.loop?!0:N!==c.length-1).forEach(L=>{L.style[T]=`${g}px`})}if(n.centeredSlides&&n.centeredSlidesBounds){let T=0;y.forEach(N=>{T+=N+(g||0)}),T-=g;const L=T>l?T-l:0;p=p.map(N=>N<=0?-v:N>L?L+C:N)}if(n.centerInsufficientSlides){let T=0;y.forEach(N=>{T+=N+(g||0)}),T-=g;const L=(n.slidesOffsetBefore||0)+(n.slidesOffsetAfter||0);if(T+L{p[B]=O-N}),d.forEach((O,B)=>{d[B]=O+N})}}if(Object.assign(e,{slides:c,snapGrid:p,slidesGrid:d,slidesSizesGrid:y}),n.centeredSlides&&n.cssMode&&!n.centeredSlidesBounds){Fi(r,"--swiper-centered-offset-before",`${-p[0]}px`),Fi(r,"--swiper-centered-offset-after",`${e.size/2-y[y.length-1]/2}px`);const T=-e.snapGrid[0],L=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map(N=>N+T),e.slidesGrid=e.slidesGrid.map(N=>N+L)}if(f!==u&&e.emit("slidesLengthChange"),p.length!==m&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),d.length!==h&&e.emit("slidesGridLengthChange"),n.watchSlidesProgress&&e.updateSlidesOffset(),e.emit("slidesUpdated"),!a&&!n.cssMode&&(n.effect==="slide"||n.effect==="fade")){const T=`${n.containerModifierClass}backface-hidden`,L=e.el.classList.contains(T);f<=n.maxBackfaceHiddenSlides?L||e.el.classList.add(T):L&&e.el.classList.remove(T)}}function eS(e){const t=this,n=[],r=t.virtual&&t.params.virtual.enabled;let i=0,l;typeof e=="number"?t.setTransition(e):e===!0&&t.setTransition(t.params.speed);const o=s=>r?t.slides[t.getSlideIndexByData(s)]:t.slides[s];if(t.params.slidesPerView!=="auto"&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach(s=>{n.push(s)});else for(l=0;lt.slides.length&&!r)break;n.push(o(s))}else n.push(o(t.activeIndex));for(l=0;li?s:i}(i||i===0)&&(t.wrapperEl.style.height=`${i}px`)}function tS(){const e=this,t=e.slides,n=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let r=0;r{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)};function nS(e){e===void 0&&(e=this&&this.translate||0);const t=this,n=t.params,{slides:r,rtlTranslate:i,snapGrid:l}=t;if(r.length===0)return;typeof r[0].swiperSlideOffset>"u"&&t.updateSlidesOffset();let o=-e;i&&(o=e),t.visibleSlidesIndexes=[],t.visibleSlides=[];let s=n.spaceBetween;typeof s=="string"&&s.indexOf("%")>=0?s=parseFloat(s.replace("%",""))/100*t.size:typeof s=="string"&&(s=parseFloat(s));for(let a=0;a=0&&d<=t.size-t.slidesSizesGrid[a],C=d>=0&&d1&&y<=t.size||d<=0&&y>=t.size;C&&(t.visibleSlides.push(u),t.visibleSlidesIndexes.push(a)),wf(u,C,n.slideVisibleClass),wf(u,v,n.slideFullyVisibleClass),u.progress=i?-f:f,u.originalProgress=i?-p:p}}function rS(e){const t=this;if(typeof e>"u"){const c=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*c||0}const n=t.params,r=t.maxTranslate()-t.minTranslate();let{progress:i,isBeginning:l,isEnd:o,progressLoop:s}=t;const a=l,u=o;if(r===0)i=0,l=!0,o=!0;else{i=(e-t.minTranslate())/r;const c=Math.abs(e-t.minTranslate())<1,f=Math.abs(e-t.maxTranslate())<1;l=c||i<=0,o=f||i>=1,c&&(i=0),f&&(i=1)}if(n.loop){const c=t.getSlideIndexByData(0),f=t.getSlideIndexByData(t.slides.length-1),p=t.slidesGrid[c],d=t.slidesGrid[f],y=t.slidesGrid[t.slidesGrid.length-1],v=Math.abs(e);v>=p?s=(v-p)/y:s=(v+y-d)/y,s>1&&(s-=1)}Object.assign(t,{progress:i,progressLoop:s,isBeginning:l,isEnd:o}),(n.watchSlidesProgress||n.centeredSlides&&n.autoHeight)&&t.updateSlidesProgress(e),l&&!a&&t.emit("reachBeginning toEdge"),o&&!u&&t.emit("reachEnd toEdge"),(a&&!l||u&&!o)&&t.emit("fromEdge"),t.emit("progress",i)}const Vo=(e,t,n)=>{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)};function iS(){const e=this,{slides:t,params:n,slidesEl:r,activeIndex:i}=e,l=e.virtual&&n.virtual.enabled,o=e.grid&&n.grid&&n.grid.rows>1,s=f=>kt(r,`.${n.slideClass}${f}, swiper-slide${f}`)[0];let a,u,c;if(l)if(n.loop){let f=i-e.virtual.slidesBefore;f<0&&(f=e.virtual.slides.length+f),f>=e.virtual.slides.length&&(f-=e.virtual.slides.length),a=s(`[data-swiper-slide-index="${f}"]`)}else a=s(`[data-swiper-slide-index="${i}"]`);else o?(a=t.find(f=>f.column===i),c=t.find(f=>f.column===i+1),u=t.find(f=>f.column===i-1)):a=t[i];a&&(o||(c=Wx(a,`.${n.slideClass}, swiper-slide`)[0],n.loop&&!c&&(c=t[0]),u=Ux(a,`.${n.slideClass}, swiper-slide`)[0],n.loop&&!u===0&&(u=t[t.length-1]))),t.forEach(f=>{Vo(f,f===a,n.slideActiveClass),Vo(f,f===c,n.slideNextClass),Vo(f,f===u,n.slidePrevClass)}),e.emitSlidesClasses()}const tl=(e,t)=>{if(!e||e.destroyed||!e.params)return;const n=()=>e.isElement?"swiper-slide":`.${e.params.slideClass}`,r=t.closest(n());if(r){let i=r.querySelector(`.${e.params.lazyPreloaderClass}`);!i&&e.isElement&&(r.shadowRoot?i=r.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{r.shadowRoot&&(i=r.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`),i&&i.remove())})),i&&i.remove()}},$o=(e,t)=>{if(!e.slides[t])return;const n=e.slides[t].querySelector('[loading="lazy"]');n&&n.removeAttribute("loading")},Xs=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=e.params.slidesPerView==="auto"?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),i=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){const o=i,s=[o-t];s.push(...Array.from({length:t}).map((a,u)=>o+r+u)),e.slides.forEach((a,u)=>{s.includes(a.column)&&$o(e,u)});return}const l=i+r-1;if(e.params.rewind||e.params.loop)for(let o=i-t;o<=l+t;o+=1){const s=(o%n+n)%n;(sl)&&$o(e,s)}else for(let o=Math.max(i-t,0);o<=Math.min(l+t,n-1);o+=1)o!==i&&(o>l||o=t[l]&&r=t[l]&&r=t[l]&&(i=l);return n.normalizeSlideIndex&&(i<0||typeof i>"u")&&(i=0),i}function oS(e){const t=this,n=t.rtlTranslate?t.translate:-t.translate,{snapGrid:r,params:i,activeIndex:l,realIndex:o,snapIndex:s}=t;let a=e,u;const c=d=>{let y=d-t.virtual.slidesBefore;return y<0&&(y=t.virtual.slides.length+y),y>=t.virtual.slides.length&&(y-=t.virtual.slides.length),y};if(typeof a>"u"&&(a=lS(t)),r.indexOf(n)>=0)u=r.indexOf(n);else{const d=Math.min(i.slidesPerGroupSkip,a);u=d+Math.floor((a-d)/i.slidesPerGroup)}if(u>=r.length&&(u=r.length-1),a===l&&!t.params.loop){u!==s&&(t.snapIndex=u,t.emit("snapIndexChange"));return}if(a===l&&t.params.loop&&t.virtual&&t.params.virtual.enabled){t.realIndex=c(a);return}const f=t.grid&&i.grid&&i.grid.rows>1;let p;if(t.virtual&&i.virtual.enabled&&i.loop)p=c(a);else if(f){const d=t.slides.find(v=>v.column===a);let y=parseInt(d.getAttribute("data-swiper-slide-index"),10);Number.isNaN(y)&&(y=Math.max(t.slides.indexOf(d),0)),p=Math.floor(y/i.grid.rows)}else if(t.slides[a]){const d=t.slides[a].getAttribute("data-swiper-slide-index");d?p=parseInt(d,10):p=a}else p=a;Object.assign(t,{previousSnapIndex:s,snapIndex:u,previousRealIndex:o,realIndex:p,previousIndex:l,activeIndex:a}),t.initialized&&Xs(t),t.emit("activeIndexChange"),t.emit("snapIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&(o!==p&&t.emit("realIndexChange"),t.emit("slideChange"))}function sS(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(s=>{!i&&s.matches&&s.matches(`.${r.slideClass}, swiper-slide`)&&(i=s)});let l=!1,o;if(i){for(let s=0;sa?c=a:r&&eo?s="next":l"u"&&(t=l.params.speed);const v=Math.min(l.params.slidesPerGroupSkip,o);let C=v+Math.floor((o-v)/l.params.slidesPerGroup);C>=a.length&&(C=a.length-1);const m=-a[C];if(s.normalizeSlideIndex)for(let P=0;P=z&&I=z&&I=z&&(o=P)}if(l.initialized&&o!==f&&(!l.allowSlideNext&&(p?m>l.translate&&m>l.minTranslate():ml.translate&&m>l.maxTranslate()&&(f||0)!==o))return!1;o!==(c||0)&&n&&l.emit("beforeSlideChangeStart"),l.updateProgress(m);let h;o>f?h="next":o0?(l._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{d[P?"scrollLeft":"scrollTop"]=I})):d[P?"scrollLeft":"scrollTop"]=I,g&&requestAnimationFrame(()=>{l.wrapperEl.style.scrollSnapType="",l._immediateVirtual=!1});else{if(!l.support.smoothScroll)return Eh({swiper:l,targetPosition:I,side:P?"left":"top"}),!0;d.scrollTo({[P?"left":"top"]:I,behavior:"smooth"})}return!0}const k=_h().isSafari;return g&&!i&&k&&l.isElement&&l.virtual.update(!1,!1,o),l.setTransition(t),l.setTranslate(m),l.updateActiveIndex(o),l.updateSlidesClasses(),l.emit("beforeTransitionStart",t,r),l.transitionStart(n,h),t===0?l.transitionEnd(n,h):l.animating||(l.animating=!0,l.onSlideToWrapperTransitionEnd||(l.onSlideToWrapperTransitionEnd=function(I){!l||l.destroyed||I.target===this&&(l.wrapperEl.removeEventListener("transitionend",l.onSlideToWrapperTransitionEnd),l.onSlideToWrapperTransitionEnd=null,delete l.onSlideToWrapperTransitionEnd,l.transitionEnd(n,h))}),l.wrapperEl.addEventListener("transitionend",l.onSlideToWrapperTransitionEnd)),!0}function xS(e,t,n,r){e===void 0&&(e=0),n===void 0&&(n=!0),typeof e=="string"&&(e=parseInt(e,10));const i=this;if(i.destroyed)return;typeof t>"u"&&(t=i.params.speed);const l=i.grid&&i.params.grid&&i.params.grid.rows>1;let o=e;if(i.params.loop)if(i.virtual&&i.params.virtual.enabled)o=o+i.virtual.slidesBefore;else{let s;if(l){const p=o*i.params.grid.rows;s=i.slides.find(d=>d.getAttribute("data-swiper-slide-index")*1===p).column}else s=i.getSlideIndexByData(o);const a=l?Math.ceil(i.slides.length/i.params.grid.rows):i.slides.length,{centeredSlides:u}=i.params;let c=i.params.slidesPerView;c==="auto"?c=i.slidesPerViewDynamic():(c=Math.ceil(parseFloat(i.params.slidesPerView,10)),u&&c%2===0&&(c=c+1));let f=a-sd.getAttribute("data-swiper-slide-index")*1===p).column}else o=i.getSlideIndexByData(o)}return requestAnimationFrame(()=>{i.slideTo(o,t,n,r)}),i}function SS(e,t,n){t===void 0&&(t=!0);const r=this,{enabled:i,params:l,animating:o}=r;if(!i||r.destroyed)return r;typeof e>"u"&&(e=r.params.speed);let s=l.slidesPerGroup;l.slidesPerView==="auto"&&l.slidesPerGroup===1&&l.slidesPerGroupAuto&&(s=Math.max(r.slidesPerViewDynamic("current",!0),1));const a=r.activeIndex{r.slideTo(r.activeIndex+a,e,t,n)}),!0}return l.rewind&&r.isEnd?r.slideTo(0,e,t,n):r.slideTo(r.activeIndex+a,e,t,n)}function kS(e,t,n){t===void 0&&(t=!0);const r=this,{params:i,snapGrid:l,slidesGrid:o,rtlTranslate:s,enabled:a,animating:u}=r;if(!a||r.destroyed)return r;typeof e>"u"&&(e=r.params.speed);const c=r.virtual&&i.virtual.enabled;if(i.loop){if(u&&!c&&i.loopPreventsSliding)return!1;r.loopFix({direction:"prev"}),r._clientLeft=r.wrapperEl.clientLeft}const f=s?r.translate:-r.translate;function p(h){return h<0?-Math.floor(Math.abs(h)):Math.floor(h)}const d=p(f),y=l.map(h=>p(h)),v=i.freeMode&&i.freeMode.enabled;let C=l[y.indexOf(d)-1];if(typeof C>"u"&&(i.cssMode||v)){let h;l.forEach((g,x)=>{d>=g&&(h=x)}),typeof h<"u"&&(C=v?l[h]:l[h>0?h-1:h])}let m=0;if(typeof C<"u"&&(m=o.indexOf(C),m<0&&(m=r.activeIndex-1),i.slidesPerView==="auto"&&i.slidesPerGroup===1&&i.slidesPerGroupAuto&&(m=m-r.slidesPerViewDynamic("previous",!0)+1,m=Math.max(m,0))),i.rewind&&r.isBeginning){const h=r.params.virtual&&r.params.virtual.enabled&&r.virtual?r.virtual.slides.length-1:r.slides.length-1;return r.slideTo(h,e,t,n)}else if(i.loop&&r.activeIndex===0&&i.cssMode)return requestAnimationFrame(()=>{r.slideTo(m,e,t,n)}),!0;return r.slideTo(m,e,t,n)}function ES(e,t,n){t===void 0&&(t=!0);const r=this;if(!r.destroyed)return typeof e>"u"&&(e=r.params.speed),r.slideTo(r.activeIndex,e,t,n)}function CS(e,t,n,r){t===void 0&&(t=!0),r===void 0&&(r=.5);const i=this;if(i.destroyed)return;typeof e>"u"&&(e=i.params.speed);let l=i.activeIndex;const o=Math.min(i.params.slidesPerGroupSkip,l),s=o+Math.floor((l-o)/i.params.slidesPerGroup),a=i.rtlTranslate?i.translate:-i.translate;if(a>=i.snapGrid[s]){const u=i.snapGrid[s],c=i.snapGrid[s+1];a-u>(c-u)*r&&(l+=i.params.slidesPerGroup)}else{const u=i.snapGrid[s-1],c=i.snapGrid[s];a-u<=(c-u)*r&&(l-=i.params.slidesPerGroup)}return l=Math.max(l,0),l=Math.min(l,i.slidesGrid.length-1),i.slideTo(l,e,t,n)}function TS(){const e=this;if(e.destroyed)return;const{params:t,slidesEl:n}=e,r=t.slidesPerView==="auto"?e.slidesPerViewDynamic():t.slidesPerView;let i=e.clickedIndex,l;const o=e.isElement?"swiper-slide":`.${t.slideClass}`;if(t.loop){if(e.animating)return;l=parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?ie.slides.length-e.loopedSlides+r/2?(e.loopFix(),i=e.getSlideIndex(kt(n,`${o}[data-swiper-slide-index="${l}"]`)[0]),Qs(()=>{e.slideTo(i)})):e.slideTo(i):i>e.slides.length-r?(e.loopFix(),i=e.getSlideIndex(kt(n,`${o}[data-swiper-slide-index="${l}"]`)[0]),Qs(()=>{e.slideTo(i)})):e.slideTo(i)}else e.slideTo(i)}var PS={slideTo:wS,slideToLoop:xS,slideNext:SS,slidePrev:kS,slideReset:ES,slideToClosest:CS,slideToClickedSlide:TS};function IS(e){const t=this,{params:n,slidesEl:r}=t;if(!n.loop||t.virtual&&t.params.virtual.enabled)return;const i=()=>{kt(r,`.${n.slideClass}, swiper-slide`).forEach((f,p)=>{f.setAttribute("data-swiper-slide-index",p)})},l=t.grid&&n.grid&&n.grid.rows>1,o=n.slidesPerGroup*(l?n.grid.rows:1),s=t.slides.length%o!==0,a=l&&t.slides.length%n.grid.rows!==0,u=c=>{for(let f=0;f1;u.length"u"?l=a.getSlideIndex(u.find(O=>O.classList.contains(d.slideActiveClass))):E=l;const k=r==="next"||!r,P=r==="prev"||!r;let I=0,z=0;const T=h?Math.ceil(u.length/d.grid.rows):u.length,N=(h?u[l].column:l)+(y&&typeof i>"u"?-v/2+.5:0);if(N=0;G-=1)u[G].column===R&&g.push(G)}else g.push(T-B-1)}}else if(N+v>T-m){z=Math.max(N-(T-m*2),C);for(let O=0;O{R.column===B&&x.push(G)}):x.push(B)}}if(a.__preventObserver__=!0,requestAnimationFrame(()=>{a.__preventObserver__=!1}),P&&g.forEach(O=>{u[O].swiperLoopMoveDOM=!0,p.prepend(u[O]),u[O].swiperLoopMoveDOM=!1}),k&&x.forEach(O=>{u[O].swiperLoopMoveDOM=!0,p.append(u[O]),u[O].swiperLoopMoveDOM=!1}),a.recalcSlides(),d.slidesPerView==="auto"?a.updateSlides():h&&(g.length>0&&P||x.length>0&&k)&&a.slides.forEach((O,B)=>{a.grid.updateSlide(B,O,a.slides)}),d.watchSlidesProgress&&a.updateSlidesOffset(),n){if(g.length>0&&P){if(typeof t>"u"){const O=a.slidesGrid[E],R=a.slidesGrid[E+I]-O;s?a.setTranslate(a.translate-R):(a.slideTo(E+Math.ceil(I),0,!1,!0),i&&(a.touchEventsData.startTranslate=a.touchEventsData.startTranslate-R,a.touchEventsData.currentTranslate=a.touchEventsData.currentTranslate-R))}else if(i){const O=h?g.length/d.grid.rows:g.length;a.slideTo(a.activeIndex+O,0,!1,!0),a.touchEventsData.currentTranslate=a.translate}}else if(x.length>0&&k)if(typeof t>"u"){const O=a.slidesGrid[E],R=a.slidesGrid[E-z]-O;s?a.setTranslate(a.translate-R):(a.slideTo(E-z,0,!1,!0),i&&(a.touchEventsData.startTranslate=a.touchEventsData.startTranslate-R,a.touchEventsData.currentTranslate=a.touchEventsData.currentTranslate-R))}else{const O=h?x.length/d.grid.rows:x.length;a.slideTo(a.activeIndex-O,0,!1,!0)}}if(a.allowSlidePrev=c,a.allowSlideNext=f,a.controller&&a.controller.control&&!o){const O={slideRealIndex:t,direction:r,setTranslate:i,activeSlideIndex:l,byController:!0};Array.isArray(a.controller.control)?a.controller.control.forEach(B=>{!B.destroyed&&B.params.loop&&B.loopFix({...O,slideTo:B.params.slidesPerView===d.slidesPerView?n:!1})}):a.controller.control instanceof a.constructor&&a.controller.control.params.loop&&a.controller.control.loopFix({...O,slideTo:a.controller.control.params.slidesPerView===d.slidesPerView?n:!1})}a.emit("loopFix")}function zS(){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(i=>{const l=typeof i.swiperSlideIndex>"u"?i.getAttribute("data-swiper-slide-index")*1:i.swiperSlideIndex;r[l]=i}),e.slides.forEach(i=>{i.removeAttribute("data-swiper-slide-index")}),r.forEach(i=>{n.append(i)}),e.recalcSlides(),e.slideTo(e.realIndex,0)}var _S={loopCreate:IS,loopFix:LS,loopDestroy:zS};function MS(e){const t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const n=t.params.touchEventsTarget==="container"?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})}function NS(){const e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e[e.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1}))}var OS={setGrabCursor:MS,unsetGrabCursor:NS};function bS(e,t){t===void 0&&(t=this);function n(r){if(!r||r===zn()||r===Ae())return null;r.assignedSlot&&(r=r.assignedSlot);const i=r.closest(e);return!i&&!r.getRootNode?null:i||n(r.getRootNode().host)}return n(t)}function xf(e,t,n){const r=Ae(),{params:i}=e,l=i.edgeSwipeDetection,o=i.edgeSwipeThreshold;return l&&(n<=o||n>=r.innerWidth-o)?l==="prevent"?(t.preventDefault(),!0):!1:!0}function AS(e){const t=this,n=zn();let r=e;r.originalEvent&&(r=r.originalEvent);const i=t.touchEventsData;if(r.type==="pointerdown"){if(i.pointerId!==null&&i.pointerId!==r.pointerId)return;i.pointerId=r.pointerId}else r.type==="touchstart"&&r.targetTouches.length===1&&(i.touchId=r.targetTouches[0].identifier);if(r.type==="touchstart"){xf(t,r,r.targetTouches[0].pageX);return}const{params:l,touches:o,enabled:s}=t;if(!s||!l.simulateTouch&&r.pointerType==="mouse"||t.animating&&l.preventInteractionOnTransition)return;!t.animating&&l.cssMode&&l.loop&&t.loopFix();let a=r.target;if(l.touchEventsTarget==="wrapper"&&!Hx(a,t.wrapperEl)||"which"in r&&r.which===3||"button"in r&&r.button>0||i.isTouched&&i.isMoved)return;const u=!!l.noSwipingClass&&l.noSwipingClass!=="",c=r.composedPath?r.composedPath():r.path;u&&r.target&&r.target.shadowRoot&&c&&(a=c[0]);const f=l.noSwipingSelector?l.noSwipingSelector:`.${l.noSwipingClass}`,p=!!(r.target&&r.target.shadowRoot);if(l.noSwiping&&(p?bS(f,a):a.closest(f))){t.allowClick=!0;return}if(l.swipeHandler&&!a.closest(l.swipeHandler))return;o.currentX=r.pageX,o.currentY=r.pageY;const d=o.currentX,y=o.currentY;if(!xf(t,r,d))return;Object.assign(i,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),o.startX=d,o.startY=y,i.touchStartTime=zl(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,l.threshold>0&&(i.allowThresholdMove=!1);let v=!0;a.matches(i.focusableElements)&&(v=!1,a.nodeName==="SELECT"&&(i.isTouched=!1)),n.activeElement&&n.activeElement.matches(i.focusableElements)&&n.activeElement!==a&&(r.pointerType==="mouse"||r.pointerType!=="mouse"&&!a.matches(i.focusableElements))&&n.activeElement.blur();const C=v&&t.allowTouchMove&&l.touchStartPreventDefault;(l.touchStartForcePreventDefault||C)&&!a.isContentEditable&&r.preventDefault(),l.freeMode&&l.freeMode.enabled&&t.freeMode&&t.animating&&!l.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",r)}function DS(e){const t=zn(),n=this,r=n.touchEventsData,{params:i,touches:l,rtlTranslate:o,enabled:s}=n;if(!s||!i.simulateTouch&&e.pointerType==="mouse")return;let a=e;if(a.originalEvent&&(a=a.originalEvent),a.type==="pointermove"&&(r.touchId!==null||a.pointerId!==r.pointerId))return;let u;if(a.type==="touchmove"){if(u=[...a.changedTouches].find(E=>E.identifier===r.touchId),!u||u.identifier!==r.touchId)return}else u=a;if(!r.isTouched){r.startMoving&&r.isScrolling&&n.emit("touchMoveOpposite",a);return}const c=u.pageX,f=u.pageY;if(a.preventedByNestedSwiper){l.startX=c,l.startY=f;return}if(!n.allowTouchMove){a.target.matches(r.focusableElements)||(n.allowClick=!1),r.isTouched&&(Object.assign(l,{startX:c,startY:f,currentX:c,currentY:f}),r.touchStartTime=zl());return}if(i.touchReleaseOnEdges&&!i.loop){if(n.isVertical()){if(fl.startY&&n.translate>=n.minTranslate()){r.isTouched=!1,r.isMoved=!1;return}}else if(cl.startX&&n.translate>=n.minTranslate())return}if(t.activeElement&&t.activeElement.matches(r.focusableElements)&&t.activeElement!==a.target&&a.pointerType!=="mouse"&&t.activeElement.blur(),t.activeElement&&a.target===t.activeElement&&a.target.matches(r.focusableElements)){r.isMoved=!0,n.allowClick=!1;return}r.allowTouchCallbacks&&n.emit("touchMove",a),l.previousX=l.currentX,l.previousY=l.currentY,l.currentX=c,l.currentY=f;const p=l.currentX-l.startX,d=l.currentY-l.startY;if(n.params.threshold&&Math.sqrt(p**2+d**2)"u"){let E;n.isHorizontal()&&l.currentY===l.startY||n.isVertical()&&l.currentX===l.startX?r.isScrolling=!1:p*p+d*d>=25&&(E=Math.atan2(Math.abs(d),Math.abs(p))*180/Math.PI,r.isScrolling=n.isHorizontal()?E>i.touchAngle:90-E>i.touchAngle)}if(r.isScrolling&&n.emit("touchMoveOpposite",a),typeof r.startMoving>"u"&&(l.currentX!==l.startX||l.currentY!==l.startY)&&(r.startMoving=!0),r.isScrolling||a.type==="touchmove"&&r.preventTouchMoveFromPointerMove){r.isTouched=!1;return}if(!r.startMoving)return;n.allowClick=!1,!i.cssMode&&a.cancelable&&a.preventDefault(),i.touchMoveStopPropagation&&!i.nested&&a.stopPropagation();let y=n.isHorizontal()?p:d,v=n.isHorizontal()?l.currentX-l.previousX:l.currentY-l.previousY;i.oneWayMovement&&(y=Math.abs(y)*(o?1:-1),v=Math.abs(v)*(o?1:-1)),l.diff=y,y*=i.touchRatio,o&&(y=-y,v=-v);const C=n.touchesDirection;n.swipeDirection=y>0?"prev":"next",n.touchesDirection=v>0?"prev":"next";const m=n.params.loop&&!i.cssMode,h=n.touchesDirection==="next"&&n.allowSlideNext||n.touchesDirection==="prev"&&n.allowSlidePrev;if(!r.isMoved){if(m&&h&&n.loopFix({direction:n.swipeDirection}),r.startTranslate=n.getTranslate(),n.setTransition(0),n.animating){const E=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});n.wrapperEl.dispatchEvent(E)}r.allowMomentumBounce=!1,i.grabCursor&&(n.allowSlideNext===!0||n.allowSlidePrev===!0)&&n.setGrabCursor(!0),n.emit("sliderFirstMove",a)}if(new Date().getTime(),i._loopSwapReset!==!1&&r.isMoved&&r.allowThresholdMove&&C!==n.touchesDirection&&m&&h&&Math.abs(y)>=1){Object.assign(l,{startX:c,startY:f,currentX:c,currentY:f,startTranslate:r.currentTranslate}),r.loopSwapReset=!0,r.startTranslate=r.currentTranslate;return}n.emit("sliderMove",a),r.isMoved=!0,r.currentTranslate=y+r.startTranslate;let g=!0,x=i.resistanceRatio;if(i.touchReleaseOnEdges&&(x=0),y>0?(m&&h&&r.allowThresholdMove&&r.currentTranslate>(i.centeredSlides?n.minTranslate()-n.slidesSizesGrid[n.activeIndex+1]-(i.slidesPerView!=="auto"&&n.slides.length-i.slidesPerView>=2?n.slidesSizesGrid[n.activeIndex+1]+n.params.spaceBetween:0)-n.params.spaceBetween:n.minTranslate())&&n.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),r.currentTranslate>n.minTranslate()&&(g=!1,i.resistance&&(r.currentTranslate=n.minTranslate()-1+(-n.minTranslate()+r.startTranslate+y)**x))):y<0&&(m&&h&&r.allowThresholdMove&&r.currentTranslate<(i.centeredSlides?n.maxTranslate()+n.slidesSizesGrid[n.slidesSizesGrid.length-1]+n.params.spaceBetween+(i.slidesPerView!=="auto"&&n.slides.length-i.slidesPerView>=2?n.slidesSizesGrid[n.slidesSizesGrid.length-1]+n.params.spaceBetween:0):n.maxTranslate())&&n.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:n.slides.length-(i.slidesPerView==="auto"?n.slidesPerViewDynamic():Math.ceil(parseFloat(i.slidesPerView,10)))}),r.currentTranslater.startTranslate&&(r.currentTranslate=r.startTranslate),!n.allowSlidePrev&&!n.allowSlideNext&&(r.currentTranslate=r.startTranslate),i.threshold>0)if(Math.abs(y)>i.threshold||r.allowThresholdMove){if(!r.allowThresholdMove){r.allowThresholdMove=!0,l.startX=l.currentX,l.startY=l.currentY,r.currentTranslate=r.startTranslate,l.diff=n.isHorizontal()?l.currentX-l.startX:l.currentY-l.startY;return}}else{r.currentTranslate=r.startTranslate;return}!i.followFinger||i.cssMode||((i.freeMode&&i.freeMode.enabled&&n.freeMode||i.watchSlidesProgress)&&(n.updateActiveIndex(),n.updateSlidesClasses()),i.freeMode&&i.freeMode.enabled&&n.freeMode&&n.freeMode.onTouchMove(),n.updateProgress(r.currentTranslate),n.setTranslate(r.currentTranslate))}function jS(e){const t=this,n=t.touchEventsData;let r=e;r.originalEvent&&(r=r.originalEvent);let i;if(r.type==="touchend"||r.type==="touchcancel"){if(i=[...r.changedTouches].find(E=>E.identifier===n.touchId),!i||i.identifier!==n.touchId)return}else{if(n.touchId!==null||r.pointerId!==n.pointerId)return;i=r}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(r.type)&&!(["pointercancel","contextmenu"].includes(r.type)&&(t.browser.isSafari||t.browser.isWebView)))return;n.pointerId=null,n.touchId=null;const{params:o,touches:s,rtlTranslate:a,slidesGrid:u,enabled:c}=t;if(!c||!o.simulateTouch&&r.pointerType==="mouse")return;if(n.allowTouchCallbacks&&t.emit("touchEnd",r),n.allowTouchCallbacks=!1,!n.isTouched){n.isMoved&&o.grabCursor&&t.setGrabCursor(!1),n.isMoved=!1,n.startMoving=!1;return}o.grabCursor&&n.isMoved&&n.isTouched&&(t.allowSlideNext===!0||t.allowSlidePrev===!0)&&t.setGrabCursor(!1);const f=zl(),p=f-n.touchStartTime;if(t.allowClick){const E=r.path||r.composedPath&&r.composedPath();t.updateClickedSlide(E&&E[0]||r.target,E),t.emit("tap click",r),p<300&&f-n.lastClickTime<300&&t.emit("doubleTap doubleClick",r)}if(n.lastClickTime=zl(),Qs(()=>{t.destroyed||(t.allowClick=!0)}),!n.isTouched||!n.isMoved||!t.swipeDirection||s.diff===0&&!n.loopSwapReset||n.currentTranslate===n.startTranslate&&!n.loopSwapReset){n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;return}n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;let d;if(o.followFinger?d=a?t.translate:-t.translate:d=-n.currentTranslate,o.cssMode)return;if(o.freeMode&&o.freeMode.enabled){t.freeMode.onTouchEnd({currentPos:d});return}const y=d>=-t.maxTranslate()&&!t.params.loop;let v=0,C=t.slidesSizesGrid[0];for(let E=0;E=u[E]&&d=u[E])&&(v=E,C=u[u.length-1]-u[u.length-2])}let m=null,h=null;o.rewind&&(t.isBeginning?h=o.virtual&&o.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(m=0));const g=(d-u[v])/C,x=vo.longSwipesMs){if(!o.longSwipes){t.slideTo(t.activeIndex);return}t.swipeDirection==="next"&&(g>=o.longSwipesRatio?t.slideTo(o.rewind&&t.isEnd?m:v+x):t.slideTo(v)),t.swipeDirection==="prev"&&(g>1-o.longSwipesRatio?t.slideTo(v+x):h!==null&&g<0&&Math.abs(g)>o.longSwipesRatio?t.slideTo(h):t.slideTo(v))}else{if(!o.shortSwipes){t.slideTo(t.activeIndex);return}t.navigation&&(r.target===t.navigation.nextEl||r.target===t.navigation.prevEl)?r.target===t.navigation.nextEl?t.slideTo(v+x):t.slideTo(v):(t.swipeDirection==="next"&&t.slideTo(m!==null?m:v+x),t.swipeDirection==="prev"&&t.slideTo(h!==null?h:v))}}function Sf(){const e=this,{params:t,el:n}=e;if(n&&n.offsetWidth===0)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:r,allowSlidePrev:i,snapGrid:l}=e,o=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();const s=o&&t.loop;(t.slidesPerView==="auto"||t.slidesPerView>1)&&e.isEnd&&!e.isBeginning&&!e.params.centeredSlides&&!s?e.slideTo(e.slides.length-1,0,!1,!0):e.params.loop&&!o?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(e.autoplay.resizeTimeout),e.autoplay.resizeTimeout=setTimeout(()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()},500)),e.allowSlidePrev=i,e.allowSlideNext=r,e.params.watchOverflow&&l!==e.snapGrid&&e.checkOverflow()}function RS(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function FS(){const e=this,{wrapperEl:t,rtlTranslate:n,enabled:r}=e;if(!r)return;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,e.translate===0&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();let i;const l=e.maxTranslate()-e.minTranslate();l===0?i=0:i=(e.translate-e.minTranslate())/l,i!==e.progress&&e.updateProgress(n?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}function BS(e){const t=this;tl(t,e.target),!(t.params.cssMode||t.params.slidesPerView!=="auto"&&!t.params.autoHeight)&&t.update()}function VS(){const e=this;e.documentTouchHandlerProceeded||(e.documentTouchHandlerProceeded=!0,e.params.touchReleaseOnEdges&&(e.el.style.touchAction="auto"))}const Nh=(e,t)=>{const n=zn(),{params:r,el:i,wrapperEl:l,device:o}=e,s=!!r.nested,a=t==="on"?"addEventListener":"removeEventListener",u=t;!i||typeof i=="string"||(n[a]("touchstart",e.onDocumentTouchStart,{passive:!1,capture:s}),i[a]("touchstart",e.onTouchStart,{passive:!1}),i[a]("pointerdown",e.onTouchStart,{passive:!1}),n[a]("touchmove",e.onTouchMove,{passive:!1,capture:s}),n[a]("pointermove",e.onTouchMove,{passive:!1,capture:s}),n[a]("touchend",e.onTouchEnd,{passive:!0}),n[a]("pointerup",e.onTouchEnd,{passive:!0}),n[a]("pointercancel",e.onTouchEnd,{passive:!0}),n[a]("touchcancel",e.onTouchEnd,{passive:!0}),n[a]("pointerout",e.onTouchEnd,{passive:!0}),n[a]("pointerleave",e.onTouchEnd,{passive:!0}),n[a]("contextmenu",e.onTouchEnd,{passive:!0}),(r.preventClicks||r.preventClicksPropagation)&&i[a]("click",e.onClick,!0),r.cssMode&&l[a]("scroll",e.onScroll),r.updateOnWindowResize?e[u](o.ios||o.android?"resize orientationchange observerUpdate":"resize observerUpdate",Sf,!0):e[u]("observerUpdate",Sf,!0),i[a]("load",e.onLoad,{capture:!0}))};function $S(){const e=this,{params:t}=e;e.onTouchStart=AS.bind(e),e.onTouchMove=DS.bind(e),e.onTouchEnd=jS.bind(e),e.onDocumentTouchStart=VS.bind(e),t.cssMode&&(e.onScroll=FS.bind(e)),e.onClick=RS.bind(e),e.onLoad=BS.bind(e),Nh(e,"on")}function HS(){Nh(this,"off")}var US={attachEvents:$S,detachEvents:HS};const kf=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;function WS(){const e=this,{realIndex:t,initialized:n,params:r,el:i}=e,l=r.breakpoints;if(!l||l&&Object.keys(l).length===0)return;const o=zn(),s=r.breakpointsBase==="window"||!r.breakpointsBase?r.breakpointsBase:"container",a=["window","container"].includes(r.breakpointsBase)||!r.breakpointsBase?e.el:o.querySelector(r.breakpointsBase),u=e.getBreakpoint(l,s,a);if(!u||e.currentBreakpoint===u)return;const f=(u in l?l[u]:void 0)||e.originalParams,p=kf(e,r),d=kf(e,f),y=e.params.grabCursor,v=f.grabCursor,C=r.enabled;p&&!d?(i.classList.remove(`${r.containerModifierClass}grid`,`${r.containerModifierClass}grid-column`),e.emitContainerClasses()):!p&&d&&(i.classList.add(`${r.containerModifierClass}grid`),(f.grid.fill&&f.grid.fill==="column"||!f.grid.fill&&r.grid.fill==="column")&&i.classList.add(`${r.containerModifierClass}grid-column`),e.emitContainerClasses()),y&&!v?e.unsetGrabCursor():!y&&v&&e.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(k=>{if(typeof f[k]>"u")return;const P=r[k]&&r[k].enabled,I=f[k]&&f[k].enabled;P&&!I&&e[k].disable(),!P&&I&&e[k].enable()});const m=f.direction&&f.direction!==r.direction,h=r.loop&&(f.slidesPerView!==r.slidesPerView||m),g=r.loop;m&&n&&e.changeDirection(),qe(e.params,f);const x=e.params.enabled,E=e.params.loop;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),C&&!x?e.disable():!C&&x&&e.enable(),e.currentBreakpoint=u,e.emit("_beforeBreakpoint",f),n&&(h?(e.loopDestroy(),e.loopCreate(t),e.updateSlides()):!g&&E?(e.loopCreate(t),e.updateSlides()):g&&!E&&e.loopDestroy()),e.emit("breakpoint",f)}function GS(e,t,n){if(t===void 0&&(t="window"),!e||t==="container"&&!n)return;let r=!1;const i=Ae(),l=t==="window"?i.innerHeight:n.clientHeight,o=Object.keys(e).map(s=>{if(typeof s=="string"&&s.indexOf("@")===0){const a=parseFloat(s.substr(1));return{value:l*a,point:s}}return{value:s,point:s}});o.sort((s,a)=>parseInt(s.value,10)-parseInt(a.value,10));for(let s=0;s{typeof r=="object"?Object.keys(r).forEach(i=>{r[i]&&n.push(t+i)}):typeof r=="string"&&n.push(t+r)}),n}function YS(){const e=this,{classNames:t,params:n,rtl:r,el:i,device:l}=e,o=QS(["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&&n.grid.fill==="column"},{android:l.android},{ios:l.ios},{"css-mode":n.cssMode},{centered:n.cssMode&&n.centeredSlides},{"watch-progress":n.watchSlidesProgress}],n.containerModifierClass);t.push(...o),i.classList.add(...t),e.emitContainerClasses()}function XS(){const e=this,{el:t,classNames:n}=e;!t||typeof t=="string"||(t.classList.remove(...n),e.emitContainerClasses())}var KS={addClasses:YS,removeClasses:XS};function ZS(){const e=this,{isLocked:t,params:n}=e,{slidesOffsetBefore:r}=n;if(r){const i=e.slides.length-1,l=e.slidesGrid[i]+e.slidesSizesGrid[i]+r*2;e.isLocked=e.size>l}else e.isLocked=e.snapGrid.length===1;n.allowSlideNext===!0&&(e.allowSlideNext=!e.isLocked),n.allowSlidePrev===!0&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}var JS={checkOverflow:ZS},Ks={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function ek(e,t){return function(r){r===void 0&&(r={});const i=Object.keys(r)[0],l=r[i];if(typeof l!="object"||l===null){qe(t,r);return}if(e[i]===!0&&(e[i]={enabled:!0}),i==="navigation"&&e[i]&&e[i].enabled&&!e[i].prevEl&&!e[i].nextEl&&(e[i].auto=!0),["pagination","scrollbar"].indexOf(i)>=0&&e[i]&&e[i].enabled&&!e[i].el&&(e[i].auto=!0),!(i in e&&"enabled"in l)){qe(t,r);return}typeof e[i]=="object"&&!("enabled"in e[i])&&(e[i].enabled=!0),e[i]||(e[i]={enabled:!1}),qe(t,r)}}const Ho={eventsEmitter:Kx,update:aS,translate:hS,transition:vS,slide:PS,loop:_S,grabCursor:OS,events:US,breakpoints:qS,checkOverflow:JS,classes:KS},Uo={};let uu=class Lt{constructor(){let t,n;for(var r=arguments.length,i=new Array(r),l=0;l1){const c=[];return o.querySelectorAll(n.el).forEach(f=>{const p=qe({},n,{el:f});c.push(new Lt(p))}),c}const s=this;s.__swiper__=!0,s.support=Lh(),s.device=zh({userAgent:n.userAgent}),s.browser=_h(),s.eventsListeners={},s.eventsAnyListeners=[],s.modules=[...s.__modules__],n.modules&&Array.isArray(n.modules)&&s.modules.push(...n.modules);const a={};s.modules.forEach(c=>{c({params:n,swiper:s,extendParams:ek(n,a),on:s.on.bind(s),once:s.once.bind(s),off:s.off.bind(s),emit:s.emit.bind(s)})});const u=qe({},Ks,a);return s.params=qe({},u,Uo,n),s.originalParams=qe({},s.params),s.passedParams=qe({},n),s.params&&s.params.on&&Object.keys(s.params.on).forEach(c=>{s.on(c,s.params.on[c])}),s.params&&s.params.onAny&&s.onAny(s.params.onAny),Object.assign(s,{enabled:s.params.enabled,el:t,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return s.params.direction==="horizontal"},isVertical(){return s.params.direction==="vertical"},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:s.params.allowSlideNext,allowSlidePrev:s.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:s.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:s.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),s.emit("_swiper"),s.params.init&&s.init(),s}getDirectionLabel(t){return this.isHorizontal()?t:{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"}[t]}getSlideIndex(t){const{slidesEl:n,params:r}=this,i=kt(n,`.${r.slideClass}, swiper-slide`),l=Nl(i[0]);return Nl(t)-l}getSlideIndexByData(t){return this.getSlideIndex(this.slides.find(n=>n.getAttribute("data-swiper-slide-index")*1===t))}recalcSlides(){const t=this,{slidesEl:n,params:r}=t;t.slides=kt(n,`.${r.slideClass}, swiper-slide`)}enable(){const t=this;t.enabled||(t.enabled=!0,t.params.grabCursor&&t.setGrabCursor(),t.emit("enable"))}disable(){const t=this;t.enabled&&(t.enabled=!1,t.params.grabCursor&&t.unsetGrabCursor(),t.emit("disable"))}setProgress(t,n){const r=this;t=Math.min(Math.max(t,0),1);const i=r.minTranslate(),o=(r.maxTranslate()-i)*t+i;r.translateTo(o,typeof n>"u"?0:n),r.updateActiveIndex(),r.updateSlidesClasses()}emitContainerClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const n=t.el.className.split(" ").filter(r=>r.indexOf("swiper")===0||r.indexOf(t.params.containerModifierClass)===0);t.emit("_containerClasses",n.join(" "))}getSlideClasses(t){const n=this;return n.destroyed?"":t.className.split(" ").filter(r=>r.indexOf("swiper-slide")===0||r.indexOf(n.params.slideClass)===0).join(" ")}emitSlidesClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const n=[];t.slides.forEach(r=>{const i=t.getSlideClasses(r);n.push({slideEl:r,classNames:i}),t.emit("_slideClass",r,i)}),t.emit("_slideClasses",n)}slidesPerViewDynamic(t,n){t===void 0&&(t="current"),n===void 0&&(n=!1);const r=this,{params:i,slides:l,slidesGrid:o,slidesSizesGrid:s,size:a,activeIndex:u}=r;let c=1;if(typeof i.slidesPerView=="number")return i.slidesPerView;if(i.centeredSlides){let f=l[u]?Math.ceil(l[u].swiperSlideSize):0,p;for(let d=u+1;da&&(p=!0));for(let d=u-1;d>=0;d-=1)l[d]&&!p&&(f+=l[d].swiperSlideSize,c+=1,f>a&&(p=!0))}else if(t==="current")for(let f=u+1;f=0;f-=1)o[u]-o[f]{o.complete&&tl(t,o)}),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses();function i(){const o=t.rtlTranslate?t.translate*-1:t.translate,s=Math.min(Math.max(o,t.maxTranslate()),t.minTranslate());t.setTranslate(s),t.updateActiveIndex(),t.updateSlidesClasses()}let l;if(r.freeMode&&r.freeMode.enabled&&!r.cssMode)i(),r.autoHeight&&t.updateAutoHeight();else{if((r.slidesPerView==="auto"||r.slidesPerView>1)&&t.isEnd&&!r.centeredSlides){const o=t.virtual&&r.virtual.enabled?t.virtual.slides:t.slides;l=t.slideTo(o.length-1,0,!1,!0)}else l=t.slideTo(t.activeIndex,0,!1,!0);l||i()}r.watchOverflow&&n!==t.snapGrid&&t.checkOverflow(),t.emit("update")}changeDirection(t,n){n===void 0&&(n=!0);const r=this,i=r.params.direction;return t||(t=i==="horizontal"?"vertical":"horizontal"),t===i||t!=="horizontal"&&t!=="vertical"||(r.el.classList.remove(`${r.params.containerModifierClass}${i}`),r.el.classList.add(`${r.params.containerModifierClass}${t}`),r.emitContainerClasses(),r.params.direction=t,r.slides.forEach(l=>{t==="vertical"?l.style.width="":l.style.height=""}),r.emit("changeDirection"),n&&r.update()),r}changeLanguageDirection(t){const n=this;n.rtl&&t==="rtl"||!n.rtl&&t==="ltr"||(n.rtl=t==="rtl",n.rtlTranslate=n.params.direction==="horizontal"&&n.rtl,n.rtl?(n.el.classList.add(`${n.params.containerModifierClass}rtl`),n.el.dir="rtl"):(n.el.classList.remove(`${n.params.containerModifierClass}rtl`),n.el.dir="ltr"),n.update())}mount(t){const n=this;if(n.mounted)return!0;let r=t||n.params.el;if(typeof r=="string"&&(r=document.querySelector(r)),!r)return!1;r.swiper=n,r.parentNode&&r.parentNode.host&&r.parentNode.host.nodeName===n.params.swiperElementNodeName.toUpperCase()&&(n.isElement=!0);const i=()=>`.${(n.params.wrapperClass||"").trim().split(" ").join(".")}`;let o=r&&r.shadowRoot&&r.shadowRoot.querySelector?r.shadowRoot.querySelector(i()):kt(r,i())[0];return!o&&n.params.createElements&&(o=Ml("div",n.params.wrapperClass),r.append(o),kt(r,`.${n.params.slideClass}`).forEach(s=>{o.append(s)})),Object.assign(n,{el:r,wrapperEl:o,slidesEl:n.isElement&&!r.parentNode.host.slideSlots?r.parentNode.host:o,hostEl:n.isElement?r.parentNode.host:r,mounted:!0,rtl:r.dir.toLowerCase()==="rtl"||Qt(r,"direction")==="rtl",rtlTranslate:n.params.direction==="horizontal"&&(r.dir.toLowerCase()==="rtl"||Qt(r,"direction")==="rtl"),wrongRTL:Qt(o,"display")==="-webkit-box"}),!0}init(t){const n=this;if(n.initialized||n.mount(t)===!1)return n;n.emit("beforeInit"),n.params.breakpoints&&n.setBreakpoint(),n.addClasses(),n.updateSize(),n.updateSlides(),n.params.watchOverflow&&n.checkOverflow(),n.params.grabCursor&&n.enabled&&n.setGrabCursor(),n.params.loop&&n.virtual&&n.params.virtual.enabled?n.slideTo(n.params.initialSlide+n.virtual.slidesBefore,0,n.params.runCallbacksOnInit,!1,!0):n.slideTo(n.params.initialSlide,0,n.params.runCallbacksOnInit,!1,!0),n.params.loop&&n.loopCreate(),n.attachEvents();const i=[...n.el.querySelectorAll('[loading="lazy"]')];return n.isElement&&i.push(...n.hostEl.querySelectorAll('[loading="lazy"]')),i.forEach(l=>{l.complete?tl(n,l):l.addEventListener("load",o=>{tl(n,o.target)})}),Xs(n),n.initialized=!0,Xs(n),n.emit("init"),n.emit("afterInit"),n}destroy(t,n){t===void 0&&(t=!0),n===void 0&&(n=!0);const r=this,{params:i,el:l,wrapperEl:o,slides:s}=r;return typeof r.params>"u"||r.destroyed||(r.emit("beforeDestroy"),r.initialized=!1,r.detachEvents(),i.loop&&r.loopDestroy(),n&&(r.removeClasses(),l&&typeof l!="string"&&l.removeAttribute("style"),o&&o.removeAttribute("style"),s&&s.length&&s.forEach(a=>{a.classList.remove(i.slideVisibleClass,i.slideFullyVisibleClass,i.slideActiveClass,i.slideNextClass,i.slidePrevClass),a.removeAttribute("style"),a.removeAttribute("data-swiper-slide-index")})),r.emit("destroy"),Object.keys(r.eventsListeners).forEach(a=>{r.off(a)}),t!==!1&&(r.el&&typeof r.el!="string"&&(r.el.swiper=null),Rx(r)),r.destroyed=!0),null}static extendDefaults(t){qe(Uo,t)}static get extendedDefaults(){return Uo}static get defaults(){return Ks}static installModule(t){Lt.prototype.__modules__||(Lt.prototype.__modules__=[]);const n=Lt.prototype.__modules__;typeof t=="function"&&n.indexOf(t)<0&&n.push(t)}static use(t){return Array.isArray(t)?(t.forEach(n=>Lt.installModule(n)),Lt):(Lt.installModule(t),Lt)}};Object.keys(Ho).forEach(e=>{Object.keys(Ho[e]).forEach(t=>{uu.prototype[t]=Ho[e][t]})});uu.use([Yx,Xx]);const Oh=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","swiperElementNodeName","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","breakpointsBase","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopAdditionalSlides","loopAddBlankSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideFullyVisibleClass","slideNextClass","slidePrevClass","slideBlankClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function Tn(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"&&!e.__swiper__}function rr(e,t){const n=["__proto__","constructor","prototype"];Object.keys(t).filter(r=>n.indexOf(r)<0).forEach(r=>{typeof e[r]>"u"?e[r]=t[r]:Tn(t[r])&&Tn(e[r])&&Object.keys(t[r]).length>0?t[r].__swiper__?e[r]=t[r]:rr(e[r],t[r]):e[r]=t[r]})}function bh(e){return e===void 0&&(e={}),e.navigation&&typeof e.navigation.nextEl>"u"&&typeof e.navigation.prevEl>"u"}function Ah(e){return e===void 0&&(e={}),e.pagination&&typeof e.pagination.el>"u"}function Dh(e){return e===void 0&&(e={}),e.scrollbar&&typeof e.scrollbar.el>"u"}function jh(e){e===void 0&&(e="");const t=e.split(" ").map(r=>r.trim()).filter(r=>!!r),n=[];return t.forEach(r=>{n.indexOf(r)<0&&n.push(r)}),n.join(" ")}function tk(e){return e===void 0&&(e=""),e?e.includes("swiper-wrapper")?e:`swiper-wrapper ${e}`:"swiper-wrapper"}function nk(e){let{swiper:t,slides:n,passedParams:r,changedParams:i,nextEl:l,prevEl:o,scrollbarEl:s,paginationEl:a}=e;const u=i.filter(z=>z!=="children"&&z!=="direction"&&z!=="wrapperClass"),{params:c,pagination:f,navigation:p,scrollbar:d,virtual:y,thumbs:v}=t;let C,m,h,g,x,E,k,P;i.includes("thumbs")&&r.thumbs&&r.thumbs.swiper&&!r.thumbs.swiper.destroyed&&c.thumbs&&(!c.thumbs.swiper||c.thumbs.swiper.destroyed)&&(C=!0),i.includes("controller")&&r.controller&&r.controller.control&&c.controller&&!c.controller.control&&(m=!0),i.includes("pagination")&&r.pagination&&(r.pagination.el||a)&&(c.pagination||c.pagination===!1)&&f&&!f.el&&(h=!0),i.includes("scrollbar")&&r.scrollbar&&(r.scrollbar.el||s)&&(c.scrollbar||c.scrollbar===!1)&&d&&!d.el&&(g=!0),i.includes("navigation")&&r.navigation&&(r.navigation.prevEl||o)&&(r.navigation.nextEl||l)&&(c.navigation||c.navigation===!1)&&p&&!p.prevEl&&!p.nextEl&&(x=!0);const I=z=>{t[z]&&(t[z].destroy(),z==="navigation"?(t.isElement&&(t[z].prevEl.remove(),t[z].nextEl.remove()),c[z].prevEl=void 0,c[z].nextEl=void 0,t[z].prevEl=void 0,t[z].nextEl=void 0):(t.isElement&&t[z].el.remove(),c[z].el=void 0,t[z].el=void 0))};i.includes("loop")&&t.isElement&&(c.loop&&!r.loop?E=!0:!c.loop&&r.loop?k=!0:P=!0),u.forEach(z=>{if(Tn(c[z])&&Tn(r[z]))Object.assign(c[z],r[z]),(z==="navigation"||z==="pagination"||z==="scrollbar")&&"enabled"in r[z]&&!r[z].enabled&&I(z);else{const T=r[z];(T===!0||T===!1)&&(z==="navigation"||z==="pagination"||z==="scrollbar")?T===!1&&I(z):c[z]=r[z]}}),u.includes("controller")&&!m&&t.controller&&t.controller.control&&c.controller&&c.controller.control&&(t.controller.control=c.controller.control),i.includes("children")&&n&&y&&c.virtual.enabled?(y.slides=n,y.update(!0)):i.includes("virtual")&&y&&c.virtual.enabled&&(n&&(y.slides=n),y.update(!0)),i.includes("children")&&n&&c.loop&&(P=!0),C&&v.init()&&v.update(!0),m&&(t.controller.control=c.controller.control),h&&(t.isElement&&(!a||typeof a=="string")&&(a=document.createElement("div"),a.classList.add("swiper-pagination"),a.part.add("pagination"),t.el.appendChild(a)),a&&(c.pagination.el=a),f.init(),f.render(),f.update()),g&&(t.isElement&&(!s||typeof s=="string")&&(s=document.createElement("div"),s.classList.add("swiper-scrollbar"),s.part.add("scrollbar"),t.el.appendChild(s)),s&&(c.scrollbar.el=s),d.init(),d.updateSize(),d.setTranslate()),x&&(t.isElement&&((!l||typeof l=="string")&&(l=document.createElement("div"),l.classList.add("swiper-button-next"),l.innerHTML=t.hostEl.constructor.nextButtonSvg,l.part.add("button-next"),t.el.appendChild(l)),(!o||typeof o=="string")&&(o=document.createElement("div"),o.classList.add("swiper-button-prev"),o.innerHTML=t.hostEl.constructor.prevButtonSvg,o.part.add("button-prev"),t.el.appendChild(o))),l&&(c.navigation.nextEl=l),o&&(c.navigation.prevEl=o),p.init(),p.update()),i.includes("allowSlideNext")&&(t.allowSlideNext=r.allowSlideNext),i.includes("allowSlidePrev")&&(t.allowSlidePrev=r.allowSlidePrev),i.includes("direction")&&t.changeDirection(r.direction,!1),(E||P)&&t.loopDestroy(),(k||P)&&t.loopCreate(),t.update()}function rk(e,t){e===void 0&&(e={}),t===void 0&&(t=!0);const n={on:{}},r={},i={};rr(n,Ks),n._emitClasses=!0,n.init=!1;const l={},o=Oh.map(a=>a.replace(/_/,"")),s=Object.assign({},e);return Object.keys(s).forEach(a=>{typeof e[a]>"u"||(o.indexOf(a)>=0?Tn(e[a])?(n[a]={},i[a]={},rr(n[a],e[a]),rr(i[a],e[a])):(n[a]=e[a],i[a]=e[a]):a.search(/on[A-Z]/)===0&&typeof e[a]=="function"?t?r[`${a[2].toLowerCase()}${a.substr(3)}`]=e[a]:n.on[`${a[2].toLowerCase()}${a.substr(3)}`]=e[a]:l[a]=e[a])}),["navigation","pagination","scrollbar"].forEach(a=>{n[a]===!0&&(n[a]={}),n[a]===!1&&delete n[a]}),{params:n,passedParams:i,rest:l,events:r}}function ik(e,t){let{el:n,nextEl:r,prevEl:i,paginationEl:l,scrollbarEl:o,swiper:s}=e;bh(t)&&r&&i&&(s.params.navigation.nextEl=r,s.originalParams.navigation.nextEl=r,s.params.navigation.prevEl=i,s.originalParams.navigation.prevEl=i),Ah(t)&&l&&(s.params.pagination.el=l,s.originalParams.pagination.el=l),Dh(t)&&o&&(s.params.scrollbar.el=o,s.originalParams.scrollbar.el=o),s.init(n)}function lk(e,t,n,r,i){const l=[];if(!t)return l;const o=a=>{l.indexOf(a)<0&&l.push(a)};if(n&&r){const a=r.map(i),u=n.map(i);a.join("")!==u.join("")&&o("children"),r.length!==n.length&&o("children")}return Oh.filter(a=>a[0]==="_").map(a=>a.replace(/_/,"")).forEach(a=>{if(a in e&&a in t)if(Tn(e[a])&&Tn(t[a])){const u=Object.keys(e[a]),c=Object.keys(t[a]);u.length!==c.length?o(a):(u.forEach(f=>{e[a][f]!==t[a][f]&&o(a)}),c.forEach(f=>{e[a][f]!==t[a][f]&&o(a)}))}else e[a]!==t[a]&&o(a)}),l}const ok=e=>{!e||e.destroyed||!e.params.virtual||e.params.virtual&&!e.params.virtual.enabled||(e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.parallax&&e.params.parallax&&e.params.parallax.enabled&&e.parallax.setTranslate())};function Ol(){return Ol=Object.assign?Object.assign.bind():function(e){for(var t=1;t{Rh(n)?t.push(n):n.props&&n.props.children&&Fh(n.props.children).forEach(r=>t.push(r))}),t}function sk(e){const t=[],n={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return me.Children.toArray(e).forEach(r=>{if(Rh(r))t.push(r);else if(r.props&&r.props.slot&&n[r.props.slot])n[r.props.slot].push(r);else if(r.props&&r.props.children){const i=Fh(r.props.children);i.length>0?i.forEach(l=>t.push(l)):n["container-end"].push(r)}else n["container-end"].push(r)}),{slides:t,slots:n}}function ak(e,t,n){if(!n)return null;const r=c=>{let f=c;return c<0?f=t.length+c:f>=t.length&&(f=f-t.length),f},i=e.isHorizontal()?{[e.rtlTranslate?"right":"left"]:`${n.offset}px`}:{top:`${n.offset}px`},{from:l,to:o}=n,s=e.params.loop?-t.length:0,a=e.params.loop?t.length*2:t.length,u=[];for(let c=s;c=l&&c<=o&&u.push(t[r(c)]);return u.map((c,f)=>me.cloneElement(c,{swiper:e,style:i,key:c.props.virtualIndex||c.key||`slide-${f}`}))}function Wr(e,t){return typeof window>"u"?W.useEffect(e,t):W.useLayoutEffect(e,t)}const Ef=W.createContext(null),uk=W.createContext(null),cu=W.forwardRef(function(e,t){let{className:n,tag:r="div",wrapperTag:i="div",children:l,onSwiper:o,...s}=e===void 0?{}:e,a=!1;const[u,c]=W.useState("swiper"),[f,p]=W.useState(null),[d,y]=W.useState(!1),v=W.useRef(!1),C=W.useRef(null),m=W.useRef(null),h=W.useRef(null),g=W.useRef(null),x=W.useRef(null),E=W.useRef(null),k=W.useRef(null),P=W.useRef(null),{params:I,passedParams:z,rest:T,events:L}=rk(s),{slides:N,slots:O}=sk(l),B=()=>{y(!d)};Object.assign(I.on,{_containerClasses(F,w){c(w)}});const R=()=>{Object.assign(I.on,L),a=!0;const F={...I};if(delete F.wrapperClass,m.current=new uu(F),m.current.virtual&&m.current.params.virtual.enabled){m.current.virtual.slides=N;const w={cache:!1,slides:N,renderExternal:p,renderExternalUpdate:!1};rr(m.current.params.virtual,w),rr(m.current.originalParams.virtual,w)}};C.current||R(),m.current&&m.current.on("_beforeBreakpoint",B);const G=()=>{a||!L||!m.current||Object.keys(L).forEach(F=>{m.current.on(F,L[F])})},ie=()=>{!L||!m.current||Object.keys(L).forEach(F=>{m.current.off(F,L[F])})};W.useEffect(()=>()=>{m.current&&m.current.off("_beforeBreakpoint",B)}),W.useEffect(()=>{!v.current&&m.current&&(m.current.emitSlidesClasses(),v.current=!0)}),Wr(()=>{if(t&&(t.current=C.current),!!C.current)return m.current.destroyed&&R(),ik({el:C.current,nextEl:x.current,prevEl:E.current,paginationEl:k.current,scrollbarEl:P.current,swiper:m.current},I),o&&!m.current.destroyed&&o(m.current),()=>{m.current&&!m.current.destroyed&&m.current.destroy(!0,!1)}},[]),Wr(()=>{G();const F=lk(z,h.current,N,g.current,w=>w.key);return h.current=z,g.current=N,F.length&&m.current&&!m.current.destroyed&&nk({swiper:m.current,slides:N,passedParams:z,changedParams:F,nextEl:x.current,prevEl:E.current,scrollbarEl:P.current,paginationEl:k.current}),()=>{ie()}}),Wr(()=>{ok(m.current)},[f]);function D(){return I.virtual?ak(m.current,N,f):N.map((F,w)=>me.cloneElement(F,{swiper:m.current,swiperSlideIndex:w}))}return me.createElement(r,Ol({ref:C,className:jh(`${u}${n?` ${n}`:""}`)},T),me.createElement(uk.Provider,{value:m.current},O["container-start"],me.createElement(i,{className:tk(I.wrapperClass)},O["wrapper-start"],D(),O["wrapper-end"]),bh(I)&&me.createElement(me.Fragment,null,me.createElement("div",{ref:E,className:"swiper-button-prev"}),me.createElement("div",{ref:x,className:"swiper-button-next"})),Dh(I)&&me.createElement("div",{ref:P,className:"swiper-scrollbar"}),Ah(I)&&me.createElement("div",{ref:k,className:"swiper-pagination"}),O["container-end"]))});cu.displayName="Swiper";const fu=W.forwardRef(function(e,t){let{tag:n="div",children:r,className:i="",swiper:l,zoom:o,lazy:s,virtualIndex:a,swiperSlideIndex:u,...c}=e===void 0?{}:e;const f=W.useRef(null),[p,d]=W.useState("swiper-slide"),[y,v]=W.useState(!1);function C(x,E,k){E===f.current&&d(k)}Wr(()=>{if(typeof u<"u"&&(f.current.swiperSlideIndex=u),t&&(t.current=f.current),!(!f.current||!l)){if(l.destroyed){p!=="swiper-slide"&&d("swiper-slide");return}return l.on("_slideClass",C),()=>{l&&l.off("_slideClass",C)}}}),Wr(()=>{l&&f.current&&!l.destroyed&&d(l.getSlideClasses(f.current))},[l]);const m={isActive:p.indexOf("swiper-slide-active")>=0,isVisible:p.indexOf("swiper-slide-visible")>=0,isPrev:p.indexOf("swiper-slide-prev")>=0,isNext:p.indexOf("swiper-slide-next")>=0},h=()=>typeof r=="function"?r(m):r,g=()=>{v(!0)};return me.createElement(n,Ol({ref:f,className:jh(`${p}${i?` ${i}`:""}`),"data-swiper-slide-index":a,onLoad:g},c),o&&me.createElement(Ef.Provider,{value:m},me.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":typeof o=="number"?o:void 0},h(),s&&!y&&me.createElement("div",{className:"swiper-lazy-preloader"}))),!o&&me.createElement(Ef.Provider,{value:m},h(),s&&!y&&me.createElement("div",{className:"swiper-lazy-preloader"})))});fu.displayName="SwiperSlide";const Cf=({images:e,selected:t,setSelected:n,borderColor:r,garment:i})=>{const l=o=>{o.preventDefault(),o.stopPropagation();const s=o.target;n(s.id)};return _.jsx("div",{className:`flex ${i?"w-[420px] pl-4":"flex-col h-[560px] pt-4"} ${e.length===4?"justify-between":"justify-evenly"}`,children:e.map(o=>_.jsx("img",{className:`${i?"my-2":"mx-2"} hover:scale-105 cursor-pointer border-1.5 border-solid ${t===o.url?"scale-105 opacity-100":"opacity-50 hover:opacity-90"}`,alt:o.url,src:o.url,width:90,height:120,style:t===o.url?{borderColor:i?"red":"blue"}:{borderColor:r},id:o.url,onClick:l},o.url))})},Bi=e=>{const t=e.split("/").length-1;return e.split("/")[t].split(".")[0]},ck=({title:e,humanImages:t,garmentImages:n,backgroundColor:r,textColor:i,ind:l})=>{const[o,s]=W.useState(t[0].url),[a,u]=W.useState(n[0].url),[c,f]=W.useState(`/inthewild/${l}/${Bi(a)}/${Bi(o)}.jpeg`);return W.useEffect(()=>{f(`/inthewild/${l}/${Bi(a)}/${Bi(o)}.jpeg`)},[o,a,n,t]),_.jsxs("div",{className:"flex flex-col justify-center items-center px-40 py-6",style:{backgroundColor:r},children:[_.jsx("div",{className:`font-semibold text-4xl ${e?"px-5 pt-8":""}`,style:{color:i},children:e}),_.jsxs("div",{className:"flex flex-col m-0 px-28",children:[_.jsxs("div",{className:"flex",children:[_.jsx("div",{className:"mx-2 w-[100px]"}),_.jsx("div",{children:_.jsx(Cf,{images:n,selected:a,setSelected:u,borderColor:r,garment:!0})})]}),_.jsxs("div",{className:"flex",children:[_.jsx("div",{children:_.jsx(Cf,{images:t,selected:o,setSelected:s,borderColor:r,garment:!1})}),_.jsx("div",{className:"pt-4 pl-4",children:_.jsx("img",{alt:c,src:c,width:420,height:560})})]})]})]})},fk=({humans:e,garments:t,backgroundColor:n})=>_.jsx(_.Fragment,{children:_.jsx("div",{className:"flex justify-center items-center relative pt-10px",style:{backgroundColor:n},children:_.jsx(cu,{modules:[Ph,Ih],spaceBetween:50,slidesPerView:1,navigation:!0,pagination:{clickable:!0},loop:!0,children:e.map((r,i)=>_.jsx(fu,{className:"text-center",children:_.jsx(ck,{humanImages:r,garmentImages:t[i],backgroundColor:"white",ind:i})},i))})})}),Tf=({images:e,backgroundColor:t})=>_.jsx(_.Fragment,{children:_.jsx("div",{className:"flex justify-center items-center relative pt-10px pb-20px",style:{backgroundColor:t},children:_.jsx(cu,{modules:[Ph,Ih],spaceBetween:50,slidesPerView:1,navigation:!0,pagination:{clickable:!0},loop:!0,children:e.map(n=>_.jsx(fu,{className:"text-center",children:_.jsx("img",{loading:"lazy",src:n.url,width:1200})},n.url))})})});function dk(){return _.jsx(_.Fragment,{children:_.jsx(ky,{children:_.jsxs("div",{className:"w-screen h-screen min-w-[1400px]",children:[_.jsx(Ax,{images:cx,backgroundColor:"white",title:"Reference images are in colored boxes (blue: human, red: garment)"}),_.jsx(fn,{title:_.jsxs(_.Fragment,{children:["Improving Diffusion Models for",_.jsx("br",{}),"Authentic Virtual Try-on in the Wild"]}),backgroundColor:"white",textColor:"black",titleFontSize:"text-5xl",children:_.jsx(Ox,{})}),_.jsx(fn,{title:`TL;DR: ${gx}`,backgroundColor:Dn,textColor:"white",titleFontSize:"text-3xl"}),_.jsx(ux,{title:"Abstract",backgroundColor:"white",textColor:"black",children:_.jsx(An,{text:yx})}),_.jsx(fn,{title:"Approach",backgroundColor:Dn,textColor:"white",children:_.jsx(An,{text:vx})}),_.jsx(bx,{image:fx,backgroundColor:"white"}),_.jsx(fn,{title:"Multiple People on Same Garment",backgroundColor:Dn,textColor:"white",children:_.jsx(An,{text:wx})}),_.jsx(Tf,{images:dx,backgroundColor:"white"}),_.jsx(fn,{title:"Virtual Try-on in the Wild",backgroundColor:Dn,textColor:"white",children:_.jsx(An,{text:xx})}),_.jsx(fk,{humans:px,garments:hx,backgroundColor:"white"}),_.jsx(fn,{title:"Qualitative Comparisons",backgroundColor:Dn,textColor:"white",children:_.jsx(An,{text:Sx})}),_.jsx(Tf,{images:mx,backgroundColor:"white"}),_.jsx(fn,{backgroundColor:Dn,textColor:"white",last:!0,children:_.jsx(An,{text:kx})})]})})})}Wo.createRoot(document.getElementById("root")).render(_.jsx(me.StrictMode,{children:_.jsx(dk,{})}));