(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))i(o);new MutationObserver(o=>{for(const r of o)if(r.type==="childList")for(const s of r.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&i(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const r={};return o.integrity&&(r.integrity=o.integrity),o.referrerPolicy&&(r.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?r.credentials="include":o.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function i(o){if(o.ep)return;o.ep=!0;const r=n(o);fetch(o.href,r)}})();function ds(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var z0={exports:{}},vl={},M0={exports:{}},re={};/** * @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 us=Symbol.for("react.element"),wC=Symbol.for("react.portal"),kC=Symbol.for("react.fragment"),CC=Symbol.for("react.strict_mode"),SC=Symbol.for("react.profiler"),EC=Symbol.for("react.provider"),TC=Symbol.for("react.context"),PC=Symbol.for("react.forward_ref"),AC=Symbol.for("react.suspense"),LC=Symbol.for("react.memo"),IC=Symbol.for("react.lazy"),Up=Symbol.iterator;function OC(e){return e===null||typeof e!="object"?null:(e=Up&&e[Up]||e["@@iterator"],typeof e=="function"?e:null)}var B0={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},j0=Object.assign,V0={};function Vo(e,t,n){this.props=e,this.context=t,this.refs=V0,this.updater=n||B0}Vo.prototype.isReactComponent={};Vo.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")};Vo.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function F0(){}F0.prototype=Vo.prototype;function vh(e,t,n){this.props=e,this.context=t,this.refs=V0,this.updater=n||B0}var yh=vh.prototype=new F0;yh.constructor=vh;j0(yh,Vo.prototype);yh.isPureReactComponent=!0;var Wp=Array.isArray,H0=Object.prototype.hasOwnProperty,xh={current:null},N0={key:!0,ref:!0,__self:!0,__source:!0};function U0(e,t,n){var i,o={},r=null,s=null;if(t!=null)for(i in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(r=""+t.key),t)H0.call(t,i)&&!N0.hasOwnProperty(i)&&(o[i]=t[i]);var a=arguments.length-2;if(a===1)o.children=n;else if(1>>1,F=I[_];if(0>>1;_o(xe,O))oeo(Pe,xe)?(I[_]=Pe,I[oe]=O,_=oe):(I[_]=xe,I[J]=O,_=J);else if(oeo(Pe,O))I[_]=Pe,I[oe]=O,_=oe;else break e}}return $}function o(I,$){var O=I.sortIndex-$.sortIndex;return O!==0?O:I.id-$.id}if(typeof performance=="object"&&typeof performance.now=="function"){var r=performance;e.unstable_now=function(){return r.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],c=[],d=1,u=null,h=3,f=!1,p=!1,m=!1,x=typeof setTimeout=="function"?setTimeout:null,b=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function v(I){for(var $=n(c);$!==null;){if($.callback===null)i(c);else if($.startTime<=I)i(c),$.sortIndex=$.expirationTime,t(l,$);else break;$=n(c)}}function w(I){if(m=!1,v(I),!p)if(n(l)!==null)p=!0,Z(E);else{var $=n(c);$!==null&&Q(w,$.startTime-I)}}function E(I,$){p=!1,m&&(m=!1,b(C),C=-1),f=!0;var O=h;try{for(v($),u=n(l);u!==null&&(!(u.expirationTime>$)||I&&!R());){var _=u.callback;if(typeof _=="function"){u.callback=null,h=u.priorityLevel;var F=_(u.expirationTime<=$);$=e.unstable_now(),typeof F=="function"?u.callback=F:u===n(l)&&i(l),v($)}else i(l);u=n(l)}if(u!==null)var te=!0;else{var J=n(c);J!==null&&Q(w,J.startTime-$),te=!1}return te}finally{u=null,h=O,f=!1}}var S=!1,k=null,C=-1,A=5,D=-1;function R(){return!(e.unstable_now()-DI||125_?(I.sortIndex=O,t(c,I),n(l)===null&&I===n(c)&&(m?(b(C),C=-1):m=!0,Q(w,O-_))):(I.sortIndex=F,t(l,I),p||f||(p=!0,Z(E))),I},e.unstable_shouldYield=R,e.unstable_wrapCallback=function(I){var $=h;return function(){var O=h;h=$;try{return I.apply(this,arguments)}finally{h=O}}}})(Y0);q0.exports=Y0;var HC=q0.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 K0=X,xt=HC;function z(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"),_d=Object.prototype.hasOwnProperty,NC=/^[: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]*$/,qp={},Yp={};function UC(e){return _d.call(Yp,e)?!0:_d.call(qp,e)?!1:NC.test(e)?Yp[e]=!0:(qp[e]=!0,!1)}function WC(e,t,n,i){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return i?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function XC(e,t,n,i){if(t===null||typeof t>"u"||WC(e,t,n,i))return!0;if(i)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 st(e,t,n,i,o,r,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=i,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=r,this.removeEmptyString=s}var Ye={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ye[e]=new st(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ye[t]=new st(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ye[e]=new st(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ye[e]=new st(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){Ye[e]=new st(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ye[e]=new st(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ye[e]=new st(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ye[e]=new st(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ye[e]=new st(e,5,!1,e.toLowerCase(),null,!1,!1)});var kh=/[\-:]([a-z])/g;function Ch(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(kh,Ch);Ye[t]=new st(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(kh,Ch);Ye[t]=new st(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(kh,Ch);Ye[t]=new st(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ye[e]=new st(e,1,!1,e.toLowerCase(),null,!1,!1)});Ye.xlinkHref=new st("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ye[e]=new st(e,1,!1,e.toLowerCase(),null,!0,!0)});function Sh(e,t,n,i){var o=Ye.hasOwnProperty(t)?Ye[t]:null;(o!==null?o.type!==0:i||!(2a||o[s]!==r[a]){var l=` `+o[s].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{Oc=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ur(e):""}function qC(e){switch(e.tag){case 5:return ur(e.type);case 16:return ur("Lazy");case 13:return ur("Suspense");case 19:return ur("SuspenseList");case 0:case 2:case 15:return e=Rc(e.type,!1),e;case 11:return e=Rc(e.type.render,!1),e;case 1:return e=Rc(e.type,!0),e;default:return""}}function jd(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 no:return"Fragment";case to:return"Portal";case zd:return"Profiler";case Eh:return"StrictMode";case Md:return"Suspense";case Bd:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Z0:return(e.displayName||"Context")+".Consumer";case Q0:return(e._context.displayName||"Context")+".Provider";case Th:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ph:return t=e.displayName||null,t!==null?t:jd(e.type)||"Memo";case $n:t=e._payload,e=e._init;try{return jd(e(t))}catch{}}return null}function YC(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 jd(t);case 8:return t===Eh?"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 Zn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ev(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function KC(e){var t=ev(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),i=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,r=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){i=""+s,r.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return i},setValue:function(s){i=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Is(e){e._valueTracker||(e._valueTracker=KC(e))}function tv(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),i="";return e&&(i=ev(e)?e.checked?"true":"false":e.value),e=i,e!==n?(t.setValue(e),!0):!1}function Ta(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 Vd(e,t){var n=t.checked;return Te({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Gp(e,t){var n=t.defaultValue==null?"":t.defaultValue,i=t.checked!=null?t.checked:t.defaultChecked;n=Zn(t.value!=null?t.value:n),e._wrapperState={initialChecked:i,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function nv(e,t){t=t.checked,t!=null&&Sh(e,"checked",t,!1)}function Fd(e,t){nv(e,t);var n=Zn(t.value),i=t.type;if(n!=null)i==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(i==="submit"||i==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Hd(e,t.type,n):t.hasOwnProperty("defaultValue")&&Hd(e,t.type,Zn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Qp(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var i=t.type;if(!(i!=="submit"&&i!=="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 Hd(e,t,n){(t!=="number"||Ta(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var hr=Array.isArray;function yo(e,t,n,i){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Os.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function zr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var br={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},GC=["Webkit","ms","Moz","O"];Object.keys(br).forEach(function(e){GC.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),br[t]=br[e]})});function sv(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||br.hasOwnProperty(e)&&br[e]?(""+t).trim():t+"px"}function av(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var i=n.indexOf("--")===0,o=sv(n,t[n],i);n==="float"&&(n="cssFloat"),i?e.setProperty(n,o):e[n]=o}}var QC=Te({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 Wd(e,t){if(t){if(QC[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(z(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(z(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(z(61))}if(t.style!=null&&typeof t.style!="object")throw Error(z(62))}}function Xd(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 qd=null;function Ah(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Yd=null,xo=null,wo=null;function em(e){if(e=ps(e)){if(typeof Yd!="function")throw Error(z(280));var t=e.stateNode;t&&(t=Cl(t),Yd(e.stateNode,e.type,t))}}function lv(e){xo?wo?wo.push(e):wo=[e]:xo=e}function cv(){if(xo){var e=xo,t=wo;if(wo=xo=null,em(e),t)for(e=0;e>>=0,e===0?32:31-(lS(e)/cS|0)|0}var Rs=64,Ds=4194304;function fr(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 Ia(e,t){var n=e.pendingLanes;if(n===0)return 0;var i=0,o=e.suspendedLanes,r=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~o;a!==0?i=fr(a):(r&=s,r!==0&&(i=fr(r)))}else s=n&~o,s!==0?i=fr(s):r!==0&&(i=fr(r));if(i===0)return 0;if(t!==0&&t!==i&&!(t&o)&&(o=i&-i,r=t&-t,o>=r||o===16&&(r&4194240)!==0))return t;if(i&4&&(i|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=i;0n;n++)t.push(e);return t}function hs(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Yt(t),e[t]=n}function fS(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 i=e.eventTimes;for(e=e.expirationTimes;0=yr),cm=" ",dm=!1;function Lv(e,t){switch(e){case"keyup":return FS.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Iv(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var io=!1;function NS(e,t){switch(e){case"compositionend":return Iv(t);case"keypress":return t.which!==32?null:(dm=!0,cm);case"textInput":return e=t.data,e===cm&&dm?null:e;default:return null}}function US(e,t){if(io)return e==="compositionend"||!zh&&Lv(e,t)?(e=Pv(),aa=Dh=Vn=null,io=!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=i}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=pm(n)}}function $v(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?$v(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function _v(){for(var e=window,t=Ta();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ta(e.document)}return t}function Mh(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 JS(e){var t=_v(),n=e.focusedElem,i=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&$v(n.ownerDocument.documentElement,n)){if(i!==null&&Mh(n)){if(t=i.start,e=i.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 o=n.textContent.length,r=Math.min(i.start,o);i=i.end===void 0?r:Math.min(i.end,o),!e.extend&&r>i&&(o=i,i=r,r=o),o=mm(n,r);var s=mm(n,i);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),r>i?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.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,oo=null,eu=null,wr=null,tu=!1;function gm(e,t,n){var i=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;tu||oo==null||oo!==Ta(i)||(i=oo,"selectionStart"in i&&Mh(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),wr&&Hr(wr,i)||(wr=i,i=Da(eu,"onSelect"),0ao||(e.current=au[ao],au[ao]=null,ao--)}function me(e,t){ao++,au[ao]=e.current,e.current=t}var Jn={},tt=ai(Jn),dt=ai(!1),Pi=Jn;function Ao(e,t){var n=e.type.contextTypes;if(!n)return Jn;var i=e.stateNode;if(i&&i.__reactInternalMemoizedUnmaskedChildContext===t)return i.__reactInternalMemoizedMaskedChildContext;var o={},r;for(r in n)o[r]=t[r];return i&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function ut(e){return e=e.childContextTypes,e!=null}function _a(){be(dt),be(tt)}function Cm(e,t,n){if(tt.current!==Jn)throw Error(z(168));me(tt,t),me(dt,n)}function Uv(e,t,n){var i=e.stateNode;if(t=t.childContextTypes,typeof i.getChildContext!="function")return n;i=i.getChildContext();for(var o in i)if(!(o in t))throw Error(z(108,YC(e)||"Unknown",o));return Te({},n,i)}function za(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Jn,Pi=tt.current,me(tt,e),me(dt,dt.current),!0}function Sm(e,t,n){var i=e.stateNode;if(!i)throw Error(z(169));n?(e=Uv(e,t,Pi),i.__reactInternalMemoizedMergedChildContext=e,be(dt),be(tt),me(tt,e)):be(dt),me(dt,n)}var cn=null,Sl=!1,Xc=!1;function Wv(e){cn===null?cn=[e]:cn.push(e)}function uE(e){Sl=!0,Wv(e)}function li(){if(!Xc&&cn!==null){Xc=!0;var e=0,t=ce;try{var n=cn;for(ce=1;e>=s,o-=s,hn=1<<32-Yt(t)+o|n<C?(A=k,k=null):A=k.sibling;var D=h(b,k,v[C],w);if(D===null){k===null&&(k=A);break}e&&k&&D.alternate===null&&t(b,k),g=r(D,g,C),S===null?E=D:S.sibling=D,S=D,k=A}if(C===v.length)return n(b,k),ke&&fi(b,C),E;if(k===null){for(;CC?(A=k,k=null):A=k.sibling;var R=h(b,k,D.value,w);if(R===null){k===null&&(k=A);break}e&&k&&R.alternate===null&&t(b,k),g=r(R,g,C),S===null?E=R:S.sibling=R,S=R,k=A}if(D.done)return n(b,k),ke&&fi(b,C),E;if(k===null){for(;!D.done;C++,D=v.next())D=u(b,D.value,w),D!==null&&(g=r(D,g,C),S===null?E=D:S.sibling=D,S=D);return ke&&fi(b,C),E}for(k=i(b,k);!D.done;C++,D=v.next())D=f(k,b,C,D.value,w),D!==null&&(e&&D.alternate!==null&&k.delete(D.key===null?C:D.key),g=r(D,g,C),S===null?E=D:S.sibling=D,S=D);return e&&k.forEach(function(V){return t(b,V)}),ke&&fi(b,C),E}function x(b,g,v,w){if(typeof v=="object"&&v!==null&&v.type===no&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case Ls:e:{for(var E=v.key,S=g;S!==null;){if(S.key===E){if(E=v.type,E===no){if(S.tag===7){n(b,S.sibling),g=o(S,v.props.children),g.return=b,b=g;break e}}else if(S.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===$n&&Om(E)===S.type){n(b,S.sibling),g=o(S,v.props),g.ref=ir(b,S,v),g.return=b,b=g;break e}n(b,S);break}else t(b,S);S=S.sibling}v.type===no?(g=Ei(v.props.children,b.mode,w,v.key),g.return=b,b=g):(w=ma(v.type,v.key,v.props,null,b.mode,w),w.ref=ir(b,g,v),w.return=b,b=w)}return s(b);case to:e:{for(S=v.key;g!==null;){if(g.key===S)if(g.tag===4&&g.stateNode.containerInfo===v.containerInfo&&g.stateNode.implementation===v.implementation){n(b,g.sibling),g=o(g,v.children||[]),g.return=b,b=g;break e}else{n(b,g);break}else t(b,g);g=g.sibling}g=ed(v,b.mode,w),g.return=b,b=g}return s(b);case $n:return S=v._init,x(b,g,S(v._payload),w)}if(hr(v))return p(b,g,v,w);if(Zo(v))return m(b,g,v,w);Vs(b,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,g!==null&&g.tag===6?(n(b,g.sibling),g=o(g,v),g.return=b,b=g):(n(b,g),g=Jc(v,b.mode,w),g.return=b,b=g),s(b)):n(b,g)}return x}var Io=Jv(!0),ey=Jv(!1),ms={},on=ai(ms),Xr=ai(ms),qr=ai(ms);function xi(e){if(e===ms)throw Error(z(174));return e}function Xh(e,t){switch(me(qr,t),me(Xr,e),me(on,ms),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ud(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Ud(t,e)}be(on),me(on,t)}function Oo(){be(on),be(Xr),be(qr)}function ty(e){xi(qr.current);var t=xi(on.current),n=Ud(t,e.type);t!==n&&(me(Xr,e),me(on,n))}function qh(e){Xr.current===e&&(be(on),be(Xr))}var Ce=ai(0);function Ha(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var qc=[];function Yh(){for(var e=0;en?n:4,e(!0);var i=Yc.transition;Yc.transition={};try{e(!1),t()}finally{ce=n,Yc.transition=i}}function by(){return Vt().memoizedState}function mE(e,t,n){var i=Yn(e);if(n={lane:i,action:n,hasEagerState:!1,eagerState:null,next:null},vy(e))yy(t,n);else if(n=Kv(e,t,n,i),n!==null){var o=ot();Kt(n,e,i,o),xy(n,t,i)}}function gE(e,t,n){var i=Yn(e),o={lane:i,action:n,hasEagerState:!1,eagerState:null,next:null};if(vy(e))yy(t,o);else{var r=e.alternate;if(e.lanes===0&&(r===null||r.lanes===0)&&(r=t.lastRenderedReducer,r!==null))try{var s=t.lastRenderedState,a=r(s,n);if(o.hasEagerState=!0,o.eagerState=a,Qt(a,s)){var l=t.interleaved;l===null?(o.next=o,Uh(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=Kv(e,t,o,i),n!==null&&(o=ot(),Kt(n,e,i,o),xy(n,t,i))}}function vy(e){var t=e.alternate;return e===Ee||t!==null&&t===Ee}function yy(e,t){kr=Na=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function xy(e,t,n){if(n&4194240){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,Ih(e,n)}}var Ua={readContext:jt,useCallback:Ge,useContext:Ge,useEffect:Ge,useImperativeHandle:Ge,useInsertionEffect:Ge,useLayoutEffect:Ge,useMemo:Ge,useReducer:Ge,useRef:Ge,useState:Ge,useDebugValue:Ge,useDeferredValue:Ge,useTransition:Ge,useMutableSource:Ge,useSyncExternalStore:Ge,useId:Ge,unstable_isNewReconciler:!1},bE={readContext:jt,useCallback:function(e,t){return Jt().memoizedState=[e,t===void 0?null:t],e},useContext:jt,useEffect:Dm,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ua(4194308,4,hy.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ua(4194308,4,e,t)},useInsertionEffect:function(e,t){return ua(4,2,e,t)},useMemo:function(e,t){var n=Jt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var i=Jt();return t=n!==void 0?n(t):t,i.memoizedState=i.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},i.queue=e,e=e.dispatch=mE.bind(null,Ee,e),[i.memoizedState,e]},useRef:function(e){var t=Jt();return e={current:e},t.memoizedState=e},useState:Rm,useDebugValue:Jh,useDeferredValue:function(e){return Jt().memoizedState=e},useTransition:function(){var e=Rm(!1),t=e[0];return e=pE.bind(null,e[1]),Jt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var i=Ee,o=Jt();if(ke){if(n===void 0)throw Error(z(407));n=n()}else{if(n=t(),Fe===null)throw Error(z(349));Li&30||oy(i,t,n)}o.memoizedState=n;var r={value:n,getSnapshot:t};return o.queue=r,Dm(sy.bind(null,i,r,e),[e]),i.flags|=2048,Gr(9,ry.bind(null,i,r,n,t),void 0,null),n},useId:function(){var e=Jt(),t=Fe.identifierPrefix;if(ke){var n=fn,i=hn;n=(i&~(1<<32-Yt(i)-1)).toString(32)+n,t=":"+t+"R"+n,n=Yr++,0<\/script>",e=e.removeChild(e.firstChild)):typeof i.is=="string"?e=s.createElement(n,{is:i.is}):(e=s.createElement(n),n==="select"&&(s=e,i.multiple?s.multiple=!0:i.size&&(s.size=i.size))):e=s.createElementNS(e,n),e[en]=t,e[Wr]=i,Ly(e,t,!1,!1),t.stateNode=e;e:{switch(s=Xd(n,i),n){case"dialog":ge("cancel",e),ge("close",e),o=i;break;case"iframe":case"object":case"embed":ge("load",e),o=i;break;case"video":case"audio":for(o=0;oDo&&(t.flags|=128,i=!0,or(r,!1),t.lanes=4194304)}else{if(!i)if(e=Ha(s),e!==null){if(t.flags|=128,i=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),or(r,!0),r.tail===null&&r.tailMode==="hidden"&&!s.alternate&&!ke)return Qe(t),null}else 2*Oe()-r.renderingStartTime>Do&&n!==1073741824&&(t.flags|=128,i=!0,or(r,!1),t.lanes=4194304);r.isBackwards?(s.sibling=t.child,t.child=s):(n=r.last,n!==null?n.sibling=s:t.child=s,r.last=s)}return r.tail!==null?(t=r.tail,r.rendering=t,r.tail=t.sibling,r.renderingStartTime=Oe(),t.sibling=null,n=Ce.current,me(Ce,i?n&1|2:n&1),t):(Qe(t),null);case 22:case 23:return sf(),i=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==i&&(t.flags|=8192),i&&t.mode&1?gt&1073741824&&(Qe(t),t.subtreeFlags&6&&(t.flags|=8192)):Qe(t),null;case 24:return null;case 25:return null}throw Error(z(156,t.tag))}function EE(e,t){switch(jh(t),t.tag){case 1:return ut(t.type)&&_a(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Oo(),be(dt),be(tt),Yh(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return qh(t),null;case 13:if(be(Ce),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(z(340));Lo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return be(Ce),null;case 4:return Oo(),null;case 10:return Nh(t.type._context),null;case 22:case 23:return sf(),null;case 24:return null;default:return null}}var Hs=!1,Je=!1,TE=typeof WeakSet=="function"?WeakSet:Set,N=null;function ho(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(i){Le(e,t,i)}else n.current=null}function yu(e,t,n){try{n()}catch(i){Le(e,t,i)}}var Hm=!1;function PE(e,t){if(nu=Oa,e=_v(),Mh(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var i=n.getSelection&&n.getSelection();if(i&&i.rangeCount!==0){n=i.anchorNode;var o=i.anchorOffset,r=i.focusNode;i=i.focusOffset;try{n.nodeType,r.nodeType}catch{n=null;break e}var s=0,a=-1,l=-1,c=0,d=0,u=e,h=null;t:for(;;){for(var f;u!==n||o!==0&&u.nodeType!==3||(a=s+o),u!==r||i!==0&&u.nodeType!==3||(l=s+i),u.nodeType===3&&(s+=u.nodeValue.length),(f=u.firstChild)!==null;)h=u,u=f;for(;;){if(u===e)break t;if(h===n&&++c===o&&(a=s),h===r&&++d===i&&(l=s),(f=u.nextSibling)!==null)break;u=h,h=u.parentNode}u=f}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(iu={focusedElem:e,selectionRange:n},Oa=!1,N=t;N!==null;)if(t=N,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,N=e;else for(;N!==null;){t=N;try{var p=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(p!==null){var m=p.memoizedProps,x=p.memoizedState,b=t.stateNode,g=b.getSnapshotBeforeUpdate(t.elementType===t.type?m:Wt(t.type,m),x);b.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(z(163))}}catch(w){Le(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,N=e;break}N=t.return}return p=Hm,Hm=!1,p}function Cr(e,t,n){var i=t.updateQueue;if(i=i!==null?i.lastEffect:null,i!==null){var o=i=i.next;do{if((o.tag&e)===e){var r=o.destroy;o.destroy=void 0,r!==void 0&&yu(t,n,r)}o=o.next}while(o!==i)}}function Pl(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 i=n.create;n.destroy=i()}n=n.next}while(n!==t)}}function xu(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 Ry(e){var t=e.alternate;t!==null&&(e.alternate=null,Ry(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[en],delete t[Wr],delete t[su],delete t[cE],delete t[dE])),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 Dy(e){return e.tag===5||e.tag===3||e.tag===4}function Nm(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Dy(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 wu(e,t,n){var i=e.tag;if(i===5||i===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=$a));else if(i!==4&&(e=e.child,e!==null))for(wu(e,t,n),e=e.sibling;e!==null;)wu(e,t,n),e=e.sibling}function ku(e,t,n){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(i!==4&&(e=e.child,e!==null))for(ku(e,t,n),e=e.sibling;e!==null;)ku(e,t,n),e=e.sibling}var Xe=null,Xt=!1;function On(e,t,n){for(n=n.child;n!==null;)$y(e,t,n),n=n.sibling}function $y(e,t,n){if(nn&&typeof nn.onCommitFiberUnmount=="function")try{nn.onCommitFiberUnmount(yl,n)}catch{}switch(n.tag){case 5:Je||ho(n,t);case 6:var i=Xe,o=Xt;Xe=null,On(e,t,n),Xe=i,Xt=o,Xe!==null&&(Xt?(e=Xe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Xe.removeChild(n.stateNode));break;case 18:Xe!==null&&(Xt?(e=Xe,n=n.stateNode,e.nodeType===8?Wc(e.parentNode,n):e.nodeType===1&&Wc(e,n),Vr(e)):Wc(Xe,n.stateNode));break;case 4:i=Xe,o=Xt,Xe=n.stateNode.containerInfo,Xt=!0,On(e,t,n),Xe=i,Xt=o;break;case 0:case 11:case 14:case 15:if(!Je&&(i=n.updateQueue,i!==null&&(i=i.lastEffect,i!==null))){o=i=i.next;do{var r=o,s=r.destroy;r=r.tag,s!==void 0&&(r&2||r&4)&&yu(n,t,s),o=o.next}while(o!==i)}On(e,t,n);break;case 1:if(!Je&&(ho(n,t),i=n.stateNode,typeof i.componentWillUnmount=="function"))try{i.props=n.memoizedProps,i.state=n.memoizedState,i.componentWillUnmount()}catch(a){Le(n,t,a)}On(e,t,n);break;case 21:On(e,t,n);break;case 22:n.mode&1?(Je=(i=Je)||n.memoizedState!==null,On(e,t,n),Je=i):On(e,t,n);break;default:On(e,t,n)}}function Um(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new TE),t.forEach(function(i){var o=zE.bind(null,e,i);n.has(i)||(n.add(i),i.then(o,o))})}}function Nt(e,t){var n=t.deletions;if(n!==null)for(var i=0;io&&(o=s),i&=~r}if(i=o,i=Oe()-i,i=(120>i?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*LE(i/1960))-i,10e?16:e,Fn===null)var i=!1;else{if(e=Fn,Fn=null,qa=0,ae&6)throw Error(z(331));var o=ae;for(ae|=4,N=e.current;N!==null;){var r=N,s=r.child;if(N.flags&16){var a=r.deletions;if(a!==null){for(var l=0;lOe()-of?Si(e,0):nf|=n),ht(e,t)}function Hy(e,t){t===0&&(e.mode&1?(t=Ds,Ds<<=1,!(Ds&130023424)&&(Ds=4194304)):t=1);var n=ot();e=Cn(e,t),e!==null&&(hs(e,t,n),ht(e,n))}function _E(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Hy(e,n)}function zE(e,t){var n=0;switch(e.tag){case 13:var i=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:i=e.stateNode;break;default:throw Error(z(314))}i!==null&&i.delete(t),Hy(e,n)}var Ny;Ny=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||dt.current)lt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return lt=!1,CE(e,t,n);lt=!!(e.flags&131072)}else lt=!1,ke&&t.flags&1048576&&Xv(t,Ba,t.index);switch(t.lanes=0,t.tag){case 2:var i=t.type;ha(e,t),e=t.pendingProps;var o=Ao(t,tt.current);Co(t,n),o=Gh(null,t,i,e,o,n);var r=Qh();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ut(i)?(r=!0,za(t)):r=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Wh(t),o.updater=El,t.stateNode=o,o._reactInternals=t,hu(t,i,e,n),t=mu(null,t,i,!0,r,n)):(t.tag=0,ke&&r&&Bh(t),it(null,t,o,n),t=t.child),t;case 16:i=t.elementType;e:{switch(ha(e,t),e=t.pendingProps,o=i._init,i=o(i._payload),t.type=i,o=t.tag=BE(i),e=Wt(i,e),o){case 0:t=pu(null,t,i,e,n);break e;case 1:t=jm(null,t,i,e,n);break e;case 11:t=Mm(null,t,i,e,n);break e;case 14:t=Bm(null,t,i,Wt(i.type,e),n);break e}throw Error(z(306,i,""))}return t;case 0:return i=t.type,o=t.pendingProps,o=t.elementType===i?o:Wt(i,o),pu(e,t,i,o,n);case 1:return i=t.type,o=t.pendingProps,o=t.elementType===i?o:Wt(i,o),jm(e,t,i,o,n);case 3:e:{if(Ty(t),e===null)throw Error(z(387));i=t.pendingProps,r=t.memoizedState,o=r.element,Gv(e,t),Fa(t,i,null,n);var s=t.memoizedState;if(i=s.element,r.isDehydrated)if(r={element:i,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=r,t.memoizedState=r,t.flags&256){o=Ro(Error(z(423)),t),t=Vm(e,t,i,n,o);break e}else if(i!==o){o=Ro(Error(z(424)),t),t=Vm(e,t,i,n,o);break e}else for(vt=Wn(t.stateNode.containerInfo.firstChild),yt=t,ke=!0,qt=null,n=ey(t,null,i,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Lo(),i===o){t=Sn(e,t,n);break e}it(e,t,i,n)}t=t.child}return t;case 5:return ty(t),e===null&&cu(t),i=t.type,o=t.pendingProps,r=e!==null?e.memoizedProps:null,s=o.children,ou(i,o)?s=null:r!==null&&ou(i,r)&&(t.flags|=32),Ey(e,t),it(e,t,s,n),t.child;case 6:return e===null&&cu(t),null;case 13:return Py(e,t,n);case 4:return Xh(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=Io(t,null,i,n):it(e,t,i,n),t.child;case 11:return i=t.type,o=t.pendingProps,o=t.elementType===i?o:Wt(i,o),Mm(e,t,i,o,n);case 7:return it(e,t,t.pendingProps,n),t.child;case 8:return it(e,t,t.pendingProps.children,n),t.child;case 12:return it(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(i=t.type._context,o=t.pendingProps,r=t.memoizedProps,s=o.value,me(ja,i._currentValue),i._currentValue=s,r!==null)if(Qt(r.value,s)){if(r.children===o.children&&!dt.current){t=Sn(e,t,n);break e}}else for(r=t.child,r!==null&&(r.return=t);r!==null;){var a=r.dependencies;if(a!==null){s=r.child;for(var l=a.firstContext;l!==null;){if(l.context===i){if(r.tag===1){l=gn(-1,n&-n),l.tag=2;var c=r.updateQueue;if(c!==null){c=c.shared;var d=c.pending;d===null?l.next=l:(l.next=d.next,d.next=l),c.pending=l}}r.lanes|=n,l=r.alternate,l!==null&&(l.lanes|=n),du(r.return,n,t),a.lanes|=n;break}l=l.next}}else if(r.tag===10)s=r.type===t.type?null:r.child;else if(r.tag===18){if(s=r.return,s===null)throw Error(z(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),du(s,n,t),s=r.sibling}else s=r.child;if(s!==null)s.return=r;else for(s=r;s!==null;){if(s===t){s=null;break}if(r=s.sibling,r!==null){r.return=s.return,s=r;break}s=s.return}r=s}it(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,i=t.pendingProps.children,Co(t,n),o=jt(o),i=i(o),t.flags|=1,it(e,t,i,n),t.child;case 14:return i=t.type,o=Wt(i,t.pendingProps),o=Wt(i.type,o),Bm(e,t,i,o,n);case 15:return Cy(e,t,t.type,t.pendingProps,n);case 17:return i=t.type,o=t.pendingProps,o=t.elementType===i?o:Wt(i,o),ha(e,t),t.tag=1,ut(i)?(e=!0,za(t)):e=!1,Co(t,n),Zv(t,i,o),hu(t,i,o,n),mu(null,t,i,!0,e,n);case 19:return Ay(e,t,n);case 22:return Sy(e,t,n)}throw Error(z(156,t.tag))};function Uy(e,t){return gv(e,t)}function ME(e,t,n,i){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=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function _t(e,t,n,i){return new ME(e,t,n,i)}function lf(e){return e=e.prototype,!(!e||!e.isReactComponent)}function BE(e){if(typeof e=="function")return lf(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Th)return 11;if(e===Ph)return 14}return 2}function Kn(e,t){var n=e.alternate;return n===null?(n=_t(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 ma(e,t,n,i,o,r){var s=2;if(i=e,typeof e=="function")lf(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case no:return Ei(n.children,o,r,t);case Eh:s=8,o|=8;break;case zd:return e=_t(12,n,t,o|2),e.elementType=zd,e.lanes=r,e;case Md:return e=_t(13,n,t,o),e.elementType=Md,e.lanes=r,e;case Bd:return e=_t(19,n,t,o),e.elementType=Bd,e.lanes=r,e;case J0:return Ll(n,o,r,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Q0:s=10;break e;case Z0:s=9;break e;case Th:s=11;break e;case Ph:s=14;break e;case $n:s=16,i=null;break e}throw Error(z(130,e==null?e:typeof e,""))}return t=_t(s,n,t,o),t.elementType=e,t.type=i,t.lanes=r,t}function Ei(e,t,n,i){return e=_t(7,e,i,t),e.lanes=n,e}function Ll(e,t,n,i){return e=_t(22,e,i,t),e.elementType=J0,e.lanes=n,e.stateNode={isHidden:!1},e}function Jc(e,t,n){return e=_t(6,e,null,t),e.lanes=n,e}function ed(e,t,n){return t=_t(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function jE(e,t,n,i,o){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=$c(0),this.expirationTimes=$c(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=$c(0),this.identifierPrefix=i,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function cf(e,t,n,i,o,r,s,a,l){return e=new jE(e,t,n,a,l),t===1?(t=1,r===!0&&(t|=8)):t=0,r=_t(3,null,null,t),e.current=r,r.stateNode=e,r.memoizedState={element:i,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Wh(r),e}function VE(e,t,n){var i=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Yy)}catch(e){console.error(e)}}Yy(),X0.exports=kt;var ff=X0.exports;const WE=ds(ff);var Ky,Zm=ff;Ky=Zm.createRoot,Zm.hydrateRoot;const XE="modulepreload",qE=function(e){return"/"+e},Jm={},$t=function(t,n,i){let o=Promise.resolve();if(n&&n.length>0){const r=document.getElementsByTagName("link");o=Promise.all(n.map(s=>{if(s=qE(s),s in Jm)return;Jm[s]=!0;const a=s.endsWith(".css"),l=a?'[rel="stylesheet"]':"";if(!!i)for(let u=r.length-1;u>=0;u--){const h=r[u];if(h.href===s&&(!a||h.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${s}"]${l}`))return;const d=document.createElement("link");if(d.rel=a?"stylesheet":XE,a||(d.as="script",d.crossOrigin=""),d.href=s,document.head.appendChild(d),a)return new Promise((u,h)=>{d.addEventListener("load",u),d.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${s}`)))})}))}return o.then(()=>t()).catch(r=>{const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=r,window.dispatchEvent(s),!s.defaultPrevented)throw r})},bi={allRenderFn:!1,cmpDidLoad:!0,cmpDidUnload:!1,cmpDidUpdate:!0,cmpDidRender:!0,cmpWillLoad:!0,cmpWillUpdate:!0,cmpWillRender:!0,connectedCallback:!0,disconnectedCallback:!0,element:!0,event:!0,hasRenderFn:!0,lifecycle:!0,hostListener:!0,hostListenerTargetWindow:!0,hostListenerTargetDocument:!0,hostListenerTargetBody:!0,hostListenerTargetParent:!1,hostListenerTarget:!0,member:!0,method:!0,mode:!0,observeAttribute:!0,prop:!0,propMutable:!0,reflect:!0,scoped:!0,shadowDom:!0,slot:!0,cssAnnotations:!0,state:!0,style:!0,formAssociated:!1,svg:!0,updatable:!0,vdomAttribute:!0,vdomXlink:!0,vdomClass:!0,vdomFunctional:!0,vdomKey:!0,vdomListener:!0,vdomRef:!0,vdomPropOrAttr:!0,vdomRender:!0,vdomStyle:!0,vdomText:!0,watchCallback:!0,taskQueue:!0,hotModuleReplacement:!1,isDebug:!1,isDev:!1,isTesting:!1,hydrateServerSide:!1,hydrateClientSide:!1,lifecycleDOMEvents:!1,lazyLoad:!1,profile:!1,slotRelocation:!0,appendChildSlotFix:!1,cloneNodeFix:!1,hydratedAttribute:!1,hydratedClass:!0,scriptDataOpts:!1,scopedSlotTextContentFix:!1,shadowDomShim:!1,slotChildNodesFix:!1,invisiblePrehydration:!0,propBoolean:!0,propNumber:!0,propString:!0,constructableCSS:!0,cmpShouldUpdate:!0,devTools:!1,shadowDelegatesFocus:!0,initializeNextTick:!1,asyncLoading:!1,asyncQueue:!1,transformTagName:!1,attachStyles:!0,experimentalSlotFixes:!1};let Zi,Gy,$l,Qy=!1,Ga=!1,pf=!1,bt=!1,eg=null,Pu=!1;const YE={isDev:!1,isBrowser:!0,isServer:!1,isTesting:!1},Zy=e=>{const t=new URL(e,He.$resourcesUrl$);return t.origin!==bs.location.origin?t.href:t.pathname},Ri=(e,t="")=>()=>{},KE="slot-fb{display:contents}slot-fb[hidden]{display:none}",tg="http://www.w3.org/1999/xlink",ng={},GE="http://www.w3.org/2000/svg",QE="http://www.w3.org/1999/xhtml",ZE=e=>e!=null,mf=e=>(e=typeof e,e==="object"||e==="function");function JE(e){var t,n,i;return(i=(n=(t=e.head)===null||t===void 0?void 0:t.querySelector('meta[name="csp-nonce"]'))===null||n===void 0?void 0:n.getAttribute("content"))!==null&&i!==void 0?i:void 0}const y=(e,t,...n)=>{let i=null,o=null,r=null,s=!1,a=!1;const l=[],c=u=>{for(let h=0;hu[h]).join(" "))}}if(typeof e=="function")return e(t===null?{}:t,l,t2);const d=Qa(e,null);return d.$attrs$=t,l.length>0&&(d.$children$=l),d.$key$=o,d.$name$=r,d},Qa=(e,t)=>{const n={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};return n.$attrs$=null,n.$key$=null,n.$name$=null,n},ee={},e2=e=>e&&e.$tag$===ee,t2={forEach:(e,t)=>e.map(ig).forEach(t),map:(e,t)=>e.map(ig).map(t).map(n2)},ig=e=>({vattrs:e.$attrs$,vchildren:e.$children$,vkey:e.$key$,vname:e.$name$,vtag:e.$tag$,vtext:e.$text$}),n2=e=>{if(typeof e.vtag=="function"){const n=Object.assign({},e.vattrs);return e.vkey&&(n.key=e.vkey),e.vname&&(n.name=e.vname),y(e.vtag,n,...e.vchildren||[])}const t=Qa(e.vtag,e.vtext);return t.$attrs$=e.vattrs,t.$children$=e.vchildren,t.$key$=e.vkey,t.$name$=e.vname,t},i2=e=>dx.map(t=>t(e)).find(t=>!!t),o2=e=>dx.push(e),r2=e=>Vi(e).$modeName$,s2=(e,t)=>e!=null&&!mf(e)?t&4?e==="false"?!1:e===""||!!e:t&2?parseFloat(e):t&1?String(e):e:e,a2=e=>e,B=(e,t,n)=>{const i=a2(e);return{emit:o=>l2(i,t,{bubbles:!!(n&4),composed:!!(n&2),cancelable:!!(n&1),detail:o})}},l2=(e,t,n)=>{const i=He.ce(t,n);return e.dispatchEvent(i),i},og=new WeakMap,c2=(e,t,n)=>{let i=Ja.get(e);z2&&n?(i=i||new CSSStyleSheet,typeof i=="string"?i=t:i.replaceSync(t)):i=t,Ja.set(e,i)},d2=(e,t,n)=>{var i;const o=Jy(t,n),r=Ja.get(o);if(e=e.nodeType===11?e:Gt,r)if(typeof r=="string"){e=e.head||e;let s=og.get(e),a;if(s||og.set(e,s=new Set),!s.has(o)){{a=Gt.createElement("style"),a.innerHTML=r;const l=(i=He.$nonce$)!==null&&i!==void 0?i:JE(Gt);l!=null&&a.setAttribute("nonce",l),e.insertBefore(a,e.querySelector("link"))}t.$flags$&4&&(a.innerHTML+=KE),s&&s.add(o)}}else e.adoptedStyleSheets.includes(r)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,r]);return o},u2=e=>{const t=e.$cmpMeta$,n=e.$hostElement$,i=t.$flags$,o=Ri("attachStyles",t.$tagName$),r=d2(n.shadowRoot?n.shadowRoot:n.getRootNode(),t,e.$modeName$);i&10&&(n["s-sc"]=r,n.classList.add(r+"-h"),i&2&&n.classList.add(r+"-s")),o()},Jy=(e,t)=>"sc-"+(t&&e.$flags$&32?e.$tagName$+"-"+t:e.$tagName$),rg=(e,t,n,i,o,r)=>{if(n!==i){let s=dg(e,t),a=t.toLowerCase();if(t==="class"){const l=e.classList,c=sg(n),d=sg(i);l.remove(...c.filter(u=>u&&!d.includes(u))),l.add(...d.filter(u=>u&&!c.includes(u)))}else if(t==="style"){for(const l in n)(!i||i[l]==null)&&(l.includes("-")?e.style.removeProperty(l):e.style[l]="");for(const l in i)(!n||i[l]!==n[l])&&(l.includes("-")?e.style.setProperty(l,i[l]):e.style[l]=i[l])}else if(t!=="key")if(t==="ref")i&&i(e);else if(!e.__lookupSetter__(t)&&t[0]==="o"&&t[1]==="n"){if(t[2]==="-"?t=t.slice(3):dg(bs,a)?t=a.slice(2):t=a[2]+t.slice(3),n||i){const l=t.endsWith(ex);t=t.replace(f2,""),n&&He.rel(e,t,n,l),i&&He.ael(e,t,i,l)}}else{const l=mf(i);if((s||l&&i!==null)&&!o)try{if(e.tagName.includes("-"))e[t]=i;else{const d=i??"";t==="list"?s=!1:(n==null||e[t]!=d)&&(e[t]=d)}}catch{}let c=!1;a!==(a=a.replace(/^xlink\:?/,""))&&(t=a,c=!0),i==null||i===!1?(i!==!1||e.getAttribute(t)==="")&&(c?e.removeAttributeNS(tg,t):e.removeAttribute(t)):(!s||r&4||o)&&!l&&(i=i===!0?"":i,c?e.setAttributeNS(tg,t,i):e.setAttribute(t,i))}}},h2=/\s/,sg=e=>e?e.split(h2):[],ex="Capture",f2=new RegExp(ex+"$"),tx=(e,t,n,i)=>{const o=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$,r=e&&e.$attrs$||ng,s=t.$attrs$||ng;for(i in r)i in s||rg(o,i,r[i],void 0,n,t.$flags$);for(i in s)rg(o,i,r[i],s[i],n,t.$flags$)},Za=(e,t,n,i)=>{var o;const r=t.$children$[n];let s=0,a,l,c;if(Qy||(pf=!0,r.$tag$==="slot"&&(Zi&&i.classList.add(Zi+"-s"),r.$flags$|=r.$children$?2:1)),r.$text$!==null)a=r.$elm$=Gt.createTextNode(r.$text$);else if(r.$flags$&1)a=r.$elm$=Gt.createTextNode("");else{if(bt||(bt=r.$tag$==="svg"),a=r.$elm$=Gt.createElementNS(bt?GE:QE,r.$flags$&2?"slot-fb":r.$tag$),bt&&r.$tag$==="foreignObject"&&(bt=!1),tx(null,r,bt),ZE(Zi)&&a["s-si"]!==Zi&&a.classList.add(a["s-si"]=Zi),r.$children$)for(s=0;s{var n;He.$flags$|=1;const i=e.childNodes;for(let o=i.length-1;o>=0;o--){const r=i[o];r["s-hn"]!==$l&&r["s-ol"]&&(ox(r).insertBefore(r,gf(r)),r["s-ol"].remove(),r["s-ol"]=void 0,r["s-sh"]=void 0,r.nodeType===1&&r.setAttribute("slot",(n=r["s-sn"])!==null&&n!==void 0?n:""),pf=!0),t&&Zr(r,t)}He.$flags$&=-2},nx=(e,t,n,i,o,r)=>{let s=e["s-cr"]&&e["s-cr"].parentNode||e,a;for(s.shadowRoot&&s.tagName===$l&&(s=s.shadowRoot);o<=r;++o)i[o]&&(a=Za(null,n,o,e),a&&(i[o].$elm$=a,s.insertBefore(a,gf(t))))},ix=(e,t,n)=>{for(let i=t;i<=n;++i){const o=e[i];if(o){const r=o.$elm$;ax(o),r&&(Ga=!0,r["s-ol"]?r["s-ol"].remove():Zr(r,!0),r.remove())}}},p2=(e,t,n,i,o=!1)=>{let r=0,s=0,a=0,l=0,c=t.length-1,d=t[0],u=t[c],h=i.length-1,f=i[0],p=i[h],m,x;for(;r<=c&&s<=h;)if(d==null)d=t[++r];else if(u==null)u=t[--c];else if(f==null)f=i[++s];else if(p==null)p=i[--h];else if(Ws(d,f,o))Ji(d,f,o),d=t[++r],f=i[++s];else if(Ws(u,p,o))Ji(u,p,o),u=t[--c],p=i[--h];else if(Ws(d,p,o))(d.$tag$==="slot"||p.$tag$==="slot")&&Zr(d.$elm$.parentNode,!1),Ji(d,p,o),e.insertBefore(d.$elm$,u.$elm$.nextSibling),d=t[++r],p=i[--h];else if(Ws(u,f,o))(d.$tag$==="slot"||p.$tag$==="slot")&&Zr(u.$elm$.parentNode,!1),Ji(u,f,o),e.insertBefore(u.$elm$,d.$elm$),u=t[--c],f=i[++s];else{for(a=-1,l=r;l<=c;++l)if(t[l]&&t[l].$key$!==null&&t[l].$key$===f.$key$){a=l;break}a>=0?(x=t[a],x.$tag$!==f.$tag$?m=Za(t&&t[s],n,a,e):(Ji(x,f,o),t[a]=void 0,m=x.$elm$),f=i[++s]):(m=Za(t&&t[s],n,s,e),f=i[++s]),m&&ox(d.$elm$).insertBefore(m,gf(d.$elm$))}r>c?nx(e,i[h+1]==null?null:i[h+1].$elm$,n,i,s,h):s>h&&ix(t,r,c)},Ws=(e,t,n=!1)=>e.$tag$===t.$tag$?e.$tag$==="slot"?e.$name$===t.$name$:n?!0:e.$key$===t.$key$:!1,gf=e=>e&&e["s-ol"]||e,ox=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,Ji=(e,t,n=!1)=>{const i=t.$elm$=e.$elm$,o=e.$children$,r=t.$children$,s=t.$tag$,a=t.$text$;let l;a===null?(bt=s==="svg"?!0:s==="foreignObject"?!1:bt,s==="slot"||tx(e,t,bt),o!==null&&r!==null?p2(i,o,t,r,n):r!==null?(e.$text$!==null&&(i.textContent=""),nx(i,null,t,r,0,r.length-1)):o!==null&&ix(o,0,o.length-1),bt&&s==="svg"&&(bt=!1)):(l=i["s-cr"])?l.parentNode.textContent=a:e.$text$!==a&&(i.data=a)},rx=e=>{const t=e.childNodes;for(const n of t)if(n.nodeType===1){if(n["s-sr"]){const i=n["s-sn"];n.hidden=!1;for(const o of t)if(o!==n){if(o["s-hn"]!==n["s-hn"]||i!==""){if(o.nodeType===1&&(i===o.getAttribute("slot")||i===o["s-sn"])){n.hidden=!0;break}}else if(o.nodeType===1||o.nodeType===3&&o.textContent.trim()!==""){n.hidden=!0;break}}}rx(n)}},dn=[],sx=e=>{let t,n,i;for(const o of e.childNodes){if(o["s-sr"]&&(t=o["s-cr"])&&t.parentNode){n=t.parentNode.childNodes;const r=o["s-sn"];for(i=n.length-1;i>=0;i--)if(t=n[i],!t["s-cn"]&&!t["s-nr"]&&t["s-hn"]!==o["s-hn"]&&!bi.experimentalSlotFixes)if(ag(t,r)){let s=dn.find(a=>a.$nodeToRelocate$===t);Ga=!0,t["s-sn"]=t["s-sn"]||r,s?(s.$nodeToRelocate$["s-sh"]=o["s-hn"],s.$slotRefNode$=o):(t["s-sh"]=o["s-hn"],dn.push({$slotRefNode$:o,$nodeToRelocate$:t})),t["s-sr"]&&dn.map(a=>{ag(a.$nodeToRelocate$,t["s-sn"])&&(s=dn.find(l=>l.$nodeToRelocate$===t),s&&!a.$slotRefNode$&&(a.$slotRefNode$=s.$slotRefNode$))})}else dn.some(s=>s.$nodeToRelocate$===t)||dn.push({$nodeToRelocate$:t})}o.nodeType===1&&sx(o)}},ag=(e,t)=>e.nodeType===1?e.getAttribute("slot")===null&&t===""||e.getAttribute("slot")===t:e["s-sn"]===t?!0:t==="",ax=e=>{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(ax)},m2=(e,t,n=!1)=>{var i,o,r,s;const a=e.$hostElement$,l=e.$cmpMeta$,c=e.$vnode$||Qa(null,null),d=e2(t)?t:y(null,null,t);if($l=a.tagName,l.$attrsToReflect$&&(d.$attrs$=d.$attrs$||{},l.$attrsToReflect$.map(([u,h])=>d.$attrs$[h]=a[u])),n&&d.$attrs$)for(const u of Object.keys(d.$attrs$))a.hasAttribute(u)&&!["key","ref","style","class"].includes(u)&&(d.$attrs$[u]=a[u]);d.$tag$=null,d.$flags$|=4,e.$vnode$=d,d.$elm$=c.$elm$=a.shadowRoot||a,Zi=a["s-sc"],Gy=a["s-cr"],Qy=(l.$flags$&1)!==0,Ga=!1,Ji(c,d,n);{if(He.$flags$|=1,pf){sx(d.$elm$);for(const u of dn){const h=u.$nodeToRelocate$;if(!h["s-ol"]){const f=Gt.createTextNode("");f["s-nr"]=h,h.parentNode.insertBefore(h["s-ol"]=f,h)}}for(const u of dn){const h=u.$nodeToRelocate$,f=u.$slotRefNode$;if(f){const p=f.parentNode;let m=f.nextSibling;{let x=(i=h["s-ol"])===null||i===void 0?void 0:i.previousSibling;for(;x;){let b=(o=x["s-nr"])!==null&&o!==void 0?o:null;if(b&&b["s-sn"]===h["s-sn"]&&p===b.parentNode&&(b=b.nextSibling,!b||!b["s-nr"])){m=b;break}x=x.previousSibling}}(!m&&p!==h.parentNode||h.nextSibling!==m)&&h!==m&&(!h["s-hn"]&&h["s-ol"]&&(h["s-hn"]=h["s-ol"].parentNode.nodeName),p.insertBefore(h,m),h.nodeType===1&&(h.hidden=(r=h["s-ih"])!==null&&r!==void 0?r:!1))}else h.nodeType===1&&(n&&(h["s-ih"]=(s=h.hidden)!==null&&s!==void 0?s:!1),h.hidden=!0)}}Ga&&rx(d.$elm$),He.$flags$&=-2,dn.length=0}},g2=(e,t)=>{},bf=(e,t)=>(e.$flags$|=16,g2(e,e.$ancestorComponent$),Ft(()=>b2(e,t))),b2=(e,t)=>{const n=e.$hostElement$,i=Ri("scheduleUpdate",e.$cmpMeta$.$tagName$),o=n;let r;return t?r=Eo(o,"componentWillLoad"):r=Eo(o,"componentWillUpdate"),r=lg(r,()=>Eo(o,"componentWillRender")),i(),lg(r,()=>y2(e,o,t))},lg=(e,t)=>v2(e)?e.then(t):t(),v2=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",y2=async(e,t,n)=>{const i=e.$hostElement$,o=Ri("update",e.$cmpMeta$.$tagName$);i["s-rc"],n&&u2(e);const r=Ri("render",e.$cmpMeta$.$tagName$);x2(e,t,i,n),r(),o(),w2(e)},x2=(e,t,n,i)=>{try{eg=t,t=t.render&&t.render(),e.$flags$&=-17,e.$flags$|=2,(bi.hasRenderFn||bi.reflect)&&(bi.vdomRender||bi.reflect)&&(bi.hydrateServerSide||m2(e,t,i))}catch(l){gs(l,e.$hostElement$)}return eg=null,null},w2=e=>{const t=e.$cmpMeta$.$tagName$,n=e.$hostElement$,i=Ri("postUpdate",t),o=n;e.$ancestorComponent$,Eo(o,"componentDidRender"),e.$flags$&64?(Eo(o,"componentDidUpdate"),i()):(e.$flags$|=64,Eo(o,"componentDidLoad"),i())},En=e=>{{const t=Vi(e),n=t.$hostElement$.isConnected;return n&&(t.$flags$&18)===2&&bf(t,!1),n}},Eo=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(i){gs(i)}},k2=(e,t)=>Vi(e).$instanceValues$.get(t),C2=(e,t,n,i)=>{const o=Vi(e),r=e,s=o.$instanceValues$.get(t),a=o.$flags$,l=r;n=s2(n,i.$members$[t][0]);const c=Number.isNaN(s)&&Number.isNaN(n);if(n!==s&&!c){o.$instanceValues$.set(t,n);{if(i.$watchers$&&a&128){const u=i.$watchers$[t];u&&u.map(h=>{try{l[h](n,s,t)}catch(f){gs(f,r)}})}if((a&18)===2){if(l.componentShouldUpdate&&l.componentShouldUpdate(n,s,t)===!1)return;bf(o,!1)}}}},S2=(e,t,n)=>{var i;const o=e.prototype;if(t.$members$){e.watchers&&(t.$watchers$=e.watchers);const r=Object.entries(t.$members$);r.map(([s,[a]])=>{(a&31||a&32)&&Object.defineProperty(o,s,{get(){return k2(this,s)},set(l){C2(this,s,l,t)},configurable:!0,enumerable:!0})});{const s=new Map;o.attributeChangedCallback=function(a,l,c){He.jmp(()=>{var d;const u=s.get(a);if(this.hasOwnProperty(u))c=this[u],delete this[u];else{if(o.hasOwnProperty(u)&&typeof this[u]=="number"&&this[u]==c)return;if(u==null){const h=Vi(this),f=h==null?void 0:h.$flags$;if(f&&!(f&8)&&f&128&&c!==l){const m=this,x=(d=t.$watchers$)===null||d===void 0?void 0:d[a];x==null||x.forEach(b=>{m[b]!=null&&m[b].call(m,c,l,a)})}return}}this[u]=c===null&&typeof this[u]=="boolean"?!1:c})},e.observedAttributes=Array.from(new Set([...Object.keys((i=t.$watchers$)!==null&&i!==void 0?i:{}),...r.filter(([a,l])=>l[0]&15).map(([a,l])=>{var c;const d=l[1]||a;return s.set(d,a),l[0]&512&&((c=t.$attrsToReflect$)===null||c===void 0||c.push([a,d])),d})]))}}return e},E2=async(e,t,n,i)=>{let o;if(!(t.$flags$&32)&&(t.$flags$|=32,o=e.constructor,customElements.whenDefined(n.$tagName$).then(()=>t.$flags$|=128),o.style)){let s=o.style;typeof s!="string"&&(s=s[t.$modeName$=i2(e)]);const a=Jy(n,t.$modeName$);if(!Ja.has(a)){const l=Ri("registerStyles",n.$tagName$);c2(a,s,!!(n.$flags$&1)),l()}}t.$ancestorComponent$,bf(t,!0)},cg=e=>{},T2=e=>{if(!(He.$flags$&1)){const t=Vi(e),n=t.$cmpMeta$,i=Ri("connectedCallback",n.$tagName$);t.$flags$&1?(lx(e,t,n.$listeners$),t!=null&&t.$lazyInstance$?cg(t.$lazyInstance$):t!=null&&t.$onReadyPromise$&&t.$onReadyPromise$.then(()=>cg(t.$lazyInstance$))):(t.$flags$|=1,n.$flags$&12&&P2(e),n.$members$&&Object.entries(n.$members$).map(([o,[r]])=>{if(r&31&&e.hasOwnProperty(o)){const s=e[o];delete e[o],e[o]=s}}),E2(e,t,n)),i()}},P2=e=>{const t=e["s-cr"]=Gt.createComment("");t["s-cn"]=!0,e.insertBefore(t,e.firstChild)},A2=async e=>{if(!(He.$flags$&1)){const t=Vi(e);t.$rmListeners$&&(t.$rmListeners$.map(n=>n()),t.$rmListeners$=void 0)}},ne=(e,t)=>{const n={$flags$:t[0],$tagName$:t[1]};n.$members$=t[2],n.$listeners$=t[3],n.$watchers$=e.$watchers$,n.$attrsToReflect$=[];const i=e.prototype.connectedCallback,o=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__registerHost(){R2(this,n)},connectedCallback(){T2(this),i&&i.call(this)},disconnectedCallback(){A2(this),o&&o.call(this)},__attachShadow(){this.attachShadow({mode:"open",delegatesFocus:!!(n.$flags$&16)})}}),e.is=n.$tagName$,S2(e,n)},lx=(e,t,n,i)=>{n&&n.map(([o,r,s])=>{const a=I2(e,o),l=L2(t,s),c=O2(o);He.ael(a,r,l,c),(t.$rmListeners$=t.$rmListeners$||[]).push(()=>He.rel(a,r,l,c))})},L2=(e,t)=>n=>{try{bi.lazyLoad||e.$hostElement$[t](n)}catch(i){gs(i)}},I2=(e,t)=>t&4?Gt:t&8?bs:t&16?Gt.body:e,O2=e=>$2?{passive:(e&1)!==0,capture:(e&2)!==0}:(e&2)!==0,cx=new WeakMap,Vi=e=>cx.get(e),R2=(e,t)=>{const n={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};return lx(e,n,t.$listeners$),cx.set(e,n)},dg=(e,t)=>t in e,gs=(e,t)=>(0,console.error)(e,t),Ja=new Map,dx=[],bs=typeof window<"u"?window:{},Gt=bs.document||{head:{}},ie=bs.HTMLElement||class{},He={$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,i)=>e.addEventListener(t,n,i),rel:(e,t,n,i)=>e.removeEventListener(t,n,i),ce:(e,t)=>new CustomEvent(e,t)},D2=e=>{Object.assign(He,e)},$2=(()=>{let e=!1;try{Gt.addEventListener("e",null,Object.defineProperty({},"passive",{get(){e=!0}}))}catch{}return e})(),_2=e=>Promise.resolve(e),z2=(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function"}catch{}return!1})(),Au=[],ux=[],hx=(e,t)=>n=>{e.push(n),Pu||(Pu=!0,t&&He.$flags$&4?M2(Lu):He.raf(Lu))},ug=e=>{for(let t=0;t{ug(Au),ug(ux),(Pu=Au.length>0)&&He.raf(Lu)},M2=e=>_2().then(e),$o=hx(Au,!1),Ft=hx(ux,!0);/*! * (C) Ionic http://ionicframework.com - MIT License */const Ae=typeof window<"u"?window:void 0,Gn=typeof document<"u"?document:void 0;/*! * (C) Ionic http://ionicframework.com - MIT License */const ei=(e,t)=>{e.componentOnReady?e.componentOnReady().then(n=>t(n)):Ie(()=>t(e))},Jr=e=>e.componentOnReady!==void 0,No=(e,t=[])=>{const n={};return t.forEach(i=>{e.hasAttribute(i)&&(e.getAttribute(i)!==null&&(n[i]=e.getAttribute(i)),e.removeAttribute(i))}),n},B2=["role","aria-activedescendant","aria-atomic","aria-autocomplete","aria-braillelabel","aria-brailleroledescription","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colindextext","aria-colspan","aria-controls","aria-current","aria-describedby","aria-description","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowindextext","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext"],Uo=(e,t)=>{let n=B2;return t&&t.length>0&&(n=n.filter(i=>!t.includes(i))),No(e,n)},vf=(e,t,n,i)=>{var o;if(typeof window<"u"){const r=window,s=(o=r==null?void 0:r.Ionic)===null||o===void 0?void 0:o.config;if(s){const a=s.get("_ael");if(a)return a(e,t,n,i);if(s._ael)return s._ael(e,t,n,i)}}return e.addEventListener(t,n,i)},fx=(e,t,n,i)=>{var o;if(typeof window<"u"){const r=window,s=(o=r==null?void 0:r.Ionic)===null||o===void 0?void 0:o.config;if(s){const a=s.get("_rel");if(a)return a(e,t,n,i);if(s._rel)return s._rel(e,t,n,i)}}return e.removeEventListener(t,n,i)},ft=(e,t=e)=>e.shadowRoot||t,Ie=e=>typeof __zone_symbol__requestAnimationFrame=="function"?__zone_symbol__requestAnimationFrame(e):typeof requestAnimationFrame=="function"?requestAnimationFrame(e):setTimeout(e),px=e=>!!e.shadowRoot&&!!e.attachShadow,yf=e=>{const t=e.closest("ion-item");return t?t.querySelector("ion-label"):null},Iu=e=>{if(e.focus(),e.classList.contains("ion-focusable")){const t=e.closest("ion-app");t&&t.setFocus([e])}},es=(e,t)=>{let n;const i=e.getAttribute("aria-labelledby"),o=e.id;let r=i!==null&&i.trim()!==""?i:t+"-lbl",s=i!==null&&i.trim()!==""?document.getElementById(i):yf(e);return s?(i===null&&(s.id=r),n=s.textContent,s.setAttribute("aria-hidden","true")):o.trim()!==""&&(s=document.querySelector(`label[for="${o}"]`),s&&(s.id!==""?r=s.id:s.id=r=`${o}-lbl`,n=s.textContent)),{label:s,labelId:r,labelText:n}},Di=(e,t,n,i,o)=>{if(e||px(t)){let r=t.querySelector("input.aux-input");r||(r=t.ownerDocument.createElement("input"),r.type="hidden",r.classList.add("aux-input"),t.appendChild(r)),r.disabled=o,r.name=n,r.value=i||""}},et=(e,t,n)=>Math.max(e,Math.min(t,n)),je=(e,t)=>{if(!e){const n="ASSERT: "+t;console.error(n);debugger;throw new Error(n)}},qz=e=>e.timeStamp||Date.now(),Yz=e=>{if(e){const t=e.changedTouches;if(t&&t.length>0){const n=t[0];return{x:n.clientX,y:n.clientY}}if(e.pageX!==void 0)return{x:e.pageX,y:e.pageY}}return{x:0,y:0}},hg=e=>{const t=document.dir==="rtl";switch(e){case"start":return t;case"end":return!t;default:throw new Error(`"${e}" is not a valid value for [side]. Use "start" or "end" instead.`)}},j2=(e,t)=>{const n=e._original||e;return{_original:e,emit:V2(n.emit.bind(n),t)}},V2=(e,t=0)=>{let n;return(...i)=>{clearTimeout(n),n=setTimeout(e,t,...i)}},mx=(e,t)=>{if(e??(e={}),t??(t={}),e===t)return!0;const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(const i of n)if(!(i in t)||e[i]!==t[i])return!1;return!0};/*! * (C) Ionic http://ionicframework.com - MIT License */let td;const F2=e=>(e.forEach(t=>{for(const n in t)if(t.hasOwnProperty(n)){const i=t[n];if(n==="easing"){const o="animation-timing-function";t[o]=i,delete t[n]}else{const o=H2(n);o!==n&&(t[o]=i,delete t[n])}}}),e),H2=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),xf=e=>{if(td===void 0){const t=e.style.animationName!==void 0,n=e.style.webkitAnimationName!==void 0;td=!t&&n?"-webkit-":""}return td},we=(e,t,n)=>{const i=t.startsWith("animation")?xf(e):"";e.style.setProperty(i+t,n)},Ut=(e,t)=>{const n=t.startsWith("animation")?xf(e):"";e.style.removeProperty(n+t)},N2=(e,t)=>{let n;const i={passive:!0},o=()=>{n&&n()},r=s=>{e===s.target&&(o(),t(s))};return e&&(e.addEventListener("webkitAnimationEnd",r,i),e.addEventListener("animationend",r,i),n=()=>{e.removeEventListener("webkitAnimationEnd",r,i),e.removeEventListener("animationend",r,i)}),o},U2=(e=[])=>e.map(t=>{const n=t.offset,i=[];for(const o in t)t.hasOwnProperty(o)&&o!=="offset"&&i.push(`${o}: ${t[o]};`);return`${n*100}% { ${i.join(" ")} }`}).join(" "),fg=[],W2=e=>{let t=fg.indexOf(e);return t<0&&(t=fg.push(e)-1),`ion-animation-${t}`},X2=e=>{const t=e.getRootNode!==void 0?e.getRootNode():e;return t.head||t},q2=(e,t,n)=>{var i;const o=X2(n),r=xf(n),s=o.querySelector("#"+e);if(s)return s;const a=((i=n.ownerDocument)!==null&&i!==void 0?i:document).createElement("style");return a.id=e,a.textContent=`@${r}keyframes ${e} { ${t} } @${r}keyframes ${e}-alt { ${t} }`,o.appendChild(a),a},Xs=(e=[],t)=>{if(t!==void 0){const n=Array.isArray(t)?t:[t];return[...e,...n]}return e},U=e=>{let t,n,i,o,r,s,a=[],l=[],c=[],d=!1,u,h={},f=[],p=[],m={},x=0,b=!1,g=!1,v,w,E,S,k=!0,C=!1,A=!0,D,R,V=!1;const q=e,Y=[],G=[],Z=[],Q=[],I=[],$=[],O=[],_=[],F=[],te=[],J=[],xe=typeof AnimationEffect=="function"||Ae!==void 0&&typeof Ae.AnimationEffect=="function",oe=typeof Element=="function"&&typeof Element.prototype.animate=="function"&&xe,Pe=100,Tt=()=>J,Ln=T=>(I.forEach(M=>{M.destroy(T)}),Xi(T),Q.length=0,I.length=0,a.length=0,M1(),d=!1,A=!0,R),Xi=T=>{_p(),T&&zp()},an=()=>{b=!1,g=!1,A=!0,w=void 0,E=void 0,S=void 0,x=0,C=!1,k=!0,V=!1},Dp=()=>x!==0&&!V,$p=(T,M)=>{const H=M.findIndex(fe=>fe.c===T);H>-1&&M.splice(H,1)},z1=(T,M)=>(Z.push({c:T,o:M}),R),Pc=(T,M)=>((M!=null&&M.oneTimeCallback?G:Y).push({c:T,o:M}),R),M1=()=>(Y.length=0,G.length=0,R),_p=()=>{if(oe)J.forEach(T=>{T.cancel()}),J.length=0;else{const T=Q.slice();Ie(()=>{T.forEach(M=>{Ut(M,"animation-name"),Ut(M,"animation-duration"),Ut(M,"animation-timing-function"),Ut(M,"animation-iteration-count"),Ut(M,"animation-delay"),Ut(M,"animation-play-state"),Ut(M,"animation-fill-mode"),Ut(M,"animation-direction")})})}},zp=()=>{$.forEach(T=>{T!=null&&T.parentNode&&T.parentNode.removeChild(T)}),$.length=0},B1=T=>(O.push(T),R),j1=T=>(_.push(T),R),V1=T=>(F.push(T),R),F1=T=>(te.push(T),R),H1=T=>(l=Xs(l,T),R),N1=T=>(c=Xs(c,T),R),U1=(T={})=>(h=T,R),W1=(T=[])=>{for(const M of T)h[M]="";return R},X1=T=>(f=Xs(f,T),R),q1=T=>(p=Xs(p,T),R),Y1=(T={})=>(m=T,R),K1=(T=[])=>{for(const M of T)m[M]="";return R},Ko=()=>r!==void 0?r:u?u.getFill():"both",qi=()=>w!==void 0?w:s!==void 0?s:u?u.getDirection():"normal",Go=()=>b?"linear":i!==void 0?i:u?u.getEasing():"linear",Ht=()=>g?0:E!==void 0?E:n!==void 0?n:u?u.getDuration():0,In=()=>o!==void 0?o:u?u.getIterations():1,Yi=()=>S!==void 0?S:t!==void 0?t:u?u.getDelay():0,G1=()=>a,Q1=T=>(s=T,Pt(!0),R),Z1=T=>(r=T,Pt(!0),R),J1=T=>(t=T,Pt(!0),R),eC=T=>(i=T,Pt(!0),R),tC=T=>(!oe&&T===0&&(T=1),n=T,Pt(!0),R),nC=T=>(o=T,Pt(!0),R),iC=T=>(u=T,R),oC=T=>{if(T!=null)if(T.nodeType===1)Q.push(T);else if(T.length>=0)for(let M=0;M{if(T!=null)if(Array.isArray(T))for(const M of T)M.parent(R),I.push(M);else T.parent(R),I.push(T);return R},sC=T=>{const M=a!==T;return a=T,M&&aC(a),R},aC=T=>{oe?Tt().forEach(M=>{const H=M.effect;if(H.setKeyframes)H.setKeyframes(T);else{const fe=new KeyframeEffect(H.target,T,H.getTiming());M.effect=fe}}):Mp()},lC=()=>{O.forEach(fe=>fe()),_.forEach(fe=>fe());const T=l,M=c,H=h;Q.forEach(fe=>{const ze=fe.classList;T.forEach(At=>ze.add(At)),M.forEach(At=>ze.remove(At));for(const At in H)H.hasOwnProperty(At)&&we(fe,At,H[At])})},cC=()=>{Ac(),F.forEach(ze=>ze()),te.forEach(ze=>ze());const T=k?1:0,M=f,H=p,fe=m;Q.forEach(ze=>{const At=ze.classList;M.forEach(di=>At.add(di)),H.forEach(di=>At.remove(di));for(const di in fe)fe.hasOwnProperty(di)&&we(ze,di,fe[di])}),E=void 0,w=void 0,S=void 0,Y.forEach(ze=>ze.c(T,R)),G.forEach(ze=>ze.c(T,R)),G.length=0,A=!0,k&&(C=!0),k=!0},Ki=()=>{x!==0&&(x--,x===0&&(cC(),u&&u.animationFinish()))},Mp=(T=!0)=>{zp();const M=F2(a);Q.forEach(H=>{if(M.length>0){const fe=U2(M);D=e!==void 0?e:W2(fe);const ze=q2(D,fe,H);$.push(ze),we(H,"animation-duration",`${Ht()}ms`),we(H,"animation-timing-function",Go()),we(H,"animation-delay",`${Yi()}ms`),we(H,"animation-fill-mode",Ko()),we(H,"animation-direction",qi());const At=In()===1/0?"infinite":In().toString();we(H,"animation-iteration-count",At),we(H,"animation-play-state","paused"),T&&we(H,"animation-name",`${ze.id}-alt`),Ie(()=>{we(H,"animation-name",ze.id||null)})}})},dC=()=>{Q.forEach(T=>{const M=T.animate(a,{id:q,delay:Yi(),duration:Ht(),easing:Go(),iterations:In(),fill:Ko(),direction:qi()});M.pause(),J.push(M)}),J.length>0&&(J[0].onfinish=()=>{Ki()})},Bp=(T=!0)=>{lC(),a.length>0&&(oe?dC():Mp(T)),d=!0},Qo=T=>{if(T=Math.min(Math.max(T,0),.9999),oe)J.forEach(M=>{M.currentTime=M.effect.getComputedTiming().delay+Ht()*T,M.pause()});else{const M=`-${Ht()*T}ms`;Q.forEach(H=>{a.length>0&&(we(H,"animation-delay",M),we(H,"animation-play-state","paused"))})}},jp=T=>{J.forEach(M=>{M.effect.updateTiming({delay:Yi(),duration:Ht(),easing:Go(),iterations:In(),fill:Ko(),direction:qi()})}),T!==void 0&&Qo(T)},Vp=(T=!0,M)=>{Ie(()=>{Q.forEach(H=>{we(H,"animation-name",D||null),we(H,"animation-duration",`${Ht()}ms`),we(H,"animation-timing-function",Go()),we(H,"animation-delay",M!==void 0?`-${M*Ht()}ms`:`${Yi()}ms`),we(H,"animation-fill-mode",Ko()||null),we(H,"animation-direction",qi()||null);const fe=In()===1/0?"infinite":In().toString();we(H,"animation-iteration-count",fe),T&&we(H,"animation-name",`${D}-alt`),Ie(()=>{we(H,"animation-name",D||null)})})})},Pt=(T=!1,M=!0,H)=>(T&&I.forEach(fe=>{fe.update(T,M,H)}),oe?jp(H):Vp(M,H),R),uC=(T=!1,M)=>(I.forEach(H=>{H.progressStart(T,M)}),Fp(),b=T,d||Bp(),Pt(!1,!0,M),R),hC=T=>(I.forEach(M=>{M.progressStep(T)}),Qo(T),R),fC=(T,M,H)=>(b=!1,I.forEach(fe=>{fe.progressEnd(T,M,H)}),H!==void 0&&(E=H),C=!1,k=!0,T===0?(w=qi()==="reverse"?"normal":"reverse",w==="reverse"&&(k=!1),oe?(Pt(),Qo(1-M)):(S=(1-M)*Ht()*-1,Pt(!1,!1))):T===1&&(oe?(Pt(),Qo(M)):(S=M*Ht()*-1,Pt(!1,!1))),T!==void 0&&!u&&Hp(),R),Fp=()=>{d&&(oe?J.forEach(T=>{T.pause()}):Q.forEach(T=>{we(T,"animation-play-state","paused")}),V=!0)},pC=()=>(I.forEach(T=>{T.pause()}),Fp(),R),mC=()=>{v=void 0,Ki()},Ac=()=>{v&&clearTimeout(v)},gC=()=>{if(Ac(),Ie(()=>{Q.forEach(T=>{a.length>0&&we(T,"animation-play-state","running")})}),a.length===0||Q.length===0)Ki();else{const T=Yi()||0,M=Ht()||0,H=In()||1;isFinite(H)&&(v=setTimeout(mC,T+M*H+Pe)),N2(Q[0],()=>{Ac(),Ie(()=>{bC(),Ie(Ki)})})}},bC=()=>{Q.forEach(T=>{Ut(T,"animation-duration"),Ut(T,"animation-delay"),Ut(T,"animation-play-state")})},vC=()=>{J.forEach(T=>{T.play()}),(a.length===0||Q.length===0)&&Ki()},yC=()=>{oe?(Qo(0),jp()):Vp()},Hp=T=>new Promise(M=>{T!=null&&T.sync&&(g=!0,Pc(()=>g=!1,{oneTimeCallback:!0})),d||Bp(),C&&(yC(),C=!1),A&&(x=I.length+1,A=!1);const H=()=>{$p(fe,G),M()},fe=()=>{$p(H,Z),M()};Pc(fe,{oneTimeCallback:!0}),z1(H,{oneTimeCallback:!0}),I.forEach(ze=>{ze.play()}),oe?vC():gC(),V=!1}),xC=()=>{I.forEach(T=>{T.stop()}),d&&(_p(),d=!1),an(),Z.forEach(T=>T.c(0,R)),Z.length=0},Np=(T,M)=>{const H=a[0];return H!==void 0&&(H.offset===void 0||H.offset===0)?H[T]=M:a=[{offset:0,[T]:M},...a],R};return R={parentAnimation:u,elements:Q,childAnimations:I,id:q,animationFinish:Ki,from:Np,to:(T,M)=>{const H=a[a.length-1];return H!==void 0&&(H.offset===void 0||H.offset===1)?H[T]=M:a=[...a,{offset:1,[T]:M}],R},fromTo:(T,M,H)=>Np(T,M).to(T,H),parent:iC,play:Hp,pause:pC,stop:xC,destroy:Ln,keyframes:sC,addAnimation:rC,addElement:oC,update:Pt,fill:Z1,direction:Q1,iterations:nC,duration:tC,easing:eC,delay:J1,getWebAnimations:Tt,getKeyframes:G1,getFill:Ko,getDirection:qi,getDelay:Yi,getIterations:In,getEasing:Go,getDuration:Ht,afterAddRead:V1,afterAddWrite:F1,afterClearStyles:K1,afterStyles:Y1,afterRemoveClass:q1,afterAddClass:X1,beforeAddRead:B1,beforeAddWrite:j1,beforeClearStyles:W1,beforeStyles:U1,beforeRemoveClass:N1,beforeAddClass:H1,onFinish:Pc,isRunning:Dp,progressStart:uC,progressStep:hC,progressEnd:fC}},Y2="ionViewWillEnter",K2="ionViewDidEnter",gx="ionViewWillLeave",bx="ionViewDidLeave",nd="ionViewWillUnload",G2=()=>$t(()=>import("./ios.transition-QLAPYOL8.js"),__vite__mapDeps([])),Q2=()=>$t(()=>import("./md.transition--4-rEEQA.js"),__vite__mapDeps([])),vx=e=>new Promise((t,n)=>{Ft(()=>{Z2(e),J2(e).then(i=>{i.animation&&i.animation.destroy(),pg(e),t(i)},i=>{pg(e),n(i)})})}),Z2=e=>{const t=e.enteringEl,n=e.leavingEl;rT(t,n,e.direction),e.showGoBack?t.classList.add("can-go-back"):t.classList.remove("can-go-back"),Ou(t,!1),t.style.setProperty("pointer-events","none"),n&&(Ou(n,!1),n.style.setProperty("pointer-events","none"))},J2=async e=>{const t=await eT(e);return t&&YE.isBrowser?tT(t,e):nT(e)},pg=e=>{const t=e.enteringEl,n=e.leavingEl;t.classList.remove("ion-page-invisible"),t.style.removeProperty("pointer-events"),n!==void 0&&(n.classList.remove("ion-page-invisible"),n.style.removeProperty("pointer-events"))},eT=async e=>!e.leavingEl||!e.animated||e.duration===0?void 0:e.animationBuilder?e.animationBuilder:e.mode==="ios"?(await G2()).iosTransitionAnimation:(await Q2()).mdTransitionAnimation,tT=async(e,t)=>{await yx(t,!0);const n=e(t.baseEl,t);xx(t.enteringEl,t.leavingEl);const i=await oT(n,t);return t.progressCallback&&t.progressCallback(void 0),i&&wx(t.enteringEl,t.leavingEl),{hasCompleted:i,animation:n}},nT=async e=>{const t=e.enteringEl,n=e.leavingEl;return await yx(e,!1),xx(t,n),wx(t,n),{hasCompleted:!0}},yx=async(e,t)=>{(e.deepWait!==void 0?e.deepWait:t)&&await Promise.all([ts(e.enteringEl),ts(e.leavingEl)]),await iT(e.viewIsReady,e.enteringEl)},iT=async(e,t)=>{e&&await e(t)},oT=(e,t)=>{const n=t.progressCallback,i=new Promise(o=>{e.onFinish(r=>o(r===1))});return n?(e.progressStart(!0),n(e)):e.play(),i},xx=(e,t)=>{un(t,gx),un(e,Y2)},wx=(e,t)=>{un(e,K2),un(t,bx)},un=(e,t)=>{if(e){const n=new CustomEvent(t,{bubbles:!1,cancelable:!1});e.dispatchEvent(n)}},kx=()=>new Promise(e=>Ie(()=>Ie(()=>e()))),ts=async e=>{const t=e;if(t){if(t.componentOnReady!=null){if(await t.componentOnReady()!=null)return}else if(t.__registerHost!=null){await new Promise(i=>Ie(i));return}await Promise.all(Array.from(t.children).map(ts))}},Ou=(e,t)=>{t?(e.setAttribute("aria-hidden","true"),e.classList.add("ion-page-hidden")):(e.hidden=!1,e.removeAttribute("aria-hidden"),e.classList.remove("ion-page-hidden"))},rT=(e,t,n)=>{e!==void 0&&(e.style.zIndex=n==="back"?"99":"101"),t!==void 0&&(t.style.zIndex="100")},Kz=e=>{if(e.classList.contains("ion-page"))return e;const t=e.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs");return t||e};/*! * (C) Ionic http://ionicframework.com - MIT License */const $i=(e,t,n,i,o)=>aT(e[1],t[1],n[1],i[1],o).map(r=>sT(e[0],t[0],n[0],i[0],r)),sT=(e,t,n,i,o)=>{const r=3*t*Math.pow(o-1,2),s=-3*n*o+3*n+i*o,a=e*Math.pow(o-1,3);return o*(r+o*s)-a},aT=(e,t,n,i,o)=>(e-=o,t-=o,n-=o,i-=o,cT(i-3*n+3*t-e,3*n-6*t+3*e,3*t-3*e,e).filter(s=>s>=0&&s<=1)),lT=(e,t,n)=>{const i=t*t-4*e*n;return i<0?[]:[(-t+Math.sqrt(i))/(2*e),(-t-Math.sqrt(i))/(2*e)]},cT=(e,t,n,i)=>{if(e===0)return lT(t,n,i);t/=e,n/=e,i/=e;const o=(3*n-t*t)/3,r=(2*t*t*t-9*t*n+27*i)/27;if(o===0)return[Math.pow(-r,1/3)];if(r===0)return[Math.sqrt(-o),-Math.sqrt(-o)];const s=Math.pow(r/2,2)+Math.pow(o/3,3);if(s===0)return[Math.pow(r/2,1/2)-t/3];if(s>0)return[Math.pow(-(r/2)+Math.sqrt(s),1/3)-Math.pow(r/2+Math.sqrt(s),1/3)-t/3];const a=Math.sqrt(Math.pow(-(o/3),3)),l=Math.acos(-(r/(2*Math.sqrt(Math.pow(-(o/3),3))))),c=2*Math.pow(a,1/3);return[c*Math.cos(l/3)-t/3,c*Math.cos((l+2*Math.PI)/3)-t/3,c*Math.cos((l+4*Math.PI)/3)-t/3]};/*! * (C) Ionic http://ionicframework.com - MIT License */class dT{constructor(){this.gestureId=0,this.requestedStart=new Map,this.disabledGestures=new Map,this.disabledScroll=new Set}createGesture(t){var n;return new uT(this,this.newID(),t.name,(n=t.priority)!==null&&n!==void 0?n:0,!!t.disableScroll)}createBlocker(t={}){return new hT(this,this.newID(),t.disable,!!t.disableScroll)}start(t,n,i){return this.canStart(t)?(this.requestedStart.set(n,i),!0):(this.requestedStart.delete(n),!1)}capture(t,n,i){if(!this.start(t,n,i))return!1;const o=this.requestedStart;let r=-1e4;if(o.forEach(s=>{r=Math.max(r,s)}),r===i){this.capturedId=n,o.clear();const s=new CustomEvent("ionGestureCaptured",{detail:{gestureName:t}});return document.dispatchEvent(s),!0}return o.delete(n),!1}release(t){this.requestedStart.delete(t),this.capturedId===t&&(this.capturedId=void 0)}disableGesture(t,n){let i=this.disabledGestures.get(t);i===void 0&&(i=new Set,this.disabledGestures.set(t,i)),i.add(n)}enableGesture(t,n){const i=this.disabledGestures.get(t);i!==void 0&&i.delete(n)}disableScroll(t){this.disabledScroll.add(t),this.disabledScroll.size===1&&document.body.classList.add(mg)}enableScroll(t){this.disabledScroll.delete(t),this.disabledScroll.size===0&&document.body.classList.remove(mg)}canStart(t){return!(this.capturedId!==void 0||this.isDisabled(t))}isCaptured(){return this.capturedId!==void 0}isScrollDisabled(){return this.disabledScroll.size>0}isDisabled(t){const n=this.disabledGestures.get(t);return!!(n&&n.size>0)}newID(){return this.gestureId++,this.gestureId}}class uT{constructor(t,n,i,o,r){this.id=n,this.name=i,this.disableScroll=r,this.priority=o*1e6+n,this.ctrl=t}canStart(){return this.ctrl?this.ctrl.canStart(this.name):!1}start(){return this.ctrl?this.ctrl.start(this.name,this.id,this.priority):!1}capture(){if(!this.ctrl)return!1;const t=this.ctrl.capture(this.name,this.id,this.priority);return t&&this.disableScroll&&this.ctrl.disableScroll(this.id),t}release(){this.ctrl&&(this.ctrl.release(this.id),this.disableScroll&&this.ctrl.enableScroll(this.id))}destroy(){this.release(),this.ctrl=void 0}}class hT{constructor(t,n,i,o){this.id=n,this.disable=i,this.disableScroll=o,this.ctrl=t}block(){if(this.ctrl){if(this.disable)for(const t of this.disable)this.ctrl.disableGesture(t,this.id);this.disableScroll&&this.ctrl.disableScroll(this.id)}}unblock(){if(this.ctrl){if(this.disable)for(const t of this.disable)this.ctrl.enableGesture(t,this.id);this.disableScroll&&this.ctrl.enableScroll(this.id)}}destroy(){this.unblock(),this.ctrl=void 0}}const mg="backdrop-no-scroll",_l=new dT;/*! * (C) Ionic http://ionicframework.com - MIT License */const ui=(e,t,n,i)=>{const o=fT(e)?{capture:!!i.capture,passive:!!i.passive}:!!i.capture;let r,s;return e.__zone_symbol__addEventListener?(r="__zone_symbol__addEventListener",s="__zone_symbol__removeEventListener"):(r="addEventListener",s="removeEventListener"),e[r](t,n,o),()=>{e[s](t,n,o)}},fT=e=>{if(qs===void 0)try{const t=Object.defineProperty({},"passive",{get:()=>{qs=!0}});e.addEventListener("optsTest",()=>{},t)}catch{qs=!1}return!!qs};let qs;const pT=2e3,mT=(e,t,n,i,o)=>{let r,s,a,l,c,d,u,h=0;const f=S=>{h=Date.now()+pT,t(S)&&(!s&&n&&(s=ui(e,"touchmove",n,o)),a||(a=ui(S.target,"touchend",m,o)),l||(l=ui(S.target,"touchcancel",m,o)))},p=S=>{h>Date.now()||t(S)&&(!d&&n&&(d=ui(gg(e),"mousemove",n,o)),u||(u=ui(gg(e),"mouseup",x,o)))},m=S=>{b(),i&&i(S)},x=S=>{g(),i&&i(S)},b=()=>{s&&s(),a&&a(),l&&l(),s=a=l=void 0},g=()=>{d&&d(),u&&u(),d=u=void 0},v=()=>{b(),g()},w=(S=!0)=>{S?(r||(r=ui(e,"touchstart",f,o)),c||(c=ui(e,"mousedown",p,o))):(r&&r(),c&&c(),r=c=void 0,v())};return{enable:w,stop:v,destroy:()=>{w(!1),i=n=t=void 0}}},gg=e=>e instanceof Document?e:e.ownerDocument,gT=(e,t,n)=>{const i=n*(Math.PI/180),o=e==="x",r=Math.cos(i),s=t*t;let a=0,l=0,c=!1,d=0;return{start(u,h){a=u,l=h,d=0,c=!0},detect(u,h){if(!c)return!1;const f=u-a,p=h-l,m=f*f+p*p;if(mr?d=1:b<-r?d=-1:d=0,c=!1,!0},isGesture(){return d!==0},getDirection(){return d}}},zl=e=>{let t=!1,n=!1,i=!0,o=!1;const r=Object.assign({disableScroll:!1,direction:"x",gesturePriority:0,passive:!0,maxAngle:40,threshold:10},e),s=r.canStart,a=r.onWillStart,l=r.onStart,c=r.onEnd,d=r.notCaptured,u=r.onMove,h=r.threshold,f=r.passive,p=r.blurOnStart,m={type:"pan",startX:0,startY:0,startTime:0,currentX:0,currentY:0,velocityX:0,velocityY:0,deltaX:0,deltaY:0,currentTime:0,event:void 0,data:void 0},x=gT(r.direction,r.threshold,r.maxAngle),b=_l.createGesture({name:e.gestureName,priority:e.gesturePriority,disableScroll:e.disableScroll}),g=V=>{const q=Sx(V);return n||!i||(Cx(V,m),m.startX=m.currentX,m.startY=m.currentY,m.startTime=m.currentTime=q,m.velocityX=m.velocityY=m.deltaX=m.deltaY=0,m.event=V,s&&s(m)===!1)||(b.release(),!b.start())?!1:(n=!0,h===0?E():(x.start(m.startX,m.startY),!0))},v=V=>{if(t){!o&&i&&(o=!0,id(m,V),requestAnimationFrame(w));return}id(m,V),x.detect(m.currentX,m.currentY)&&(!x.isGesture()||!E())&&R()},w=()=>{t&&(o=!1,u&&u(m))},E=()=>b.capture()?(t=!0,i=!1,m.startX=m.currentX,m.startY=m.currentY,m.startTime=m.currentTime,a?a(m).then(k):k(),!0):!1,S=()=>{if(typeof document<"u"){const V=document.activeElement;V!=null&&V.blur&&V.blur()}},k=()=>{p&&S(),l&&l(m),i=!0},C=()=>{t=!1,n=!1,o=!1,i=!0,b.release()},A=V=>{const q=t,Y=i;if(C(),!!Y){if(id(m,V),q){c&&c(m);return}d&&d(m)}},D=mT(r.el,g,v,A,{capture:!1,passive:f}),R=()=>{C(),D.stop(),d&&d(m)};return{enable(V=!0){V||(t&&A(void 0),C()),D.enable(V)},destroy(){b.destroy(),D.destroy()}}},id=(e,t)=>{if(!t)return;const n=e.currentX,i=e.currentY,o=e.currentTime;Cx(t,e);const r=e.currentX,s=e.currentY,l=(e.currentTime=Sx(t))-o;if(l>0&&l<100){const c=(r-n)/l,d=(s-i)/l;e.velocityX=c*.7+e.velocityX*.3,e.velocityY=d*.7+e.velocityY*.3}e.deltaX=r-e.startX,e.deltaY=s-e.startY,e.event=t},Cx=(e,t)=>{let n=0,i=0;if(e){const o=e.changedTouches;if(o&&o.length>0){const r=o[0];n=r.clientX,i=r.clientY}else e.pageX!==void 0&&(n=e.pageX,i=e.pageY)}t.currentX=n,t.currentY=i},Sx=e=>e.timeStamp||Date.now(),Ex=Object.freeze(Object.defineProperty({__proto__:null,GESTURE_CONTROLLER:_l,createGesture:zl},Symbol.toStringTag,{value:"Module"}));/*! * (C) Ionic http://ionicframework.com - MIT License */class bT{constructor(){this.m=new Map}reset(t){this.m=new Map(Object.entries(t))}get(t,n){const i=this.m.get(t);return i!==void 0?i:n}getBoolean(t,n=!1){const i=this.m.get(t);return i===void 0?n:typeof i=="string"?i==="true":!!i}getNumber(t,n){const i=parseFloat(this.m.get(t));return isNaN(i)?n!==void 0?n:NaN:i}set(t,n){this.m.set(t,n)}}const le=new bT,vT=e=>{try{const t=e.sessionStorage.getItem(Tx);return t!==null?JSON.parse(t):{}}catch{return{}}},yT=(e,t)=>{try{e.sessionStorage.setItem(Tx,JSON.stringify(t))}catch{return}},xT=e=>{const t={};return e.location.search.slice(1).split("&").map(n=>n.split("=")).map(([n,i])=>[decodeURIComponent(n),decodeURIComponent(i)]).filter(([n])=>wT(n,bg)).map(([n,i])=>[n.slice(bg.length),i]).forEach(([n,i])=>{t[n]=i}),t},wT=(e,t)=>e.substr(0,t.length)===t,bg="ionic:",Tx="ionic-persist-config",kT=e=>Px(e),pn=(e,t)=>(typeof e=="string"&&(t=e,e=void 0),kT(e).includes(t)),Px=(e=window)=>{if(typeof e>"u")return[];e.Ionic=e.Ionic||{};let t=e.Ionic.platforms;return t==null&&(t=e.Ionic.platforms=CT(e),t.forEach(n=>e.document.documentElement.classList.add(`plt-${n}`))),t},CT=e=>{const t=le.get("platform");return Object.keys(vg).filter(n=>{const i=t==null?void 0:t[n];return typeof i=="function"?i(e):vg[n](e)})},ST=e=>Ml(e)&&!Lx(e),wf=e=>!!(_i(e,/iPad/i)||_i(e,/Macintosh/i)&&Ml(e)),ET=e=>_i(e,/iPhone/i),TT=e=>_i(e,/iPhone|iPod/i)||wf(e),Ax=e=>_i(e,/android|sink/i),PT=e=>Ax(e)&&!_i(e,/mobile/i),AT=e=>{const t=e.innerWidth,n=e.innerHeight,i=Math.min(t,n),o=Math.max(t,n);return i>390&&i<520&&o>620&&o<800},LT=e=>{const t=e.innerWidth,n=e.innerHeight,i=Math.min(t,n),o=Math.max(t,n);return wf(e)||PT(e)||i>460&&i<820&&o>780&&o<1400},Ml=e=>DT(e,"(any-pointer:coarse)"),IT=e=>!Ml(e),Lx=e=>Ix(e)||Ox(e),Ix=e=>!!(e.cordova||e.phonegap||e.PhoneGap),Ox=e=>{const t=e.Capacitor;return!!(t!=null&&t.isNative)},OT=e=>_i(e,/electron/i),RT=e=>{var t;return!!(!((t=e.matchMedia)===null||t===void 0)&&t.call(e,"(display-mode: standalone)").matches||e.navigator.standalone)},_i=(e,t)=>t.test(e.navigator.userAgent),DT=(e,t)=>{var n;return(n=e.matchMedia)===null||n===void 0?void 0:n.call(e,t).matches},vg={ipad:wf,iphone:ET,ios:TT,android:Ax,phablet:AT,tablet:LT,cordova:Ix,capacitor:Ox,electron:OT,pwa:RT,mobile:Ml,mobileweb:ST,desktop:IT,hybrid:Lx};let eo;const W=e=>e&&r2(e)||eo,$T=(e={})=>{if(typeof window>"u")return;const t=window.document,n=window,i=n.Ionic=n.Ionic||{},o={};e._ael&&(o.ael=e._ael),e._rel&&(o.rel=e._rel),e._ce&&(o.ce=e._ce),D2(o);const r=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},vT(n)),{persistConfig:!1}),i.config),xT(n)),e);le.reset(r),le.getBoolean("persistConfig")&&yT(n,r),Px(n),i.config=le,i.mode=eo=le.get("mode",t.documentElement.getAttribute("mode")||(pn(n,"ios")?"ios":"md")),le.set("mode",eo),t.documentElement.setAttribute("mode",eo),t.documentElement.classList.add(eo),le.getBoolean("_testing")&&le.set("animated",!1);const s=l=>{var c;return(c=l.tagName)===null||c===void 0?void 0:c.startsWith("ION-")},a=l=>["ios","md"].includes(l);o2(l=>{for(;l;){const c=l.mode||l.getAttribute("mode");if(c){if(a(c))return c;s(l)&&console.warn('Invalid ionic mode: "'+c+'", expected: "ios" or "md"')}l=l.parentElement}return eo})};/*! * (C) Ionic http://ionicframework.com - MIT License */const _T=e=>{try{if(e instanceof jT)return e.value;if(!zT()||typeof e!="string"||e==="")return e;if(e.includes("onload="))return"";const t=document.createDocumentFragment(),n=document.createElement("div");t.appendChild(n),n.innerHTML=e,BT.forEach(s=>{const a=t.querySelectorAll(s);for(let l=a.length-1;l>=0;l--){const c=a[l];c.parentNode?c.parentNode.removeChild(c):t.removeChild(c);const d=Du(c);for(let u=0;u{if(e.nodeType&&e.nodeType!==1)return;if(typeof NamedNodeMap<"u"&&!(e.attributes instanceof NamedNodeMap)){e.remove();return}for(let n=e.attributes.length-1;n>=0;n--){const i=e.attributes.item(n),o=i.name;if(!MT.includes(o.toLowerCase())){e.removeAttribute(o);continue}const r=i.value,s=e[o];(r!=null&&r.toLowerCase().includes("javascript:")||s!=null&&s.toLowerCase().includes("javascript:"))&&e.removeAttribute(o)}const t=Du(e);for(let n=0;ne.children!=null?e.children:e.childNodes,zT=()=>{var e;const t=window,n=(e=t==null?void 0:t.Ionic)===null||e===void 0?void 0:e.config;return n?n.get?n.get("sanitizerEnabled",!0):n.sanitizerEnabled===!0||n.sanitizerEnabled===void 0:!0},MT=["class","id","href","src","name","slot"],BT=["script","style","iframe","meta","link","object","embed"];class jT{constructor(t){this.value=t}}const VT=!1;/*! * (C) Ionic http://ionicframework.com - MIT License */const De=(e,t)=>t.closest(e)!==null,Ne=(e,t)=>typeof e=="string"&&e.length>0?Object.assign({"ion-color":!0,[`ion-color-${e}`]:!0},t):t,FT=e=>e!==void 0?(Array.isArray(e)?e:e.split(" ")).filter(n=>n!=null).map(n=>n.trim()).filter(n=>n!==""):[],Mt=e=>{const t={};return FT(e).forEach(n=>t[n]=!0),t},HT=/^[a-z][a-z0-9+\-.]*:/,Rx=async(e,t,n,i)=>{if(e!=null&&e[0]!=="#"&&!HT.test(e)){const o=document.querySelector("ion-router");if(o)return t!=null&&t.preventDefault(),o.push(e,n,i)}return!1};/*! * (C) Ionic http://ionicframework.com - MIT License */const NT=()=>{document.addEventListener("backbutton",()=>{})},UT=()=>{const e=document;let t=!1;e.addEventListener("backbutton",()=>{if(t)return;let n=0,i=[];const o=new CustomEvent("ionBackButton",{bubbles:!1,detail:{register(a,l){i.push({priority:a,handler:l,id:n++})}}});e.dispatchEvent(o);const r=async a=>{try{if(a!=null&&a.handler){const l=a.handler(s);l!=null&&await l}}catch(l){console.error(l)}},s=()=>{if(i.length>0){let a={priority:Number.MIN_SAFE_INTEGER,handler:()=>{},id:-1};i.forEach(l=>{l.priority>=a.priority&&(a=l)}),t=!0,i=i.filter(l=>l.id!==a.id),r(a).then(()=>t=!1)}};s()})},Dx=100,$x=99,WT=Object.freeze(Object.defineProperty({__proto__:null,MENU_BACK_BUTTON_PRIORITY:$x,OVERLAY_BACK_BUTTON_PRIORITY:Dx,blockHardwareBackButton:NT,startHardwareBackButton:UT},Symbol.toStringTag,{value:"Module"}));/*! * (C) Ionic http://ionicframework.com - MIT License */const pe=(e,...t)=>console.warn(`[Ionic Warning]: ${e}`,...t),XT=(e,...t)=>console.error(`[Ionic Error]: ${e}`,...t),qT=(e,...t)=>console.error(`<${e.tagName.toLowerCase()}> must be used inside ${t.join(" or ")}.`);/*! * (C) Ionic http://ionicframework.com - MIT License */const kf=e=>U().duration(e?400:300),YT=e=>{let t,n;const i=e.width+8,o=U(),r=U();e.isEndSide?(t=i+"px",n="0px"):(t=-i+"px",n="0px"),o.addElement(e.menuInnerEl).fromTo("transform",`translateX(${t})`,`translateX(${n})`);const a=W(e)==="ios",l=a?.2:.25;return r.addElement(e.backdropEl).fromTo("opacity",.01,l),kf(a).addAnimation([o,r])},KT=e=>{let t,n;const i=W(e),o=e.width;e.isEndSide?(t=-o+"px",n=o+"px"):(t=o+"px",n=-o+"px");const r=U().addElement(e.menuInnerEl).fromTo("transform",`translateX(${n})`,"translateX(0px)"),s=U().addElement(e.contentEl).fromTo("transform","translateX(0px)",`translateX(${t})`),a=U().addElement(e.backdropEl).fromTo("opacity",.01,.32);return kf(i==="ios").addAnimation([r,s,a])},GT=e=>{const t=W(e),n=e.width*(e.isEndSide?-1:1)+"px",i=U().addElement(e.contentEl).fromTo("transform","translateX(0px)",`translateX(${n})`);return kf(t==="ios").addAnimation(i)},QT=()=>{const e=new Map,t=[],n=async k=>{const C=await c(k,!0);return C?C.open():!1},i=async k=>{const C=await(k!==void 0?c(k,!0):d());return C!==void 0?C.close():!1},o=async k=>{const C=await c(k,!0);return C?C.toggle():!1},r=async(k,C)=>{const A=await c(C);return A&&(A.disabled=!k),A},s=async(k,C)=>{const A=await c(C);return A&&(A.swipeGesture=k),A},a=async k=>{if(k!=null){const C=await c(k);return C!==void 0&&C.isOpen()}else return await d()!==void 0},l=async k=>{const C=await c(k);return C?!C.disabled:!1},c=async(k,C=!1)=>{if(await S(),k==="start"||k==="end"){const D=t.filter(V=>V.side===k&&!V.disabled);if(D.length>=1)return D.length>1&&C&&pe(`menuController queried for a menu on the "${k}" side, but ${D.length} menus were found. The first menu reference will be used. If this is not the behavior you want then pass the ID of the menu instead of its side.`,D.map(V=>V.el)),D[0].el;const R=t.filter(V=>V.side===k);if(R.length>=1)return R.length>1&&C&&pe(`menuController queried for a menu on the "${k}" side, but ${R.length} menus were found. The first menu reference will be used. If this is not the behavior you want then pass the ID of the menu instead of its side.`,R.map(V=>V.el)),R[0].el}else if(k!=null)return E(D=>D.menuId===k);const A=E(D=>!D.disabled);return A||(t.length>0?t[0].el:void 0)},d=async()=>(await S(),g()),u=async()=>(await S(),v()),h=async()=>(await S(),w()),f=(k,C)=>{e.set(k,C)},p=k=>{t.indexOf(k)<0&&t.push(k)},m=k=>{const C=t.indexOf(k);C>-1&&t.splice(C,1)},x=async(k,C,A)=>{if(w())return!1;if(C){const D=await d();D&&k.el!==D&&await D.setOpen(!1,!1)}return k._setOpen(C,A)},b=(k,C)=>{const A=e.get(k);if(!A)throw new Error("animation not registered");return A(C)},g=()=>E(k=>k._isOpen),v=()=>t.map(k=>k.el),w=()=>t.some(k=>k.isAnimating),E=k=>{const C=t.find(k);if(C!==void 0)return C.el},S=()=>Promise.all(Array.from(document.querySelectorAll("ion-menu")).map(k=>new Promise(C=>ei(k,C))));return f("reveal",GT),f("push",KT),f("overlay",YT),Gn==null||Gn.addEventListener("ionBackButton",k=>{const C=g();C&&k.detail.register($x,()=>C.close())}),{registerAnimation:f,get:c,getMenus:u,getOpen:d,isEnabled:l,swipeGesture:s,isAnimating:h,isOpen:a,enable:r,toggle:o,close:i,open:n,_getOpenSync:g,_createAnimation:b,_register:p,_unregister:m,_setOpen:x}},jn=QT();/*! * (C) Ionic http://ionicframework.com - MIT License */const Bl=async(e,t,n,i,o,r)=>{var s;if(e)return e.attachViewToDom(t,n,o,i);if(!r&&typeof n!="string"&&!(n instanceof HTMLElement))throw new Error("framework delegate is missing");const a=typeof n=="string"?(s=t.ownerDocument)===null||s===void 0?void 0:s.createElement(n):n;return i&&i.forEach(l=>a.classList.add(l)),o&&Object.assign(a,o),t.appendChild(a),await new Promise(l=>ei(a,l)),a},Cf=(e,t)=>{if(t){if(e){const n=t.parentElement;return e.removeViewFromDom(n,t)}t.remove()}return Promise.resolve()},Sf=()=>{let e,t;return{attachViewToDom:async(o,r,s={},a=[])=>{var l,c;e=o;let d;if(r){const h=typeof r=="string"?(l=e.ownerDocument)===null||l===void 0?void 0:l.createElement(r):r;a.forEach(f=>h.classList.add(f)),Object.assign(h,s),e.appendChild(h),d=h,await new Promise(f=>ei(h,f))}else if(e.children.length>0&&(e.tagName==="ION-MODAL"||e.tagName==="ION-POPOVER")&&!(d=e.children[0]).classList.contains("ion-delegate-host")){const f=(c=e.ownerDocument)===null||c===void 0?void 0:c.createElement("div");f.classList.add("ion-delegate-host"),a.forEach(p=>f.classList.add(p)),f.append(...e.children),e.appendChild(f),d=f}const u=document.querySelector("ion-app")||document.body;return t=document.createComment("ionic teleport"),e.parentNode.insertBefore(t,e),u.appendChild(e),d??e},removeViewFromDom:()=>(e&&t&&(t.parentNode.insertBefore(e,t),t.remove()),Promise.resolve())}};/*! * (C) Ionic http://ionicframework.com - MIT License */let $u=0,ZT=0;const el=new WeakMap,Ef=e=>({create(t){return nP(e,t)},dismiss(t,n,i){return sP(document,t,n,e,i)},async getTop(){return _o(document,e)}}),JT=Ef("ion-alert"),eP=Ef("ion-action-sheet"),tP=Ef("ion-popover"),jl=e=>{typeof document<"u"&&rP(document);const t=$u++;e.overlayIndex=t},Vl=e=>(e.hasAttribute("id")||(e.id=`ion-overlay-${++ZT}`),e.id),nP=(e,t)=>typeof window<"u"&&typeof window.customElements<"u"?window.customElements.whenDefined(e).then(()=>{const n=document.createElement(e);return n.classList.add("overlay-hidden"),Object.assign(n,Object.assign(Object.assign({},t),{hasController:!0})),Mx(document).appendChild(n),new Promise(i=>ei(n,i))}):Promise.resolve(),ns='[tabindex]:not([tabindex^="-"]):not([hidden]):not([disabled]), input:not([type=hidden]):not([tabindex^="-"]):not([hidden]):not([disabled]), textarea:not([tabindex^="-"]):not([hidden]):not([disabled]), button:not([tabindex^="-"]):not([hidden]):not([disabled]), select:not([tabindex^="-"]):not([hidden]):not([disabled]), .ion-focusable:not([tabindex^="-"]):not([hidden]):not([disabled]), .ion-focusable[disabled="false"]:not([tabindex^="-"]):not([hidden])',_u=(e,t)=>{let n=e.querySelector(ns);const i=n==null?void 0:n.shadowRoot;i&&(n=i.querySelector(ns)||n),n?Iu(n):t.focus()},iP=e=>e.classList.contains("overlay-hidden"),yg=(e,t)=>{const n=Array.from(e.querySelectorAll(ns));let i=n.length>0?n[n.length-1]:null;const o=i==null?void 0:i.shadowRoot;o&&(i=o.querySelector(ns)||i),i?i.focus():t.focus()},oP=(e,t)=>{const n=_o(t,"ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker,ion-popover"),i=e.target;if(!n||!i||n.classList.contains("ion-disable-focus-trap"))return;const o=()=>{if(n===i)n.lastFocus=void 0;else{const s=ft(n);if(!s.contains(i))return;const a=s.querySelector(".ion-overlay-wrapper");if(!a)return;if(a.contains(i)||i===s.querySelector("ion-backdrop"))n.lastFocus=i;else{const l=n.lastFocus;_u(a,n),l===t.activeElement&&yg(a,n),n.lastFocus=t.activeElement}}},r=()=>{if(n.contains(i))n.lastFocus=i;else{const s=n.lastFocus;_u(n,n),s===t.activeElement&&yg(n,n),n.lastFocus=t.activeElement}};n.shadowRoot?r():o()},rP=e=>{$u===0&&($u=1,e.addEventListener("focus",t=>{oP(t,e)},!0),e.addEventListener("ionBackButton",t=>{const n=_o(e);n!=null&&n.backdropDismiss&&t.detail.register(Dx,()=>n.dismiss(void 0,zi))}),e.addEventListener("keydown",t=>{if(t.key==="Escape"){const n=_o(e);n!=null&&n.backdropDismiss&&n.dismiss(void 0,zi)}}))},sP=(e,t,n,i,o)=>{const r=_o(e,i,o);return r?r.dismiss(t,n):Promise.reject("overlay does not exist")},aP=(e,t)=>(t===void 0&&(t="ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker,ion-popover,ion-toast"),Array.from(e.querySelectorAll(t)).filter(n=>n.overlayIndex>0)),_x=(e,t)=>aP(e,t).filter(n=>!iP(n)),_o=(e,t,n)=>{const i=_x(e,t);return n===void 0?i[i.length-1]:i.find(o=>o.id===n)},zx=(e=!1)=>{const n=Mx(document).querySelector("ion-router-outlet, ion-nav, #ion-view-container-root");n&&(e?n.setAttribute("aria-hidden","true"):n.removeAttribute("aria-hidden"))},Fl=async(e,t,n,i,o)=>{var r,s;if(e.presented)return;zx(!0),e.presented=!0,e.willPresent.emit(),(r=e.willPresentShorthand)===null||r===void 0||r.emit();const a=W(e),l=e.enterAnimation?e.enterAnimation:le.get(t,a==="ios"?n:i);await Bx(e,l,e.el,o)&&(e.didPresent.emit(),(s=e.didPresentShorthand)===null||s===void 0||s.emit()),e.el.tagName!=="ION-TOAST"&&lP(e.el),e.keyboardClose&&(document.activeElement===null||!e.el.contains(document.activeElement))&&e.el.focus()},lP=async e=>{let t=document.activeElement;if(!t)return;const n=t==null?void 0:t.shadowRoot;n&&(t=n.querySelector(ns)||t),await e.onDidDismiss(),t.focus()},Hl=async(e,t,n,i,o,r,s)=>{var a,l;if(!e.presented)return!1;Gn!==void 0&&_x(Gn).length===1&&zx(!1),e.presented=!1;try{e.el.style.setProperty("pointer-events","none"),e.willDismiss.emit({data:t,role:n}),(a=e.willDismissShorthand)===null||a===void 0||a.emit({data:t,role:n});const c=W(e),d=e.leaveAnimation?e.leaveAnimation:le.get(i,c==="ios"?o:r);n!==Pr&&await Bx(e,d,e.el,s),e.didDismiss.emit({data:t,role:n}),(l=e.didDismissShorthand)===null||l===void 0||l.emit({data:t,role:n}),el.delete(e),e.el.classList.add("overlay-hidden"),e.el.style.removeProperty("pointer-events"),e.el.lastFocus!==void 0&&(e.el.lastFocus=void 0)}catch(c){console.error(c)}return e.el.remove(),!0},Mx=e=>e.querySelector("ion-app")||e.body,Bx=async(e,t,n,i)=>{n.classList.remove("overlay-hidden");const o=e.el,r=t(o,i);(!e.animated||!le.getBoolean("animated",!0))&&r.duration(0),e.keyboardClose&&r.beforeAddWrite(()=>{const a=n.ownerDocument.activeElement;a!=null&&a.matches("input,ion-input, ion-textarea")&&a.blur()});const s=el.get(e)||[];return el.set(e,[...s,r]),await r.play(),!0},ti=(e,t)=>{let n;const i=new Promise(o=>n=o);return cP(e,t,o=>{n(o.detail)}),i},cP=(e,t,n)=>{const i=o=>{fx(e,t,i),n(o)};vf(e,t,i)},tl=e=>e==="cancel"||e===zi,dP=e=>e(),Tr=(e,t)=>{if(typeof e=="function")return le.get("_zoneGate",dP)(()=>{try{return e(t)}catch(i){throw i}})},zi="backdrop",Pr="gesture",uP=39,jx=e=>{let t=!1,n;const i=Sf(),o=(a=!1)=>{if(n&&!a)return{delegate:n,inline:t};const{el:l,hasController:c,delegate:d}=e;return t=l.parentNode!==null&&!c,n=t?d||i:d,{inline:t,delegate:n}};return{attachViewToDom:async a=>{const{delegate:l}=o(!0);if(l)return await l.attachViewToDom(e.el,a);const{hasController:c}=e;if(c&&a!==void 0)throw new Error("framework delegate is missing");return null},removeViewFromDom:()=>{const{delegate:a}=o();a&&e.el!==void 0&&a.removeViewFromDom(e.el.parentElement,e.el)}}},Tf=()=>{let e;const t=()=>{e&&(e(),e=void 0)};return{addClickListener:(i,o)=>{t();const r=o!==void 0?document.getElementById(o):null;if(!r){pe(`A trigger element with the ID "${o}" was not found in the DOM. The trigger element must be in the DOM when the "trigger" property is set on an overlay component.`,i);return}e=((a,l)=>{const c=()=>{l.present()};return a.addEventListener("click",c),()=>{a.removeEventListener("click",c)}})(r,i)},removeClickListener:t}};function Ke(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o{if(typeof window>"u")return new Map;if(!od){const e=window;e.Ionicons=e.Ionicons||{},od=e.Ionicons.map=e.Ionicons.map||new Map}return od},bP=e=>{let t=rd(e.src);return t||(t=Vx(e.name,e.icon,e.mode,e.ios,e.md),t?vP(t,e):e.icon&&(t=rd(e.icon),t||(t=rd(e.icon[e.mode]),t))?t:null)},vP=(e,t)=>{const n=gP().get(e);if(n)return n;try{return Zy(`svg/${e}.svg`)}catch{console.warn(`[Ionicons Warning]: Could not load icon with name "${e}". Ensure that the icon is registered using addIcons or that the icon SVG data is passed directly to the icon component.`,t)}},Vx=(e,t,n,i,o)=>(n=(n&&Ys(n))==="ios"?"ios":"md",i&&n==="ios"?e=Ys(i):o&&n==="md"?e=Ys(o):(!e&&t&&!Fx(t)&&(e=t),nl(e)&&(e=Ys(e))),!nl(e)||e.trim()===""||e.replace(/[a-z]|-|\d/gi,"")!==""?null:e),rd=e=>nl(e)&&(e=e.trim(),Fx(e))?e:null,Fx=e=>e.length>0&&/(\/|\.)/.test(e),nl=e=>typeof e=="string",Ys=e=>e.toLowerCase(),yP=(e,t=[])=>{const n={};return t.forEach(i=>{e.hasAttribute(i)&&(e.getAttribute(i)!==null&&(n[i]=e.getAttribute(i)),e.removeAttribute(i))}),n},xP=e=>e&&e.dir!==""?e.dir.toLowerCase()==="rtl":(document==null?void 0:document.dir.toLowerCase())==="rtl",wP=e=>{const t=document.createElement("div");t.innerHTML=e;for(let i=t.childNodes.length-1;i>=0;i--)t.childNodes[i].nodeName.toLowerCase()!=="svg"&&t.removeChild(t.childNodes[i]);const n=t.firstElementChild;if(n&&n.nodeName.toLowerCase()==="svg"){const i=n.getAttribute("class")||"";if(n.setAttribute("class",(i+" s-ion-icon").trim()),Hx(n))return t.innerHTML}return""},Hx=e=>{if(e.nodeType===1){if(e.nodeName.toLowerCase()==="script")return!1;for(let t=0;te.startsWith("data:image/svg+xml"),CP=e=>e.indexOf(";utf8,")!==-1,wi=new Map,wg=new Map;let sd;const SP=(e,t)=>{let n=wg.get(e);if(!n)if(typeof fetch<"u"&&typeof document<"u")if(kP(e)&&CP(e)){sd||(sd=new DOMParser);const o=sd.parseFromString(e,"text/html").querySelector("svg");return o&&wi.set(e,o.outerHTML),Promise.resolve()}else n=fetch(e).then(i=>{if(i.ok)return i.text().then(o=>{o&&t!==!1&&(o=wP(o)),wi.set(e,o||"")});wi.set(e,"")}),wg.set(e,n);else return wi.set(e,""),Promise.resolve();return n},EP=":host{display:inline-block;width:1em;height:1em;contain:strict;fill:currentColor;-webkit-box-sizing:content-box !important;box-sizing:content-box !important}:host .ionicon{stroke:currentColor}.ionicon-fill-none{fill:none}.ionicon-stroke-width{stroke-width:32px;stroke-width:var(--ionicon-stroke-width, 32px)}.icon-inner,.ionicon,svg{display:block;height:100%;width:100%}@supports (background: -webkit-named-image(i)){:host(.icon-rtl) .icon-inner{-webkit-transform:scaleX(-1);transform:scaleX(-1)}}@supports not selector(:dir(rtl)) and selector(:host-context([dir='rtl'])){:host(.icon-rtl) .icon-inner{-webkit-transform:scaleX(-1);transform:scaleX(-1)}}:host(.flip-rtl):host-context([dir='rtl']) .icon-inner{-webkit-transform:scaleX(-1);transform:scaleX(-1)}@supports selector(:dir(rtl)){:host(.flip-rtl:dir(rtl)) .icon-inner{-webkit-transform:scaleX(-1);transform:scaleX(-1)}:host(.flip-rtl:dir(ltr)) .icon-inner{-webkit-transform:scaleX(1);transform:scaleX(1)}}:host(.icon-small){font-size:1.125rem !important}:host(.icon-large){font-size:2rem !important}:host(.ion-color){color:var(--ion-color-base) !important}:host(.ion-color-primary){--ion-color-base:var(--ion-color-primary, #3880ff)}:host(.ion-color-secondary){--ion-color-base:var(--ion-color-secondary, #0cd1e8)}:host(.ion-color-tertiary){--ion-color-base:var(--ion-color-tertiary, #f4a942)}:host(.ion-color-success){--ion-color-base:var(--ion-color-success, #10dc60)}:host(.ion-color-warning){--ion-color-base:var(--ion-color-warning, #ffce00)}:host(.ion-color-danger){--ion-color-base:var(--ion-color-danger, #f14141)}:host(.ion-color-light){--ion-color-base:var(--ion-color-light, #f4f5f8)}:host(.ion-color-medium){--ion-color-base:var(--ion-color-medium, #989aa2)}:host(.ion-color-dark){--ion-color-base:var(--ion-color-dark, #222428)}",TP=ne(class extends ie{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.iconName=null,this.inheritedAttributes={},this.didLoadIcon=!1,this.svgContent=void 0,this.isVisible=!1,this.mode=PP(),this.color=void 0,this.ios=void 0,this.md=void 0,this.flipRtl=void 0,this.name=void 0,this.src=void 0,this.icon=void 0,this.size=void 0,this.lazy=!1,this.sanitize=!0}componentWillLoad(){this.inheritedAttributes=yP(this.el,["aria-label"])}connectedCallback(){this.waitUntilVisible(this.el,"50px",()=>{this.isVisible=!0,this.loadIcon()})}componentDidLoad(){this.didLoadIcon||this.loadIcon()}disconnectedCallback(){this.io&&(this.io.disconnect(),this.io=void 0)}waitUntilVisible(t,n,i){if(this.lazy&&typeof window<"u"&&window.IntersectionObserver){const o=this.io=new window.IntersectionObserver(r=>{r[0].isIntersecting&&(o.disconnect(),this.io=void 0,i())},{rootMargin:n});o.observe(t)}else i()}loadIcon(){if(this.isVisible){const t=bP(this);t&&(wi.has(t)?this.svgContent=wi.get(t):SP(t,this.sanitize).then(()=>this.svgContent=wi.get(t)),this.didLoadIcon=!0)}this.iconName=Vx(this.name,this.icon,this.mode,this.ios,this.md)}render(){const{flipRtl:t,iconName:n,inheritedAttributes:i,el:o}=this,r=this.mode||"md",s=n?(n.includes("arrow")||n.includes("chevron"))&&t!==!1:!1,a=t||s;return y(ee,Object.assign({role:"img",class:Object.assign(Object.assign({[r]:!0},AP(this.color)),{[`icon-${this.size}`]:!!this.size,"flip-rtl":a,"icon-rtl":a&&xP(o)})},i),this.svgContent?y("div",{class:"icon-inner",innerHTML:this.svgContent}):y("div",{class:"icon-inner"}))}static get assetsDirs(){return["svg"]}get el(){return this}static get watchers(){return{name:["loadIcon"],src:["loadIcon"],icon:["loadIcon"],ios:["loadIcon"],md:["loadIcon"]}}static get style(){return EP}},[1,"ion-icon",{mode:[1025],color:[1],ios:[1],md:[1],flipRtl:[4,"flip-rtl"],name:[513],src:[1],icon:[8],size:[1],lazy:[4],sanitize:[4],svgContent:[32],isVisible:[32]},void 0,{name:["loadIcon"],src:["loadIcon"],icon:["loadIcon"],ios:["loadIcon"],md:["loadIcon"]}]),PP=()=>typeof document<"u"&&document.documentElement.getAttribute("mode")||"md",AP=e=>e?{"ion-color":!0,[`ion-color-${e}`]:!0}:null;function vs(){if(typeof customElements>"u")return;["ion-icon"].forEach(t=>{switch(t){case"ion-icon":customElements.get(t)||customElements.define(t,TP);break}})}/*! * (C) Ionic http://ionicframework.com - MIT License */const LP=":host{left:0;right:0;top:0;bottom:0;display:block;position:absolute;-webkit-transform:translateZ(0);transform:translateZ(0);contain:strict;cursor:pointer;opacity:0.01;-ms-touch-action:none;touch-action:none;z-index:2}:host(.backdrop-hide){background:transparent}:host(.backdrop-no-tappable){cursor:auto}:host{background-color:var(--ion-backdrop-color, #000)}",IP=":host{left:0;right:0;top:0;bottom:0;display:block;position:absolute;-webkit-transform:translateZ(0);transform:translateZ(0);contain:strict;cursor:pointer;opacity:0.01;-ms-touch-action:none;touch-action:none;z-index:2}:host(.backdrop-hide){background:transparent}:host(.backdrop-no-tappable){cursor:auto}:host{background-color:var(--ion-backdrop-color, #000)}",OP=ne(class extends ie{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionBackdropTap=B(this,"ionBackdropTap",7),this.blocker=_l.createBlocker({disableScroll:!0}),this.visible=!0,this.tappable=!0,this.stopPropagation=!0}connectedCallback(){this.stopPropagation&&this.blocker.block()}disconnectedCallback(){this.blocker.unblock()}onMouseDown(t){this.emitTap(t)}emitTap(t){this.stopPropagation&&(t.preventDefault(),t.stopPropagation()),this.tappable&&this.ionBackdropTap.emit()}render(){const t=W(this);return y(ee,{tabindex:"-1","aria-hidden":"true",class:{[t]:!0,"backdrop-hide":!this.visible,"backdrop-no-tappable":!this.tappable}})}static get style(){return{ios:LP,md:IP}}},[33,"ion-backdrop",{visible:[4],tappable:[4],stopPropagation:[4,"stop-propagation"]},[[2,"click","onMouseDown"]]]);function Wo(){if(typeof customElements>"u")return;["ion-backdrop"].forEach(t=>{switch(t){case"ion-backdrop":customElements.get(t)||customElements.define(t,OP);break}})}/*! * (C) Ionic http://ionicframework.com - MIT License */const RP=".sc-ion-buttons-ios-h{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-webkit-transform:translateZ(0);transform:translateZ(0);z-index:99}.sc-ion-buttons-ios-s ion-button{--padding-top:0;--padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}.sc-ion-buttons-ios-s ion-button{--padding-top:3px;--padding-bottom:3px;--padding-start:5px;--padding-end:5px;-webkit-margin-start:2px;margin-inline-start:2px;-webkit-margin-end:2px;margin-inline-end:2px;min-height:32px}.sc-ion-buttons-ios-s .button-has-icon-only{--padding-top:0;--padding-bottom:0}.sc-ion-buttons-ios-s ion-button:not(.button-round){--border-radius:4px}.sc-ion-buttons-ios-h.ion-color.sc-ion-buttons-ios-s .button,.ion-color .sc-ion-buttons-ios-h.sc-ion-buttons-ios-s .button{--color:initial;--border-color:initial;--background-focused:var(--ion-color-contrast)}.sc-ion-buttons-ios-h.ion-color.sc-ion-buttons-ios-s .button-solid,.ion-color .sc-ion-buttons-ios-h.sc-ion-buttons-ios-s .button-solid{--background:var(--ion-color-contrast);--background-focused:#000;--background-focused-opacity:.12;--background-activated:#000;--background-activated-opacity:.12;--background-hover:var(--ion-color-base);--background-hover-opacity:0.45;--color:var(--ion-color-base);--color-focused:var(--ion-color-base)}.sc-ion-buttons-ios-h.ion-color.sc-ion-buttons-ios-s .button-clear,.ion-color .sc-ion-buttons-ios-h.sc-ion-buttons-ios-s .button-clear{--color-activated:var(--ion-color-contrast);--color-focused:var(--ion-color-contrast)}.sc-ion-buttons-ios-h.ion-color.sc-ion-buttons-ios-s .button-outline,.ion-color .sc-ion-buttons-ios-h.sc-ion-buttons-ios-s .button-outline{--color-activated:var(--ion-color-base);--color-focused:var(--ion-color-contrast);--background-activated:var(--ion-color-contrast)}.sc-ion-buttons-ios-s .button-clear,.sc-ion-buttons-ios-s .button-outline{--background-activated:transparent;--background-focused:currentColor;--background-hover:transparent}.sc-ion-buttons-ios-s .button-solid:not(.ion-color){--background-focused:#000;--background-focused-opacity:.12;--background-activated:#000;--background-activated-opacity:.12}.sc-ion-buttons-ios-s ion-icon[slot=start]{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-margin-end:0.3em;margin-inline-end:0.3em;font-size:1.41em;line-height:0.67}.sc-ion-buttons-ios-s ion-icon[slot=end]{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-margin-start:0.4em;margin-inline-start:0.4em;font-size:1.41em;line-height:0.67}.sc-ion-buttons-ios-s ion-icon[slot=icon-only]{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;font-size:1.65em;line-height:0.67}",DP=".sc-ion-buttons-md-h{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-webkit-transform:translateZ(0);transform:translateZ(0);z-index:99}.sc-ion-buttons-md-s ion-button{--padding-top:0;--padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}.sc-ion-buttons-md-s ion-button{--padding-top:3px;--padding-bottom:3px;--padding-start:8px;--padding-end:8px;--box-shadow:none;-webkit-margin-start:2px;margin-inline-start:2px;-webkit-margin-end:2px;margin-inline-end:2px;min-height:32px}.sc-ion-buttons-md-s .button-has-icon-only{--padding-top:0;--padding-bottom:0}.sc-ion-buttons-md-s ion-button:not(.button-round){--border-radius:2px}.sc-ion-buttons-md-h.ion-color.sc-ion-buttons-md-s .button,.ion-color .sc-ion-buttons-md-h.sc-ion-buttons-md-s .button{--color:initial;--color-focused:var(--ion-color-contrast);--color-hover:var(--ion-color-contrast);--background-activated:transparent;--background-focused:var(--ion-color-contrast);--background-hover:var(--ion-color-contrast)}.sc-ion-buttons-md-h.ion-color.sc-ion-buttons-md-s .button-solid,.ion-color .sc-ion-buttons-md-h.sc-ion-buttons-md-s .button-solid{--background:var(--ion-color-contrast);--background-activated:transparent;--background-focused:var(--ion-color-shade);--background-hover:var(--ion-color-base);--color:var(--ion-color-base);--color-focused:var(--ion-color-base);--color-hover:var(--ion-color-base)}.sc-ion-buttons-md-h.ion-color.sc-ion-buttons-md-s .button-outline,.ion-color .sc-ion-buttons-md-h.sc-ion-buttons-md-s .button-outline{--border-color:var(--ion-color-contrast)}.sc-ion-buttons-md-s .button-has-icon-only.button-clear{--padding-top:12px;--padding-end:12px;--padding-bottom:12px;--padding-start:12px;--border-radius:50%;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;width:3rem;height:3rem}.sc-ion-buttons-md-s .button{--background-hover:currentColor}.sc-ion-buttons-md-s .button-solid{--color:var(--ion-toolbar-background, var(--ion-background-color, #fff));--background:var(--ion-toolbar-color, var(--ion-text-color, #424242));--background-activated:transparent;--background-focused:currentColor}.sc-ion-buttons-md-s .button-outline{--color:initial;--background:transparent;--background-activated:transparent;--background-focused:currentColor;--background-hover:currentColor;--border-color:currentColor}.sc-ion-buttons-md-s .button-clear{--color:initial;--background:transparent;--background-activated:transparent;--background-focused:currentColor;--background-hover:currentColor}.sc-ion-buttons-md-s ion-icon[slot=start]{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-margin-end:0.3em;margin-inline-end:0.3em;font-size:1.4em}.sc-ion-buttons-md-s ion-icon[slot=end]{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-margin-start:0.4em;margin-inline-start:0.4em;font-size:1.4em}.sc-ion-buttons-md-s ion-icon[slot=icon-only]{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;font-size:1.8em}",$P=ne(class extends ie{constructor(){super(),this.__registerHost(),this.collapse=!1}render(){const t=W(this);return y(ee,{class:{[t]:!0,"buttons-collapse":this.collapse}})}static get style(){return{ios:RP,md:DP}}},[34,"ion-buttons",{collapse:[4]}]);function _P(){if(typeof customElements>"u")return;["ion-buttons"].forEach(t=>{switch(t){case"ion-buttons":customElements.get(t)||customElements.define(t,$P);break}})}/*! * (C) Ionic http://ionicframework.com - MIT License */const zP=_P;/*! * (C) Ionic http://ionicframework.com - MIT License */const Nl=e=>{const t=e;let n;return{hasLegacyControl:()=>{if(n===void 0){const o=t.label!==void 0||MP(t),r=t.hasAttribute("aria-label")||t.hasAttribute("aria-labelledby")&&t.shadowRoot===null,s=yf(t);n=t.legacy===!0||!o&&!r&&s!==null}return n}}},MP=e=>!!(BP.includes(e.tagName)&&e.querySelector('[slot="label"]')!==null||jP.includes(e.tagName)&&e.textContent!==""),BP=["ION-INPUT","ION-TEXTAREA","ION-SELECT","ION-RANGE"],jP=["ION-TOGGLE","ION-CHECKBOX","ION-RADIO"];/*! * (C) Ionic http://ionicframework.com - MIT License */const VP=":host{--checkbox-background-checked:var(--ion-color-primary, #3880ff);--border-color-checked:var(--ion-color-primary, #3880ff);--checkmark-color:var(--ion-color-primary-contrast, #fff);--checkmark-width:1;--transition:none;display:inline-block;position:relative;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:2}:host(.in-item){width:100%;height:100%}:host([slot=start]:not(.legacy-checkbox)),:host([slot=end]:not(.legacy-checkbox)){width:auto}:host(.legacy-checkbox){width:var(--size);height:var(--size)}:host(.ion-color){--checkbox-background-checked:var(--ion-color-base);--border-color-checked:var(--ion-color-base);--checkmark-color:var(--ion-color-contrast)}:host(.legacy-checkbox) label{top:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;position:absolute;width:100%;height:100%;border:0;background:transparent;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;opacity:0}@supports (inset-inline-start: 0){:host(.legacy-checkbox) label{inset-inline-start:0}}@supports not (inset-inline-start: 0){:host(.legacy-checkbox) label{left:0}:host-context([dir=rtl]):host(.legacy-checkbox) label,:host-context([dir=rtl]).legacy-checkbox label{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){:host(.legacy-checkbox:dir(rtl)) label{left:unset;right:unset;right:0}}}:host(.legacy-checkbox) label::-moz-focus-inner{border:0}.checkbox-wrapper{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center;height:inherit;cursor:inherit}.label-text-wrapper{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}:host(.in-item:not(.legacy-checkbox)) .label-text-wrapper{margin-top:10px;margin-bottom:10px}:host(.in-item.checkbox-label-placement-stacked) .label-text-wrapper{margin-top:10px;margin-bottom:16px}:host(.in-item.checkbox-label-placement-stacked) .native-wrapper{margin-bottom:10px}.label-text-wrapper-hidden{display:none}input{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}.native-wrapper{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.checkbox-icon{border-radius:var(--border-radius);position:relative;-webkit-transition:var(--transition);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--checkbox-background);-webkit-box-sizing:border-box;box-sizing:border-box}:host(.legacy-checkbox) .checkbox-icon{display:block;width:100%;height:100%}:host(:not(.legacy-checkbox)) .checkbox-icon{width:var(--size);height:var(--size)}.checkbox-icon path{fill:none;stroke:var(--checkmark-color);stroke-width:var(--checkmark-width);opacity:0}:host(.checkbox-justify-space-between) .checkbox-wrapper{-ms-flex-pack:justify;justify-content:space-between}:host(.checkbox-justify-start) .checkbox-wrapper{-ms-flex-pack:start;justify-content:start}:host(.checkbox-justify-end) .checkbox-wrapper{-ms-flex-pack:end;justify-content:end}:host(.checkbox-alignment-start) .checkbox-wrapper{-ms-flex-align:start;align-items:start}:host(.checkbox-alignment-center) .checkbox-wrapper{-ms-flex-align:center;align-items:center}:host(.checkbox-label-placement-start) .checkbox-wrapper{-ms-flex-direction:row;flex-direction:row}:host(.checkbox-label-placement-start) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px}:host(.checkbox-label-placement-end) .checkbox-wrapper{-ms-flex-direction:row-reverse;flex-direction:row-reverse}:host(.checkbox-label-placement-end) .label-text-wrapper{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0}:host(.checkbox-label-placement-fixed) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px}:host(.checkbox-label-placement-fixed) .label-text-wrapper{-ms-flex:0 0 100px;flex:0 0 100px;width:100px;min-width:100px;max-width:200px}:host(.checkbox-label-placement-stacked) .checkbox-wrapper{-ms-flex-direction:column;flex-direction:column}:host(.checkbox-label-placement-stacked) .label-text-wrapper{-webkit-transform:scale(0.75);transform:scale(0.75);margin-left:0;margin-right:0;margin-bottom:16px;max-width:calc(100% / 0.75)}:host(.checkbox-label-placement-stacked.checkbox-alignment-start) .label-text-wrapper{-webkit-transform-origin:left top;transform-origin:left top}:host-context([dir=rtl]):host(.checkbox-label-placement-stacked.checkbox-alignment-start) .label-text-wrapper,:host-context([dir=rtl]).checkbox-label-placement-stacked.checkbox-alignment-start .label-text-wrapper{-webkit-transform-origin:right top;transform-origin:right top}@supports selector(:dir(rtl)){:host(.checkbox-label-placement-stacked.checkbox-alignment-start:dir(rtl)) .label-text-wrapper{-webkit-transform-origin:right top;transform-origin:right top}}:host(.checkbox-label-placement-stacked.checkbox-alignment-center) .label-text-wrapper{-webkit-transform-origin:center top;transform-origin:center top}:host-context([dir=rtl]):host(.checkbox-label-placement-stacked.checkbox-alignment-center) .label-text-wrapper,:host-context([dir=rtl]).checkbox-label-placement-stacked.checkbox-alignment-center .label-text-wrapper{-webkit-transform-origin:calc(100% - center) top;transform-origin:calc(100% - center) top}@supports selector(:dir(rtl)){:host(.checkbox-label-placement-stacked.checkbox-alignment-center:dir(rtl)) .label-text-wrapper{-webkit-transform-origin:calc(100% - center) top;transform-origin:calc(100% - center) top}}:host(.checkbox-checked) .checkbox-icon,:host(.checkbox-indeterminate) .checkbox-icon{border-color:var(--border-color-checked);background:var(--checkbox-background-checked)}:host(.checkbox-checked) .checkbox-icon path,:host(.checkbox-indeterminate) .checkbox-icon path{opacity:1}:host(.checkbox-disabled){pointer-events:none}:host{--border-radius:50%;--border-width:0.0625rem;--border-style:solid;--border-color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.23);--checkbox-background:var(--ion-item-background, var(--ion-background-color, #fff));--size:min(1.625rem, 65.988px)}:host(.checkbox-disabled){opacity:0.3}:host(.in-item.legacy-checkbox){-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:8px;margin-inline-end:8px;margin-top:10px;margin-bottom:9px;display:block;position:static}:host(.in-item.legacy-checkbox[slot=start]){-webkit-margin-start:2px;margin-inline-start:2px;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:8px;margin-bottom:8px}",FP=":host{--checkbox-background-checked:var(--ion-color-primary, #3880ff);--border-color-checked:var(--ion-color-primary, #3880ff);--checkmark-color:var(--ion-color-primary-contrast, #fff);--checkmark-width:1;--transition:none;display:inline-block;position:relative;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:2}:host(.in-item){width:100%;height:100%}:host([slot=start]:not(.legacy-checkbox)),:host([slot=end]:not(.legacy-checkbox)){width:auto}:host(.legacy-checkbox){width:var(--size);height:var(--size)}:host(.ion-color){--checkbox-background-checked:var(--ion-color-base);--border-color-checked:var(--ion-color-base);--checkmark-color:var(--ion-color-contrast)}:host(.legacy-checkbox) label{top:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;position:absolute;width:100%;height:100%;border:0;background:transparent;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;opacity:0}@supports (inset-inline-start: 0){:host(.legacy-checkbox) label{inset-inline-start:0}}@supports not (inset-inline-start: 0){:host(.legacy-checkbox) label{left:0}:host-context([dir=rtl]):host(.legacy-checkbox) label,:host-context([dir=rtl]).legacy-checkbox label{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){:host(.legacy-checkbox:dir(rtl)) label{left:unset;right:unset;right:0}}}:host(.legacy-checkbox) label::-moz-focus-inner{border:0}.checkbox-wrapper{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center;height:inherit;cursor:inherit}.label-text-wrapper{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}:host(.in-item:not(.legacy-checkbox)) .label-text-wrapper{margin-top:10px;margin-bottom:10px}:host(.in-item.checkbox-label-placement-stacked) .label-text-wrapper{margin-top:10px;margin-bottom:16px}:host(.in-item.checkbox-label-placement-stacked) .native-wrapper{margin-bottom:10px}.label-text-wrapper-hidden{display:none}input{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}.native-wrapper{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.checkbox-icon{border-radius:var(--border-radius);position:relative;-webkit-transition:var(--transition);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--checkbox-background);-webkit-box-sizing:border-box;box-sizing:border-box}:host(.legacy-checkbox) .checkbox-icon{display:block;width:100%;height:100%}:host(:not(.legacy-checkbox)) .checkbox-icon{width:var(--size);height:var(--size)}.checkbox-icon path{fill:none;stroke:var(--checkmark-color);stroke-width:var(--checkmark-width);opacity:0}:host(.checkbox-justify-space-between) .checkbox-wrapper{-ms-flex-pack:justify;justify-content:space-between}:host(.checkbox-justify-start) .checkbox-wrapper{-ms-flex-pack:start;justify-content:start}:host(.checkbox-justify-end) .checkbox-wrapper{-ms-flex-pack:end;justify-content:end}:host(.checkbox-alignment-start) .checkbox-wrapper{-ms-flex-align:start;align-items:start}:host(.checkbox-alignment-center) .checkbox-wrapper{-ms-flex-align:center;align-items:center}:host(.checkbox-label-placement-start) .checkbox-wrapper{-ms-flex-direction:row;flex-direction:row}:host(.checkbox-label-placement-start) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px}:host(.checkbox-label-placement-end) .checkbox-wrapper{-ms-flex-direction:row-reverse;flex-direction:row-reverse}:host(.checkbox-label-placement-end) .label-text-wrapper{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0}:host(.checkbox-label-placement-fixed) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px}:host(.checkbox-label-placement-fixed) .label-text-wrapper{-ms-flex:0 0 100px;flex:0 0 100px;width:100px;min-width:100px;max-width:200px}:host(.checkbox-label-placement-stacked) .checkbox-wrapper{-ms-flex-direction:column;flex-direction:column}:host(.checkbox-label-placement-stacked) .label-text-wrapper{-webkit-transform:scale(0.75);transform:scale(0.75);margin-left:0;margin-right:0;margin-bottom:16px;max-width:calc(100% / 0.75)}:host(.checkbox-label-placement-stacked.checkbox-alignment-start) .label-text-wrapper{-webkit-transform-origin:left top;transform-origin:left top}:host-context([dir=rtl]):host(.checkbox-label-placement-stacked.checkbox-alignment-start) .label-text-wrapper,:host-context([dir=rtl]).checkbox-label-placement-stacked.checkbox-alignment-start .label-text-wrapper{-webkit-transform-origin:right top;transform-origin:right top}@supports selector(:dir(rtl)){:host(.checkbox-label-placement-stacked.checkbox-alignment-start:dir(rtl)) .label-text-wrapper{-webkit-transform-origin:right top;transform-origin:right top}}:host(.checkbox-label-placement-stacked.checkbox-alignment-center) .label-text-wrapper{-webkit-transform-origin:center top;transform-origin:center top}:host-context([dir=rtl]):host(.checkbox-label-placement-stacked.checkbox-alignment-center) .label-text-wrapper,:host-context([dir=rtl]).checkbox-label-placement-stacked.checkbox-alignment-center .label-text-wrapper{-webkit-transform-origin:calc(100% - center) top;transform-origin:calc(100% - center) top}@supports selector(:dir(rtl)){:host(.checkbox-label-placement-stacked.checkbox-alignment-center:dir(rtl)) .label-text-wrapper{-webkit-transform-origin:calc(100% - center) top;transform-origin:calc(100% - center) top}}:host(.checkbox-checked) .checkbox-icon,:host(.checkbox-indeterminate) .checkbox-icon{border-color:var(--border-color-checked);background:var(--checkbox-background-checked)}:host(.checkbox-checked) .checkbox-icon path,:host(.checkbox-indeterminate) .checkbox-icon path{opacity:1}:host(.checkbox-disabled){pointer-events:none}:host{--border-radius:calc(var(--size) * .125);--border-width:2px;--border-style:solid;--border-color:rgb(var(--ion-text-color-rgb, 0, 0, 0), 0.6);--checkmark-width:3;--checkbox-background:var(--ion-item-background, var(--ion-background-color, #fff));--transition:background 180ms cubic-bezier(0.4, 0, 0.2, 1);--size:18px}.checkbox-icon path{stroke-dasharray:30;stroke-dashoffset:30}:host(.checkbox-checked) .checkbox-icon path,:host(.checkbox-indeterminate) .checkbox-icon path{stroke-dashoffset:0;-webkit-transition:stroke-dashoffset 90ms linear 90ms;transition:stroke-dashoffset 90ms linear 90ms}:host(.legacy-checkbox.checkbox-disabled),:host(.checkbox-disabled) .label-text-wrapper{opacity:0.38}:host(.checkbox-disabled) .native-wrapper{opacity:0.63}:host(.in-item.legacy-checkbox){margin-left:0;margin-right:0;margin-top:18px;margin-bottom:18px;display:block;position:static}:host(.in-item.legacy-checkbox[slot=start]){-webkit-margin-start:4px;margin-inline-start:4px;-webkit-margin-end:36px;margin-inline-end:36px;margin-top:18px;margin-bottom:18px}",HP=ne(class extends ie{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionChange=B(this,"ionChange",7),this.ionFocus=B(this,"ionFocus",7),this.ionBlur=B(this,"ionBlur",7),this.ionStyle=B(this,"ionStyle",7),this.inputId=`ion-cb-${NP++}`,this.inheritedAttributes={},this.hasLoggedDeprecationWarning=!1,this.setChecked=t=>{const n=this.checked=t;this.ionChange.emit({checked:n,value:this.value})},this.toggleChecked=t=>{t.preventDefault(),this.setFocus(),this.setChecked(!this.checked),this.indeterminate=!1},this.onFocus=()=>{this.ionFocus.emit()},this.onBlur=()=>{this.ionBlur.emit()},this.onClick=t=>{this.disabled||this.toggleChecked(t)},this.color=void 0,this.name=this.inputId,this.checked=!1,this.indeterminate=!1,this.disabled=!1,this.value="on",this.labelPlacement="start",this.justify="space-between",this.alignment="center",this.legacy=void 0}connectedCallback(){this.legacyFormController=Nl(this.el)}componentWillLoad(){this.emitStyle(),this.legacyFormController.hasLegacyControl()||(this.inheritedAttributes=Object.assign({},Uo(this.el)))}styleChanged(){this.emitStyle()}emitStyle(){const t={"interactive-disabled":this.disabled,legacy:!!this.legacy};this.legacyFormController.hasLegacyControl()&&(t["checkbox-checked"]=this.checked),this.ionStyle.emit(t)}setFocus(){this.focusEl&&this.focusEl.focus()}render(){const{legacyFormController:t}=this;return t.hasLegacyControl()?this.renderLegacyCheckbox():this.renderCheckbox()}renderCheckbox(){const{color:t,checked:n,disabled:i,el:o,getSVGPath:r,indeterminate:s,inheritedAttributes:a,inputId:l,justify:c,labelPlacement:d,name:u,value:h,alignment:f}=this,p=W(this),m=r(p,s);return Di(!0,o,u,n?h:"",i),y(ee,{class:Ne(t,{[p]:!0,"in-item":De("ion-item",o),"checkbox-checked":n,"checkbox-disabled":i,"checkbox-indeterminate":s,interactive:!0,[`checkbox-justify-${c}`]:!0,[`checkbox-alignment-${f}`]:!0,[`checkbox-label-placement-${d}`]:!0}),onClick:this.onClick},y("label",{class:"checkbox-wrapper"},y("input",Object.assign({type:"checkbox",checked:n?!0:void 0,disabled:i,id:l,onChange:this.toggleChecked,onFocus:()=>this.onFocus(),onBlur:()=>this.onBlur(),ref:x=>this.focusEl=x},a)),y("div",{class:{"label-text-wrapper":!0,"label-text-wrapper-hidden":o.textContent===""},part:"label"},y("slot",null)),y("div",{class:"native-wrapper"},y("svg",{class:"checkbox-icon",viewBox:"0 0 24 24",part:"container"},m))))}renderLegacyCheckbox(){this.hasLoggedDeprecationWarning||(pe(`ion-checkbox now requires providing a label with either the default slot or the "aria-label" attribute. To migrate, remove any usage of "ion-label" and pass the label text to either the component or the "aria-label" attribute. Example: Label Example with aria-label: Developers can use the "legacy" property to continue using the legacy form markup. This property will be removed in an upcoming major release of Ionic where this form control will use the modern form markup.`,this.el),this.legacy&&pe(`ion-checkbox is being used with the "legacy" property enabled which will forcibly enable the legacy form markup. This property will be removed in an upcoming major release of Ionic where this form control will use the modern form markup. Developers can dismiss this warning by removing their usage of the "legacy" property and using the new checkbox syntax.`,this.el),this.hasLoggedDeprecationWarning=!0);const{color:t,checked:n,disabled:i,el:o,getSVGPath:r,indeterminate:s,inputId:a,name:l,value:c}=this,d=W(this),{label:u,labelId:h,labelText:f}=es(o,a),p=r(d,s);return Di(!0,o,l,n?c:"",i),y(ee,{"aria-labelledby":u?h:null,"aria-checked":`${n}`,"aria-hidden":i?"true":null,role:"checkbox",class:Ne(t,{[d]:!0,"in-item":De("ion-item",o),"checkbox-checked":n,"checkbox-disabled":i,"checkbox-indeterminate":s,"legacy-checkbox":!0,interactive:!0}),onClick:this.onClick},y("svg",{class:"checkbox-icon",viewBox:"0 0 24 24",part:"container"},p),y("label",{htmlFor:a},f),y("input",{type:"checkbox","aria-checked":`${n}`,disabled:i,id:a,onChange:this.toggleChecked,onFocus:()=>this.onFocus(),onBlur:()=>this.onBlur(),ref:m=>this.focusEl=m}))}getSVGPath(t,n){let i=n?y("path",{d:"M6 12L18 12",part:"mark"}):y("path",{d:"M5.9,12.5l3.8,3.8l8.8-8.8",part:"mark"});return t==="md"&&(i=n?y("path",{d:"M2 12H22",part:"mark"}):y("path",{d:"M1.73,12.91 8.1,19.28 22.79,4.59",part:"mark"})),i}get el(){return this}static get watchers(){return{checked:["styleChanged"],disabled:["styleChanged"]}}static get style(){return{ios:VP,md:FP}}},[33,"ion-checkbox",{color:[513],name:[1],checked:[1028],indeterminate:[1028],disabled:[4],value:[8],labelPlacement:[1,"label-placement"],justify:[1],alignment:[1],legacy:[4]},void 0,{checked:["styleChanged"],disabled:["styleChanged"]}]);let NP=0;function Nx(){if(typeof customElements>"u")return;["ion-checkbox"].forEach(t=>{switch(t){case"ion-checkbox":customElements.get(t)||customElements.define(t,HP);break}})}/*! * (C) Ionic http://ionicframework.com - MIT License */const UP=":host{left:0;right:0;top:0;bottom:0;position:absolute;contain:strict;pointer-events:none}:host(.unbounded){contain:layout size style}.ripple-effect{border-radius:50%;position:absolute;background-color:currentColor;color:inherit;contain:strict;opacity:0;-webkit-animation:225ms rippleAnimation forwards, 75ms fadeInAnimation forwards;animation:225ms rippleAnimation forwards, 75ms fadeInAnimation forwards;will-change:transform, opacity;pointer-events:none}.fade-out{-webkit-transform:translate(var(--translate-end)) scale(var(--final-scale, 1));transform:translate(var(--translate-end)) scale(var(--final-scale, 1));-webkit-animation:150ms fadeOutAnimation forwards;animation:150ms fadeOutAnimation forwards}@-webkit-keyframes rippleAnimation{from{-webkit-animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transform:scale(1);transform:scale(1)}to{-webkit-transform:translate(var(--translate-end)) scale(var(--final-scale, 1));transform:translate(var(--translate-end)) scale(var(--final-scale, 1))}}@keyframes rippleAnimation{from{-webkit-animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transform:scale(1);transform:scale(1)}to{-webkit-transform:translate(var(--translate-end)) scale(var(--final-scale, 1));transform:translate(var(--translate-end)) scale(var(--final-scale, 1))}}@-webkit-keyframes fadeInAnimation{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:0}to{opacity:0.16}}@keyframes fadeInAnimation{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:0}to{opacity:0.16}}@-webkit-keyframes fadeOutAnimation{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:0.16}to{opacity:0}}@keyframes fadeOutAnimation{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:0.16}to{opacity:0}}",WP=ne(class extends ie{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.type="bounded"}async addRipple(t,n){return new Promise(i=>{$o(()=>{const o=this.el.getBoundingClientRect(),r=o.width,s=o.height,a=Math.sqrt(r*r+s*s),l=Math.max(s,r),c=this.unbounded?l:a+qP,d=Math.floor(l*YP),u=c/d;let h=t-o.left,f=n-o.top;this.unbounded&&(h=r*.5,f=s*.5);const p=h-d*.5,m=f-d*.5,x=r*.5-h,b=s*.5-f;Ft(()=>{const g=document.createElement("div");g.classList.add("ripple-effect");const v=g.style;v.top=m+"px",v.left=p+"px",v.width=v.height=d+"px",v.setProperty("--final-scale",`${u}`),v.setProperty("--translate-end",`${x}px, ${b}px`),(this.el.shadowRoot||this.el).appendChild(g),setTimeout(()=>{i(()=>{XP(g)})},325)})})})}get unbounded(){return this.type==="unbounded"}render(){const t=W(this);return y(ee,{role:"presentation",class:{[t]:!0,unbounded:this.unbounded}})}get el(){return this}static get style(){return UP}},[1,"ion-ripple-effect",{type:[1],addRipple:[64]}]),XP=e=>{e.classList.add("fade-out"),setTimeout(()=>{e.remove()},200)},qP=10,YP=.5;function Fi(){if(typeof customElements>"u")return;["ion-ripple-effect"].forEach(t=>{switch(t){case"ion-ripple-effect":customElements.get(t)||customElements.define(t,WP);break}})}/*! * (C) Ionic http://ionicframework.com - MIT License */const KP={xs:"(min-width: 0px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)"},GP=e=>{if(e===void 0||e==="")return!0;if(window.matchMedia){const t=KP[e];return window.matchMedia(t).matches}return!1},QP=":host{-webkit-padding-start:var(--ion-grid-column-padding-xs, var(--ion-grid-column-padding, 5px));padding-inline-start:var(--ion-grid-column-padding-xs, var(--ion-grid-column-padding, 5px));-webkit-padding-end:var(--ion-grid-column-padding-xs, var(--ion-grid-column-padding, 5px));padding-inline-end:var(--ion-grid-column-padding-xs, var(--ion-grid-column-padding, 5px));padding-top:var(--ion-grid-column-padding-xs, var(--ion-grid-column-padding, 5px));padding-bottom:var(--ion-grid-column-padding-xs, var(--ion-grid-column-padding, 5px));margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;-ms-flex-preferred-size:0;flex-basis:0;-ms-flex-positive:1;flex-grow:1;width:100%;max-width:100%;min-height:1px}@media (min-width: 576px){:host{-webkit-padding-start:var(--ion-grid-column-padding-sm, var(--ion-grid-column-padding, 5px));padding-inline-start:var(--ion-grid-column-padding-sm, var(--ion-grid-column-padding, 5px));-webkit-padding-end:var(--ion-grid-column-padding-sm, var(--ion-grid-column-padding, 5px));padding-inline-end:var(--ion-grid-column-padding-sm, var(--ion-grid-column-padding, 5px));padding-top:var(--ion-grid-column-padding-sm, var(--ion-grid-column-padding, 5px));padding-bottom:var(--ion-grid-column-padding-sm, var(--ion-grid-column-padding, 5px))}}@media (min-width: 768px){:host{-webkit-padding-start:var(--ion-grid-column-padding-md, var(--ion-grid-column-padding, 5px));padding-inline-start:var(--ion-grid-column-padding-md, var(--ion-grid-column-padding, 5px));-webkit-padding-end:var(--ion-grid-column-padding-md, var(--ion-grid-column-padding, 5px));padding-inline-end:var(--ion-grid-column-padding-md, var(--ion-grid-column-padding, 5px));padding-top:var(--ion-grid-column-padding-md, var(--ion-grid-column-padding, 5px));padding-bottom:var(--ion-grid-column-padding-md, var(--ion-grid-column-padding, 5px))}}@media (min-width: 992px){:host{-webkit-padding-start:var(--ion-grid-column-padding-lg, var(--ion-grid-column-padding, 5px));padding-inline-start:var(--ion-grid-column-padding-lg, var(--ion-grid-column-padding, 5px));-webkit-padding-end:var(--ion-grid-column-padding-lg, var(--ion-grid-column-padding, 5px));padding-inline-end:var(--ion-grid-column-padding-lg, var(--ion-grid-column-padding, 5px));padding-top:var(--ion-grid-column-padding-lg, var(--ion-grid-column-padding, 5px));padding-bottom:var(--ion-grid-column-padding-lg, var(--ion-grid-column-padding, 5px))}}@media (min-width: 1200px){:host{-webkit-padding-start:var(--ion-grid-column-padding-xl, var(--ion-grid-column-padding, 5px));padding-inline-start:var(--ion-grid-column-padding-xl, var(--ion-grid-column-padding, 5px));-webkit-padding-end:var(--ion-grid-column-padding-xl, var(--ion-grid-column-padding, 5px));padding-inline-end:var(--ion-grid-column-padding-xl, var(--ion-grid-column-padding, 5px));padding-top:var(--ion-grid-column-padding-xl, var(--ion-grid-column-padding, 5px));padding-bottom:var(--ion-grid-column-padding-xl, var(--ion-grid-column-padding, 5px))}}",Ks=typeof window<"u"?window:void 0,kg=Ks&&!!(Ks.CSS&&Ks.CSS.supports&&Ks.CSS.supports("--a: 0")),ZP=["","xs","sm","md","lg","xl"],JP=ne(class extends ie{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.offset=void 0,this.offsetXs=void 0,this.offsetSm=void 0,this.offsetMd=void 0,this.offsetLg=void 0,this.offsetXl=void 0,this.pull=void 0,this.pullXs=void 0,this.pullSm=void 0,this.pullMd=void 0,this.pullLg=void 0,this.pullXl=void 0,this.push=void 0,this.pushXs=void 0,this.pushSm=void 0,this.pushMd=void 0,this.pushLg=void 0,this.pushXl=void 0,this.size=void 0,this.sizeXs=void 0,this.sizeSm=void 0,this.sizeMd=void 0,this.sizeLg=void 0,this.sizeXl=void 0}onResize(){En(this)}getColumns(t){let n;for(const i of ZP){const o=GP(i),r=this[t+i.charAt(0).toUpperCase()+i.slice(1)];o&&r!==void 0&&(n=r)}return n}calculateSize(){const t=this.getColumns("size");if(!t||t==="")return;const n=t==="auto"?"auto":kg?`calc(calc(${t} / var(--ion-grid-columns, 12)) * 100%)`:t/12*100+"%";return{flex:`0 0 ${n}`,width:`${n}`,"max-width":`${n}`}}calculatePosition(t,n){const i=this.getColumns(t);if(!i)return;const o=kg?`calc(calc(${i} / var(--ion-grid-columns, 12)) * 100%)`:i>0&&i<12?i/12*100+"%":"auto";return{[n]:o}}calculateOffset(t){return this.calculatePosition("offset",t?"margin-right":"margin-left")}calculatePull(t){return this.calculatePosition("pull",t?"left":"right")}calculatePush(t){return this.calculatePosition("push",t?"right":"left")}render(){const t=document.dir==="rtl",n=W(this);return y(ee,{class:{[n]:!0},style:Object.assign(Object.assign(Object.assign(Object.assign({},this.calculateOffset(t)),this.calculatePull(t)),this.calculatePush(t)),this.calculateSize())},y("slot",null))}static get style(){return QP}},[1,"ion-col",{offset:[1],offsetXs:[1,"offset-xs"],offsetSm:[1,"offset-sm"],offsetMd:[1,"offset-md"],offsetLg:[1,"offset-lg"],offsetXl:[1,"offset-xl"],pull:[1],pullXs:[1,"pull-xs"],pullSm:[1,"pull-sm"],pullMd:[1,"pull-md"],pullLg:[1,"pull-lg"],pullXl:[1,"pull-xl"],push:[1],pushXs:[1,"push-xs"],pushSm:[1,"push-sm"],pushMd:[1,"push-md"],pushLg:[1,"push-lg"],pushXl:[1,"push-xl"],size:[1],sizeXs:[1,"size-xs"],sizeSm:[1,"size-sm"],sizeMd:[1,"size-md"],sizeLg:[1,"size-lg"],sizeXl:[1,"size-xl"]},[[9,"resize","onResize"]]]);function e5(){if(typeof customElements>"u")return;["ion-col"].forEach(t=>{switch(t){case"ion-col":customElements.get(t)||customElements.define(t,JP);break}})}const t5=e5;/*! * (C) Ionic http://ionicframework.com - MIT License */const Ar=e=>e&&e.dir!==""?e.dir.toLowerCase()==="rtl":(document==null?void 0:document.dir.toLowerCase())==="rtl";/*! * (C) Ionic http://ionicframework.com - MIT License */const n5=':host{--background:var(--ion-background-color, #fff);--color:var(--ion-text-color, #000);--padding-top:0px;--padding-bottom:0px;--padding-start:0px;--padding-end:0px;--keyboard-offset:0px;--offset-top:0px;--offset-bottom:0px;--overflow:auto;display:block;position:relative;-ms-flex:1;flex:1;width:100%;height:100%;margin:0 !important;padding:0 !important;font-family:var(--ion-font-family, inherit);contain:size style}:host(.ion-color) .inner-scroll{background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(.outer-content){--background:var(--ion-color-step-50, #f2f2f2)}#background-content{left:0px;right:0px;top:calc(var(--offset-top) * -1);bottom:calc(var(--offset-bottom) * -1);position:absolute;background:var(--background)}.inner-scroll{left:0px;right:0px;top:calc(var(--offset-top) * -1);bottom:calc(var(--offset-bottom) * -1);-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:calc(var(--padding-top) + var(--offset-top));padding-bottom:calc(var(--padding-bottom) + var(--keyboard-offset) + var(--offset-bottom));position:absolute;color:var(--color);-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden;-ms-touch-action:pan-x pan-y pinch-zoom;touch-action:pan-x pan-y pinch-zoom}.scroll-y,.scroll-x{-webkit-overflow-scrolling:touch;z-index:0;will-change:scroll-position}.scroll-y{overflow-y:var(--overflow);overscroll-behavior-y:contain}.scroll-x{overflow-x:var(--overflow);overscroll-behavior-x:contain}.overscroll::before,.overscroll::after{position:absolute;width:1px;height:1px;content:""}.overscroll::before{bottom:-1px}.overscroll::after{top:-1px}:host(.content-sizing){display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;min-height:0;contain:none}:host(.content-sizing) .inner-scroll{position:relative;top:0;bottom:0;margin-top:calc(var(--offset-top) * -1);margin-bottom:calc(var(--offset-bottom) * -1)}.transition-effect{display:none;position:absolute;width:100%;height:100vh;opacity:0;pointer-events:none}:host(.content-ltr) .transition-effect{left:-100%;}:host(.content-rtl) .transition-effect{right:-100%;}.transition-cover{position:absolute;right:0;width:100%;height:100%;background:black;opacity:0.1}.transition-shadow{display:block;position:absolute;width:100%;height:100%;-webkit-box-shadow:inset -9px 0 9px 0 rgba(0, 0, 100, 0.03);box-shadow:inset -9px 0 9px 0 rgba(0, 0, 100, 0.03)}:host(.content-ltr) .transition-shadow{right:0;}:host(.content-rtl) .transition-shadow{left:0;-webkit-transform:scaleX(-1);transform:scaleX(-1)}::slotted([slot=fixed]){position:absolute;-webkit-transform:translateZ(0);transform:translateZ(0)}',i5=ne(class extends ie{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionScrollStart=B(this,"ionScrollStart",7),this.ionScroll=B(this,"ionScroll",7),this.ionScrollEnd=B(this,"ionScrollEnd",7),this.watchDog=null,this.isScrolling=!1,this.lastScroll=0,this.queued=!1,this.cTop=-1,this.cBottom=-1,this.isMainContent=!0,this.resizeTimeout=null,this.tabsElement=null,this.detail={scrollTop:0,scrollLeft:0,type:"scroll",event:void 0,startX:0,startY:0,startTime:0,currentX:0,currentY:0,velocityX:0,velocityY:0,deltaX:0,deltaY:0,currentTime:0,data:void 0,isScrolling:!0},this.color=void 0,this.fullscreen=!1,this.forceOverscroll=void 0,this.scrollX=!1,this.scrollY=!0,this.scrollEvents=!1}connectedCallback(){if(this.isMainContent=this.el.closest("ion-menu, ion-popover, ion-modal")===null,Jr(this.el)){const t=this.tabsElement=this.el.closest("ion-tabs");t!==null&&(this.tabsLoadCallback=()=>this.resize(),t.addEventListener("ionTabBarLoaded",this.tabsLoadCallback))}}disconnectedCallback(){if(this.onScrollEnd(),Jr(this.el)){const{tabsElement:t,tabsLoadCallback:n}=this;t!==null&&n!==void 0&&t.removeEventListener("ionTabBarLoaded",n),this.tabsElement=null,this.tabsLoadCallback=void 0}}onResize(){this.resizeTimeout&&(clearTimeout(this.resizeTimeout),this.resizeTimeout=null),this.resizeTimeout=setTimeout(()=>{this.el.offsetParent!==null&&this.resize()},100)}shouldForceOverscroll(){const{forceOverscroll:t}=this,n=W(this);return t===void 0?n==="ios"&&pn("ios"):t}resize(){this.fullscreen?$o(()=>this.readDimensions()):(this.cTop!==0||this.cBottom!==0)&&(this.cTop=this.cBottom=0,En(this))}readDimensions(){const t=r5(this.el),n=Math.max(this.el.offsetTop,0),i=Math.max(t.offsetHeight-n-this.el.offsetHeight,0);(n!==this.cTop||i!==this.cBottom)&&(this.cTop=n,this.cBottom=i,En(this))}onScroll(t){const n=Date.now(),i=!this.isScrolling;this.lastScroll=n,i&&this.onScrollStart(),!this.queued&&this.scrollEvents&&(this.queued=!0,$o(o=>{this.queued=!1,this.detail.event=t,s5(this.detail,this.scrollEl,o,i),this.ionScroll.emit(this.detail)}))}async getScrollElement(){return this.scrollEl||await new Promise(t=>ei(this.el,t)),Promise.resolve(this.scrollEl)}async getBackgroundElement(){return this.backgroundContentEl||await new Promise(t=>ei(this.el,t)),Promise.resolve(this.backgroundContentEl)}scrollToTop(t=0){return this.scrollToPoint(void 0,0,t)}async scrollToBottom(t=0){const n=await this.getScrollElement(),i=n.scrollHeight-n.clientHeight;return this.scrollToPoint(void 0,i,t)}async scrollByPoint(t,n,i){const o=await this.getScrollElement();return this.scrollToPoint(t+o.scrollLeft,n+o.scrollTop,i)}async scrollToPoint(t,n,i=0){const o=await this.getScrollElement();if(i<32){n!=null&&(o.scrollTop=n),t!=null&&(o.scrollLeft=t);return}let r,s=0;const a=new Promise(f=>r=f),l=o.scrollTop,c=o.scrollLeft,d=n!=null?n-l:0,u=t!=null?t-c:0,h=f=>{const p=Math.min(1,(f-s)/i)-1,m=Math.pow(p,3)+1;d!==0&&(o.scrollTop=Math.floor(m*d+l)),u!==0&&(o.scrollLeft=Math.floor(m*u+c)),m<1?requestAnimationFrame(h):r()};return requestAnimationFrame(f=>{s=f,h(f)}),a}onScrollStart(){this.isScrolling=!0,this.ionScrollStart.emit({isScrolling:!0}),this.watchDog&&clearInterval(this.watchDog),this.watchDog=setInterval(()=>{this.lastScrollthis.backgroundContentEl=d,id:"background-content",part:"background"}),y(c,{class:{"inner-scroll":!0,"scroll-x":n,"scroll-y":i,overscroll:(n||i)&&a},ref:d=>this.scrollEl=d,onScroll:this.scrollEvents?d=>this.onScroll(d):void 0,part:"scroll"},y("slot",null)),l?y("div",{class:"transition-effect"},y("div",{class:"transition-cover"}),y("div",{class:"transition-shadow"})):null,y("slot",{name:"fixed"}))}get el(){return this}static get style(){return n5}},[1,"ion-content",{color:[513],fullscreen:[4],forceOverscroll:[1028,"force-overscroll"],scrollX:[4,"scroll-x"],scrollY:[4,"scroll-y"],scrollEvents:[4,"scroll-events"],getScrollElement:[64],getBackgroundElement:[64],scrollToTop:[64],scrollToBottom:[64],scrollByPoint:[64],scrollToPoint:[64]},[[9,"resize","onResize"]]]),o5=e=>{var t;return e.parentElement?e.parentElement:!((t=e.parentNode)===null||t===void 0)&&t.host?e.parentNode.host:null},r5=e=>{const t=e.closest("ion-tabs");if(t)return t;const n=e.closest("ion-app, ion-page, .ion-page, page-inner, .popover-content");return n||o5(e)},s5=(e,t,n,i)=>{const o=e.currentX,r=e.currentY,s=e.currentTime,a=t.scrollLeft,l=t.scrollTop,c=n-s;if(i&&(e.startTime=n,e.startX=a,e.startY=l,e.velocityX=e.velocityY=0),e.currentTime=n,e.currentX=e.scrollLeft=a,e.currentY=e.scrollTop=l,e.deltaX=a-e.startX,e.deltaY=l-e.startY,c>0&&c<100){const d=(a-o)/c,u=(l-r)/c;e.velocityX=d*.7+e.velocityX*.3,e.velocityY=u*.7+e.velocityY*.3}};function a5(){if(typeof customElements>"u")return;["ion-content"].forEach(t=>{switch(t){case"ion-content":customElements.get(t)||customElements.define(t,i5);break}})}const l5=a5;/*! * (C) Ionic http://ionicframework.com - MIT License */const c5=':host{--overflow:hidden;--ripple-color:currentColor;--border-width:initial;--border-color:initial;--border-style:initial;--color-activated:var(--color);--color-focused:var(--color);--color-hover:var(--color);--box-shadow:none;display:inline-block;width:auto;color:var(--color);font-family:var(--ion-font-family, inherit);text-align:center;text-decoration:none;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:top;vertical-align:-webkit-baseline-middle;-webkit-font-kerning:none;font-kerning:none}:host(.button-disabled){cursor:default;opacity:0.5;pointer-events:none}:host(.button-solid){--background:var(--ion-color-primary, #3880ff);--color:var(--ion-color-primary-contrast, #fff)}:host(.button-outline){--border-color:var(--ion-color-primary, #3880ff);--background:transparent;--color:var(--ion-color-primary, #3880ff)}:host(.button-clear){--border-width:0;--background:transparent;--color:var(--ion-color-primary, #3880ff)}:host(.button-block){display:block}:host(.button-block) .button-native{margin-left:0;margin-right:0;width:100%;clear:both;contain:content}:host(.button-block) .button-native::after{clear:both}:host(.button-full){display:block}:host(.button-full) .button-native{margin-left:0;margin-right:0;width:100%;contain:content}:host(.button-full:not(.button-round)) .button-native{border-radius:0;border-right-width:0;border-left-width:0}.button-native{border-radius:var(--border-radius);-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;width:100%;height:100%;min-height:inherit;-webkit-transition:var(--transition);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);outline:none;background:var(--background);line-height:1;-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);contain:layout style;cursor:pointer;opacity:var(--opacity);overflow:var(--overflow);z-index:0;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-appearance:none;-moz-appearance:none;appearance:none}.button-native::-moz-focus-inner{border:0}.button-inner{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;z-index:1}::slotted([slot=start]),::slotted([slot=end]){-ms-flex-negative:0;flex-shrink:0}::slotted(ion-icon){font-size:1.35em;pointer-events:none}::slotted(ion-icon[slot=start]){-webkit-margin-start:-0.3em;margin-inline-start:-0.3em;-webkit-margin-end:0.3em;margin-inline-end:0.3em;margin-top:0;margin-bottom:0}::slotted(ion-icon[slot=end]){-webkit-margin-start:0.3em;margin-inline-start:0.3em;-webkit-margin-end:-0.2em;margin-inline-end:-0.2em;margin-top:0;margin-bottom:0}::slotted(ion-icon[slot=icon-only]){font-size:1.8em}ion-ripple-effect{color:var(--ripple-color)}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}:host(.ion-focused){color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}@media (any-hover: hover){:host(:hover){color:var(--color-hover)}:host(:hover) .button-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}}:host(.ion-activated){color:var(--color-activated)}:host(.ion-activated) .button-native::after{background:var(--background-activated);opacity:var(--background-activated-opacity)}:host(.button-solid.ion-color) .button-native{background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(.button-outline.ion-color) .button-native{border-color:var(--ion-color-base);background:transparent;color:var(--ion-color-base)}:host(.button-clear.ion-color) .button-native{background:transparent;color:var(--ion-color-base)}:host(.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{color:var(--ion-toolbar-color, var(--color))}:host(.button-outline.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{border-color:var(--ion-toolbar-color, var(--color, var(--border-color)))}:host(.button-solid.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{background:var(--ion-toolbar-color, var(--background));color:var(--ion-toolbar-background, var(--color))}:host(.button-outline.ion-activated.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{background:var(--ion-toolbar-color, var(--color));color:var(--ion-toolbar-background, var(--background), var(--ion-color-primary-contrast, #fff))}:host{--border-radius:14px;--padding-top:13px;--padding-bottom:13px;--padding-start:1em;--padding-end:1em;--transition:background-color, opacity 100ms linear;-webkit-margin-start:2px;margin-inline-start:2px;-webkit-margin-end:2px;margin-inline-end:2px;margin-top:4px;margin-bottom:4px;min-height:3.1em;font-size:min(1rem, 48px);font-weight:500;letter-spacing:0}:host(.button-solid){--background-activated:var(--ion-color-primary-shade, #3171e0);--background-focused:var(--ion-color-primary-shade, #3171e0);--background-hover:var(--ion-color-primary-tint, #4c8dff);--background-activated-opacity:1;--background-focused-opacity:1;--background-hover-opacity:1}:host(.button-outline){--border-radius:14px;--border-width:1px;--border-style:solid;--background-activated:var(--ion-color-primary, #3880ff);--background-focused:var(--ion-color-primary, #3880ff);--background-hover:transparent;--background-focused-opacity:.1;--color-activated:var(--ion-color-primary-contrast, #fff)}:host(.button-clear){--background-activated:transparent;--background-activated-opacity:0;--background-focused:var(--ion-color-primary, #3880ff);--background-hover:transparent;--background-focused-opacity:.1;font-size:min(1.0625rem, 51px);font-weight:normal}:host(.in-buttons){font-size:clamp(17px, 1.0625rem, 21.08px);font-weight:400}:host(.button-large){--border-radius:16px;--padding-top:17px;--padding-start:1em;--padding-end:1em;--padding-bottom:17px;min-height:3.1em;font-size:min(1.25rem, 60px)}:host(.button-small){--border-radius:6px;--padding-top:4px;--padding-start:0.9em;--padding-end:0.9em;--padding-bottom:4px;min-height:2.1em;font-size:min(0.8125rem, 39px)}:host(.button-has-icon-only){--padding-top:0;--padding-bottom:0}:host(.button-round){--border-radius:64px;--padding-top:0;--padding-start:26px;--padding-end:26px;--padding-bottom:0}:host(.button-strong){font-weight:600}:host(.button-outline.ion-focused.ion-color) .button-native,:host(.button-clear.ion-focused.ion-color) .button-native{color:var(--ion-color-base)}:host(.button-outline.ion-focused.ion-color) .button-native::after,:host(.button-clear.ion-focused.ion-color) .button-native::after{background:var(--ion-color-base)}:host(.button-solid.ion-color.ion-focused) .button-native::after{background:var(--ion-color-shade)}@media (any-hover: hover){:host(.button-clear:not(.ion-activated):hover),:host(.button-outline:not(.ion-activated):hover){opacity:0.6}:host(.button-clear.ion-color:hover) .button-native,:host(.button-outline.ion-color:hover) .button-native{color:var(--ion-color-base)}:host(.button-clear.ion-color:hover) .button-native::after,:host(.button-outline.ion-color:hover) .button-native::after{background:transparent}:host(.button-solid.ion-color:hover) .button-native::after{background:var(--ion-color-tint)}:host(:hover.button-solid.in-toolbar:not(.ion-color):not(.in-toolbar-color):not(.ion-activated)) .button-native::after{background:#fff;opacity:0.1}}:host(.button-clear.ion-activated){opacity:0.4}:host(.button-outline.ion-activated.ion-color) .button-native{color:var(--ion-color-contrast)}:host(.button-outline.ion-activated.ion-color) .button-native::after{background:var(--ion-color-base)}:host(.button-solid.ion-color.ion-activated) .button-native::after{background:var(--ion-color-shade)}',d5=`:host{--overflow:hidden;--ripple-color:currentColor;--border-width:initial;--border-color:initial;--border-style:initial;--color-activated:var(--color);--color-focused:var(--color);--color-hover:var(--color);--box-shadow:none;display:inline-block;width:auto;color:var(--color);font-family:var(--ion-font-family, inherit);text-align:center;text-decoration:none;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:top;vertical-align:-webkit-baseline-middle;-webkit-font-kerning:none;font-kerning:none}:host(.button-disabled){cursor:default;opacity:0.5;pointer-events:none}:host(.button-solid){--background:var(--ion-color-primary, #3880ff);--color:var(--ion-color-primary-contrast, #fff)}:host(.button-outline){--border-color:var(--ion-color-primary, #3880ff);--background:transparent;--color:var(--ion-color-primary, #3880ff)}:host(.button-clear){--border-width:0;--background:transparent;--color:var(--ion-color-primary, #3880ff)}:host(.button-block){display:block}:host(.button-block) .button-native{margin-left:0;margin-right:0;width:100%;clear:both;contain:content}:host(.button-block) .button-native::after{clear:both}:host(.button-full){display:block}:host(.button-full) .button-native{margin-left:0;margin-right:0;width:100%;contain:content}:host(.button-full:not(.button-round)) .button-native{border-radius:0;border-right-width:0;border-left-width:0}.button-native{border-radius:var(--border-radius);-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;width:100%;height:100%;min-height:inherit;-webkit-transition:var(--transition);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);outline:none;background:var(--background);line-height:1;-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);contain:layout style;cursor:pointer;opacity:var(--opacity);overflow:var(--overflow);z-index:0;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-appearance:none;-moz-appearance:none;appearance:none}.button-native::-moz-focus-inner{border:0}.button-inner{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;z-index:1}::slotted([slot=start]),::slotted([slot=end]){-ms-flex-negative:0;flex-shrink:0}::slotted(ion-icon){font-size:1.35em;pointer-events:none}::slotted(ion-icon[slot=start]){-webkit-margin-start:-0.3em;margin-inline-start:-0.3em;-webkit-margin-end:0.3em;margin-inline-end:0.3em;margin-top:0;margin-bottom:0}::slotted(ion-icon[slot=end]){-webkit-margin-start:0.3em;margin-inline-start:0.3em;-webkit-margin-end:-0.2em;margin-inline-end:-0.2em;margin-top:0;margin-bottom:0}::slotted(ion-icon[slot=icon-only]){font-size:1.8em}ion-ripple-effect{color:var(--ripple-color)}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}:host(.ion-focused){color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}@media (any-hover: hover){:host(:hover){color:var(--color-hover)}:host(:hover) .button-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}}:host(.ion-activated){color:var(--color-activated)}:host(.ion-activated) .button-native::after{background:var(--background-activated);opacity:var(--background-activated-opacity)}:host(.button-solid.ion-color) .button-native{background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(.button-outline.ion-color) .button-native{border-color:var(--ion-color-base);background:transparent;color:var(--ion-color-base)}:host(.button-clear.ion-color) .button-native{background:transparent;color:var(--ion-color-base)}:host(.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{color:var(--ion-toolbar-color, var(--color))}:host(.button-outline.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{border-color:var(--ion-toolbar-color, var(--color, var(--border-color)))}:host(.button-solid.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{background:var(--ion-toolbar-color, var(--background));color:var(--ion-toolbar-background, var(--color))}:host(.button-outline.ion-activated.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{background:var(--ion-toolbar-color, var(--color));color:var(--ion-toolbar-background, var(--background), var(--ion-color-primary-contrast, #fff))}:host{--border-radius:4px;--padding-top:8px;--padding-bottom:8px;--padding-start:1.1em;--padding-end:1.1em;--transition:box-shadow 280ms cubic-bezier(.4, 0, .2, 1), background-color 15ms linear, color 15ms linear;-webkit-margin-start:2px;margin-inline-start:2px;-webkit-margin-end:2px;margin-inline-end:2px;margin-top:4px;margin-bottom:4px;min-height:36px;font-size:0.875rem;font-weight:500;letter-spacing:0.06em;text-transform:uppercase}:host(.button-solid){--background-activated:transparent;--background-hover:var(--ion-color-primary-contrast, #fff);--background-focused:var(--ion-color-primary-contrast, #fff);--background-activated-opacity:0;--background-focused-opacity:.24;--background-hover-opacity:.08;--box-shadow:0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12)}:host(.button-solid.ion-activated){--box-shadow:0 5px 5px -3px rgba(0, 0, 0, 0.2), 0 8px 10px 1px rgba(0, 0, 0, 0.14), 0 3px 14px 2px rgba(0, 0, 0, 0.12)}:host(.button-outline){--border-width:2px;--border-style:solid;--box-shadow:none;--background-activated:transparent;--background-focused:var(--ion-color-primary, #3880ff);--background-hover:var(--ion-color-primary, #3880ff);--background-activated-opacity:0;--background-focused-opacity:.12;--background-hover-opacity:.04}:host(.button-outline.ion-activated.ion-color) .button-native{background:transparent}:host(.button-clear){--background-activated:transparent;--background-focused:var(--ion-color-primary, #3880ff);--background-hover:var(--ion-color-primary, #3880ff);--background-activated-opacity:0;--background-focused-opacity:.12;--background-hover-opacity:.04}:host(.button-round){--border-radius:64px;--padding-top:0;--padding-start:26px;--padding-end:26px;--padding-bottom:0}:host(.button-large){--padding-top:14px;--padding-start:1em;--padding-end:1em;--padding-bottom:14px;min-height:2.8em;font-size:1.25rem}:host(.button-small){--padding-top:4px;--padding-start:0.9em;--padding-end:0.9em;--padding-bottom:4px;min-height:2.1em;font-size:0.8125rem}:host(.button-has-icon-only){--padding-top:0;--padding-bottom:0}:host(.button-strong){font-weight:bold}::slotted(ion-icon[slot=icon-only]){padding-left:0;padding-right:0;padding-top:0;padding-bottom:0}:host(.button-solid.ion-color.ion-focused) .button-native::after{background:var(--ion-color-contrast)}:host(.button-clear.ion-color.ion-focused) .button-native::after,:host(.button-outline.ion-color.ion-focused) .button-native::after{background:var(--ion-color-base)}@media (any-hover: hover){:host(.button-solid.ion-color:hover) .button-native::after{background:var(--ion-color-contrast)}:host(.button-clear.ion-color:hover) .button-native::after,:host(.button-outline.ion-color:hover) .button-native::after{background:var(--ion-color-base)}}`,u5=ne(class extends ie{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionFocus=B(this,"ionFocus",7),this.ionBlur=B(this,"ionBlur",7),this.inItem=!1,this.inListHeader=!1,this.inToolbar=!1,this.formButtonEl=null,this.formEl=null,this.inheritedAttributes={},this.handleClick=t=>{const{el:n}=this;this.type==="button"?Rx(this.href,t,this.routerDirection,this.routerAnimation):px(n)&&this.submitForm(t)},this.onFocus=()=>{this.ionFocus.emit()},this.onBlur=()=>{this.ionBlur.emit()},this.color=void 0,this.buttonType="button",this.disabled=!1,this.expand=void 0,this.fill=void 0,this.routerDirection="forward",this.routerAnimation=void 0,this.download=void 0,this.href=void 0,this.rel=void 0,this.shape=void 0,this.size=void 0,this.strong=!1,this.target=void 0,this.type="button",this.form=void 0}disabledChanged(){const{disabled:t}=this;this.formButtonEl&&(this.formButtonEl.disabled=t)}renderHiddenButton(){const t=this.formEl=this.findForm();if(t){const{formButtonEl:n}=this;if(n!==null&&t.contains(n))return;const i=this.formButtonEl=document.createElement("button");i.type=this.type,i.style.display="none",i.disabled=this.disabled,t.appendChild(i)}}componentWillLoad(){this.inToolbar=!!this.el.closest("ion-buttons"),this.inListHeader=!!this.el.closest("ion-list-header"),this.inItem=!!this.el.closest("ion-item")||!!this.el.closest("ion-item-divider"),this.inheritedAttributes=Uo(this.el)}get hasIconOnly(){return!!this.el.querySelector('[slot="icon-only"]')}get rippleType(){return(this.fill===void 0||this.fill==="clear")&&this.hasIconOnly&&this.inToolbar?"unbounded":"bounded"}findForm(){const{form:t}=this;if(t instanceof HTMLFormElement)return t;if(typeof t=="string"){const n=document.getElementById(t);return n?n instanceof HTMLFormElement?n:(pe(`Form with selector: "#${t}" could not be found. Verify that the id is attached to a
element.`,this.el),null):(pe(`Form with selector: "#${t}" could not be found. Verify that the id is correct and the form is rendered in the DOM.`,this.el),null)}return t!==void 0?(pe('The provided "form" element is invalid. Verify that the form is a HTMLFormElement and rendered in the DOM.',this.el),null):this.el.closest("form")}submitForm(t){this.formEl&&this.formButtonEl&&(t.preventDefault(),this.formButtonEl.click())}render(){const t=W(this),{buttonType:n,type:i,disabled:o,rel:r,target:s,size:a,href:l,color:c,expand:d,hasIconOnly:u,shape:h,strong:f,inheritedAttributes:p}=this,m=a===void 0&&this.inItem?"small":a,x=l===void 0?"button":"a",b=x==="button"?{type:i}:{download:this.download,href:l,rel:r,target:s};let g=this.fill;return g==null&&(g=this.inToolbar||this.inListHeader?"clear":"solid"),i!=="button"&&this.renderHiddenButton(),y(ee,{onClick:this.handleClick,"aria-disabled":o?"true":null,class:Ne(c,{[t]:!0,[n]:!0,[`${n}-${d}`]:d!==void 0,[`${n}-${m}`]:m!==void 0,[`${n}-${h}`]:h!==void 0,[`${n}-${g}`]:!0,[`${n}-strong`]:f,"in-toolbar":De("ion-toolbar",this.el),"in-toolbar-color":De("ion-toolbar[color]",this.el),"in-buttons":De("ion-buttons",this.el),"button-has-icon-only":u,"button-disabled":o,"ion-activatable":!0,"ion-focusable":!0})},y(x,Object.assign({},b,{class:"button-native",part:"native",disabled:o,onFocus:this.onFocus,onBlur:this.onBlur},p),y("span",{class:"button-inner"},y("slot",{name:"icon-only"}),y("slot",{name:"start"}),y("slot",null),y("slot",{name:"end"})),t==="md"&&y("ion-ripple-effect",{type:this.rippleType})))}get el(){return this}static get watchers(){return{disabled:["disabledChanged"]}}static get style(){return{ios:c5,md:d5}}},[33,"ion-button",{color:[513],buttonType:[1025,"button-type"],disabled:[516],expand:[513],fill:[1537],routerDirection:[1,"router-direction"],routerAnimation:[16],download:[1],href:[1],rel:[1],shape:[513],size:[513],strong:[4],target:[1],type:[1],form:[1]},void 0,{disabled:["disabledChanged"]}]);/*! * (C) Ionic http://ionicframework.com - MIT License */const h5=":host{color:var(--color);font-family:var(--ion-font-family, inherit);-webkit-box-sizing:border-box;box-sizing:border-box}:host(.ion-color){color:var(--ion-color-base)}:host{--color:var(--ion-color-step-350, #a6a6a6);font-size:max(14px, 1rem)}",f5=":host{color:var(--color);font-family:var(--ion-font-family, inherit);-webkit-box-sizing:border-box;box-sizing:border-box}:host(.ion-color){color:var(--ion-color-base)}:host{--color:var(--ion-color-step-600, #666666);font-size:0.875rem}",p5=ne(class extends ie{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.color=void 0}render(){const t=W(this);return y(ee,{class:Ne(this.color,{[t]:!0})},y("slot",null))}static get style(){return{ios:h5,md:f5}}},[33,"ion-note",{color:[513]}]);function Ul(){if(typeof customElements>"u")return;["ion-note"].forEach(t=>{switch(t){case"ion-note":customElements.get(t)||customElements.define(t,p5);break}})}/*! * (C) Ionic http://ionicframework.com - MIT License */const m5=':host{--inner-min-width:4rem;--border-radius:0px;--border-width:0px;--border-style:solid;--padding-top:0px;--padding-bottom:0px;--padding-end:0px;--padding-start:0px;--inner-border-width:0px;--inner-padding-top:0px;--inner-padding-bottom:0px;--inner-padding-start:0px;--inner-padding-end:0px;--inner-box-shadow:none;--show-full-highlight:0;--show-inset-highlight:0;--detail-icon-color:initial;--detail-icon-font-size:1.25em;--detail-icon-opacity:0.25;--color-activated:var(--color);--color-focused:var(--color);--color-hover:var(--color);--ripple-color:currentColor;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:block;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;outline:none;color:var(--color);font-family:var(--ion-font-family, inherit);text-align:initial;text-decoration:none;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box}:host(.ion-color:not(.item-fill-solid):not(.item-fill-outline)) .item-native{background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(.ion-color:not(.item-fill-solid):not(.item-fill-outline)) .item-native,:host(.ion-color:not(.item-fill-solid):not(.item-fill-outline)) .item-inner{border-color:var(--ion-color-shade)}:host(.ion-activated) .item-native{color:var(--color-activated)}:host(.ion-activated) .item-native::after{background:var(--background-activated);opacity:var(--background-activated-opacity)}:host(.ion-color.ion-activated) .item-native{color:var(--ion-color-contrast)}:host(.ion-focused) .item-native{color:var(--color-focused)}:host(.ion-focused) .item-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}:host(.ion-color.ion-focused) .item-native{color:var(--ion-color-contrast)}:host(.ion-color.ion-focused) .item-native::after{background:var(--ion-color-contrast)}@media (any-hover: hover){:host(.ion-activatable:not(.ion-focused):hover) .item-native{color:var(--color-hover)}:host(.ion-activatable:not(.ion-focused):hover) .item-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}:host(.ion-color.ion-activatable:not(.ion-focused):hover) .item-native{color:var(--ion-color-contrast)}:host(.ion-color.ion-activatable:not(.ion-focused):hover) .item-native::after{background:var(--ion-color-contrast)}}:host(.item-has-interactive-control){cursor:pointer}:host(.item-interactive-disabled:not(.item-multiple-inputs)){cursor:default;pointer-events:none}:host(.item-disabled){cursor:default;opacity:0.3;pointer-events:none}.item-native{border-radius:var(--border-radius);margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;padding-right:var(--padding-end);padding-left:calc(var(--padding-start) + var(--ion-safe-area-left, 0px));display:-ms-flexbox;display:flex;position:relative;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:inherit;align-items:inherit;-ms-flex-pack:inherit;justify-content:inherit;width:100%;min-height:var(--min-height);-webkit-transition:var(--transition);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);outline:none;background:var(--background);overflow:inherit;z-index:1;-webkit-box-sizing:border-box;box-sizing:border-box}:host-context([dir=rtl]) .item-native{padding-right:calc(var(--padding-start) + var(--ion-safe-area-right, 0px));padding-left:var(--padding-end)}[dir=rtl] .item-native{padding-right:calc(var(--padding-start) + var(--ion-safe-area-right, 0px));padding-left:var(--padding-end)}@supports selector(:dir(rtl)){.item-native:dir(rtl){padding-right:calc(var(--padding-start) + var(--ion-safe-area-right, 0px));padding-left:var(--padding-end)}}:host(.item-legacy) .item-native{-ms-flex-wrap:unset;flex-wrap:unset}.item-native::-moz-focus-inner{border:0}.item-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0;-webkit-transition:var(--transition);transition:var(--transition);z-index:-1}button,a{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-drag:none}.item-inner{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-top:var(--inner-padding-top);padding-bottom:var(--inner-padding-bottom);padding-right:calc(var(--ion-safe-area-right, 0px) + var(--inner-padding-end));padding-left:var(--inner-padding-start);display:-ms-flexbox;display:flex;position:relative;-ms-flex:1 0 0px;flex:1 0 0;-ms-flex-direction:inherit;flex-direction:inherit;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:inherit;align-items:inherit;-ms-flex-item-align:stretch;align-self:stretch;min-width:var(--inner-min-width);max-width:100%;min-height:inherit;border-width:var(--inner-border-width);border-style:var(--border-style);border-color:var(--border-color);-webkit-box-shadow:var(--inner-box-shadow);box-shadow:var(--inner-box-shadow);overflow:inherit;-webkit-box-sizing:border-box;box-sizing:border-box}:host-context([dir=rtl]) .item-inner{padding-right:var(--inner-padding-start);padding-left:calc(var(--ion-safe-area-left, 0px) + var(--inner-padding-end))}[dir=rtl] .item-inner{padding-right:var(--inner-padding-start);padding-left:calc(var(--ion-safe-area-left, 0px) + var(--inner-padding-end))}@supports selector(:dir(rtl)){.item-inner:dir(rtl){padding-right:var(--inner-padding-start);padding-left:calc(var(--ion-safe-area-left, 0px) + var(--inner-padding-end))}}:host(.item-legacy) .item-inner{-ms-flex:1;flex:1;-ms-flex-wrap:unset;flex-wrap:unset;max-width:unset}.item-bottom{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-top:0;padding-bottom:0;padding-left:calc(var(--padding-start) + var(--ion-safe-area-left, 0px));padding-right:calc(var(--inner-padding-end) + var(--ion-safe-area-right, 0px));display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}:host-context([dir=rtl]) .item-bottom{padding-left:calc(var(--inner-padding-end) + var(--ion-safe-area-left, 0px));padding-right:calc(var(--padding-start) + var(--ion-safe-area-right, 0px))}[dir=rtl] .item-bottom{padding-left:calc(var(--inner-padding-end) + var(--ion-safe-area-left, 0px));padding-right:calc(var(--padding-start) + var(--ion-safe-area-right, 0px))}@supports selector(:dir(rtl)){.item-bottom:dir(rtl){padding-left:calc(var(--inner-padding-end) + var(--ion-safe-area-left, 0px));padding-right:calc(var(--padding-start) + var(--ion-safe-area-right, 0px))}}.item-detail-icon{-webkit-margin-start:calc(var(--inner-padding-end) / 2);margin-inline-start:calc(var(--inner-padding-end) / 2);-webkit-margin-end:-6px;margin-inline-end:-6px;color:var(--detail-icon-color);font-size:var(--detail-icon-font-size);opacity:var(--detail-icon-opacity)}::slotted(ion-icon){font-size:1.6em}::slotted(ion-button){--margin-top:0;--margin-bottom:0;--margin-start:0;--margin-end:0;z-index:1}::slotted(ion-label:not([slot=end])){-ms-flex:1;flex:1;width:-webkit-min-content;width:-moz-min-content;width:min-content;max-width:100%}:host(.item-input){-ms-flex-align:center;align-items:center}.input-wrapper{display:-ms-flexbox;display:flex;-ms-flex:1 0 auto;flex:1 0 auto;-ms-flex-direction:inherit;flex-direction:inherit;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:inherit;align-items:inherit;-ms-flex-item-align:stretch;align-self:stretch;max-width:100%;text-overflow:ellipsis;overflow:inherit;-webkit-box-sizing:border-box;box-sizing:border-box}:host(.item-legacy) .input-wrapper{-ms-flex:1;flex:1;-ms-flex-wrap:unset;flex-wrap:unset;max-width:unset}:host(.item-label-stacked),:host(.item-label-floating){-ms-flex-align:start;align-items:start}:host(.item-label-stacked) .input-wrapper,:host(.item-label-floating) .input-wrapper{-ms-flex:1;flex:1;-ms-flex-direction:column;flex-direction:column}.item-highlight,.item-inner-highlight{left:0;right:0;top:0;bottom:0;border-radius:inherit;position:absolute;width:100%;height:100%;-webkit-transform:scaleX(0);transform:scaleX(0);-webkit-transition:border-bottom-width 200ms, -webkit-transform 200ms;transition:border-bottom-width 200ms, -webkit-transform 200ms;transition:transform 200ms, border-bottom-width 200ms;transition:transform 200ms, border-bottom-width 200ms, -webkit-transform 200ms;z-index:2;-webkit-box-sizing:border-box;box-sizing:border-box;pointer-events:none}:host(.item-interactive.ion-focused),:host(.item-interactive.item-has-focus),:host(.item-interactive.ion-touched.ion-invalid){--full-highlight-height:calc(var(--highlight-height) * var(--show-full-highlight));--inset-highlight-height:calc(var(--highlight-height) * var(--show-inset-highlight))}:host(.ion-focused) .item-highlight,:host(.ion-focused) .item-inner-highlight,:host(.item-has-focus) .item-highlight,:host(.item-has-focus) .item-inner-highlight{-webkit-transform:scaleX(1);transform:scaleX(1);border-style:var(--border-style);border-color:var(--highlight-background)}:host(.ion-focused) .item-highlight,:host(.item-has-focus) .item-highlight{border-width:var(--full-highlight-height);opacity:var(--show-full-highlight)}:host(.ion-focused) .item-inner-highlight,:host(.item-has-focus) .item-inner-highlight{border-bottom-width:var(--inset-highlight-height);opacity:var(--show-inset-highlight)}:host(.ion-focused.item-fill-solid) .item-highlight,:host(.item-has-focus.item-fill-solid) .item-highlight{border-width:calc(var(--full-highlight-height) - 1px)}:host(.ion-focused) .item-inner-highlight,:host(.ion-focused:not(.item-fill-outline)) .item-highlight,:host(.item-has-focus) .item-inner-highlight,:host(.item-has-focus:not(.item-fill-outline)) .item-highlight{border-top:none;border-right:none;border-left:none}:host(.item-interactive.ion-focused),:host(.item-interactive.item-has-focus){--highlight-background:var(--highlight-color-focused)}:host(.item-interactive.ion-valid){--highlight-background:var(--highlight-color-valid)}:host(.item-interactive.ion-invalid){--highlight-background:var(--highlight-color-invalid)}:host(.item-interactive.ion-invalid) ::slotted([slot=helper]){display:none}::slotted([slot=error]){display:none;color:var(--highlight-color-invalid)}:host(.item-interactive.ion-invalid) ::slotted([slot=error]){display:block}:host(:not(.item-label)) ::slotted(ion-select.legacy-select){--padding-start:0;max-width:none}:host(.item-label-stacked) ::slotted(ion-select.legacy-select),:host(.item-label-floating) ::slotted(ion-select.legacy-select){--padding-top:8px;--padding-bottom:8px;--padding-start:0;-ms-flex-item-align:stretch;align-self:stretch;width:100%;max-width:100%}:host(:not(.item-label)) ::slotted(ion-datetime){--padding-start:0}:host(.item-label-stacked) ::slotted(ion-datetime),:host(.item-label-floating) ::slotted(ion-datetime){--padding-start:0;width:100%}:host(.item-multiple-inputs) ::slotted(ion-checkbox),:host(.item-multiple-inputs) ::slotted(ion-datetime),:host(.item-multiple-inputs) ::slotted(ion-radio),:host(.item-multiple-inputs) ::slotted(ion-select.legacy-select){position:relative}:host(.item-textarea){-ms-flex-align:stretch;align-items:stretch}::slotted(ion-reorder[slot]){margin-top:0;margin-bottom:0}ion-ripple-effect{color:var(--ripple-color)}:host(.item-fill-solid) ::slotted([slot=start]),:host(.item-fill-solid) ::slotted([slot=end]),:host(.item-fill-outline) ::slotted([slot=start]),:host(.item-fill-outline) ::slotted([slot=end]){-ms-flex-item-align:center;align-self:center}::slotted([slot=helper]),::slotted([slot=error]),.item-counter{padding-top:5px;font-size:0.75rem;z-index:1}.item-counter{-webkit-margin-start:auto;margin-inline-start:auto;color:var(--ion-color-step-550, #737373);white-space:nowrap;-webkit-padding-start:16px;padding-inline-start:16px}@media (prefers-reduced-motion: reduce){.item-highlight,.item-inner-highlight{-webkit-transition:none;transition:none}}:host{--min-height:44px;--transition:background-color 200ms linear, opacity 200ms linear;--padding-start:16px;--inner-padding-end:16px;--inner-border-width:0px 0px 0.55px 0px;--background:var(--ion-item-background, var(--ion-background-color, #fff));--background-activated:var(--ion-text-color, #000);--background-focused:var(--ion-text-color, #000);--background-hover:currentColor;--background-activated-opacity:.12;--background-focused-opacity:.15;--background-hover-opacity:.04;--border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-250, #c8c7cc)));--color:var(--ion-item-color, var(--ion-text-color, #000));--highlight-height:0px;--highlight-color-focused:var(--ion-color-primary, #3880ff);--highlight-color-valid:var(--ion-color-success, #2dd36f);--highlight-color-invalid:var(--ion-color-danger, #eb445a);--bottom-padding-start:0px;font-size:1rem}:host(.ion-activated){--transition:none}:host(.ion-color.ion-focused) .item-native::after{background:#000;opacity:0.15}:host(.ion-color.ion-activated) .item-native::after{background:#000;opacity:0.12}:host(.item-interactive){--show-full-highlight:0;--show-inset-highlight:1}:host(.item-lines-full){--border-width:0px 0px 0.55px 0px;--show-full-highlight:1;--show-inset-highlight:0}:host(.item-lines-inset){--inner-border-width:0px 0px 0.55px 0px;--show-full-highlight:0;--show-inset-highlight:1}:host(.item-lines-inset),:host(.item-lines-none){--border-width:0px;--show-full-highlight:0}:host(.item-lines-full),:host(.item-lines-none){--inner-border-width:0px;--show-inset-highlight:0}.item-highlight,.item-inner-highlight{-webkit-transition:none;transition:none}:host(.item-has-focus) .item-inner-highlight,:host(.item-has-focus) .item-highlight{border-top:none;border-right:none;border-left:none}::slotted([slot=start]){-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:2px;margin-bottom:2px}::slotted(ion-icon[slot=start]),::slotted(ion-icon[slot=end]){margin-top:7px;margin-bottom:7px}::slotted(ion-toggle[slot=start]),::slotted(ion-toggle[slot=end]){margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}:host(.item-label-stacked) ::slotted([slot=end]),:host(.item-label-floating) ::slotted([slot=end]){margin-top:7px;margin-bottom:7px}::slotted(.button-small){--padding-top:1px;--padding-bottom:1px;--padding-start:.5em;--padding-end:.5em;min-height:24px;font-size:0.8125rem}::slotted(ion-avatar){width:36px;height:36px}::slotted(ion-thumbnail){--size:56px}::slotted(ion-avatar[slot=end]),::slotted(ion-thumbnail[slot=end]){-webkit-margin-start:8px;margin-inline-start:8px;-webkit-margin-end:8px;margin-inline-end:8px;margin-top:8px;margin-bottom:8px}:host(.item-radio) ::slotted(ion-label),:host(.item-toggle) ::slotted(ion-label){-webkit-margin-start:0px;margin-inline-start:0px}::slotted(ion-label){-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:8px;margin-inline-end:8px;margin-top:10px;margin-bottom:10px}:host(.item-label-floating),:host(.item-label-stacked){--min-height:68px}:host(.item-label-stacked) ::slotted(ion-select.legacy-select),:host(.item-label-floating) ::slotted(ion-select.legacy-select){--padding-top:8px;--padding-bottom:8px;--padding-start:0px}:host(.item-label-fixed) ::slotted(ion-select.legacy-select),:host(.item-label-fixed) ::slotted(ion-datetime){--padding-start:0}',g5=':host{--inner-min-width:4rem;--border-radius:0px;--border-width:0px;--border-style:solid;--padding-top:0px;--padding-bottom:0px;--padding-end:0px;--padding-start:0px;--inner-border-width:0px;--inner-padding-top:0px;--inner-padding-bottom:0px;--inner-padding-start:0px;--inner-padding-end:0px;--inner-box-shadow:none;--show-full-highlight:0;--show-inset-highlight:0;--detail-icon-color:initial;--detail-icon-font-size:1.25em;--detail-icon-opacity:0.25;--color-activated:var(--color);--color-focused:var(--color);--color-hover:var(--color);--ripple-color:currentColor;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:block;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;outline:none;color:var(--color);font-family:var(--ion-font-family, inherit);text-align:initial;text-decoration:none;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box}:host(.ion-color:not(.item-fill-solid):not(.item-fill-outline)) .item-native{background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(.ion-color:not(.item-fill-solid):not(.item-fill-outline)) .item-native,:host(.ion-color:not(.item-fill-solid):not(.item-fill-outline)) .item-inner{border-color:var(--ion-color-shade)}:host(.ion-activated) .item-native{color:var(--color-activated)}:host(.ion-activated) .item-native::after{background:var(--background-activated);opacity:var(--background-activated-opacity)}:host(.ion-color.ion-activated) .item-native{color:var(--ion-color-contrast)}:host(.ion-focused) .item-native{color:var(--color-focused)}:host(.ion-focused) .item-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}:host(.ion-color.ion-focused) .item-native{color:var(--ion-color-contrast)}:host(.ion-color.ion-focused) .item-native::after{background:var(--ion-color-contrast)}@media (any-hover: hover){:host(.ion-activatable:not(.ion-focused):hover) .item-native{color:var(--color-hover)}:host(.ion-activatable:not(.ion-focused):hover) .item-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}:host(.ion-color.ion-activatable:not(.ion-focused):hover) .item-native{color:var(--ion-color-contrast)}:host(.ion-color.ion-activatable:not(.ion-focused):hover) .item-native::after{background:var(--ion-color-contrast)}}:host(.item-has-interactive-control){cursor:pointer}:host(.item-interactive-disabled:not(.item-multiple-inputs)){cursor:default;pointer-events:none}:host(.item-disabled){cursor:default;opacity:0.3;pointer-events:none}.item-native{border-radius:var(--border-radius);margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;padding-right:var(--padding-end);padding-left:calc(var(--padding-start) + var(--ion-safe-area-left, 0px));display:-ms-flexbox;display:flex;position:relative;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:inherit;align-items:inherit;-ms-flex-pack:inherit;justify-content:inherit;width:100%;min-height:var(--min-height);-webkit-transition:var(--transition);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);outline:none;background:var(--background);overflow:inherit;z-index:1;-webkit-box-sizing:border-box;box-sizing:border-box}:host-context([dir=rtl]) .item-native{padding-right:calc(var(--padding-start) + var(--ion-safe-area-right, 0px));padding-left:var(--padding-end)}[dir=rtl] .item-native{padding-right:calc(var(--padding-start) + var(--ion-safe-area-right, 0px));padding-left:var(--padding-end)}@supports selector(:dir(rtl)){.item-native:dir(rtl){padding-right:calc(var(--padding-start) + var(--ion-safe-area-right, 0px));padding-left:var(--padding-end)}}:host(.item-legacy) .item-native{-ms-flex-wrap:unset;flex-wrap:unset}.item-native::-moz-focus-inner{border:0}.item-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0;-webkit-transition:var(--transition);transition:var(--transition);z-index:-1}button,a{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-drag:none}.item-inner{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-top:var(--inner-padding-top);padding-bottom:var(--inner-padding-bottom);padding-right:calc(var(--ion-safe-area-right, 0px) + var(--inner-padding-end));padding-left:var(--inner-padding-start);display:-ms-flexbox;display:flex;position:relative;-ms-flex:1 0 0px;flex:1 0 0;-ms-flex-direction:inherit;flex-direction:inherit;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:inherit;align-items:inherit;-ms-flex-item-align:stretch;align-self:stretch;min-width:var(--inner-min-width);max-width:100%;min-height:inherit;border-width:var(--inner-border-width);border-style:var(--border-style);border-color:var(--border-color);-webkit-box-shadow:var(--inner-box-shadow);box-shadow:var(--inner-box-shadow);overflow:inherit;-webkit-box-sizing:border-box;box-sizing:border-box}:host-context([dir=rtl]) .item-inner{padding-right:var(--inner-padding-start);padding-left:calc(var(--ion-safe-area-left, 0px) + var(--inner-padding-end))}[dir=rtl] .item-inner{padding-right:var(--inner-padding-start);padding-left:calc(var(--ion-safe-area-left, 0px) + var(--inner-padding-end))}@supports selector(:dir(rtl)){.item-inner:dir(rtl){padding-right:var(--inner-padding-start);padding-left:calc(var(--ion-safe-area-left, 0px) + var(--inner-padding-end))}}:host(.item-legacy) .item-inner{-ms-flex:1;flex:1;-ms-flex-wrap:unset;flex-wrap:unset;max-width:unset}.item-bottom{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-top:0;padding-bottom:0;padding-left:calc(var(--padding-start) + var(--ion-safe-area-left, 0px));padding-right:calc(var(--inner-padding-end) + var(--ion-safe-area-right, 0px));display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}:host-context([dir=rtl]) .item-bottom{padding-left:calc(var(--inner-padding-end) + var(--ion-safe-area-left, 0px));padding-right:calc(var(--padding-start) + var(--ion-safe-area-right, 0px))}[dir=rtl] .item-bottom{padding-left:calc(var(--inner-padding-end) + var(--ion-safe-area-left, 0px));padding-right:calc(var(--padding-start) + var(--ion-safe-area-right, 0px))}@supports selector(:dir(rtl)){.item-bottom:dir(rtl){padding-left:calc(var(--inner-padding-end) + var(--ion-safe-area-left, 0px));padding-right:calc(var(--padding-start) + var(--ion-safe-area-right, 0px))}}.item-detail-icon{-webkit-margin-start:calc(var(--inner-padding-end) / 2);margin-inline-start:calc(var(--inner-padding-end) / 2);-webkit-margin-end:-6px;margin-inline-end:-6px;color:var(--detail-icon-color);font-size:var(--detail-icon-font-size);opacity:var(--detail-icon-opacity)}::slotted(ion-icon){font-size:1.6em}::slotted(ion-button){--margin-top:0;--margin-bottom:0;--margin-start:0;--margin-end:0;z-index:1}::slotted(ion-label:not([slot=end])){-ms-flex:1;flex:1;width:-webkit-min-content;width:-moz-min-content;width:min-content;max-width:100%}:host(.item-input){-ms-flex-align:center;align-items:center}.input-wrapper{display:-ms-flexbox;display:flex;-ms-flex:1 0 auto;flex:1 0 auto;-ms-flex-direction:inherit;flex-direction:inherit;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:inherit;align-items:inherit;-ms-flex-item-align:stretch;align-self:stretch;max-width:100%;text-overflow:ellipsis;overflow:inherit;-webkit-box-sizing:border-box;box-sizing:border-box}:host(.item-legacy) .input-wrapper{-ms-flex:1;flex:1;-ms-flex-wrap:unset;flex-wrap:unset;max-width:unset}:host(.item-label-stacked),:host(.item-label-floating){-ms-flex-align:start;align-items:start}:host(.item-label-stacked) .input-wrapper,:host(.item-label-floating) .input-wrapper{-ms-flex:1;flex:1;-ms-flex-direction:column;flex-direction:column}.item-highlight,.item-inner-highlight{left:0;right:0;top:0;bottom:0;border-radius:inherit;position:absolute;width:100%;height:100%;-webkit-transform:scaleX(0);transform:scaleX(0);-webkit-transition:border-bottom-width 200ms, -webkit-transform 200ms;transition:border-bottom-width 200ms, -webkit-transform 200ms;transition:transform 200ms, border-bottom-width 200ms;transition:transform 200ms, border-bottom-width 200ms, -webkit-transform 200ms;z-index:2;-webkit-box-sizing:border-box;box-sizing:border-box;pointer-events:none}:host(.item-interactive.ion-focused),:host(.item-interactive.item-has-focus),:host(.item-interactive.ion-touched.ion-invalid){--full-highlight-height:calc(var(--highlight-height) * var(--show-full-highlight));--inset-highlight-height:calc(var(--highlight-height) * var(--show-inset-highlight))}:host(.ion-focused) .item-highlight,:host(.ion-focused) .item-inner-highlight,:host(.item-has-focus) .item-highlight,:host(.item-has-focus) .item-inner-highlight{-webkit-transform:scaleX(1);transform:scaleX(1);border-style:var(--border-style);border-color:var(--highlight-background)}:host(.ion-focused) .item-highlight,:host(.item-has-focus) .item-highlight{border-width:var(--full-highlight-height);opacity:var(--show-full-highlight)}:host(.ion-focused) .item-inner-highlight,:host(.item-has-focus) .item-inner-highlight{border-bottom-width:var(--inset-highlight-height);opacity:var(--show-inset-highlight)}:host(.ion-focused.item-fill-solid) .item-highlight,:host(.item-has-focus.item-fill-solid) .item-highlight{border-width:calc(var(--full-highlight-height) - 1px)}:host(.ion-focused) .item-inner-highlight,:host(.ion-focused:not(.item-fill-outline)) .item-highlight,:host(.item-has-focus) .item-inner-highlight,:host(.item-has-focus:not(.item-fill-outline)) .item-highlight{border-top:none;border-right:none;border-left:none}:host(.item-interactive.ion-focused),:host(.item-interactive.item-has-focus){--highlight-background:var(--highlight-color-focused)}:host(.item-interactive.ion-valid){--highlight-background:var(--highlight-color-valid)}:host(.item-interactive.ion-invalid){--highlight-background:var(--highlight-color-invalid)}:host(.item-interactive.ion-invalid) ::slotted([slot=helper]){display:none}::slotted([slot=error]){display:none;color:var(--highlight-color-invalid)}:host(.item-interactive.ion-invalid) ::slotted([slot=error]){display:block}:host(:not(.item-label)) ::slotted(ion-select.legacy-select){--padding-start:0;max-width:none}:host(.item-label-stacked) ::slotted(ion-select.legacy-select),:host(.item-label-floating) ::slotted(ion-select.legacy-select){--padding-top:8px;--padding-bottom:8px;--padding-start:0;-ms-flex-item-align:stretch;align-self:stretch;width:100%;max-width:100%}:host(:not(.item-label)) ::slotted(ion-datetime){--padding-start:0}:host(.item-label-stacked) ::slotted(ion-datetime),:host(.item-label-floating) ::slotted(ion-datetime){--padding-start:0;width:100%}:host(.item-multiple-inputs) ::slotted(ion-checkbox),:host(.item-multiple-inputs) ::slotted(ion-datetime),:host(.item-multiple-inputs) ::slotted(ion-radio),:host(.item-multiple-inputs) ::slotted(ion-select.legacy-select){position:relative}:host(.item-textarea){-ms-flex-align:stretch;align-items:stretch}::slotted(ion-reorder[slot]){margin-top:0;margin-bottom:0}ion-ripple-effect{color:var(--ripple-color)}:host(.item-fill-solid) ::slotted([slot=start]),:host(.item-fill-solid) ::slotted([slot=end]),:host(.item-fill-outline) ::slotted([slot=start]),:host(.item-fill-outline) ::slotted([slot=end]){-ms-flex-item-align:center;align-self:center}::slotted([slot=helper]),::slotted([slot=error]),.item-counter{padding-top:5px;font-size:0.75rem;z-index:1}.item-counter{-webkit-margin-start:auto;margin-inline-start:auto;color:var(--ion-color-step-550, #737373);white-space:nowrap;-webkit-padding-start:16px;padding-inline-start:16px}@media (prefers-reduced-motion: reduce){.item-highlight,.item-inner-highlight{-webkit-transition:none;transition:none}}:host{--min-height:48px;--background:var(--ion-item-background, var(--ion-background-color, #fff));--background-activated:transparent;--background-focused:currentColor;--background-hover:currentColor;--background-activated-opacity:0;--background-focused-opacity:.12;--background-hover-opacity:.04;--border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-150, rgba(0, 0, 0, 0.13))));--color:var(--ion-item-color, var(--ion-text-color, #000));--transition:opacity 15ms linear, background-color 15ms linear;--padding-start:16px;--inner-padding-end:16px;--inner-border-width:0 0 1px 0;--highlight-height:1px;--highlight-color-focused:var(--ion-color-primary, #3880ff);--highlight-color-valid:var(--ion-color-success, #2dd36f);--highlight-color-invalid:var(--ion-color-danger, #eb445a);font-size:1rem;font-weight:normal;text-transform:none}:host(.item-fill-outline){--highlight-height:2px}:host(.item-fill-none.item-interactive.ion-focus) .item-highlight,:host(.item-fill-none.item-interactive.item-has-focus) .item-highlight,:host(.item-fill-none.item-interactive.ion-touched.ion-invalid) .item-highlight{-webkit-transform:scaleX(1);transform:scaleX(1);border-width:0 0 var(--full-highlight-height) 0;border-style:var(--border-style);border-color:var(--highlight-background)}:host(.item-fill-none.item-interactive.ion-focus) .item-native,:host(.item-fill-none.item-interactive.item-has-focus) .item-native,:host(.item-fill-none.item-interactive.ion-touched.ion-invalid) .item-native{border-bottom-color:var(--highlight-background)}:host(.item-fill-outline.item-interactive.ion-focus) .item-highlight,:host(.item-fill-outline.item-interactive.item-has-focus) .item-highlight{-webkit-transform:scaleX(1);transform:scaleX(1)}:host(.item-fill-outline.item-interactive.ion-focus) .item-highlight,:host(.item-fill-outline.item-interactive.item-has-focus) .item-highlight,:host(.item-fill-outline.item-interactive.ion-touched.ion-invalid) .item-highlight{border-width:var(--full-highlight-height);border-style:var(--border-style);border-color:var(--highlight-background)}:host(.item-fill-outline.item-interactive.ion-touched.ion-invalid) .item-native{border-color:var(--highlight-background)}:host(.item-fill-solid.item-interactive.ion-focus) .item-highlight,:host(.item-fill-solid.item-interactive.item-has-focus) .item-highlight,:host(.item-fill-solid.item-interactive.ion-touched.ion-invalid) .item-highlight{-webkit-transform:scaleX(1);transform:scaleX(1);border-width:0 0 var(--full-highlight-height) 0;border-style:var(--border-style);border-color:var(--highlight-background)}:host(.item-fill-solid.item-interactive.ion-focus) .item-native,:host(.item-fill-solid.item-interactive.item-has-focus) .item-native,:host(.item-fill-solid.item-interactive.ion-touched.ion-invalid) .item-native{border-bottom-color:var(--highlight-background)}:host(.ion-color.ion-activated) .item-native::after{background:transparent}:host(.item-has-focus) .item-native{caret-color:var(--highlight-background)}:host(.item-interactive){--border-width:0 0 1px 0;--inner-border-width:0;--show-full-highlight:1;--show-inset-highlight:0}:host(.item-lines-full){--border-width:0 0 1px 0;--show-full-highlight:1;--show-inset-highlight:0}:host(.item-lines-inset){--inner-border-width:0 0 1px 0;--show-full-highlight:0;--show-inset-highlight:1}:host(.item-lines-inset),:host(.item-lines-none){--border-width:0;--show-full-highlight:0}:host(.item-lines-full),:host(.item-lines-none){--inner-border-width:0;--show-inset-highlight:0}:host(.item-fill-outline) .item-highlight{--position-offset:calc(-1 * var(--border-width));top:var(--position-offset);width:calc(100% + 2 * var(--border-width));height:calc(100% + 2 * var(--border-width));-webkit-transition:none;transition:none}@supports (inset-inline-start: 0){:host(.item-fill-outline) .item-highlight{inset-inline-start:var(--position-offset)}}@supports not (inset-inline-start: 0){:host(.item-fill-outline) .item-highlight{left:var(--position-offset)}:host-context([dir=rtl]):host(.item-fill-outline) .item-highlight,:host-context([dir=rtl]).item-fill-outline .item-highlight{left:unset;right:unset;right:var(--position-offset)}@supports selector(:dir(rtl)){:host(.item-fill-outline:dir(rtl)) .item-highlight{left:unset;right:unset;right:var(--position-offset)}}}:host(.item-fill-outline.ion-focused) .item-native,:host(.item-fill-outline.item-has-focus) .item-native{border-color:transparent}:host(.item-multi-line) ::slotted([slot=start]),:host(.item-multi-line) ::slotted([slot=end]){margin-top:16px;margin-bottom:16px;-ms-flex-item-align:start;align-self:flex-start}::slotted([slot=start]){-webkit-margin-end:32px;margin-inline-end:32px}::slotted([slot=end]){-webkit-margin-start:32px;margin-inline-start:32px}:host(.item-fill-solid) ::slotted([slot=start]),:host(.item-fill-solid) ::slotted([slot=end]),:host(.item-fill-outline) ::slotted([slot=start]),:host(.item-fill-outline) ::slotted([slot=end]){-ms-flex-item-align:center;align-self:center}::slotted(ion-icon){color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.54);font-size:1.5em}:host(.ion-color:not(.item-fill-solid):not(.item-fill-outline)) ::slotted(ion-icon){color:var(--ion-color-contrast)}::slotted(ion-icon[slot]){margin-top:12px;margin-bottom:12px}::slotted(ion-icon[slot=start]){-webkit-margin-end:32px;margin-inline-end:32px}::slotted(ion-icon[slot=end]){-webkit-margin-start:16px;margin-inline-start:16px}:host(.item-fill-solid) ::slotted(ion-icon[slot=start]),:host(.item-fill-outline) ::slotted(ion-icon[slot=start]){-webkit-margin-end:8px;margin-inline-end:8px}::slotted(ion-toggle[slot=start]),::slotted(ion-toggle[slot=end]){margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}::slotted(ion-note){margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-ms-flex-item-align:start;align-self:flex-start;font-size:0.6875rem}::slotted(ion-note[slot]:not([slot=helper]):not([slot=error])){padding-left:0;padding-right:0;padding-top:18px;padding-bottom:10px}::slotted(ion-note[slot=start]){-webkit-padding-end:16px;padding-inline-end:16px}::slotted(ion-note[slot=end]){-webkit-padding-start:16px;padding-inline-start:16px}::slotted(ion-avatar){width:40px;height:40px}::slotted(ion-thumbnail){--size:56px}::slotted(ion-avatar),::slotted(ion-thumbnail){margin-top:8px;margin-bottom:8px}::slotted(ion-avatar[slot=start]),::slotted(ion-thumbnail[slot=start]){-webkit-margin-end:16px;margin-inline-end:16px}::slotted(ion-avatar[slot=end]),::slotted(ion-thumbnail[slot=end]){-webkit-margin-start:16px;margin-inline-start:16px}::slotted(ion-label){margin-left:0;margin-right:0;margin-top:10px;margin-bottom:10px}:host(.item-label-stacked) ::slotted([slot=end]),:host(.item-label-floating) ::slotted([slot=end]){margin-top:7px;margin-bottom:7px}:host(.item-label-fixed) ::slotted(ion-select.legacy-select),:host(.item-label-fixed) ::slotted(ion-datetime){--padding-start:8px}:host(.item-toggle) ::slotted(ion-label),:host(.item-radio) ::slotted(ion-label){-webkit-margin-start:0;margin-inline-start:0}::slotted(.button-small){--padding-top:2px;--padding-bottom:2px;--padding-start:.6em;--padding-end:.6em;min-height:25px;font-size:0.75rem}:host(.item-label-floating),:host(.item-label-stacked){--min-height:55px}:host(.item-label-stacked) ::slotted(ion-select.legacy-select),:host(.item-label-floating) ::slotted(ion-select.legacy-select){--padding-top:8px;--padding-bottom:8px;--padding-start:0}:host(.ion-focused:not(.ion-color)) ::slotted(.label-stacked),:host(.ion-focused:not(.ion-color)) ::slotted(.label-floating),:host(.item-has-focus:not(.ion-color)) ::slotted(.label-stacked),:host(.item-has-focus:not(.ion-color)) ::slotted(.label-floating){color:var(--ion-color-primary, #3880ff)}:host(.ion-color){--highlight-color-focused:var(--ion-color-contrast)}:host(.item-label-color){--highlight-color-focused:var(--ion-color-base)}:host(.item-fill-solid.ion-color),:host(.item-fill-outline.ion-color){--highlight-color-focused:var(--ion-color-base)}:host(.item-fill-solid){--background:var(--ion-color-step-50, #f2f2f2);--background-hover:var(--ion-color-step-100, #e6e6e6);--background-focused:var(--ion-color-step-150, #d9d9d9);--border-width:0 0 1px 0;--inner-border-width:0;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}:host-context([dir=rtl]):host(.item-fill-solid),:host-context([dir=rtl]).item-fill-solid{border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}@supports selector(:dir(rtl)){:host(.item-fill-solid:dir(rtl)){border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}}:host(.item-fill-solid) .item-native{--border-color:var(--ion-color-step-500, gray)}:host(.item-fill-solid.ion-focused) .item-native,:host(.item-fill-solid.item-has-focus) .item-native{--background:var(--background-focused)}:host(.item-fill-solid.item-shape-round){border-top-left-radius:16px;border-top-right-radius:16px;border-bottom-right-radius:0;border-bottom-left-radius:0}:host-context([dir=rtl]):host(.item-fill-solid.item-shape-round),:host-context([dir=rtl]).item-fill-solid.item-shape-round{border-top-left-radius:16px;border-top-right-radius:16px;border-bottom-right-radius:0;border-bottom-left-radius:0}@supports selector(:dir(rtl)){:host(.item-fill-solid.item-shape-round:dir(rtl)){border-top-left-radius:16px;border-top-right-radius:16px;border-bottom-right-radius:0;border-bottom-left-radius:0}}@media (any-hover: hover){:host(.item-fill-solid:hover) .item-native{--background:var(--background-hover);--border-color:var(--ion-color-step-750, #404040)}}:host(.item-fill-outline){--ripple-color:transparent;--background-focused:transparent;--background-hover:transparent;--border-color:var(--ion-color-step-500, gray);--border-width:1px;border:none;overflow:visible}:host(.item-fill-outline) .item-native{--native-padding-left:16px;border-radius:4px}:host(.item-fill-outline.item-shape-round) .item-native{--inner-padding-start:16px;border-radius:28px}:host(.item-fill-outline.item-shape-round) .item-bottom{-webkit-padding-start:32px;padding-inline-start:32px}:host(.item-fill-outline.item-label-floating.ion-focused) .item-native ::slotted(ion-input:not(:first-child)),:host(.item-fill-outline.item-label-floating.ion-focused) .item-native ::slotted(ion-textarea:not(:first-child)),:host(.item-fill-outline.item-label-floating.item-has-focus) .item-native ::slotted(ion-input:not(:first-child)),:host(.item-fill-outline.item-label-floating.item-has-focus) .item-native ::slotted(ion-textarea:not(:first-child)),:host(.item-fill-outline.item-label-floating.item-has-value) .item-native ::slotted(ion-input:not(:first-child)),:host(.item-fill-outline.item-label-floating.item-has-value) .item-native ::slotted(ion-textarea:not(:first-child)){-webkit-transform:translateY(-14px);transform:translateY(-14px)}@media (any-hover: hover){:host(.item-fill-outline:hover) .item-native{--border-color:var(--ion-color-step-750, #404040)}}.item-counter{letter-spacing:0.0333333333em}',Ux=ne(class extends ie{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.labelColorStyles={},this.itemStyles=new Map,this.inheritedAriaAttributes={},this.multipleInputs=!1,this.focusable=!0,this.color=void 0,this.button=!1,this.detail=void 0,this.detailIcon=xg,this.disabled=!1,this.download=void 0,this.fill=void 0,this.shape=void 0,this.href=void 0,this.rel=void 0,this.lines=void 0,this.counter=!1,this.routerAnimation=void 0,this.routerDirection="forward",this.target=void 0,this.type="button",this.counterFormatter=void 0,this.counterString=void 0}counterFormatterChanged(){this.updateCounterOutput(this.getFirstInput())}handleIonInput(t){this.counter&&t.target===this.getFirstInput()&&this.updateCounterOutput(t.target)}labelColorChanged(t){const{color:n}=this;n===void 0&&(this.labelColorStyles=t.detail)}itemStyle(t){t.stopPropagation();const n=t.target.tagName,i=t.detail,o={},r=this.itemStyles.get(n)||{};let s=!1;Object.keys(i).forEach(a=>{if(i[a]){const l=`item-${a}`;r[l]||(s=!0),o[l]=!0}}),!s&&Object.keys(o).length!==Object.keys(r).length&&(s=!0),s&&(this.itemStyles.set(n,o),En(this))}connectedCallback(){this.counter&&this.updateCounterOutput(this.getFirstInput()),this.hasStartEl()}componentWillLoad(){this.inheritedAriaAttributes=No(this.el,["aria-label"])}componentDidLoad(){const{el:t,counter:n,counterFormatter:i,fill:o,shape:r}=this;t.querySelector('[slot="helper"]')!==null&&pe('The "helper" slot has been deprecated in favor of using the "helperText" property on ion-input or ion-textarea.',t),t.querySelector('[slot="error"]')!==null&&pe('The "error" slot has been deprecated in favor of using the "errorText" property on ion-input or ion-textarea.',t),n===!0&&pe('The "counter" property has been deprecated in favor of using the "counter" property on ion-input or ion-textarea.',t),i!==void 0&&pe('The "counterFormatter" property has been deprecated in favor of using the "counterFormatter" property on ion-input or ion-textarea.',t),o!==void 0&&pe('The "fill" property has been deprecated in favor of using the "fill" property on ion-input or ion-textarea.',t),r!==void 0&&pe('The "shape" property has been deprecated in favor of using the "shape" property on ion-input or ion-textarea.',t),Ie(()=>{this.setMultipleInputs(),this.focusable=this.isFocusable()})}setMultipleInputs(){const t=this.el.querySelectorAll("ion-checkbox, ion-datetime, ion-select, ion-radio"),n=this.el.querySelectorAll("ion-input, ion-range, ion-searchbar, ion-segment, ion-textarea, ion-toggle"),i=this.el.querySelectorAll("ion-anchor, ion-button, a, button");this.multipleInputs=t.length+n.length>1||t.length+i.length>1||t.length>0&&this.isClickable()}hasCover(){return this.el.querySelectorAll("ion-checkbox, ion-datetime, ion-select, ion-radio").length===1&&!this.multipleInputs}isClickable(){return this.href!==void 0||this.button}canActivate(){return this.isClickable()||this.hasCover()}isFocusable(){const t=this.el.querySelector(".ion-focusable");return this.canActivate()||t!==null}getFirstInput(){return this.el.querySelectorAll("ion-input, ion-textarea")[0]}updateCounterOutput(t){var n,i;const{counter:o,counterFormatter:r,defaultCounterFormatter:s}=this;if(o&&!this.multipleInputs&&(t==null?void 0:t.maxlength)!==void 0){const a=(i=(n=t==null?void 0:t.value)===null||n===void 0?void 0:n.toString().length)!==null&&i!==void 0?i:0;if(r===void 0)this.counterString=s(a,t.maxlength);else try{this.counterString=r(a,t.maxlength)}catch(l){XT("Exception in provided `counterFormatter`.",l),this.counterString=s(a,t.maxlength)}}}defaultCounterFormatter(t,n){return`${t} / ${n}`}hasStartEl(){this.el.querySelector('[slot="start"]')!==null&&this.el.classList.add("item-has-start-slot")}getFirstInteractive(){return this.el.querySelectorAll("ion-toggle:not([disabled]), ion-checkbox:not([disabled]), ion-radio:not([disabled]), ion-select:not([disabled])")[0]}render(){const{counterString:t,detail:n,detailIcon:i,download:o,fill:r,labelColorStyles:s,lines:a,disabled:l,href:c,rel:d,shape:u,target:h,routerAnimation:f,routerDirection:p,inheritedAriaAttributes:m,multipleInputs:x}=this,b={},g=W(this),v=this.isClickable(),w=this.canActivate(),E=v?c===void 0?"button":"a":"div",S=E==="button"?{type:this.type}:{download:o,href:c,rel:d,target:h};let k={};const C=this.getFirstInteractive();(v||C!==void 0&&!x)&&(k={onClick:q=>{if(v&&Rx(c,q,p,f),C!==void 0&&!x){const G=q.composedPath()[0];q.isTrusted&&this.el.shadowRoot.contains(G)&&C.click()}}});const A=n!==void 0?n:g==="ios"&&v;this.itemStyles.forEach(q=>{Object.assign(b,q)});const D=l||b["item-interactive-disabled"]?"true":null,R=r||"none",V=De("ion-list",this.el)&&!De("ion-radio-group",this.el);return y(ee,{"aria-disabled":D,class:Object.assign(Object.assign(Object.assign({},b),s),Ne(this.color,{item:!0,[g]:!0,"item-lines-default":a===void 0,[`item-lines-${a}`]:a!==void 0,[`item-fill-${R}`]:!0,[`item-shape-${u}`]:u!==void 0,"item-has-interactive-control":C!==void 0,"item-disabled":l,"in-list":V,"item-multiple-inputs":this.multipleInputs,"ion-activatable":w,"ion-focusable":this.focusable,"item-rtl":document.dir==="rtl"})),role:V?"listitem":null},y(E,Object.assign({},S,m,{class:"item-native",part:"native",disabled:l},k),y("slot",{name:"start"}),y("div",{class:"item-inner"},y("div",{class:"input-wrapper"},y("slot",null)),y("slot",{name:"end"}),A&&y("ion-icon",{icon:i,lazy:!1,class:"item-detail-icon",part:"detail-icon","aria-hidden":"true","flip-rtl":i===xg}),y("div",{class:"item-inner-highlight"})),w&&g==="md"&&y("ion-ripple-effect",null),y("div",{class:"item-highlight"})),y("div",{class:"item-bottom"},y("slot",{name:"error"}),y("slot",{name:"helper"}),t&&y("ion-note",{class:"item-counter"},t)))}static get delegatesFocus(){return!0}get el(){return this}static get watchers(){return{counterFormatter:["counterFormatterChanged"]}}static get style(){return{ios:m5,md:g5}}},[49,"ion-item",{color:[513],button:[4],detail:[4],detailIcon:[1,"detail-icon"],disabled:[4],download:[1],fill:[1],shape:[1],href:[1],rel:[1],lines:[1],counter:[4],routerAnimation:[16],routerDirection:[1,"router-direction"],target:[1],type:[1],counterFormatter:[16],multipleInputs:[32],focusable:[32],counterString:[32]},[[0,"ionInput","handleIonInput"],[0,"ionColor","labelColorChanged"],[0,"ionStyle","itemStyle"]],{counterFormatter:["counterFormatterChanged"]}]);function Wx(){if(typeof customElements>"u")return;["ion-item","ion-icon","ion-note","ion-ripple-effect"].forEach(t=>{switch(t){case"ion-item":customElements.get(t)||customElements.define(t,Ux);break;case"ion-icon":customElements.get(t)||vs();break;case"ion-note":customElements.get(t)||Ul();break;case"ion-ripple-effect":customElements.get(t)||Fi();break}})}/*! * (C) Ionic http://ionicframework.com - MIT License */const b5=".item.sc-ion-label-ios-h,.item .sc-ion-label-ios-h{--color:initial;display:block;color:var(--color);font-family:var(--ion-font-family, inherit);font-size:inherit;text-overflow:ellipsis;-webkit-box-sizing:border-box;box-sizing:border-box}.item-legacy.sc-ion-label-ios-h,.item-legacy .sc-ion-label-ios-h{white-space:nowrap;overflow:hidden}.item.sc-ion-label-ios-h:not(.item-input):not(.item-legacy),.item:not(.item-input):not(.item-legacy) .sc-ion-label-ios-h{-ms-flex-positive:1;flex-grow:1}.ion-color.sc-ion-label-ios-h{color:var(--ion-color-base)}.ion-text-nowrap.sc-ion-label-ios-h{overflow:hidden}.item-interactive-disabled.sc-ion-label-ios-h:not(.item-multiple-inputs),.item-interactive-disabled:not(.item-multiple-inputs) .sc-ion-label-ios-h{cursor:default;opacity:0.3;pointer-events:none}.item-input.sc-ion-label-ios-h,.item-input .sc-ion-label-ios-h{-ms-flex:initial;flex:initial;max-width:200px;pointer-events:none}.item-textarea.sc-ion-label-ios-h,.item-textarea .sc-ion-label-ios-h{-ms-flex-item-align:baseline;align-self:baseline}.item-skeleton-text.sc-ion-label-ios-h,.item-skeleton-text .sc-ion-label-ios-h{overflow:hidden}.label-fixed.sc-ion-label-ios-h{-ms-flex:0 0 100px;flex:0 0 100px;width:100px;min-width:100px;max-width:200px}.label-stacked.sc-ion-label-ios-h,.label-floating.sc-ion-label-ios-h{margin-bottom:0;-ms-flex-item-align:stretch;align-self:stretch;width:auto;max-width:100%}.label-no-animate.label-floating.sc-ion-label-ios-h{-webkit-transition:none;transition:none}.sc-ion-label-ios-s h1,.sc-ion-label-ios-s h2,.sc-ion-label-ios-s h3,.sc-ion-label-ios-s h4,.sc-ion-label-ios-s h5,.sc-ion-label-ios-s h6{text-overflow:inherit;overflow:inherit}.ion-text-wrap.sc-ion-label-ios-h{font-size:0.875rem;line-height:1.5}.label-stacked.sc-ion-label-ios-h{margin-bottom:4px;font-size:0.875rem}.label-floating.sc-ion-label-ios-h{margin-bottom:0;-webkit-transform:translate(0, 29px);transform:translate(0, 29px);-webkit-transform-origin:left top;transform-origin:left top;-webkit-transition:-webkit-transform 150ms ease-in-out;transition:-webkit-transform 150ms ease-in-out;transition:transform 150ms ease-in-out;transition:transform 150ms ease-in-out, -webkit-transform 150ms ease-in-out}[dir=rtl].sc-ion-label-ios-h -no-combinator.label-floating.sc-ion-label-ios-h,[dir=rtl] .sc-ion-label-ios-h -no-combinator.label-floating.sc-ion-label-ios-h,[dir=rtl].label-floating.sc-ion-label-ios-h,[dir=rtl] .label-floating.sc-ion-label-ios-h{-webkit-transform-origin:right top;transform-origin:right top}@supports selector(:dir(rtl)){.label-floating.sc-ion-label-ios-h:dir(rtl){-webkit-transform-origin:right top;transform-origin:right top}}.item-textarea.label-floating.sc-ion-label-ios-h,.item-textarea .label-floating.sc-ion-label-ios-h{-webkit-transform:translate(0, 28px);transform:translate(0, 28px)}.item-has-focus.label-floating.sc-ion-label-ios-h,.item-has-focus .label-floating.sc-ion-label-ios-h,.item-has-placeholder.sc-ion-label-ios-h:not(.item-input).label-floating,.item-has-placeholder:not(.item-input) .label-floating.sc-ion-label-ios-h,.item-has-value.label-floating.sc-ion-label-ios-h,.item-has-value .label-floating.sc-ion-label-ios-h{-webkit-transform:scale(0.82);transform:scale(0.82)}.sc-ion-label-ios-s h1{margin-left:0;margin-right:0;margin-top:3px;margin-bottom:2px;font-size:1.375rem;font-weight:normal}.sc-ion-label-ios-s h2{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:1.0625rem;font-weight:normal}.sc-ion-label-ios-s h3,.sc-ion-label-ios-s h4,.sc-ion-label-ios-s h5,.sc-ion-label-ios-s h6{margin-left:0;margin-right:0;margin-top:0;margin-bottom:3px;font-size:0.875rem;font-weight:normal;line-height:normal}.sc-ion-label-ios-s p{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:0.875rem;line-height:normal;text-overflow:inherit;overflow:inherit}.sc-ion-label-ios-s>p{color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.4)}.sc-ion-label-ios-h.in-item-color.sc-ion-label-ios-s>p{color:inherit}.sc-ion-label-ios-s h2:last-child,.sc-ion-label-ios-s h3:last-child,.sc-ion-label-ios-s h4:last-child,.sc-ion-label-ios-s h5:last-child,.sc-ion-label-ios-s h6:last-child,.sc-ion-label-ios-s p:last-child{margin-bottom:0}",v5='.item.sc-ion-label-md-h,.item .sc-ion-label-md-h{--color:initial;display:block;color:var(--color);font-family:var(--ion-font-family, inherit);font-size:inherit;text-overflow:ellipsis;-webkit-box-sizing:border-box;box-sizing:border-box}.item-legacy.sc-ion-label-md-h,.item-legacy .sc-ion-label-md-h{white-space:nowrap;overflow:hidden}.item.sc-ion-label-md-h:not(.item-input):not(.item-legacy),.item:not(.item-input):not(.item-legacy) .sc-ion-label-md-h{-ms-flex-positive:1;flex-grow:1}.ion-color.sc-ion-label-md-h{color:var(--ion-color-base)}.ion-text-nowrap.sc-ion-label-md-h{overflow:hidden}.item-interactive-disabled.sc-ion-label-md-h:not(.item-multiple-inputs),.item-interactive-disabled:not(.item-multiple-inputs) .sc-ion-label-md-h{cursor:default;opacity:0.3;pointer-events:none}.item-input.sc-ion-label-md-h,.item-input .sc-ion-label-md-h{-ms-flex:initial;flex:initial;max-width:200px;pointer-events:none}.item-textarea.sc-ion-label-md-h,.item-textarea .sc-ion-label-md-h{-ms-flex-item-align:baseline;align-self:baseline}.item-skeleton-text.sc-ion-label-md-h,.item-skeleton-text .sc-ion-label-md-h{overflow:hidden}.label-fixed.sc-ion-label-md-h{-ms-flex:0 0 100px;flex:0 0 100px;width:100px;min-width:100px;max-width:200px}.label-stacked.sc-ion-label-md-h,.label-floating.sc-ion-label-md-h{margin-bottom:0;-ms-flex-item-align:stretch;align-self:stretch;width:auto;max-width:100%}.label-no-animate.label-floating.sc-ion-label-md-h{-webkit-transition:none;transition:none}.sc-ion-label-md-s h1,.sc-ion-label-md-s h2,.sc-ion-label-md-s h3,.sc-ion-label-md-s h4,.sc-ion-label-md-s h5,.sc-ion-label-md-s h6{text-overflow:inherit;overflow:inherit}.ion-text-wrap.sc-ion-label-md-h{line-height:1.5}.label-stacked.sc-ion-label-md-h,.label-floating.sc-ion-label-md-h{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-transform-origin:top left;transform-origin:top left}.label-stacked.label-rtl.sc-ion-label-md-h,.label-floating.label-rtl.sc-ion-label-md-h{-webkit-transform-origin:top right;transform-origin:top right}.label-stacked.sc-ion-label-md-h{-webkit-transform:translateY(50%) scale(0.75);transform:translateY(50%) scale(0.75);-webkit-transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.label-floating.sc-ion-label-md-h{-webkit-transform:translateY(96%);transform:translateY(96%);-webkit-transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), transform 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1)}.ion-focused.label-floating.sc-ion-label-md-h,.ion-focused .label-floating.sc-ion-label-md-h,.item-has-focus.label-floating.sc-ion-label-md-h,.item-has-focus .label-floating.sc-ion-label-md-h,.item-has-placeholder.sc-ion-label-md-h:not(.item-input).label-floating,.item-has-placeholder:not(.item-input) .label-floating.sc-ion-label-md-h,.item-has-value.label-floating.sc-ion-label-md-h,.item-has-value .label-floating.sc-ion-label-md-h{-webkit-transform:translateY(50%) scale(0.75);transform:translateY(50%) scale(0.75)}.item-fill-outline.ion-focused.label-floating.sc-ion-label-md-h,.item-fill-outline.ion-focused .label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-focus.label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-focus .label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-placeholder.sc-ion-label-md-h:not(.item-input).label-floating,.item-fill-outline.item-has-placeholder:not(.item-input) .label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-value.label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-value .label-floating.sc-ion-label-md-h{-webkit-transform:translateY(-6px) scale(0.75);transform:translateY(-6px) scale(0.75);position:relative;max-width:-webkit-min-content;max-width:-moz-min-content;max-width:min-content;background-color:var(--ion-item-background, var(--ion-background-color, #fff));overflow:visible;z-index:3}.item-fill-outline.ion-focused.label-floating.sc-ion-label-md-h::before,.item-fill-outline.ion-focused .label-floating.sc-ion-label-md-h::before,.item-fill-outline.ion-focused.label-floating.sc-ion-label-md-h::after,.item-fill-outline.ion-focused .label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-focus.label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-focus .label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-focus.label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-focus .label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-placeholder.sc-ion-label-md-h:not(.item-input).label-floating::before,.item-fill-outline.item-has-placeholder:not(.item-input) .label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-placeholder.sc-ion-label-md-h:not(.item-input).label-floating::after,.item-fill-outline.item-has-placeholder:not(.item-input) .label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-value.label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-value .label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-value.label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-value .label-floating.sc-ion-label-md-h::after{position:absolute;width:4px;height:100%;background-color:var(--ion-item-background, var(--ion-background-color, #fff));content:""}.item-fill-outline.ion-focused.label-floating.sc-ion-label-md-h::before,.item-fill-outline.ion-focused .label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-focus.label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-focus .label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-placeholder.sc-ion-label-md-h:not(.item-input).label-floating::before,.item-fill-outline.item-has-placeholder:not(.item-input) .label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-value.label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-value .label-floating.sc-ion-label-md-h::before{left:calc(-1 * 4px)}.item-fill-outline.ion-focused.label-floating.sc-ion-label-md-h::after,.item-fill-outline.ion-focused .label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-focus.label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-focus .label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-placeholder.sc-ion-label-md-h:not(.item-input).label-floating::after,.item-fill-outline.item-has-placeholder:not(.item-input) .label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-value.label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-value .label-floating.sc-ion-label-md-h::after{right:calc(-1 * 4px)}.item-fill-outline.ion-focused.item-has-start-slot.label-floating.sc-ion-label-md-h,.item-fill-outline.ion-focused.item-has-start-slot .label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-focus.item-has-start-slot.label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-focus.item-has-start-slot .label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-placeholder.sc-ion-label-md-h:not(.item-input).item-has-start-slot.label-floating,.item-fill-outline.item-has-placeholder:not(.item-input).item-has-start-slot .label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-value.item-has-start-slot.label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-value.item-has-start-slot .label-floating.sc-ion-label-md-h{-webkit-transform:translateX(-32px) translateY(-6px) scale(0.75);transform:translateX(-32px) translateY(-6px) scale(0.75)}.item-fill-outline.ion-focused.item-has-start-slot.label-floating.label-rtl.sc-ion-label-md-h,.item-fill-outline.ion-focused.item-has-start-slot .label-floating.label-rtl.sc-ion-label-md-h,.item-fill-outline.item-has-focus.item-has-start-slot.label-floating.label-rtl.sc-ion-label-md-h,.item-fill-outline.item-has-focus.item-has-start-slot .label-floating.label-rtl.sc-ion-label-md-h,.item-fill-outline.item-has-placeholder.sc-ion-label-md-h:not(.item-input).item-has-start-slot.label-floating.label-rtl,.item-fill-outline.item-has-placeholder:not(.item-input).item-has-start-slot .label-floating.label-rtl.sc-ion-label-md-h,.item-fill-outline.item-has-value.item-has-start-slot.label-floating.label-rtl.sc-ion-label-md-h,.item-fill-outline.item-has-value.item-has-start-slot .label-floating.label-rtl.sc-ion-label-md-h{-webkit-transform:translateX(calc(-1 * -32px)) translateY(-6px) scale(0.75);transform:translateX(calc(-1 * -32px)) translateY(-6px) scale(0.75)}.ion-focused.label-stacked.sc-ion-label-md-h:not(.ion-color),.ion-focused .label-stacked.sc-ion-label-md-h:not(.ion-color),.ion-focused.label-floating.sc-ion-label-md-h:not(.ion-color),.ion-focused .label-floating.sc-ion-label-md-h:not(.ion-color),.item-has-focus.label-stacked.sc-ion-label-md-h:not(.ion-color),.item-has-focus .label-stacked.sc-ion-label-md-h:not(.ion-color),.item-has-focus.label-floating.sc-ion-label-md-h:not(.ion-color),.item-has-focus .label-floating.sc-ion-label-md-h:not(.ion-color){color:var(--ion-color-primary, #3880ff)}.ion-focused.ion-color.label-stacked.sc-ion-label-md-h:not(.ion-color),.ion-focused.ion-color .label-stacked.sc-ion-label-md-h:not(.ion-color),.ion-focused.ion-color.label-floating.sc-ion-label-md-h:not(.ion-color),.ion-focused.ion-color .label-floating.sc-ion-label-md-h:not(.ion-color),.item-has-focus.ion-color.label-stacked.sc-ion-label-md-h:not(.ion-color),.item-has-focus.ion-color .label-stacked.sc-ion-label-md-h:not(.ion-color),.item-has-focus.ion-color.label-floating.sc-ion-label-md-h:not(.ion-color),.item-has-focus.ion-color .label-floating.sc-ion-label-md-h:not(.ion-color){color:var(--ion-color-contrast)}.item-fill-solid.ion-focused.ion-color.label-stacked.sc-ion-label-md-h:not(.ion-color),.item-fill-solid.ion-focused.ion-color .label-stacked.sc-ion-label-md-h:not(.ion-color),.item-fill-solid.ion-focused.ion-color.label-floating.sc-ion-label-md-h:not(.ion-color),.item-fill-solid.ion-focused.ion-color .label-floating.sc-ion-label-md-h:not(.ion-color),.item-fill-outline.ion-focused.ion-color.label-stacked.sc-ion-label-md-h:not(.ion-color),.item-fill-outline.ion-focused.ion-color .label-stacked.sc-ion-label-md-h:not(.ion-color),.item-fill-outline.ion-focused.ion-color.label-floating.sc-ion-label-md-h:not(.ion-color),.item-fill-outline.ion-focused.ion-color .label-floating.sc-ion-label-md-h:not(.ion-color),.item-fill-solid.item-has-focus.ion-color.label-stacked.sc-ion-label-md-h:not(.ion-color),.item-fill-solid.item-has-focus.ion-color .label-stacked.sc-ion-label-md-h:not(.ion-color),.item-fill-solid.item-has-focus.ion-color.label-floating.sc-ion-label-md-h:not(.ion-color),.item-fill-solid.item-has-focus.ion-color .label-floating.sc-ion-label-md-h:not(.ion-color),.item-fill-outline.item-has-focus.ion-color.label-stacked.sc-ion-label-md-h:not(.ion-color),.item-fill-outline.item-has-focus.ion-color .label-stacked.sc-ion-label-md-h:not(.ion-color),.item-fill-outline.item-has-focus.ion-color.label-floating.sc-ion-label-md-h:not(.ion-color),.item-fill-outline.item-has-focus.ion-color .label-floating.sc-ion-label-md-h:not(.ion-color){color:var(--ion-color-base)}.ion-invalid.ion-touched.label-stacked.sc-ion-label-md-h:not(.ion-color),.ion-invalid.ion-touched .label-stacked.sc-ion-label-md-h:not(.ion-color),.ion-invalid.ion-touched.label-floating.sc-ion-label-md-h:not(.ion-color),.ion-invalid.ion-touched .label-floating.sc-ion-label-md-h:not(.ion-color){color:var(--highlight-color-invalid)}.sc-ion-label-md-s h1{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:1.5rem;font-weight:normal}.sc-ion-label-md-s h2{margin-left:0;margin-right:0;margin-top:2px;margin-bottom:2px;font-size:1rem;font-weight:normal}.sc-ion-label-md-s h3,.sc-ion-label-md-s h4,.sc-ion-label-md-s h5,.sc-ion-label-md-s h6{margin-left:0;margin-right:0;margin-top:2px;margin-bottom:2px;font-size:0.875rem;font-weight:normal;line-height:normal}.sc-ion-label-md-s p{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:0.875rem;line-height:1.25rem;text-overflow:inherit;overflow:inherit}.sc-ion-label-md-s>p{color:var(--ion-color-step-600, #666666)}.sc-ion-label-md-h.in-item-color.sc-ion-label-md-s>p{color:inherit}',y5=ne(class extends ie{constructor(){super(),this.__registerHost(),this.ionColor=B(this,"ionColor",7),this.ionStyle=B(this,"ionStyle",7),this.inRange=!1,this.color=void 0,this.position=void 0,this.noAnimate=!1}componentWillLoad(){this.inRange=!!this.el.closest("ion-range"),this.noAnimate=this.position==="floating",this.emitStyle(),this.emitColor()}componentDidLoad(){this.noAnimate&&setTimeout(()=>{this.noAnimate=!1},1e3)}colorChanged(){this.emitColor()}positionChanged(){this.emitStyle()}emitColor(){const{color:t}=this;this.ionColor.emit({"item-label-color":t!==void 0,[`ion-color-${t}`]:t!==void 0})}emitStyle(){const{inRange:t,position:n}=this;t||this.ionStyle.emit({label:!0,[`label-${n}`]:n!==void 0})}render(){const t=this.position,n=W(this);return y(ee,{class:Ne(this.color,{[n]:!0,"in-item-color":De("ion-item.ion-color",this.el),[`label-${t}`]:t!==void 0,"label-no-animate":this.noAnimate,"label-rtl":document.dir==="rtl"})})}get el(){return this}static get watchers(){return{color:["colorChanged"],position:["positionChanged"]}}static get style(){return{ios:b5,md:v5}}},[34,"ion-label",{color:[513],position:[1],noAnimate:[32]},void 0,{color:["colorChanged"],position:["positionChanged"]}]);function Pf(){if(typeof customElements>"u")return;["ion-label"].forEach(t=>{switch(t){case"ion-label":customElements.get(t)||customElements.define(t,y5);break}})}/*! * (C) Ionic http://ionicframework.com - MIT License */const To=()=>{if(Ae!==void 0)return Ae.Capacitor};/*! * (C) Ionic http://ionicframework.com - MIT License */var zu;(function(e){e.Heavy="HEAVY",e.Medium="MEDIUM",e.Light="LIGHT"})(zu||(zu={}));var Cg;(function(e){e.Success="SUCCESS",e.Warning="WARNING",e.Error="ERROR"})(Cg||(Cg={}));const Wl={getEngine(){const e=window.TapticEngine;if(e)return e;const t=To();if(t!=null&&t.isPluginAvailable("Haptics"))return t.Plugins.Haptics},available(){if(!this.getEngine())return!1;const t=To();return(t==null?void 0:t.getPlatform())==="web"?typeof navigator<"u"&&navigator.vibrate!==void 0:!0},isCordova(){return window.TapticEngine!==void 0},isCapacitor(){return To()!==void 0},impact(e){const t=this.getEngine();if(!t)return;const n=this.isCapacitor()?e.style:e.style.toLowerCase();t.impact({style:n})},notification(e){const t=this.getEngine();if(!t)return;const n=this.isCapacitor()?e.type:e.type.toLowerCase();t.notification({type:n})},selection(){const e=this.isCapacitor()?zu.Light:"light";this.impact({style:e})},selectionStart(){const e=this.getEngine();e&&(this.isCapacitor()?e.selectionStart():e.gestureSelectionStart())},selectionChanged(){const e=this.getEngine();e&&(this.isCapacitor()?e.selectionChanged():e.gestureSelectionChanged())},selectionEnd(){const e=this.getEngine();e&&(this.isCapacitor()?e.selectionEnd():e.gestureSelectionEnd())}},Af=()=>Wl.available(),x5=()=>{Af()&&Wl.selectionStart()},w5=()=>{Af()&&Wl.selectionChanged()},k5=()=>{Af()&&Wl.selectionEnd()};/*! * (C) Ionic http://ionicframework.com - MIT License */const ys=()=>{let e;return{lock:async()=>{const n=e;let i;return e=new Promise(o=>i=o),n!==void 0&&await n,i}}};/*! * (C) Ionic http://ionicframework.com - MIT License */const C5=e=>{if(!e)return{arrowWidth:0,arrowHeight:0};const{width:t,height:n}=e.getBoundingClientRect();return{arrowWidth:t,arrowHeight:n}},Xx=(e,t,n)=>{const i=t.getBoundingClientRect(),o=i.height;let r=i.width;return e==="cover"&&n&&(r=n.getBoundingClientRect().width),{contentWidth:r,contentHeight:o}},S5=(e,t,n,i)=>{let o=[];const s=ft(i).querySelector(".popover-content");switch(t){case"hover":o=[{eventName:"mouseenter",callback:a=>{document.elementFromPoint(a.clientX,a.clientY)!==e&&n.dismiss(void 0,void 0,!1)}}];break;case"context-menu":case"click":default:o=[{eventName:"click",callback:a=>{if(a.target.closest("[data-ion-popover-trigger]")===e){a.stopPropagation();return}n.dismiss(void 0,void 0,!1)}}];break}return o.forEach(({eventName:a,callback:l})=>s.addEventListener(a,l)),()=>{o.forEach(({eventName:a,callback:l})=>s.removeEventListener(a,l))}},E5=(e,t,n)=>{let i=[];switch(t){case"hover":let o;i=[{eventName:"mouseenter",callback:async r=>{r.stopPropagation(),o&&clearTimeout(o),o=setTimeout(()=>{Ie(()=>{n.presentFromTrigger(r),o=void 0})},100)}},{eventName:"mouseleave",callback:r=>{o&&clearTimeout(o);const s=r.relatedTarget;s&&s.closest("ion-popover")!==n&&n.dismiss(void 0,void 0,!1)}},{eventName:"click",callback:r=>r.stopPropagation()},{eventName:"ionPopoverActivateTrigger",callback:r=>n.presentFromTrigger(r,!0)}];break;case"context-menu":i=[{eventName:"contextmenu",callback:r=>{r.preventDefault(),n.presentFromTrigger(r)}},{eventName:"click",callback:r=>r.stopPropagation()},{eventName:"ionPopoverActivateTrigger",callback:r=>n.presentFromTrigger(r,!0)}];break;case"click":default:i=[{eventName:"click",callback:r=>n.presentFromTrigger(r)},{eventName:"ionPopoverActivateTrigger",callback:r=>n.presentFromTrigger(r,!0)}];break}return i.forEach(({eventName:o,callback:r})=>e.addEventListener(o,r)),e.setAttribute("data-ion-popover-trigger","true"),()=>{i.forEach(({eventName:o,callback:r})=>e.removeEventListener(o,r)),e.removeAttribute("data-ion-popover-trigger")}},qx=(e,t)=>!t||t.tagName!=="ION-ITEM"?-1:e.findIndex(n=>n===t),T5=(e,t)=>{const n=qx(e,t);return e[n+1]},P5=(e,t)=>{const n=qx(e,t);return e[n-1]},Gs=e=>{const n=ft(e).querySelector("button");n&&Ie(()=>n.focus())},A5=e=>e.hasAttribute("data-ion-popover-trigger"),L5=e=>{const t=async n=>{var i;const o=document.activeElement;let r=[];const s=(i=n.target)===null||i===void 0?void 0:i.tagName;if(!(s!=="ION-POPOVER"&&s!=="ION-ITEM")){try{r=Array.from(e.querySelectorAll("ion-item:not(ion-popover ion-popover *):not([disabled])"))}catch{}switch(n.key){case"ArrowLeft":await e.getParentPopover()&&e.dismiss(void 0,void 0,!1);break;case"ArrowDown":n.preventDefault();const l=T5(r,o);l!==void 0&&Gs(l);break;case"ArrowUp":n.preventDefault();const c=P5(r,o);c!==void 0&&Gs(c);break;case"Home":n.preventDefault();const d=r[0];d!==void 0&&Gs(d);break;case"End":n.preventDefault();const u=r[r.length-1];u!==void 0&&Gs(u);break;case"ArrowRight":case" ":case"Enter":if(o&&A5(o)){const h=new CustomEvent("ionPopoverActivateTrigger");o.dispatchEvent(h)}break}}};return e.addEventListener("keydown",t),()=>e.removeEventListener("keydown",t)},Yx=(e,t,n,i,o,r,s,a,l,c,d)=>{var u;let h={top:0,left:0,width:0,height:0};switch(r){case"event":if(!d)return l;const E=d;h={top:E.clientY,left:E.clientX,width:1,height:1};break;case"trigger":default:const S=d,k=c||((u=S==null?void 0:S.detail)===null||u===void 0?void 0:u.ionShadowTarget)||(S==null?void 0:S.target);if(!k)return l;const C=k.getBoundingClientRect();h={top:C.top,left:C.left,width:C.width,height:C.height};break}const f=R5(s,h,t,n,i,o,e),p=D5(a,s,h,t,n),m=f.top+p.top,x=f.left+p.left,{arrowTop:b,arrowLeft:g}=O5(s,i,o,m,x,t,n,e),{originX:v,originY:w}=I5(s,a,e);return{top:m,left:x,referenceCoordinates:h,arrowTop:b,arrowLeft:g,originX:v,originY:w}},I5=(e,t,n)=>{switch(e){case"top":return{originX:Sg(t),originY:"bottom"};case"bottom":return{originX:Sg(t),originY:"top"};case"left":return{originX:"right",originY:Qs(t)};case"right":return{originX:"left",originY:Qs(t)};case"start":return{originX:n?"left":"right",originY:Qs(t)};case"end":return{originX:n?"right":"left",originY:Qs(t)}}},Sg=e=>{switch(e){case"start":return"left";case"center":return"center";case"end":return"right"}},Qs=e=>{switch(e){case"start":return"top";case"center":return"center";case"end":return"bottom"}},O5=(e,t,n,i,o,r,s,a)=>{const l={arrowTop:i+s/2-t/2,arrowLeft:o+r-t/2},c={arrowTop:i+s/2-t/2,arrowLeft:o-t*1.5};switch(e){case"top":return{arrowTop:i+s,arrowLeft:o+r/2-t/2};case"bottom":return{arrowTop:i-n,arrowLeft:o+r/2-t/2};case"left":return l;case"right":return c;case"start":return a?c:l;case"end":return a?l:c;default:return{arrowTop:0,arrowLeft:0}}},R5=(e,t,n,i,o,r,s)=>{const a={top:t.top,left:t.left-n-o},l={top:t.top,left:t.left+t.width+o};switch(e){case"top":return{top:t.top-i-r,left:t.left};case"right":return l;case"bottom":return{top:t.top+t.height+r,left:t.left};case"left":return a;case"start":return s?l:a;case"end":return s?a:l}},D5=(e,t,n,i,o)=>{switch(e){case"center":return _5(t,n,i,o);case"end":return $5(t,n,i,o);case"start":default:return{top:0,left:0}}},$5=(e,t,n,i)=>{switch(e){case"start":case"end":case"left":case"right":return{top:-(i-t.height),left:0};case"top":case"bottom":default:return{top:0,left:-(n-t.width)}}},_5=(e,t,n,i)=>{switch(e){case"start":case"end":case"left":case"right":return{top:-(i/2-t.height/2),left:0};case"top":case"bottom":default:return{top:0,left:-(n/2-t.width/2)}}},Kx=(e,t,n,i,o,r,s,a,l,c,d,u,h=0,f=0,p=0)=>{let m=h;const x=f;let b=n,g=t,v,w=c,E=d,S=!1,k=!1;const C=u?u.top+u.height:r/2-a/2,A=u?u.height:0;let D=!1;return bo&&(k=!0,b=o-s-i,w="right"),C+A+a>r&&(e==="top"||e==="bottom")&&(C-a>0?(g=Math.max(12,C-a-A-(p-1)),m=g+a,E="bottom",D=!0):v=i),{top:g,left:b,bottom:v,originX:w,originY:E,checkSafeAreaLeft:S,checkSafeAreaRight:k,arrowTop:m,arrowLeft:x,addPopoverBottomClass:D}},z5=(e,t=!1,n,i)=>!(!n&&!i||e!=="top"&&e!=="bottom"&&t),M5=5,B5=(e,t)=>{var n;const{event:i,size:o,trigger:r,reference:s,side:a,align:l}=t,c=e.ownerDocument,d=c.dir==="rtl",u=c.defaultView.innerWidth,h=c.defaultView.innerHeight,f=ft(e),p=f.querySelector(".popover-content"),m=f.querySelector(".popover-arrow"),x=r||((n=i==null?void 0:i.detail)===null||n===void 0?void 0:n.ionShadowTarget)||(i==null?void 0:i.target),{contentWidth:b,contentHeight:g}=Xx(o,p,x),{arrowWidth:v,arrowHeight:w}=C5(m),E={top:h/2-g/2,left:u/2-b/2,originX:d?"right":"left",originY:"top"},S=Yx(d,b,g,v,w,s,a,l,E,r,i),k=o==="cover"?0:M5,C=o==="cover"?0:25,{originX:A,originY:D,top:R,left:V,bottom:q,checkSafeAreaLeft:Y,checkSafeAreaRight:G,arrowTop:Z,arrowLeft:Q,addPopoverBottomClass:I}=Kx(a,S.top,S.left,k,u,h,b,g,C,S.originX,S.originY,S.referenceCoordinates,S.arrowTop,S.arrowLeft,w),$=U(),O=U(),_=U();return O.addElement(f.querySelector("ion-backdrop")).fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),_.addElement(f.querySelector(".popover-arrow")).addElement(f.querySelector(".popover-content")).fromTo("opacity",.01,1),$.easing("ease").duration(100).beforeAddWrite(()=>{o==="cover"&&e.style.setProperty("--width",`${b}px`),I&&e.classList.add("popover-bottom"),q!==void 0&&p.style.setProperty("bottom",`${q}px`);const F=" + var(--ion-safe-area-left, 0)",te=" - var(--ion-safe-area-right, 0)";let J=`${V}px`;if(Y&&(J=`${V}px${F}`),G&&(J=`${V}px${te}`),p.style.setProperty("top",`calc(${R}px + var(--offset-y, 0))`),p.style.setProperty("left",`calc(${J} + var(--offset-x, 0))`),p.style.setProperty("transform-origin",`${D} ${A}`),m!==null){const xe=S.top!==R||S.left!==V;z5(a,xe,i,r)?(m.style.setProperty("top",`calc(${Z}px + var(--offset-y, 0))`),m.style.setProperty("left",`calc(${Q}px + var(--offset-x, 0))`)):m.style.setProperty("display","none")}}).addAnimation([O,_])},j5=e=>{const t=ft(e),n=t.querySelector(".popover-content"),i=t.querySelector(".popover-arrow"),o=U(),r=U(),s=U();return r.addElement(t.querySelector("ion-backdrop")).fromTo("opacity","var(--backdrop-opacity)",0),s.addElement(t.querySelector(".popover-arrow")).addElement(t.querySelector(".popover-content")).fromTo("opacity",.99,0),o.easing("ease").afterAddWrite(()=>{e.style.removeProperty("--width"),e.classList.remove("popover-bottom"),n.style.removeProperty("top"),n.style.removeProperty("left"),n.style.removeProperty("bottom"),n.style.removeProperty("transform-origin"),i&&(i.style.removeProperty("top"),i.style.removeProperty("left"),i.style.removeProperty("display"))}).duration(300).addAnimation([r,s])},V5=12,F5=(e,t)=>{var n;const{event:i,size:o,trigger:r,reference:s,side:a,align:l}=t,c=e.ownerDocument,d=c.dir==="rtl",u=c.defaultView.innerWidth,h=c.defaultView.innerHeight,f=ft(e),p=f.querySelector(".popover-content"),m=r||((n=i==null?void 0:i.detail)===null||n===void 0?void 0:n.ionShadowTarget)||(i==null?void 0:i.target),{contentWidth:x,contentHeight:b}=Xx(o,p,m),g={top:h/2-b/2,left:u/2-x/2,originX:d?"right":"left",originY:"top"},v=Yx(d,x,b,0,0,s,a,l,g,r,i),w=o==="cover"?0:V5,{originX:E,originY:S,top:k,left:C,bottom:A}=Kx(a,v.top,v.left,w,u,h,x,b,0,v.originX,v.originY,v.referenceCoordinates),D=U(),R=U(),V=U(),q=U(),Y=U();return R.addElement(f.querySelector("ion-backdrop")).fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),V.addElement(f.querySelector(".popover-wrapper")).duration(150).fromTo("opacity",.01,1),q.addElement(p).beforeStyles({top:`calc(${k}px + var(--offset-y, 0px))`,left:`calc(${C}px + var(--offset-x, 0px))`,"transform-origin":`${S} ${E}`}).beforeAddWrite(()=>{A!==void 0&&p.style.setProperty("bottom",`${A}px`)}).fromTo("transform","scale(0.8)","scale(1)"),Y.addElement(f.querySelector(".popover-viewport")).fromTo("opacity",.01,1),D.easing("cubic-bezier(0.36,0.66,0.04,1)").duration(300).beforeAddWrite(()=>{o==="cover"&&e.style.setProperty("--width",`${x}px`),S==="bottom"&&e.classList.add("popover-bottom")}).addAnimation([R,V,q,Y])},H5=e=>{const t=ft(e),n=t.querySelector(".popover-content"),i=U(),o=U(),r=U();return o.addElement(t.querySelector("ion-backdrop")).fromTo("opacity","var(--backdrop-opacity)",0),r.addElement(t.querySelector(".popover-wrapper")).fromTo("opacity",.99,0),i.easing("ease").afterAddWrite(()=>{e.style.removeProperty("--width"),e.classList.remove("popover-bottom"),n.style.removeProperty("top"),n.style.removeProperty("left"),n.style.removeProperty("bottom"),n.style.removeProperty("transform-origin")}).duration(150).addAnimation([o,r])},N5=':host{--background:var(--ion-background-color, #fff);--min-width:0;--min-height:0;--max-width:auto;--height:auto;--offset-x:0px;--offset-y:0px;left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:fixed;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;outline:none;color:var(--ion-text-color, #000);z-index:1001}:host(.popover-nested){pointer-events:none}:host(.popover-nested) .popover-wrapper{pointer-events:auto}:host(.overlay-hidden){display:none}.popover-wrapper{z-index:10}.popover-content{display:-ms-flexbox;display:flex;position:absolute;-ms-flex-direction:column;flex-direction:column;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);background:var(--background);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);overflow:auto;z-index:10}.popover-viewport{--ion-safe-area-top:0px;--ion-safe-area-right:0px;--ion-safe-area-bottom:0px;--ion-safe-area-left:0px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;overflow:hidden}:host(.popover-nested.popover-side-left){--offset-x:5px}:host(.popover-nested.popover-side-right){--offset-x:-5px}:host(.popover-nested.popover-side-start){--offset-x:5px}:host-context([dir=rtl]):host(.popover-nested.popover-side-start),:host-context([dir=rtl]).popover-nested.popover-side-start{--offset-x:-5px}@supports selector(:dir(rtl)){:host(.popover-nested.popover-side-start:dir(rtl)){--offset-x:-5px}}:host(.popover-nested.popover-side-end){--offset-x:-5px}:host-context([dir=rtl]):host(.popover-nested.popover-side-end),:host-context([dir=rtl]).popover-nested.popover-side-end{--offset-x:5px}@supports selector(:dir(rtl)){:host(.popover-nested.popover-side-end:dir(rtl)){--offset-x:5px}}:host{--width:200px;--max-height:90%;--box-shadow:none;--backdrop-opacity:var(--ion-backdrop-opacity, 0.08)}:host(.popover-desktop){--box-shadow:0px 4px 16px 0px rgba(0, 0, 0, 0.12)}.popover-content{border-radius:10px}:host(.popover-desktop) .popover-content{border:0.5px solid var(--ion-color-step-100, #e6e6e6)}.popover-arrow{display:block;position:absolute;width:20px;height:10px;overflow:hidden}.popover-arrow::after{top:3px;border-radius:3px;position:absolute;width:14px;height:14px;-webkit-transform:rotate(45deg);transform:rotate(45deg);background:var(--background);content:"";z-index:10}@supports (inset-inline-start: 0){.popover-arrow::after{inset-inline-start:3px}}@supports not (inset-inline-start: 0){.popover-arrow::after{left:3px}:host-context([dir=rtl]) .popover-arrow::after{left:unset;right:unset;right:3px}[dir=rtl] .popover-arrow::after{left:unset;right:unset;right:3px}@supports selector(:dir(rtl)){.popover-arrow::after:dir(rtl){left:unset;right:unset;right:3px}}}:host(.popover-bottom) .popover-arrow{top:auto;bottom:-10px}:host(.popover-bottom) .popover-arrow::after{top:-6px}:host(.popover-side-left) .popover-arrow{-webkit-transform:rotate(90deg);transform:rotate(90deg)}:host(.popover-side-right) .popover-arrow{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}:host(.popover-side-top) .popover-arrow{-webkit-transform:rotate(180deg);transform:rotate(180deg)}:host(.popover-side-start) .popover-arrow{-webkit-transform:rotate(90deg);transform:rotate(90deg)}:host-context([dir=rtl]):host(.popover-side-start) .popover-arrow,:host-context([dir=rtl]).popover-side-start .popover-arrow{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}@supports selector(:dir(rtl)){:host(.popover-side-start:dir(rtl)) .popover-arrow{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}}:host(.popover-side-end) .popover-arrow{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}:host-context([dir=rtl]):host(.popover-side-end) .popover-arrow,:host-context([dir=rtl]).popover-side-end .popover-arrow{-webkit-transform:rotate(90deg);transform:rotate(90deg)}@supports selector(:dir(rtl)){:host(.popover-side-end:dir(rtl)) .popover-arrow{-webkit-transform:rotate(90deg);transform:rotate(90deg)}}.popover-arrow,.popover-content{opacity:0}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){:host(.popover-translucent) .popover-content,:host(.popover-translucent) .popover-arrow::after{background:rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8);-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px)}}',U5=":host{--background:var(--ion-background-color, #fff);--min-width:0;--min-height:0;--max-width:auto;--height:auto;--offset-x:0px;--offset-y:0px;left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:fixed;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;outline:none;color:var(--ion-text-color, #000);z-index:1001}:host(.popover-nested){pointer-events:none}:host(.popover-nested) .popover-wrapper{pointer-events:auto}:host(.overlay-hidden){display:none}.popover-wrapper{z-index:10}.popover-content{display:-ms-flexbox;display:flex;position:absolute;-ms-flex-direction:column;flex-direction:column;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);background:var(--background);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);overflow:auto;z-index:10}.popover-viewport{--ion-safe-area-top:0px;--ion-safe-area-right:0px;--ion-safe-area-bottom:0px;--ion-safe-area-left:0px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;overflow:hidden}:host(.popover-nested.popover-side-left){--offset-x:5px}:host(.popover-nested.popover-side-right){--offset-x:-5px}:host(.popover-nested.popover-side-start){--offset-x:5px}:host-context([dir=rtl]):host(.popover-nested.popover-side-start),:host-context([dir=rtl]).popover-nested.popover-side-start{--offset-x:-5px}@supports selector(:dir(rtl)){:host(.popover-nested.popover-side-start:dir(rtl)){--offset-x:-5px}}:host(.popover-nested.popover-side-end){--offset-x:-5px}:host-context([dir=rtl]):host(.popover-nested.popover-side-end),:host-context([dir=rtl]).popover-nested.popover-side-end{--offset-x:5px}@supports selector(:dir(rtl)){:host(.popover-nested.popover-side-end:dir(rtl)){--offset-x:5px}}:host{--width:250px;--max-height:90%;--box-shadow:0 5px 5px -3px rgba(0, 0, 0, 0.2), 0 8px 10px 1px rgba(0, 0, 0, 0.14), 0 3px 14px 2px rgba(0, 0, 0, 0.12);--backdrop-opacity:var(--ion-backdrop-opacity, 0.32)}.popover-content{border-radius:4px;-webkit-transform-origin:left top;transform-origin:left top}:host-context([dir=rtl]) .popover-content{-webkit-transform-origin:right top;transform-origin:right top}[dir=rtl] .popover-content{-webkit-transform-origin:right top;transform-origin:right top}@supports selector(:dir(rtl)){.popover-content:dir(rtl){-webkit-transform-origin:right top;transform-origin:right top}}.popover-viewport{-webkit-transition-delay:100ms;transition-delay:100ms}.popover-wrapper{opacity:0}",W5=ne(class extends ie{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.didPresent=B(this,"ionPopoverDidPresent",7),this.willPresent=B(this,"ionPopoverWillPresent",7),this.willDismiss=B(this,"ionPopoverWillDismiss",7),this.didDismiss=B(this,"ionPopoverDidDismiss",7),this.didPresentShorthand=B(this,"didPresent",7),this.willPresentShorthand=B(this,"willPresent",7),this.willDismissShorthand=B(this,"willDismiss",7),this.didDismissShorthand=B(this,"didDismiss",7),this.ionMount=B(this,"ionMount",7),this.parentPopover=null,this.coreDelegate=Sf(),this.lockController=ys(),this.inline=!1,this.focusDescendantOnPresent=!1,this.onBackdropTap=()=>{this.dismiss(void 0,zi)},this.onLifecycle=t=>{const n=this.usersElement,i=X5[t.type];if(n&&i){const o=new CustomEvent(i,{bubbles:!1,cancelable:!1,detail:t.detail});n.dispatchEvent(o)}},this.configureTriggerInteraction=()=>{const{trigger:t,triggerAction:n,el:i,destroyTriggerInteraction:o}=this;if(o&&o(),t===void 0)return;const r=this.triggerEl=t!==void 0?document.getElementById(t):null;if(!r){pe(`A trigger element with the ID "${t}" was not found in the DOM. The trigger element must be in the DOM when the "trigger" property is set on ion-popover.`,this.el);return}this.destroyTriggerInteraction=E5(r,n,i)},this.configureKeyboardInteraction=()=>{const{destroyKeyboardInteraction:t,el:n}=this;t&&t(),this.destroyKeyboardInteraction=L5(n)},this.configureDismissInteraction=()=>{const{destroyDismissInteraction:t,parentPopover:n,triggerAction:i,triggerEl:o,el:r}=this;!n||!o||(t&&t(),this.destroyDismissInteraction=S5(o,i,r,n))},this.presented=!1,this.hasController=!1,this.delegate=void 0,this.overlayIndex=void 0,this.enterAnimation=void 0,this.leaveAnimation=void 0,this.component=void 0,this.componentProps=void 0,this.keyboardClose=!0,this.cssClass=void 0,this.backdropDismiss=!0,this.event=void 0,this.showBackdrop=!0,this.translucent=!1,this.animated=!0,this.htmlAttributes=void 0,this.triggerAction="click",this.trigger=void 0,this.size="auto",this.dismissOnSelect=!1,this.reference="trigger",this.side="bottom",this.alignment=void 0,this.arrow=!0,this.isOpen=!1,this.keyboardEvents=!1,this.keepContentsMounted=!1}onTriggerChange(){this.configureTriggerInteraction()}onIsOpenChange(t,n){t===!0&&n===!1?this.present():t===!1&&n===!0&&this.dismiss()}connectedCallback(){const{configureTriggerInteraction:t,el:n}=this;jl(n),t()}disconnectedCallback(){const{destroyTriggerInteraction:t}=this;t&&t()}componentWillLoad(){const{el:t}=this,n=Vl(t);this.parentPopover=t.closest(`ion-popover:not(#${n})`),this.alignment===void 0&&(this.alignment=W(this)==="ios"?"center":"start")}componentDidLoad(){const{parentPopover:t,isOpen:n}=this;n===!0&&Ie(()=>this.present()),t&&vf(t,"ionPopoverWillDismiss",()=>{this.dismiss(void 0,void 0,!1)}),this.configureTriggerInteraction()}async presentFromTrigger(t,n=!1){this.focusDescendantOnPresent=n,await this.present(t),this.focusDescendantOnPresent=!1}getDelegate(t=!1){if(this.workingDelegate&&!t)return{delegate:this.workingDelegate,inline:this.inline};const n=this.el.parentNode,i=this.inline=n!==null&&!this.hasController,o=this.workingDelegate=i?this.delegate||this.coreDelegate:this.delegate;return{inline:i,delegate:o}}async present(t){const n=await this.lockController.lock();if(this.presented){n();return}const{el:i}=this,{inline:o,delegate:r}=this.getDelegate(!0);this.ionMount.emit(),this.usersElement=await Bl(r,i,this.component,["popover-viewport"],this.componentProps,o),this.keyboardEvents||this.configureKeyboardInteraction(),this.configureDismissInteraction(),Jr(i)?await ts(this.usersElement):this.keepContentsMounted||await kx(),await Fl(this,"popoverEnter",B5,F5,{event:t||this.event,size:this.size,trigger:this.triggerEl,reference:this.reference,side:this.side,align:this.alignment}),this.focusDescendantOnPresent&&_u(this.el,this.el),n()}async dismiss(t,n,i=!0){const o=await this.lockController.lock(),{destroyKeyboardInteraction:r,destroyDismissInteraction:s}=this;i&&this.parentPopover&&this.parentPopover.dismiss(t,n,i);const a=await Hl(this,t,n,"popoverLeave",j5,H5,this.event);if(a){r&&(r(),this.destroyKeyboardInteraction=void 0),s&&(s(),this.destroyDismissInteraction=void 0);const{delegate:l}=this.getDelegate();await Cf(l,this.usersElement)}return o(),a}async getParentPopover(){return this.parentPopover}onDidDismiss(){return ti(this.el,"ionPopoverDidDismiss")}onWillDismiss(){return ti(this.el,"ionPopoverWillDismiss")}render(){const t=W(this),{onLifecycle:n,parentPopover:i,dismissOnSelect:o,side:r,arrow:s,htmlAttributes:a}=this,l=pn("desktop"),c=s&&!i;return y(ee,Object.assign({"aria-modal":"true","no-router":!0,tabindex:"-1"},a,{style:{zIndex:`${2e4+this.overlayIndex}`},class:Object.assign(Object.assign({},Mt(this.cssClass)),{[t]:!0,"popover-translucent":this.translucent,"overlay-hidden":!0,"popover-desktop":l,[`popover-side-${r}`]:!0,"popover-nested":!!i}),onIonPopoverDidPresent:n,onIonPopoverWillPresent:n,onIonPopoverWillDismiss:n,onIonPopoverDidDismiss:n,onIonBackdropTap:this.onBackdropTap}),!i&&y("ion-backdrop",{tappable:this.backdropDismiss,visible:this.showBackdrop,part:"backdrop"}),y("div",{class:"popover-wrapper ion-overlay-wrapper",onClick:o?()=>this.dismiss():void 0},c&&y("div",{class:"popover-arrow",part:"arrow"}),y("div",{class:"popover-content",part:"content"},y("slot",null))))}get el(){return this}static get watchers(){return{trigger:["onTriggerChange"],triggerAction:["onTriggerChange"],isOpen:["onIsOpenChange"]}}static get style(){return{ios:N5,md:U5}}},[33,"ion-popover",{hasController:[4,"has-controller"],delegate:[16],overlayIndex:[2,"overlay-index"],enterAnimation:[16],leaveAnimation:[16],component:[1],componentProps:[16],keyboardClose:[4,"keyboard-close"],cssClass:[1,"css-class"],backdropDismiss:[4,"backdrop-dismiss"],event:[8],showBackdrop:[4,"show-backdrop"],translucent:[4],animated:[4],htmlAttributes:[16],triggerAction:[1,"trigger-action"],trigger:[1],size:[1],dismissOnSelect:[4,"dismiss-on-select"],reference:[1],side:[1],alignment:[1025],arrow:[4],isOpen:[4,"is-open"],keyboardEvents:[4,"keyboard-events"],keepContentsMounted:[4,"keep-contents-mounted"],presented:[32],presentFromTrigger:[64],present:[64],dismiss:[64],getParentPopover:[64],onDidDismiss:[64],onWillDismiss:[64]},void 0,{trigger:["onTriggerChange"],triggerAction:["onTriggerChange"],isOpen:["onIsOpenChange"]}]),X5={ionPopoverDidPresent:"ionViewDidEnter",ionPopoverWillPresent:"ionViewWillEnter",ionPopoverWillDismiss:"ionViewWillLeave",ionPopoverDidDismiss:"ionViewDidLeave"};function q5(){if(typeof customElements>"u")return;["ion-popover","ion-backdrop"].forEach(t=>{switch(t){case"ion-popover":customElements.get(t)||customElements.define(t,W5);break;case"ion-backdrop":customElements.get(t)||Wo();break}})}/*! * (C) Ionic http://ionicframework.com - MIT License */const Y5="ION-CONTENT",Gx="ion-content",Qx=".ion-content-scroll-host",Zx=`${Gx}, ${Qx}`,Mi=e=>e.tagName===Y5,Eg=async e=>Mi(e)?(await new Promise(t=>ei(e,t)),e.getScrollElement()):e,Mu=e=>{const t=e.querySelector(Qx);return t||e.querySelector(Zx)},Jx=e=>e.closest(Zx),l8=(e,t)=>Mi(e)?e.scrollToTop(t):Promise.resolve(e.scrollTo({top:0,left:0,behavior:t>0?"smooth":"auto"})),c8=(e,t,n,i)=>Mi(e)?e.scrollByPoint(t,n,i):Promise.resolve(e.scrollBy({top:n,left:t,behavior:i>0?"smooth":"auto"})),Bu=e=>qT(e,Gx),ju=e=>{if(Mi(e)){const t=e,n=t.scrollY;return t.scrollY=!1,n}else return e.style.setProperty("overflow","hidden"),!0},ew=(e,t)=>{Mi(e)?e.scrollY=t:e.style.removeProperty("overflow")};/*! * (C) Ionic http://ionicframework.com - MIT License */var Vu;(function(e){e.Unimplemented="UNIMPLEMENTED",e.Unavailable="UNAVAILABLE"})(Vu||(Vu={}));var Fu;(function(e){e.Body="body",e.Ionic="ionic",e.Native="native",e.None="none"})(Fu||(Fu={}));const tw={getEngine(){const e=To();if(e!=null&&e.isPluginAvailable("Keyboard"))return e.Plugins.Keyboard},getResizeMode(){const e=this.getEngine();return e!=null&&e.getResizeMode?e.getResizeMode().catch(t=>{if(t.code!==Vu.Unimplemented)throw t}):Promise.resolve(void 0)}};/*! * (C) Ionic http://ionicframework.com - MIT License */const nw=e=>{if(Gn===void 0||e===Fu.None||e===void 0)return null;const t=Gn.querySelector("ion-app");return t??Gn.body},Tg=e=>{const t=nw(e);return t===null?0:t.clientHeight},K5=async e=>{let t,n,i,o;const r=async()=>{const d=await tw.getResizeMode(),u=d===void 0?void 0:d.mode;t=()=>{o===void 0&&(o=Tg(u)),i=!0,s(i,u)},n=()=>{i=!1,s(i,u)},Ae==null||Ae.addEventListener("keyboardWillShow",t),Ae==null||Ae.addEventListener("keyboardWillHide",n)},s=(d,u)=>{e&&e(d,a(u))},a=d=>{if(o===0||o===Tg(d))return;const u=nw(d);if(u!==null)return new Promise(h=>{const f=()=>{u.clientHeight===o&&(p.disconnect(),h())},p=new ResizeObserver(f);p.observe(u)})},l=()=>{Ae==null||Ae.removeEventListener("keyboardWillShow",t),Ae==null||Ae.removeEventListener("keyboardWillHide",n),t=n=void 0},c=()=>i;return await r(),{init:r,destroy:l,isKeyboardVisible:c}};/*! * (C) Ionic http://ionicframework.com - MIT License */const G5=":host{-webkit-padding-start:var(--ion-grid-padding-xs, var(--ion-grid-padding, 5px));padding-inline-start:var(--ion-grid-padding-xs, var(--ion-grid-padding, 5px));-webkit-padding-end:var(--ion-grid-padding-xs, var(--ion-grid-padding, 5px));padding-inline-end:var(--ion-grid-padding-xs, var(--ion-grid-padding, 5px));padding-top:var(--ion-grid-padding-xs, var(--ion-grid-padding, 5px));padding-bottom:var(--ion-grid-padding-xs, var(--ion-grid-padding, 5px));-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;display:block;-ms-flex:1;flex:1}@media (min-width: 576px){:host{-webkit-padding-start:var(--ion-grid-padding-sm, var(--ion-grid-padding, 5px));padding-inline-start:var(--ion-grid-padding-sm, var(--ion-grid-padding, 5px));-webkit-padding-end:var(--ion-grid-padding-sm, var(--ion-grid-padding, 5px));padding-inline-end:var(--ion-grid-padding-sm, var(--ion-grid-padding, 5px));padding-top:var(--ion-grid-padding-sm, var(--ion-grid-padding, 5px));padding-bottom:var(--ion-grid-padding-sm, var(--ion-grid-padding, 5px))}}@media (min-width: 768px){:host{-webkit-padding-start:var(--ion-grid-padding-md, var(--ion-grid-padding, 5px));padding-inline-start:var(--ion-grid-padding-md, var(--ion-grid-padding, 5px));-webkit-padding-end:var(--ion-grid-padding-md, var(--ion-grid-padding, 5px));padding-inline-end:var(--ion-grid-padding-md, var(--ion-grid-padding, 5px));padding-top:var(--ion-grid-padding-md, var(--ion-grid-padding, 5px));padding-bottom:var(--ion-grid-padding-md, var(--ion-grid-padding, 5px))}}@media (min-width: 992px){:host{-webkit-padding-start:var(--ion-grid-padding-lg, var(--ion-grid-padding, 5px));padding-inline-start:var(--ion-grid-padding-lg, var(--ion-grid-padding, 5px));-webkit-padding-end:var(--ion-grid-padding-lg, var(--ion-grid-padding, 5px));padding-inline-end:var(--ion-grid-padding-lg, var(--ion-grid-padding, 5px));padding-top:var(--ion-grid-padding-lg, var(--ion-grid-padding, 5px));padding-bottom:var(--ion-grid-padding-lg, var(--ion-grid-padding, 5px))}}@media (min-width: 1200px){:host{-webkit-padding-start:var(--ion-grid-padding-xl, var(--ion-grid-padding, 5px));padding-inline-start:var(--ion-grid-padding-xl, var(--ion-grid-padding, 5px));-webkit-padding-end:var(--ion-grid-padding-xl, var(--ion-grid-padding, 5px));padding-inline-end:var(--ion-grid-padding-xl, var(--ion-grid-padding, 5px));padding-top:var(--ion-grid-padding-xl, var(--ion-grid-padding, 5px));padding-bottom:var(--ion-grid-padding-xl, var(--ion-grid-padding, 5px))}}:host(.grid-fixed){width:var(--ion-grid-width-xs, var(--ion-grid-width, 100%));max-width:100%}@media (min-width: 576px){:host(.grid-fixed){width:var(--ion-grid-width-sm, var(--ion-grid-width, 540px))}}@media (min-width: 768px){:host(.grid-fixed){width:var(--ion-grid-width-md, var(--ion-grid-width, 720px))}}@media (min-width: 992px){:host(.grid-fixed){width:var(--ion-grid-width-lg, var(--ion-grid-width, 960px))}}@media (min-width: 1200px){:host(.grid-fixed){width:var(--ion-grid-width-xl, var(--ion-grid-width, 1140px))}}:host(.ion-no-padding){--ion-grid-column-padding:0;--ion-grid-column-padding-xs:0;--ion-grid-column-padding-sm:0;--ion-grid-column-padding-md:0;--ion-grid-column-padding-lg:0;--ion-grid-column-padding-xl:0}",Q5=ne(class extends ie{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.fixed=!1}render(){const t=W(this);return y(ee,{class:{[t]:!0,"grid-fixed":this.fixed}},y("slot",null))}static get style(){return G5}},[1,"ion-grid",{fixed:[4]}]);function Z5(){if(typeof customElements>"u")return;["ion-grid"].forEach(t=>{switch(t){case"ion-grid":customElements.get(t)||customElements.define(t,Q5);break}})}const J5=Z5;/*! * (C) Ionic http://ionicframework.com - MIT License */const eA="all 0.2s ease-in-out",Pg=e=>{const t=document.querySelector(`${e}.ion-cloned-element`);if(t!==null)return t;const n=document.createElement(e);return n.classList.add("ion-cloned-element"),n.style.setProperty("display","none"),document.body.appendChild(n),n},Ag=e=>{if(!e)return;const t=e.querySelectorAll("ion-toolbar");return{el:e,toolbars:Array.from(t).map(n=>{const i=n.querySelector("ion-title");return{el:n,background:n.shadowRoot.querySelector(".toolbar-background"),ionTitleEl:i,innerTitleEl:i?i.shadowRoot.querySelector(".toolbar-title"):null,ionButtonsEl:Array.from(n.querySelectorAll("ion-buttons"))}})}},tA=(e,t,n)=>{$o(()=>{const i=e.scrollTop,o=et(1,1+-i/500,1.1);n.querySelector("ion-refresher.refresher-native")===null&&Ft(()=>{oA(t.toolbars,o)})})},Lf=(e,t)=>{e.collapse!=="fade"&&(t===void 0?e.style.removeProperty("--opacity-scale"):e.style.setProperty("--opacity-scale",t.toString()))},nA=(e,t,n)=>{if(!e[0].isIntersecting)return;const i=e[0].intersectionRatio>.9||n<=0?0:(1-e[0].intersectionRatio)*100/75;Lf(t.el,i===1?void 0:i)},iA=(e,t,n,i)=>{Ft(()=>{const o=i.scrollTop;nA(e,t,o);const r=e[0],s=r.intersectionRect,a=s.width*s.height,l=r.rootBounds.width*r.rootBounds.height,c=a===0&&l===0,d=Math.abs(s.left-r.boundingClientRect.left),u=Math.abs(s.right-r.boundingClientRect.right),h=a>0&&(d>=5||u>=5);c||h||(r.isIntersecting?(mr(t,!1),mr(n)):(s.x===0&&s.y===0||s.width!==0&&s.height!==0)&&o>0&&(mr(t),mr(n,!1),Lf(t.el)))})},mr=(e,t=!0)=>{const n=e.el;t?(n.classList.remove("header-collapse-condense-inactive"),n.removeAttribute("aria-hidden")):(n.classList.add("header-collapse-condense-inactive"),n.setAttribute("aria-hidden","true"))},oA=(e=[],t=1,n=!1)=>{e.forEach(i=>{const o=i.ionTitleEl,r=i.innerTitleEl;!o||o.size!=="large"||(r.style.transition=n?eA:"",r.style.transform=`scale3d(${t}, ${t}, 1)`)})},Lg=(e,t,n)=>{$o(()=>{const i=e.scrollTop,o=t.clientHeight,r=n?n.clientHeight:0;if(n!==null&&i{e.style.removeProperty("clip-path"),t.style.setProperty("--opacity-scale",l.toString())})})},rA="ion-header{display:block;position:relative;-ms-flex-order:-1;order:-1;width:100%;z-index:10}ion-header ion-toolbar:first-of-type{padding-top:var(--ion-safe-area-top, 0)}.header-ios ion-toolbar:last-of-type{--border-width:0 0 0.55px}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){.header-background{left:0;right:0;top:0;bottom:0;position:absolute;-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px)}.header-translucent-ios ion-toolbar{--opacity:.8}.header-collapse-condense-inactive .header-background{-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px)}}.header-ios.ion-no-border ion-toolbar:last-of-type{--border-width:0}.header-collapse-fade ion-toolbar{--opacity-scale:inherit}.header-collapse-condense{z-index:9}.header-collapse-condense ion-toolbar{position:-webkit-sticky;position:sticky;top:0}.header-collapse-condense ion-toolbar:first-of-type{padding-top:0px;z-index:1}.header-collapse-condense ion-toolbar{--background:var(--ion-background-color, #fff);z-index:0}.header-collapse-condense ion-toolbar:last-of-type{--border-width:0px}.header-collapse-condense ion-toolbar ion-searchbar{padding-top:0px;padding-bottom:13px}.header-collapse-main{--opacity-scale:1}.header-collapse-main ion-toolbar{--opacity-scale:inherit}.header-collapse-main ion-toolbar.in-toolbar ion-title,.header-collapse-main ion-toolbar.in-toolbar ion-buttons{-webkit-transition:all 0.2s ease-in-out;transition:all 0.2s ease-in-out}.header-collapse-condense-inactive:not(.header-collapse-condense) ion-toolbar.in-toolbar ion-title,.header-collapse-condense-inactive:not(.header-collapse-condense) ion-toolbar.in-toolbar ion-buttons.buttons-collapse{opacity:0;pointer-events:none}.header-collapse-condense-inactive.header-collapse-condense ion-toolbar.in-toolbar ion-title,.header-collapse-condense-inactive.header-collapse-condense ion-toolbar.in-toolbar ion-buttons.buttons-collapse{visibility:hidden}ion-header:not(.header-collapse-main):has(~ion-content ion-header[collapse=condense],~ion-content ion-header.header-collapse-condense){opacity:0}",sA="ion-header{display:block;position:relative;-ms-flex-order:-1;order:-1;width:100%;z-index:10}ion-header ion-toolbar:first-of-type{padding-top:var(--ion-safe-area-top, 0)}.header-md{-webkit-box-shadow:0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12);box-shadow:0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12)}.header-collapse-condense{display:none}.header-md.ion-no-border{-webkit-box-shadow:none;box-shadow:none}",aA=ne(class extends ie{constructor(){super(),this.__registerHost(),this.inheritedAttributes={},this.setupFadeHeader=async(t,n)=>{const i=this.scrollEl=await Eg(t);this.contentScrollCallback=()=>{Lg(this.scrollEl,this.el,n)},i.addEventListener("scroll",this.contentScrollCallback),Lg(this.scrollEl,this.el,n)},this.collapse=void 0,this.translucent=!1}componentWillLoad(){this.inheritedAttributes=Uo(this.el)}componentDidLoad(){this.checkCollapsibleHeader()}componentDidUpdate(){this.checkCollapsibleHeader()}disconnectedCallback(){this.destroyCollapsibleHeader()}async checkCollapsibleHeader(){if(W(this)!=="ios")return;const{collapse:n}=this,i=n==="condense",o=n==="fade";if(this.destroyCollapsibleHeader(),i){const r=this.el.closest("ion-app,ion-page,.ion-page,page-inner"),s=r?Mu(r):null;Ft(()=>{const a=Pg("ion-title");a.size="large",Pg("ion-back-button")}),await this.setupCondenseHeader(s,r)}else if(o){const r=this.el.closest("ion-app,ion-page,.ion-page,page-inner"),s=r?Mu(r):null;if(!s){Bu(this.el);return}const a=s.querySelector('ion-header[collapse="condense"]');await this.setupFadeHeader(s,a)}}destroyCollapsibleHeader(){this.intersectionObserver&&(this.intersectionObserver.disconnect(),this.intersectionObserver=void 0),this.scrollEl&&this.contentScrollCallback&&(this.scrollEl.removeEventListener("scroll",this.contentScrollCallback),this.contentScrollCallback=void 0),this.collapsibleMainHeader&&(this.collapsibleMainHeader.classList.remove("header-collapse-main"),this.collapsibleMainHeader=void 0)}async setupCondenseHeader(t,n){if(!t||!n){Bu(this.el);return}if(typeof IntersectionObserver>"u")return;this.scrollEl=await Eg(t);const i=n.querySelectorAll("ion-header");if(this.collapsibleMainHeader=Array.from(i).find(a=>a.collapse!=="condense"),!this.collapsibleMainHeader)return;const o=Ag(this.collapsibleMainHeader),r=Ag(this.el);if(!o||!r)return;mr(o,!1),Lf(o.el,0);const s=a=>{iA(a,o,r,this.scrollEl)};this.intersectionObserver=new IntersectionObserver(s,{root:t,threshold:[.25,.3,.4,.5,.6,.7,.8,.9,1]}),this.intersectionObserver.observe(r.toolbars[r.toolbars.length-1].el),this.contentScrollCallback=()=>{tA(this.scrollEl,r,t)},this.scrollEl.addEventListener("scroll",this.contentScrollCallback),Ft(()=>{this.collapsibleMainHeader!==void 0&&this.collapsibleMainHeader.classList.add("header-collapse-main")})}render(){const{translucent:t,inheritedAttributes:n}=this,i=W(this),o=this.collapse||"none",r=De("ion-menu",this.el)?"none":"banner";return y(ee,Object.assign({role:r,class:{[i]:!0,[`header-${i}`]:!0,"header-translucent":this.translucent,[`header-collapse-${o}`]:!0,[`header-translucent-${i}`]:this.translucent}},n),i==="ios"&&t&&y("div",{class:"header-background"}),y("slot",null))}get el(){return this}static get style(){return{ios:rA,md:sA}}},[36,"ion-header",{collapse:[1],translucent:[4]}]);function lA(){if(typeof customElements>"u")return;["ion-header"].forEach(t=>{switch(t){case"ion-header":customElements.get(t)||customElements.define(t,aA);break}})}const cA=lA;/*! * (C) Ionic http://ionicframework.com - MIT License */const dA=":host{display:block;-o-object-fit:contain;object-fit:contain}img{display:block;width:100%;height:100%;-o-object-fit:inherit;object-fit:inherit;-o-object-position:inherit;object-position:inherit}",uA=ne(class extends ie{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionImgWillLoad=B(this,"ionImgWillLoad",7),this.ionImgDidLoad=B(this,"ionImgDidLoad",7),this.ionError=B(this,"ionError",7),this.inheritedAttributes={},this.onLoad=()=>{this.ionImgDidLoad.emit()},this.onError=()=>{this.ionError.emit()},this.loadSrc=void 0,this.loadError=void 0,this.alt=void 0,this.src=void 0}srcChanged(){this.addIO()}componentWillLoad(){this.inheritedAttributes=No(this.el,["draggable"])}componentDidLoad(){this.addIO()}addIO(){this.src!==void 0&&(typeof window<"u"&&"IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"isIntersecting"in window.IntersectionObserverEntry.prototype?(this.removeIO(),this.io=new IntersectionObserver(t=>{t[t.length-1].isIntersecting&&(this.load(),this.removeIO())}),this.io.observe(this.el)):setTimeout(()=>this.load(),200))}load(){this.loadError=this.onError,this.loadSrc=this.src,this.ionImgWillLoad.emit()}removeIO(){this.io&&(this.io.disconnect(),this.io=void 0)}render(){const{loadSrc:t,alt:n,onLoad:i,loadError:o,inheritedAttributes:r}=this,{draggable:s}=r;return y(ee,{class:W(this)},y("img",{decoding:"async",src:t,alt:n,onLoad:i,onError:o,part:"image",draggable:hA(s)}))}get el(){return this}static get watchers(){return{src:["srcChanged"]}}static get style(){return dA}},[1,"ion-img",{alt:[1],src:[1],loadSrc:[32],loadError:[32]},void 0,{src:["srcChanged"]}]),hA=e=>{switch(e){case"true":return!0;case"false":return!1;default:return}};function fA(){if(typeof customElements>"u")return;["ion-img"].forEach(t=>{switch(t){case"ion-img":customElements.get(t)||customElements.define(t,uA);break}})}const pA=fA;/*! * (C) Ionic http://ionicframework.com - MIT License */const mA=(e,t,n)=>{let i;const o=()=>!(t()===void 0||e.label!==void 0||n()===null),r=()=>{o()&&Ie(()=>{s()})},s=()=>{const l=t();if(l===void 0)return;if(!o()){l.style.removeProperty("width");return}const c=n().scrollWidth;if(c===0&&l.offsetParent===null&&Ae!==void 0&&"IntersectionObserver"in Ae){if(i!==void 0)return;const d=i=new IntersectionObserver(u=>{u[0].intersectionRatio===1&&(s(),d.disconnect(),i=void 0)},{threshold:.01,root:e});d.observe(l);return}l.style.setProperty("width",`${c*.75}px`)};return{calculateNotchWidth:r,destroy:()=>{i&&(i.disconnect(),i=void 0)}}};/*! * (C) Ionic http://ionicframework.com - MIT License */const gA=(e,t,n)=>{if(typeof MutationObserver>"u")return;const i=new MutationObserver(o=>{n(bA(o,t))});return i.observe(e,{childList:!0,subtree:!0}),i},bA=(e,t)=>{let n;return e.forEach(i=>{for(let o=0;o{if(e.nodeType!==1)return;const n=e;return(n.tagName===t.toUpperCase()?[n]:Array.from(n.querySelectorAll(t))).find(o=>o.value===n.value)};/*! * (C) Ionic http://ionicframework.com - MIT License */const yA=Pf;/*! * (C) Ionic http://ionicframework.com - MIT License */const xA="ion-list{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;display:block;contain:content;list-style-type:none}ion-list.list-inset{-webkit-transform:translateZ(0);transform:translateZ(0);overflow:hidden}.list-ios{background:var(--ion-item-background, var(--ion-background-color, #fff))}.list-ios.list-inset{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:16px;margin-bottom:16px;border-radius:10px}.list-ios.list-inset ion-item:only-child,.list-ios.list-inset ion-item:not(:only-of-type):last-of-type,.list-ios.list-inset ion-item-sliding:last-of-type ion-item{--border-width:0;--inner-border-width:0}.list-ios.list-inset+ion-list.list-inset{margin-top:0}.list-ios-lines-none .item-lines-default{--inner-border-width:0px;--border-width:0px}.list-ios-lines-full .item-lines-default{--inner-border-width:0px;--border-width:0 0 0.55px 0}.list-ios-lines-inset .item-lines-default{--inner-border-width:0 0 0.55px 0;--border-width:0px}ion-card .list-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}",wA="ion-list{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;display:block;contain:content;list-style-type:none}ion-list.list-inset{-webkit-transform:translateZ(0);transform:translateZ(0);overflow:hidden}.list-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:8px;padding-bottom:8px;background:var(--ion-item-background, var(--ion-background-color, #fff))}@supports (inset-inline-start: 0){.list-md>.input:last-child::after{inset-inline-start:0}}@supports not (inset-inline-start: 0){.list-md>.input:last-child::after{left:0}:host-context([dir=rtl]) .list-md>.input:last-child::after{left:unset;right:unset;right:0}[dir=rtl] .list-md>.input:last-child::after{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){.list-md>.input:last-child::after:dir(rtl){left:unset;right:unset;right:0}}}.list-md.list-inset{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:16px;margin-bottom:16px;border-radius:2px}.list-md.list-inset ion-item:not(:only-of-type):first-of-type,.list-md.list-inset ion-item-sliding:first-of-type ion-item{--border-radius:2px 2px 0 0}.list-md.list-inset ion-item:not(:only-of-type):last-of-type,.list-md.list-inset ion-item-sliding:last-of-type ion-item{--border-radius:0 0 2px 2px;--border-width:0;--inner-border-width:0}.list-md.list-inset ion-item:only-child{--border-radius:2px;--border-width:0;--inner-border-width:0}.list-md.list-inset+ion-list.list-inset{margin-top:0}.list-md-lines-none .item-lines-default{--inner-border-width:0px;--border-width:0px}.list-md-lines-full .item-lines-default{--inner-border-width:0px;--border-width:0 0 1px 0}.list-md-lines-inset .item-lines-default{--inner-border-width:0 0 1px 0;--border-width:0px}ion-card .list-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}",kA=ne(class extends ie{constructor(){super(),this.__registerHost(),this.lines=void 0,this.inset=!1}async closeSlidingItems(){const t=this.el.querySelector("ion-item-sliding");return t!=null&&t.closeOpened?t.closeOpened():!1}render(){const t=W(this),{lines:n,inset:i}=this;return y(ee,{role:"list",class:{[t]:!0,[`list-${t}`]:!0,"list-inset":i,[`list-lines-${n}`]:n!==void 0,[`list-${t}-lines-${n}`]:n!==void 0}})}get el(){return this}static get style(){return{ios:xA,md:wA}}},[32,"ion-list",{lines:[1],inset:[4],closeSlidingItems:[64]}]);function If(){if(typeof customElements>"u")return;["ion-list"].forEach(t=>{switch(t){case"ion-list":customElements.get(t)||customElements.define(t,kA);break}})}/*! * (C) Ionic http://ionicframework.com - MIT License */const CA=If;/*! * (C) Ionic http://ionicframework.com - MIT License */const SA=":host{--border-style:solid;--border-width:0;--inner-border-width:0;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;width:100%;min-height:40px;border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);color:var(--color);overflow:hidden}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}.list-header-inner{display:-ms-flexbox;display:flex;position:relative;-ms-flex:1;flex:1;-ms-flex-direction:inherit;flex-direction:inherit;-ms-flex-align:inherit;align-items:inherit;-ms-flex-item-align:stretch;align-self:stretch;min-height:inherit;border-width:var(--inner-border-width);border-style:var(--border-style);border-color:var(--border-color);overflow:inherit;-webkit-box-sizing:border-box;box-sizing:border-box}::slotted(ion-label){-ms-flex:1 1 auto;flex:1 1 auto}:host(.list-header-lines-inset),:host(.list-header-lines-none){--border-width:0}:host(.list-header-lines-full),:host(.list-header-lines-none){--inner-border-width:0}:host{--background:transparent;--color:var(--ion-color-step-850, #262626);--border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-250, #c8c7cc)));padding-right:var(--ion-safe-area-right);padding-left:calc(var(--ion-safe-area-left, 0px) + 16px);position:relative;-ms-flex-align:end;align-items:flex-end;font-size:min(1.375rem, 56.1px);font-weight:700;letter-spacing:0}:host-context([dir=rtl]){padding-right:calc(var(--ion-safe-area-right, 0px) + 16px);padding-left:var(--ion-safe-area-left)}@supports selector(:dir(rtl)){:host(:dir(rtl)){padding-right:calc(var(--ion-safe-area-right, 0px) + 16px);padding-left:var(--ion-safe-area-left)}}::slotted(ion-button),::slotted(ion-label){margin-top:29px;margin-bottom:6px}::slotted(ion-button){--padding-top:0;--padding-bottom:0;-webkit-margin-start:3px;margin-inline-start:3px;-webkit-margin-end:3px;margin-inline-end:3px;min-height:1.4em}:host(.list-header-lines-full){--border-width:0 0 0.55px 0}:host(.list-header-lines-inset){--inner-border-width:0 0 0.55px 0}",EA=":host{--border-style:solid;--border-width:0;--inner-border-width:0;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;width:100%;min-height:40px;border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);color:var(--color);overflow:hidden}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}.list-header-inner{display:-ms-flexbox;display:flex;position:relative;-ms-flex:1;flex:1;-ms-flex-direction:inherit;flex-direction:inherit;-ms-flex-align:inherit;align-items:inherit;-ms-flex-item-align:stretch;align-self:stretch;min-height:inherit;border-width:var(--inner-border-width);border-style:var(--border-style);border-color:var(--border-color);overflow:inherit;-webkit-box-sizing:border-box;box-sizing:border-box}::slotted(ion-label){-ms-flex:1 1 auto;flex:1 1 auto}:host(.list-header-lines-inset),:host(.list-header-lines-none){--border-width:0}:host(.list-header-lines-full),:host(.list-header-lines-none){--inner-border-width:0}:host{--background:transparent;--color:var(--ion-text-color, #000);--border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-150, rgba(0, 0, 0, 0.13))));padding-right:var(--ion-safe-area-right);padding-left:calc(var(--ion-safe-area-left, 0px) + 16px);min-height:45px;font-size:0.875rem}:host-context([dir=rtl]){padding-right:calc(var(--ion-safe-area-right, 0px) + 16px);padding-left:var(--ion-safe-area-left)}@supports selector(:dir(rtl)){:host(:dir(rtl)){padding-right:calc(var(--ion-safe-area-right, 0px) + 16px);padding-left:var(--ion-safe-area-left)}}:host(.list-header-lines-full){--border-width:0 0 1px 0}:host(.list-header-lines-inset){--inner-border-width:0 0 1px 0}",TA=ne(class extends ie{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.color=void 0,this.lines=void 0}render(){const{lines:t}=this,n=W(this);return y(ee,{class:Ne(this.color,{[n]:!0,[`list-header-lines-${t}`]:t!==void 0})},y("div",{class:"list-header-inner"},y("slot",null)))}static get style(){return{ios:SA,md:EA}}},[33,"ion-list-header",{color:[513],lines:[1]}]);function Of(){if(typeof customElements>"u")return;["ion-list-header"].forEach(t=>{switch(t){case"ion-list-header":customElements.get(t)||customElements.define(t,TA);break}})}/*! * (C) Ionic http://ionicframework.com - MIT License */const PA=Of,AA=":host{--width:304px;--min-width:auto;--max-width:auto;--height:100%;--min-height:auto;--max-height:auto;--background:var(--ion-background-color, #fff);left:0;right:0;top:0;bottom:0;display:none;position:absolute;contain:strict}:host(.show-menu){display:block}.menu-inner{-webkit-transform:translateX(-9999px);transform:translateX(-9999px);display:-ms-flexbox;display:flex;position:absolute;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:justify;justify-content:space-between;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);background:var(--background);contain:strict}:host(.menu-side-start) .menu-inner{--ion-safe-area-right:0px;top:0;bottom:0}@supports (inset-inline-start: 0){:host(.menu-side-start) .menu-inner{inset-inline-start:0;inset-inline-end:auto}}@supports not (inset-inline-start: 0){:host(.menu-side-start) .menu-inner{left:0;right:auto}:host-context([dir=rtl]):host(.menu-side-start) .menu-inner,:host-context([dir=rtl]).menu-side-start .menu-inner{left:unset;right:unset;left:auto;right:0}@supports selector(:dir(rtl)){:host(.menu-side-start:dir(rtl)) .menu-inner{left:unset;right:unset;left:auto;right:0}}}:host-context([dir=rtl]):host(.menu-side-start) .menu-inner,:host-context([dir=rtl]).menu-side-start .menu-inner{--ion-safe-area-right:unset;--ion-safe-area-left:0px}@supports selector(:dir(rtl)){:host(.menu-side-start:dir(rtl)) .menu-inner{--ion-safe-area-right:unset;--ion-safe-area-left:0px}}:host(.menu-side-end) .menu-inner{--ion-safe-area-left:0px;top:0;bottom:0}@supports (inset-inline-start: 0){:host(.menu-side-end) .menu-inner{inset-inline-start:auto;inset-inline-end:0}}@supports not (inset-inline-start: 0){:host(.menu-side-end) .menu-inner{left:auto;right:0}:host-context([dir=rtl]):host(.menu-side-end) .menu-inner,:host-context([dir=rtl]).menu-side-end .menu-inner{left:unset;right:unset;left:0;right:auto}@supports selector(:dir(rtl)){:host(.menu-side-end:dir(rtl)) .menu-inner{left:unset;right:unset;left:0;right:auto}}}:host-context([dir=rtl]):host(.menu-side-end) .menu-inner,:host-context([dir=rtl]).menu-side-end .menu-inner{--ion-safe-area-left:unset;--ion-safe-area-right:0px}@supports selector(:dir(rtl)){:host(.menu-side-end:dir(rtl)) .menu-inner{--ion-safe-area-left:unset;--ion-safe-area-right:0px}}ion-backdrop{display:none;opacity:0.01;z-index:-1}@media (max-width: 340px){.menu-inner{--width:264px}}:host(.menu-type-reveal){z-index:0}:host(.menu-type-reveal.show-menu) .menu-inner{-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}:host(.menu-type-overlay){z-index:1000}:host(.menu-type-overlay) .show-backdrop{display:block;cursor:pointer}:host(.menu-pane-visible){width:var(--width);min-width:var(--min-width);max-width:var(--max-width)}:host(.menu-pane-visible) .menu-inner{left:0;right:0;width:auto;-webkit-transform:none;transform:none;-webkit-box-shadow:none;box-shadow:none}:host(.menu-pane-visible) ion-backdrop{display:hidden !important}:host(.menu-type-push){z-index:1000}:host(.menu-type-push) .show-backdrop{display:block}",LA=":host{--width:304px;--min-width:auto;--max-width:auto;--height:100%;--min-height:auto;--max-height:auto;--background:var(--ion-background-color, #fff);left:0;right:0;top:0;bottom:0;display:none;position:absolute;contain:strict}:host(.show-menu){display:block}.menu-inner{-webkit-transform:translateX(-9999px);transform:translateX(-9999px);display:-ms-flexbox;display:flex;position:absolute;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:justify;justify-content:space-between;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);background:var(--background);contain:strict}:host(.menu-side-start) .menu-inner{--ion-safe-area-right:0px;top:0;bottom:0}@supports (inset-inline-start: 0){:host(.menu-side-start) .menu-inner{inset-inline-start:0;inset-inline-end:auto}}@supports not (inset-inline-start: 0){:host(.menu-side-start) .menu-inner{left:0;right:auto}:host-context([dir=rtl]):host(.menu-side-start) .menu-inner,:host-context([dir=rtl]).menu-side-start .menu-inner{left:unset;right:unset;left:auto;right:0}@supports selector(:dir(rtl)){:host(.menu-side-start:dir(rtl)) .menu-inner{left:unset;right:unset;left:auto;right:0}}}:host-context([dir=rtl]):host(.menu-side-start) .menu-inner,:host-context([dir=rtl]).menu-side-start .menu-inner{--ion-safe-area-right:unset;--ion-safe-area-left:0px}@supports selector(:dir(rtl)){:host(.menu-side-start:dir(rtl)) .menu-inner{--ion-safe-area-right:unset;--ion-safe-area-left:0px}}:host(.menu-side-end) .menu-inner{--ion-safe-area-left:0px;top:0;bottom:0}@supports (inset-inline-start: 0){:host(.menu-side-end) .menu-inner{inset-inline-start:auto;inset-inline-end:0}}@supports not (inset-inline-start: 0){:host(.menu-side-end) .menu-inner{left:auto;right:0}:host-context([dir=rtl]):host(.menu-side-end) .menu-inner,:host-context([dir=rtl]).menu-side-end .menu-inner{left:unset;right:unset;left:0;right:auto}@supports selector(:dir(rtl)){:host(.menu-side-end:dir(rtl)) .menu-inner{left:unset;right:unset;left:0;right:auto}}}:host-context([dir=rtl]):host(.menu-side-end) .menu-inner,:host-context([dir=rtl]).menu-side-end .menu-inner{--ion-safe-area-left:unset;--ion-safe-area-right:0px}@supports selector(:dir(rtl)){:host(.menu-side-end:dir(rtl)) .menu-inner{--ion-safe-area-left:unset;--ion-safe-area-right:0px}}ion-backdrop{display:none;opacity:0.01;z-index:-1}@media (max-width: 340px){.menu-inner{--width:264px}}:host(.menu-type-reveal){z-index:0}:host(.menu-type-reveal.show-menu) .menu-inner{-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}:host(.menu-type-overlay){z-index:1000}:host(.menu-type-overlay) .show-backdrop{display:block;cursor:pointer}:host(.menu-pane-visible){width:var(--width);min-width:var(--min-width);max-width:var(--max-width)}:host(.menu-pane-visible) .menu-inner{left:0;right:0;width:auto;-webkit-transform:none;transform:none;-webkit-box-shadow:none;box-shadow:none}:host(.menu-pane-visible) ion-backdrop{display:hidden !important}:host(.menu-type-overlay) .menu-inner{-webkit-box-shadow:4px 0px 16px rgba(0, 0, 0, 0.18);box-shadow:4px 0px 16px rgba(0, 0, 0, 0.18)}",IA="cubic-bezier(0.32,0.72,0,1)",OA="cubic-bezier(0.0,0.0,0.2,1)",RA="cubic-bezier(1, 0, 0.68, 0.28)",DA="cubic-bezier(0.4, 0, 0.6, 1)",Ig='[tabindex]:not([tabindex^="-"]), input:not([type=hidden]):not([tabindex^="-"]), textarea:not([tabindex^="-"]), button:not([tabindex^="-"]), select:not([tabindex^="-"]), .ion-focusable:not([tabindex^="-"])',$A=ne(class extends ie{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionWillOpen=B(this,"ionWillOpen",7),this.ionWillClose=B(this,"ionWillClose",7),this.ionDidOpen=B(this,"ionDidOpen",7),this.ionDidClose=B(this,"ionDidClose",7),this.ionMenuChange=B(this,"ionMenuChange",7),this.lastOnEnd=0,this.blocker=_l.createBlocker({disableScroll:!0}),this.didLoad=!1,this.operationCancelled=!1,this.isAnimating=!1,this._isOpen=!1,this.inheritedAttributes={},this.handleFocus=t=>{const n=_o(document);n&&!n.contains(this.el)||this.trapKeyboardFocus(t,document)},this.isPaneVisible=!1,this.isEndSide=!1,this.contentId=void 0,this.menuId=void 0,this.type=void 0,this.disabled=!1,this.side="start",this.swipeGesture=!0,this.maxEdgeStart=50}typeChanged(t,n){const i=this.contentEl;i&&(n!==void 0&&i.classList.remove(`menu-content-${n}`),i.classList.add(`menu-content-${t}`),i.removeAttribute("style")),this.menuInnerEl&&this.menuInnerEl.removeAttribute("style"),this.animation=void 0}disabledChanged(){this.updateState(),this.ionMenuChange.emit({disabled:this.disabled,open:this._isOpen})}sideChanged(){this.isEndSide=hg(this.side),this.animation=void 0}swipeGestureChanged(){this.updateState()}async connectedCallback(){typeof customElements<"u"&&customElements!=null&&await customElements.whenDefined("ion-menu"),this.type===void 0&&(this.type=le.get("menuType","overlay"));const t=this.contentId!==void 0?document.getElementById(this.contentId):null;if(t===null){console.error('Menu: must have a "content" element to listen for drag events on.');return}this.el.contains(t)&&console.error(`Menu: "contentId" should refer to the main view's ion-content, not the ion-content inside of the ion-menu.`),this.contentEl=t,t.classList.add("menu-content"),this.typeChanged(this.type,void 0),this.sideChanged(),jn._register(this),this.menuChanged(),this.gesture=(await $t(()=>Promise.resolve().then(()=>Ex),void 0)).createGesture({el:document,gestureName:"menu-swipe",gesturePriority:30,threshold:10,blurOnStart:!0,canStart:n=>this.canStart(n),onWillStart:()=>this.onWillStart(),onStart:()=>this.onStart(),onMove:n=>this.onMove(n),onEnd:n=>this.onEnd(n)}),this.updateState()}componentWillLoad(){this.inheritedAttributes=Uo(this.el)}async componentDidLoad(){this.didLoad=!0,this.menuChanged(),this.updateState()}menuChanged(){this.didLoad&&this.ionMenuChange.emit({disabled:this.disabled,open:this._isOpen})}async disconnectedCallback(){await this.close(!1),this.blocker.destroy(),jn._unregister(this),this.animation&&this.animation.destroy(),this.gesture&&(this.gesture.destroy(),this.gesture=void 0),this.animation=void 0,this.contentEl=void 0}onSplitPaneChanged(t){const{target:n}=t,i=this.el.closest("ion-split-pane");n===i&&(this.isPaneVisible=t.detail.isPane(this.el),this.updateState())}onBackdropClick(t){this._isOpen&&this.lastOnEnd0?n[n.length-1]:null;i?i.focus():t.focus()}trapKeyboardFocus(t,n){const i=t.target;i&&(this.el.contains(i)?this.lastFocus=i:(this.focusFirstDescendant(),this.lastFocus===n.activeElement&&this.focusLastDescendant()))}async _setOpen(t,n=!0){return!this._isActive()||this.isAnimating||t===this._isOpen?!1:(this.beforeAnimation(t),await this.loadAnimation(),await this.startAnimation(t,n),this.operationCancelled?(this.operationCancelled=!1,!1):(this.afterAnimation(t),!0))}async loadAnimation(){const t=this.menuInnerEl.offsetWidth,n=hg(this.side);if(t===this.width&&this.animation!==void 0&&n===this.isEndSide)return;this.width=t,this.isEndSide=n,this.animation&&(this.animation.destroy(),this.animation=void 0);const i=this.animation=await jn._createAnimation(this.type,this);le.getBoolean("animated",!0)||i.duration(0),i.fill("both")}async startAnimation(t,n){const i=!t,o=W(this),r=o==="ios"?IA:OA,s=o==="ios"?RA:DA,a=this.animation.direction(i?"reverse":"normal").easing(i?s:r);n?await a.play():a.play({sync:!0}),a.getDirection()==="reverse"&&a.direction("normal")}_isActive(){return!this.disabled&&!this.isPaneVisible}canSwipe(){return this.swipeGesture&&!this.isAnimating&&this._isActive()}canStart(t){return!!document.querySelector("ion-modal.show-modal")||!this.canSwipe()?!1:this._isOpen?!0:jn._getOpenSync()?!1:_A(window,t.currentX,this.isEndSide,this.maxEdgeStart)}onWillStart(){return this.beforeAnimation(!this._isOpen),this.loadAnimation()}onStart(){if(!this.isAnimating||!this.animation){je(!1,"isAnimating has to be true");return}this.animation.progressStart(!0,this._isOpen?1:0)}onMove(t){if(!this.isAnimating||!this.animation){je(!1,"isAnimating has to be true");return}const i=Og(t.deltaX,this._isOpen,this.isEndSide)/this.width;this.animation.progressStep(this._isOpen?1-i:i)}onEnd(t){if(!this.isAnimating||!this.animation){je(!1,"isAnimating has to be true");return}const n=this._isOpen,i=this.isEndSide,o=Og(t.deltaX,n,i),r=this.width,s=o/r,a=t.velocityX,l=r/2,c=a>=0&&(a>.2||t.deltaX>l),d=a<=0&&(a<-.2||t.deltaX<-l),u=n?i?c:d:i?d:c;let h=!n&&u;n&&!u&&(h=!0),this.lastOnEnd=t.currentTime;let f=u?.001:-.001;const p=s<0?.01:s;f+=$i([0,0],[.4,0],[.6,1],[1,1],et(0,p,.9999))[0]||0;const m=this._isOpen?!u:u;this.animation.easing("cubic-bezier(0.4, 0.0, 0.6, 1)").onFinish(()=>this.afterAnimation(h),{oneTimeCallback:!0}).progressEnd(m?1:0,this._isOpen?1-f:f,300)}beforeAnimation(t){je(!this.isAnimating,"_before() should not be called while animating"),this.el.classList.add(Rg),this.el.setAttribute("tabindex","0"),this.backdropEl&&this.backdropEl.classList.add(Dg),this.contentEl&&(this.contentEl.classList.add($g),this.contentEl.setAttribute("aria-hidden","true")),this.blocker.block(),this.isAnimating=!0,t?this.ionWillOpen.emit():this.ionWillClose.emit()}afterAnimation(t){var n;this._isOpen=t,this.isAnimating=!1,this._isOpen||this.blocker.unblock(),t?(this.ionDidOpen.emit(),((n=document.activeElement)===null||n===void 0?void 0:n.closest("ion-menu"))!==this.el&&this.el.focus(),document.addEventListener("focus",this.handleFocus,!0)):(this.el.classList.remove(Rg),this.el.removeAttribute("tabindex"),this.contentEl&&(this.contentEl.classList.remove($g),this.contentEl.removeAttribute("aria-hidden")),this.backdropEl&&this.backdropEl.classList.remove(Dg),this.animation&&this.animation.stop(),this.ionDidClose.emit(),document.removeEventListener("focus",this.handleFocus,!0))}updateState(){const t=this._isActive();this.gesture&&this.gesture.enable(t&&this.swipeGesture),t||(this.isAnimating&&(this.operationCancelled=!0),this.afterAnimation(!1))}render(){const{type:t,disabled:n,isPaneVisible:i,inheritedAttributes:o,side:r}=this,s=W(this);return y(ee,{role:"navigation","aria-label":o["aria-label"]||"menu",class:{[s]:!0,[`menu-type-${t}`]:!0,"menu-enabled":!n,[`menu-side-${r}`]:!0,"menu-pane-visible":i}},y("div",{class:"menu-inner",part:"container",ref:a=>this.menuInnerEl=a},y("slot",null)),y("ion-backdrop",{ref:a=>this.backdropEl=a,class:"menu-backdrop",tappable:!1,stopPropagation:!1,part:"backdrop"}))}get el(){return this}static get watchers(){return{type:["typeChanged"],disabled:["disabledChanged"],side:["sideChanged"],swipeGesture:["swipeGestureChanged"]}}static get style(){return{ios:AA,md:LA}}},[33,"ion-menu",{contentId:[513,"content-id"],menuId:[513,"menu-id"],type:[1025],disabled:[1028],side:[513],swipeGesture:[4,"swipe-gesture"],maxEdgeStart:[2,"max-edge-start"],isPaneVisible:[32],isEndSide:[32],isOpen:[64],isActive:[64],open:[64],close:[64],toggle:[64],setOpen:[64]},[[16,"ionSplitPaneVisible","onSplitPaneChanged"],[2,"click","onBackdropClick"],[0,"keydown","onKeydown"]],{type:["typeChanged"],disabled:["disabledChanged"],side:["sideChanged"],swipeGesture:["swipeGestureChanged"]}]),Og=(e,t,n)=>Math.max(0,t!==n?-e:e),_A=(e,t,n,i)=>n?t>=e.innerWidth-i:t<=i,Rg="show-menu",Dg="show-backdrop",$g="menu-content-open";function zA(){if(typeof customElements>"u")return;["ion-menu","ion-backdrop"].forEach(t=>{switch(t){case"ion-menu":customElements.get(t)||customElements.define(t,$A);break;case"ion-backdrop":customElements.get(t)||Wo();break}})}const MA=zA;/*! * (C) Ionic http://ionicframework.com - MIT License */const iw=async e=>{const t=await jn.get(e);return!!(t&&await t.isActive())};/*! * (C) Ionic http://ionicframework.com - MIT License */const BA=':host{--background:transparent;--color-focused:currentColor;--border-radius:initial;--padding-top:0;--padding-bottom:0;color:var(--color);text-align:center;text-decoration:none;text-overflow:ellipsis;text-transform:none;white-space:nowrap;-webkit-font-kerning:none;font-kerning:none}.button-native{border-radius:var(--border-radius);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;min-height:inherit;border:0;outline:none;background:var(--background);line-height:1;cursor:pointer;overflow:hidden;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:0;-webkit-appearance:none;-moz-appearance:none;appearance:none}.button-inner{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;min-height:inherit;z-index:1}ion-icon{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;pointer-events:none}:host(.menu-button-hidden){display:none}:host(.menu-button-disabled){cursor:default;opacity:0.5;pointer-events:none}:host(.ion-focused) .button-native{color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}@media (any-hover: hover){:host(:hover) .button-native{color:var(--color-hover)}:host(:hover) .button-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity, 0)}}:host(.ion-color) .button-native{color:var(--ion-color-base)}:host(.in-toolbar:not(.in-toolbar-color)){color:var(--ion-toolbar-color, var(--color))}:host{--background-focused:currentColor;--background-focused-opacity:.1;--border-radius:4px;--color:var(--ion-color-primary, #3880ff);--padding-start:5px;--padding-end:5px;min-height:32px;font-size:clamp(31px, 1.9375rem, 38.13px)}:host(.ion-activated){opacity:0.4}@media (any-hover: hover){:host(:hover){opacity:0.6}}',jA=':host{--background:transparent;--color-focused:currentColor;--border-radius:initial;--padding-top:0;--padding-bottom:0;color:var(--color);text-align:center;text-decoration:none;text-overflow:ellipsis;text-transform:none;white-space:nowrap;-webkit-font-kerning:none;font-kerning:none}.button-native{border-radius:var(--border-radius);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;min-height:inherit;border:0;outline:none;background:var(--background);line-height:1;cursor:pointer;overflow:hidden;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:0;-webkit-appearance:none;-moz-appearance:none;appearance:none}.button-inner{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;min-height:inherit;z-index:1}ion-icon{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;pointer-events:none}:host(.menu-button-hidden){display:none}:host(.menu-button-disabled){cursor:default;opacity:0.5;pointer-events:none}:host(.ion-focused) .button-native{color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}@media (any-hover: hover){:host(:hover) .button-native{color:var(--color-hover)}:host(:hover) .button-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity, 0)}}:host(.ion-color) .button-native{color:var(--ion-color-base)}:host(.in-toolbar:not(.in-toolbar-color)){color:var(--ion-toolbar-color, var(--color))}:host{--background-focused:currentColor;--background-focused-opacity:.12;--background-hover:currentColor;--background-hover-opacity:.04;--border-radius:50%;--color:initial;--padding-start:8px;--padding-end:8px;width:3rem;height:3rem;font-size:1.5rem}:host(.ion-color.ion-focused)::after{background:var(--ion-color-base)}@media (any-hover: hover){:host(.ion-color:hover) .button-native::after{background:var(--ion-color-base)}}',VA=ne(class extends ie{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.inheritedAttributes={},this.onClick=async()=>jn.toggle(this.menu),this.visible=!1,this.color=void 0,this.disabled=!1,this.menu=void 0,this.autoHide=!0,this.type="button"}componentWillLoad(){this.inheritedAttributes=Uo(this.el)}componentDidLoad(){this.visibilityChanged()}async visibilityChanged(){this.visible=await iw(this.menu)}render(){const{color:t,disabled:n,inheritedAttributes:i}=this,o=W(this),r=le.get("menuIcon",o==="ios"?pP:mP),s=this.autoHide&&!this.visible,a={type:this.type},l=i["aria-label"]||"menu";return y(ee,{onClick:this.onClick,"aria-disabled":n?"true":null,"aria-hidden":s?"true":null,class:Ne(t,{[o]:!0,button:!0,"menu-button-hidden":s,"menu-button-disabled":n,"in-toolbar":De("ion-toolbar",this.el),"in-toolbar-color":De("ion-toolbar[color]",this.el),"ion-activatable":!0,"ion-focusable":!0})},y("button",Object.assign({},a,{disabled:n,class:"button-native",part:"native","aria-label":l}),y("span",{class:"button-inner"},y("slot",null,y("ion-icon",{part:"icon",icon:r,mode:o,lazy:!1,"aria-hidden":"true"}))),o==="md"&&y("ion-ripple-effect",{type:"unbounded"})))}get el(){return this}static get style(){return{ios:BA,md:jA}}},[33,"ion-menu-button",{color:[513],disabled:[4],menu:[1],autoHide:[4,"auto-hide"],type:[1],visible:[32]},[[16,"ionMenuChange","visibilityChanged"],[16,"ionSplitPaneVisible","visibilityChanged"]]]);function FA(){if(typeof customElements>"u")return;["ion-menu-button","ion-icon","ion-ripple-effect"].forEach(t=>{switch(t){case"ion-menu-button":customElements.get(t)||customElements.define(t,VA);break;case"ion-icon":customElements.get(t)||vs();break;case"ion-ripple-effect":customElements.get(t)||Fi();break}})}const HA=FA;/*! * (C) Ionic http://ionicframework.com - MIT License */const NA=":host(.menu-toggle-hidden){display:none}",UA=ne(class extends ie{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.onClick=()=>jn.toggle(this.menu),this.visible=!1,this.menu=void 0,this.autoHide=!0}connectedCallback(){this.visibilityChanged()}async visibilityChanged(){this.visible=await iw(this.menu)}render(){const t=W(this),n=this.autoHide&&!this.visible;return y(ee,{onClick:this.onClick,"aria-hidden":n?"true":null,class:{[t]:!0,"menu-toggle-hidden":n}},y("slot",null))}static get style(){return NA}},[1,"ion-menu-toggle",{menu:[1],autoHide:[4,"auto-hide"],visible:[32]},[[16,"ionMenuChange","visibilityChanged"],[16,"ionSplitPaneVisible","visibilityChanged"]]]);function WA(){if(typeof customElements>"u")return;["ion-menu-toggle"].forEach(t=>{switch(t){case"ion-menu-toggle":customElements.get(t)||customElements.define(t,UA);break}})}const XA=WA,ow=1,rw=2,il=3;class Hu{constructor(t,n){this.component=t,this.params=n,this.state=ow}async init(t){if(this.state=rw,!this.element){const n=this.component;this.element=await Bl(this.delegate,t,n,["ion-page","ion-page-invisible"],this.params)}}_destroy(){je(this.state!==il,"view state must be ATTACHED");const t=this.element;t&&(this.delegate?this.delegate.removeViewFromDom(t.parentElement,t):t.remove()),this.nav=void 0,this.state=il}}const _g=(e,t,n)=>!e||e.component!==t?!1:mx(e.params,n),zg=(e,t)=>e?e instanceof Hu?e:new Hu(e,t):null,qA=e=>e.map(t=>t instanceof Hu?t:"component"in t?zg(t.component,t.componentProps===null?void 0:t.componentProps):zg(t,void 0)).filter(t=>t!==null),YA=":host{left:0;right:0;top:0;bottom:0;position:absolute;contain:layout size style;z-index:0}",KA=ne(class extends ie{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionNavWillLoad=B(this,"ionNavWillLoad",7),this.ionNavWillChange=B(this,"ionNavWillChange",3),this.ionNavDidChange=B(this,"ionNavDidChange",3),this.transInstr=[],this.gestureOrAnimationInProgress=!1,this.useRouter=!1,this.isTransitioning=!1,this.destroyed=!1,this.views=[],this.didLoad=!1,this.delegate=void 0,this.swipeGesture=void 0,this.animated=!0,this.animation=void 0,this.rootParams=void 0,this.root=void 0}swipeGestureChanged(){this.gesture&&this.gesture.enable(this.swipeGesture===!0)}rootChanged(){this.root!==void 0&&this.didLoad!==!1&&(this.useRouter||this.root!==void 0&&this.setRoot(this.root,this.rootParams))}componentWillLoad(){if(this.useRouter=document.querySelector("ion-router")!==null&&this.el.closest("[no-router]")===null,this.swipeGesture===void 0){const t=W(this);this.swipeGesture=le.getBoolean("swipeBackEnabled",t==="ios")}this.ionNavWillLoad.emit()}async componentDidLoad(){this.didLoad=!0,this.rootChanged(),this.gesture=(await $t(()=>import("./swipe-back-k07CChuo.js"),__vite__mapDeps([]))).createSwipeBackGesture(this.el,this.canStart.bind(this),this.onStart.bind(this),this.onMove.bind(this),this.onEnd.bind(this)),this.swipeGestureChanged()}connectedCallback(){this.destroyed=!1}disconnectedCallback(){for(const t of this.views)un(t.element,nd),t._destroy();this.gesture&&(this.gesture.destroy(),this.gesture=void 0),this.transInstr.length=0,this.views.length=0,this.destroyed=!0}push(t,n,i,o){return this.insert(-1,t,n,i,o)}insert(t,n,i,o,r){return this.insertPages(t,[{component:n,componentProps:i}],o,r)}insertPages(t,n,i,o){return this.queueTrns({insertStart:t,insertViews:n,opts:i},o)}pop(t,n){return this.removeIndex(-1,1,t,n)}popTo(t,n,i){const o={removeStart:-1,removeCount:-1,opts:n};return typeof t=="object"&&t.component?(o.removeView=t,o.removeStart=1):typeof t=="number"&&(o.removeStart=t+1),this.queueTrns(o,i)}popToRoot(t,n){return this.removeIndex(1,-1,t,n)}removeIndex(t,n=1,i,o){return this.queueTrns({removeStart:t,removeCount:n,opts:i},o)}setRoot(t,n,i,o){return this.setPages([{component:t,componentProps:n}],i,o)}setPages(t,n,i){return n??(n={}),n.animated!==!0&&(n.animated=!1),this.queueTrns({insertStart:0,insertViews:t,removeStart:0,removeCount:-1,opts:n},i)}setRouteId(t,n,i,o){const r=this.getActiveSync();if(_g(r,t,n))return Promise.resolve({changed:!1,element:r.element});let s;const a=new Promise(d=>s=d);let l;const c={updateURL:!1,viewIsReady:d=>{let u;const h=new Promise(f=>u=f);return s({changed:!0,element:d,markVisible:async()=>{u(),await l}}),h}};if(i==="root")l=this.setRoot(t,n,c);else{const d=this.views.find(u=>_g(u,t,n));d?l=this.popTo(d,Object.assign(Object.assign({},c),{direction:"back",animationBuilder:o})):i==="forward"?l=this.push(t,n,Object.assign(Object.assign({},c),{animationBuilder:o})):i==="back"&&(l=this.setRoot(t,n,Object.assign(Object.assign({},c),{direction:"back",animated:!0,animationBuilder:o})))}return a}async getRouteId(){const t=this.getActiveSync();if(t)return{id:t.element.tagName,params:t.params,element:t.element}}async getActive(){return this.getActiveSync()}async getByIndex(t){return this.views[t]}async canGoBack(t){return this.canGoBackSync(t)}async getPrevious(t){return this.getPreviousSync(t)}getLength(){return this.views.length}getActiveSync(){return this.views[this.views.length-1]}canGoBackSync(t=this.getActiveSync()){return!!(t&&this.getPreviousSync(t))}getPreviousSync(t=this.getActiveSync()){if(!t)return;const n=this.views,i=n.indexOf(t);return i>0?n[i-1]:void 0}async queueTrns(t,n){var i,o;if(this.isTransitioning&&(!((i=t.opts)===null||i===void 0)&&i.skipIfBusy))return!1;const r=new Promise((s,a)=>{t.resolve=s,t.reject=a});if(t.done=n,t.opts&&t.opts.updateURL!==!1&&this.useRouter){const s=document.querySelector("ion-router");if(s){const a=await s.canTransition();if(a===!1)return!1;if(typeof a=="string")return s.push(a,t.opts.direction||"back"),!1}}return((o=t.insertViews)===null||o===void 0?void 0:o.length)===0&&(t.insertViews=void 0),this.transInstr.push(t),this.nextTrns(),r}success(t,n){if(this.destroyed){this.fireError("nav controller was destroyed",n);return}if(n.done&&n.done(t.hasCompleted,t.requiresTransition,t.enteringView,t.leavingView,t.direction),n.resolve(t.hasCompleted),n.opts.updateURL!==!1&&this.useRouter){const i=document.querySelector("ion-router");if(i){const o=t.direction==="back"?"back":"forward";i.navChanged(o)}}}failed(t,n){if(this.destroyed){this.fireError("nav controller was destroyed",n);return}this.transInstr.length=0,this.fireError(t,n)}fireError(t,n){n.done&&n.done(!1,!1,t),n.reject&&!this.destroyed?n.reject(t):n.resolve(!1)}nextTrns(){if(this.isTransitioning)return!1;const t=this.transInstr.shift();return t?(this.runTransition(t),!0):!1}async runTransition(t){try{this.ionNavWillChange.emit(),this.isTransitioning=!0,this.prepareTI(t);const n=this.getActiveSync(),i=this.getEnteringView(t,n);if(!n&&!i)throw new Error("no views in the stack to be removed");i&&i.state===ow&&await i.init(this.el),this.postViewInit(i,n,t);const o=(t.enteringRequiresTransition||t.leavingRequiresTransition)&&i!==n;o&&t.opts&&n&&(t.opts.direction==="back"&&(t.opts.animationBuilder=t.opts.animationBuilder||(i==null?void 0:i.animationBuilder)),n.animationBuilder=t.opts.animationBuilder);let r;o?r=await this.transition(i,n,t):r={hasCompleted:!0,requiresTransition:!1},this.success(r,t),this.ionNavDidChange.emit()}catch(n){this.failed(n,t)}this.isTransitioning=!1,this.nextTrns()}prepareTI(t){var n,i,o;const r=this.views.length;if((n=t.opts)!==null&&n!==void 0||(t.opts={}),(i=(o=t.opts).delegate)!==null&&i!==void 0||(o.delegate=this.delegate),t.removeView!==void 0){je(t.removeStart!==void 0,"removeView needs removeStart"),je(t.removeCount!==void 0,"removeView needs removeCount");const l=this.views.indexOf(t.removeView);if(l<0)throw new Error("removeView was not found");t.removeStart+=l}t.removeStart!==void 0&&(t.removeStart<0&&(t.removeStart=r-1),t.removeCount<0&&(t.removeCount=r-t.removeStart),t.leavingRequiresTransition=t.removeCount>0&&t.removeStart+t.removeCount===r),t.insertViews&&((t.insertStart<0||t.insertStart>r)&&(t.insertStart=r),t.enteringRequiresTransition=t.insertStart===r);const s=t.insertViews;if(!s)return;je(s.length>0,"length can not be zero");const a=qA(s);if(a.length===0)throw new Error("invalid views to insert");for(const l of a){l.delegate=t.opts.delegate;const c=l.nav;if(c&&c!==this)throw new Error("inserted view was already inserted");if(l.state===il)throw new Error("inserted view was already destroyed")}t.insertViews=a}getEnteringView(t,n){const i=t.insertViews;if(i!==void 0)return i[i.length-1];const o=t.removeStart;if(o!==void 0){const r=this.views,s=o+t.removeCount;for(let a=r.length-1;a>=0;a--){const l=r[a];if((a=s)&&l!==n)return l}}}postViewInit(t,n,i){var o,r,s;je(n||t,"Both leavingView and enteringView are null"),je(i.resolve,"resolve must be valid"),je(i.reject,"reject must be valid");const a=i.opts,{insertViews:l,removeStart:c,removeCount:d}=i;let u;if(c!==void 0&&d!==void 0){je(c>=0,"removeStart can not be negative"),je(d>=0,"removeCount can not be negative"),u=[];for(let f=c;f=0,"final balance can not be negative"),h===0)throw console.warn("You can't remove all the pages in the navigation stack. nav.pop() is probably called too many times.",this,this.el),new Error("navigation stack needs at least one root page");if(l){let f=i.insertStart;for(const p of l)this.insertViewAt(p,f),f++;i.enteringRequiresTransition&&((s=a.direction)!==null&&s!==void 0||(a.direction="forward"))}if(u&&u.length>0){for(const f of u)un(f.element,gx),un(f.element,bx),un(f.element,nd);for(const f of u)this.destroyView(f)}}async transition(t,n,i){const o=i.opts,r=o.progressAnimation?u=>{u!==void 0&&!this.gestureOrAnimationInProgress?(this.gestureOrAnimationInProgress=!0,u.onFinish(()=>{this.gestureOrAnimationInProgress=!1},{oneTimeCallback:!0}),u.progressEnd(0,0,0)):this.sbAni=u}:void 0,s=W(this),a=t.element,l=n&&n.element,c=Object.assign(Object.assign({mode:s,showGoBack:this.canGoBackSync(t),baseEl:this.el,progressCallback:r,animated:this.animated&&le.getBoolean("animated",!0),enteringEl:a,leavingEl:l},o),{animationBuilder:o.animationBuilder||this.animation||le.get("navAnimation")}),{hasCompleted:d}=await vx(c);return this.transitionFinish(d,t,n,o)}transitionFinish(t,n,i,o){const r=t?n:i;return r&&this.unmountInactiveViews(r),{hasCompleted:t,requiresTransition:!0,enteringView:n,leavingView:i,direction:o.direction}}insertViewAt(t,n){const i=this.views,o=i.indexOf(t);o>-1?(je(t.nav===this,"view is not part of the nav"),i.splice(o,1),i.splice(n,0,t)):(je(!t.nav,"nav is used"),t.nav=this,i.splice(n,0,t))}removeView(t){je(t.state===rw||t.state===il,"view state should be loaded or destroyed");const n=this.views,i=n.indexOf(t);je(i>-1,"view must be part of the stack"),i>=0&&n.splice(i,1)}destroyView(t){t._destroy(),this.removeView(t)}unmountInactiveViews(t){if(this.destroyed)return;const n=this.views,i=n.indexOf(t);for(let o=n.length-1;o>=0;o--){const r=n[o],s=r.element;s&&(o>i?(un(s,nd),this.destroyView(r)):o{this.gestureOrAnimationInProgress=!1},{oneTimeCallback:!0});let o=t?-.001:.001;t?o+=$i([0,0],[.32,.72],[0,1],[1,1],n)[0]:(this.sbAni.easing("cubic-bezier(1, 0, 0.68, 0.28)"),o+=$i([0,0],[1,0],[.68,.28],[1,1],n)[0]),this.sbAni.progressEnd(t?1:0,o,i)}else this.gestureOrAnimationInProgress=!1}render(){return y("slot",null)}get el(){return this}static get watchers(){return{swipeGesture:["swipeGestureChanged"],root:["rootChanged"]}}static get style(){return YA}},[1,"ion-nav",{delegate:[16],swipeGesture:[1028,"swipe-gesture"],animated:[4],animation:[16],rootParams:[16],root:[1],push:[64],insert:[64],insertPages:[64],pop:[64],popTo:[64],popToRoot:[64],removeIndex:[64],setRoot:[64],setPages:[64],setRouteId:[64],getRouteId:[64],getActive:[64],getByIndex:[64],canGoBack:[64],getPrevious:[64]},void 0,{swipeGesture:["swipeGestureChanged"],root:["rootChanged"]}]);function GA(){if(typeof customElements>"u")return;["ion-nav"].forEach(t=>{switch(t){case"ion-nav":customElements.get(t)||customElements.define(t,KA);break}})}const QA=GA;/*! * (C) Ionic http://ionicframework.com - MIT License */const ZA=Ul;/*! * (C) Ionic http://ionicframework.com - MIT License */const JA=":host{--background:rgba(var(--ion-color-primary-rgb, 56, 128, 255), 0.3);--progress-background:var(--ion-color-primary, #3880ff);--buffer-background:var(--background);display:block;position:relative;width:100%;contain:strict;direction:ltr;overflow:hidden}.progress,.progress-indeterminate,.indeterminate-bar-primary,.indeterminate-bar-secondary,.progress-buffer-bar{left:0;right:0;top:0;bottom:0;position:absolute;width:100%;height:100%}.buffer-circles-container,.buffer-circles{left:0;right:0;top:0;bottom:0;position:absolute}.buffer-circles{right:-10px;left:-10px;}.progress,.progress-buffer-bar,.buffer-circles-container{-webkit-transform-origin:left top;transform-origin:left top;-webkit-transition:-webkit-transform 150ms linear;transition:-webkit-transform 150ms linear;transition:transform 150ms linear;transition:transform 150ms linear, -webkit-transform 150ms linear}.progress,.progress-indeterminate{background:var(--progress-background);z-index:2}.progress-buffer-bar{background:var(--buffer-background);z-index:1}.buffer-circles-container{overflow:hidden}.indeterminate-bar-primary{top:0;right:0;bottom:0;left:-145.166611%;-webkit-animation:primary-indeterminate-translate 2s infinite linear;animation:primary-indeterminate-translate 2s infinite linear}.indeterminate-bar-primary .progress-indeterminate{-webkit-animation:primary-indeterminate-scale 2s infinite linear;animation:primary-indeterminate-scale 2s infinite linear;-webkit-animation-play-state:inherit;animation-play-state:inherit}.indeterminate-bar-secondary{top:0;right:0;bottom:0;left:-54.888891%;-webkit-animation:secondary-indeterminate-translate 2s infinite linear;animation:secondary-indeterminate-translate 2s infinite linear}.indeterminate-bar-secondary .progress-indeterminate{-webkit-animation:secondary-indeterminate-scale 2s infinite linear;animation:secondary-indeterminate-scale 2s infinite linear;-webkit-animation-play-state:inherit;animation-play-state:inherit}.buffer-circles{background-image:radial-gradient(ellipse at center, var(--buffer-background) 0%, var(--buffer-background) 30%, transparent 30%);background-repeat:repeat-x;background-position:5px center;background-size:10px 10px;z-index:0;-webkit-animation:buffering 450ms infinite linear;animation:buffering 450ms infinite linear}:host(.progress-bar-reversed){-webkit-transform:scaleX(-1);transform:scaleX(-1)}:host(.progress-paused) .indeterminate-bar-secondary,:host(.progress-paused) .indeterminate-bar-primary,:host(.progress-paused) .buffer-circles{-webkit-animation-play-state:paused;animation-play-state:paused}:host(.ion-color) .progress-buffer-bar{background:rgba(var(--ion-color-base-rgb), 0.3)}:host(.ion-color) .buffer-circles{background-image:radial-gradient(ellipse at center, rgba(var(--ion-color-base-rgb), 0.3) 0%, rgba(var(--ion-color-base-rgb), 0.3) 30%, transparent 30%)}:host(.ion-color) .progress,:host(.ion-color) .progress-indeterminate{background:var(--ion-color-base)}@-webkit-keyframes primary-indeterminate-translate{0%{-webkit-transform:translateX(0);transform:translateX(0)}20%{-webkit-animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);-webkit-transform:translateX(0);transform:translateX(0)}59.15%{-webkit-animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);-webkit-transform:translateX(83.67142%);transform:translateX(83.67142%)}100%{-webkit-transform:translateX(200.611057%);transform:translateX(200.611057%)}}@keyframes primary-indeterminate-translate{0%{-webkit-transform:translateX(0);transform:translateX(0)}20%{-webkit-animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);-webkit-transform:translateX(0);transform:translateX(0)}59.15%{-webkit-animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);-webkit-transform:translateX(83.67142%);transform:translateX(83.67142%)}100%{-webkit-transform:translateX(200.611057%);transform:translateX(200.611057%)}}@-webkit-keyframes primary-indeterminate-scale{0%{-webkit-transform:scaleX(0.08);transform:scaleX(0.08)}36.65%{-webkit-animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);-webkit-transform:scaleX(0.08);transform:scaleX(0.08)}69.15%{-webkit-animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);-webkit-transform:scaleX(0.661479);transform:scaleX(0.661479)}100%{-webkit-transform:scaleX(0.08);transform:scaleX(0.08)}}@keyframes primary-indeterminate-scale{0%{-webkit-transform:scaleX(0.08);transform:scaleX(0.08)}36.65%{-webkit-animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);-webkit-transform:scaleX(0.08);transform:scaleX(0.08)}69.15%{-webkit-animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);-webkit-transform:scaleX(0.661479);transform:scaleX(0.661479)}100%{-webkit-transform:scaleX(0.08);transform:scaleX(0.08)}}@-webkit-keyframes secondary-indeterminate-translate{0%{-webkit-animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);-webkit-transform:translateX(0);transform:translateX(0)}25%{-webkit-animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);-webkit-transform:translateX(37.651913%);transform:translateX(37.651913%)}48.35%{-webkit-animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);-webkit-transform:translateX(84.386165%);transform:translateX(84.386165%)}100%{-webkit-transform:translateX(160.277782%);transform:translateX(160.277782%)}}@keyframes secondary-indeterminate-translate{0%{-webkit-animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);-webkit-transform:translateX(0);transform:translateX(0)}25%{-webkit-animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);-webkit-transform:translateX(37.651913%);transform:translateX(37.651913%)}48.35%{-webkit-animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);-webkit-transform:translateX(84.386165%);transform:translateX(84.386165%)}100%{-webkit-transform:translateX(160.277782%);transform:translateX(160.277782%)}}@-webkit-keyframes secondary-indeterminate-scale{0%{-webkit-animation-timing-function:cubic-bezier(0.205028, 0.057051, 0.57661, 0.453971);animation-timing-function:cubic-bezier(0.205028, 0.057051, 0.57661, 0.453971);-webkit-transform:scaleX(0.08);transform:scaleX(0.08)}19.15%{-webkit-animation-timing-function:cubic-bezier(0.152313, 0.196432, 0.648374, 1.004315);animation-timing-function:cubic-bezier(0.152313, 0.196432, 0.648374, 1.004315);-webkit-transform:scaleX(0.457104);transform:scaleX(0.457104)}44.15%{-webkit-animation-timing-function:cubic-bezier(0.257759, -0.003163, 0.211762, 1.38179);animation-timing-function:cubic-bezier(0.257759, -0.003163, 0.211762, 1.38179);-webkit-transform:scaleX(0.72796);transform:scaleX(0.72796)}100%{-webkit-transform:scaleX(0.08);transform:scaleX(0.08)}}@keyframes secondary-indeterminate-scale{0%{-webkit-animation-timing-function:cubic-bezier(0.205028, 0.057051, 0.57661, 0.453971);animation-timing-function:cubic-bezier(0.205028, 0.057051, 0.57661, 0.453971);-webkit-transform:scaleX(0.08);transform:scaleX(0.08)}19.15%{-webkit-animation-timing-function:cubic-bezier(0.152313, 0.196432, 0.648374, 1.004315);animation-timing-function:cubic-bezier(0.152313, 0.196432, 0.648374, 1.004315);-webkit-transform:scaleX(0.457104);transform:scaleX(0.457104)}44.15%{-webkit-animation-timing-function:cubic-bezier(0.257759, -0.003163, 0.211762, 1.38179);animation-timing-function:cubic-bezier(0.257759, -0.003163, 0.211762, 1.38179);-webkit-transform:scaleX(0.72796);transform:scaleX(0.72796)}100%{-webkit-transform:scaleX(0.08);transform:scaleX(0.08)}}@-webkit-keyframes buffering{to{-webkit-transform:translateX(-10px);transform:translateX(-10px)}}@keyframes buffering{to{-webkit-transform:translateX(-10px);transform:translateX(-10px)}}:host{height:3px}",e3=":host{--background:rgba(var(--ion-color-primary-rgb, 56, 128, 255), 0.3);--progress-background:var(--ion-color-primary, #3880ff);--buffer-background:var(--background);display:block;position:relative;width:100%;contain:strict;direction:ltr;overflow:hidden}.progress,.progress-indeterminate,.indeterminate-bar-primary,.indeterminate-bar-secondary,.progress-buffer-bar{left:0;right:0;top:0;bottom:0;position:absolute;width:100%;height:100%}.buffer-circles-container,.buffer-circles{left:0;right:0;top:0;bottom:0;position:absolute}.buffer-circles{right:-10px;left:-10px;}.progress,.progress-buffer-bar,.buffer-circles-container{-webkit-transform-origin:left top;transform-origin:left top;-webkit-transition:-webkit-transform 150ms linear;transition:-webkit-transform 150ms linear;transition:transform 150ms linear;transition:transform 150ms linear, -webkit-transform 150ms linear}.progress,.progress-indeterminate{background:var(--progress-background);z-index:2}.progress-buffer-bar{background:var(--buffer-background);z-index:1}.buffer-circles-container{overflow:hidden}.indeterminate-bar-primary{top:0;right:0;bottom:0;left:-145.166611%;-webkit-animation:primary-indeterminate-translate 2s infinite linear;animation:primary-indeterminate-translate 2s infinite linear}.indeterminate-bar-primary .progress-indeterminate{-webkit-animation:primary-indeterminate-scale 2s infinite linear;animation:primary-indeterminate-scale 2s infinite linear;-webkit-animation-play-state:inherit;animation-play-state:inherit}.indeterminate-bar-secondary{top:0;right:0;bottom:0;left:-54.888891%;-webkit-animation:secondary-indeterminate-translate 2s infinite linear;animation:secondary-indeterminate-translate 2s infinite linear}.indeterminate-bar-secondary .progress-indeterminate{-webkit-animation:secondary-indeterminate-scale 2s infinite linear;animation:secondary-indeterminate-scale 2s infinite linear;-webkit-animation-play-state:inherit;animation-play-state:inherit}.buffer-circles{background-image:radial-gradient(ellipse at center, var(--buffer-background) 0%, var(--buffer-background) 30%, transparent 30%);background-repeat:repeat-x;background-position:5px center;background-size:10px 10px;z-index:0;-webkit-animation:buffering 450ms infinite linear;animation:buffering 450ms infinite linear}:host(.progress-bar-reversed){-webkit-transform:scaleX(-1);transform:scaleX(-1)}:host(.progress-paused) .indeterminate-bar-secondary,:host(.progress-paused) .indeterminate-bar-primary,:host(.progress-paused) .buffer-circles{-webkit-animation-play-state:paused;animation-play-state:paused}:host(.ion-color) .progress-buffer-bar{background:rgba(var(--ion-color-base-rgb), 0.3)}:host(.ion-color) .buffer-circles{background-image:radial-gradient(ellipse at center, rgba(var(--ion-color-base-rgb), 0.3) 0%, rgba(var(--ion-color-base-rgb), 0.3) 30%, transparent 30%)}:host(.ion-color) .progress,:host(.ion-color) .progress-indeterminate{background:var(--ion-color-base)}@-webkit-keyframes primary-indeterminate-translate{0%{-webkit-transform:translateX(0);transform:translateX(0)}20%{-webkit-animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);-webkit-transform:translateX(0);transform:translateX(0)}59.15%{-webkit-animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);-webkit-transform:translateX(83.67142%);transform:translateX(83.67142%)}100%{-webkit-transform:translateX(200.611057%);transform:translateX(200.611057%)}}@keyframes primary-indeterminate-translate{0%{-webkit-transform:translateX(0);transform:translateX(0)}20%{-webkit-animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);-webkit-transform:translateX(0);transform:translateX(0)}59.15%{-webkit-animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);-webkit-transform:translateX(83.67142%);transform:translateX(83.67142%)}100%{-webkit-transform:translateX(200.611057%);transform:translateX(200.611057%)}}@-webkit-keyframes primary-indeterminate-scale{0%{-webkit-transform:scaleX(0.08);transform:scaleX(0.08)}36.65%{-webkit-animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);-webkit-transform:scaleX(0.08);transform:scaleX(0.08)}69.15%{-webkit-animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);-webkit-transform:scaleX(0.661479);transform:scaleX(0.661479)}100%{-webkit-transform:scaleX(0.08);transform:scaleX(0.08)}}@keyframes primary-indeterminate-scale{0%{-webkit-transform:scaleX(0.08);transform:scaleX(0.08)}36.65%{-webkit-animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);-webkit-transform:scaleX(0.08);transform:scaleX(0.08)}69.15%{-webkit-animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);-webkit-transform:scaleX(0.661479);transform:scaleX(0.661479)}100%{-webkit-transform:scaleX(0.08);transform:scaleX(0.08)}}@-webkit-keyframes secondary-indeterminate-translate{0%{-webkit-animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);-webkit-transform:translateX(0);transform:translateX(0)}25%{-webkit-animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);-webkit-transform:translateX(37.651913%);transform:translateX(37.651913%)}48.35%{-webkit-animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);-webkit-transform:translateX(84.386165%);transform:translateX(84.386165%)}100%{-webkit-transform:translateX(160.277782%);transform:translateX(160.277782%)}}@keyframes secondary-indeterminate-translate{0%{-webkit-animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);-webkit-transform:translateX(0);transform:translateX(0)}25%{-webkit-animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);-webkit-transform:translateX(37.651913%);transform:translateX(37.651913%)}48.35%{-webkit-animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);-webkit-transform:translateX(84.386165%);transform:translateX(84.386165%)}100%{-webkit-transform:translateX(160.277782%);transform:translateX(160.277782%)}}@-webkit-keyframes secondary-indeterminate-scale{0%{-webkit-animation-timing-function:cubic-bezier(0.205028, 0.057051, 0.57661, 0.453971);animation-timing-function:cubic-bezier(0.205028, 0.057051, 0.57661, 0.453971);-webkit-transform:scaleX(0.08);transform:scaleX(0.08)}19.15%{-webkit-animation-timing-function:cubic-bezier(0.152313, 0.196432, 0.648374, 1.004315);animation-timing-function:cubic-bezier(0.152313, 0.196432, 0.648374, 1.004315);-webkit-transform:scaleX(0.457104);transform:scaleX(0.457104)}44.15%{-webkit-animation-timing-function:cubic-bezier(0.257759, -0.003163, 0.211762, 1.38179);animation-timing-function:cubic-bezier(0.257759, -0.003163, 0.211762, 1.38179);-webkit-transform:scaleX(0.72796);transform:scaleX(0.72796)}100%{-webkit-transform:scaleX(0.08);transform:scaleX(0.08)}}@keyframes secondary-indeterminate-scale{0%{-webkit-animation-timing-function:cubic-bezier(0.205028, 0.057051, 0.57661, 0.453971);animation-timing-function:cubic-bezier(0.205028, 0.057051, 0.57661, 0.453971);-webkit-transform:scaleX(0.08);transform:scaleX(0.08)}19.15%{-webkit-animation-timing-function:cubic-bezier(0.152313, 0.196432, 0.648374, 1.004315);animation-timing-function:cubic-bezier(0.152313, 0.196432, 0.648374, 1.004315);-webkit-transform:scaleX(0.457104);transform:scaleX(0.457104)}44.15%{-webkit-animation-timing-function:cubic-bezier(0.257759, -0.003163, 0.211762, 1.38179);animation-timing-function:cubic-bezier(0.257759, -0.003163, 0.211762, 1.38179);-webkit-transform:scaleX(0.72796);transform:scaleX(0.72796)}100%{-webkit-transform:scaleX(0.08);transform:scaleX(0.08)}}@-webkit-keyframes buffering{to{-webkit-transform:translateX(-10px);transform:translateX(-10px)}}@keyframes buffering{to{-webkit-transform:translateX(-10px);transform:translateX(-10px)}}:host{height:4px}",t3=ne(class extends ie{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.type="determinate",this.reversed=!1,this.value=0,this.buffer=1,this.color=void 0}render(){const{color:t,type:n,reversed:i,value:o,buffer:r}=this,s=le.getBoolean("_testing"),a=W(this);return y(ee,{role:"progressbar","aria-valuenow":n==="determinate"?o:null,"aria-valuemin":"0","aria-valuemax":"1",class:Ne(t,{[a]:!0,[`progress-bar-${n}`]:!0,"progress-paused":s,"progress-bar-reversed":document.dir==="rtl"?!i:i})},n==="indeterminate"?n3():i3(o,r))}static get style(){return{ios:JA,md:e3}}},[33,"ion-progress-bar",{type:[1],reversed:[4],value:[2],buffer:[2],color:[513]}]),n3=()=>y("div",{part:"track",class:"progress-buffer-bar"},y("div",{class:"indeterminate-bar-primary"},y("span",{part:"progress",class:"progress-indeterminate"})),y("div",{class:"indeterminate-bar-secondary"},y("span",{part:"progress",class:"progress-indeterminate"}))),i3=(e,t)=>{const n=et(0,e,1),i=et(0,t,1);return[y("div",{part:"progress",class:"progress",style:{transform:`scaleX(${n})`}}),y("div",{class:{"buffer-circles-container":!0,"ion-hide":i===1},style:{transform:`translateX(${i*100}%)`}},y("div",{class:"buffer-circles-container",style:{transform:`translateX(-${i*100}%)`}},y("div",{part:"stream",class:"buffer-circles"}))),y("div",{part:"track",class:"progress-buffer-bar",style:{transform:`scaleX(${i})`}})]};function o3(){if(typeof customElements>"u")return;["ion-progress-bar"].forEach(t=>{switch(t){case"ion-progress-bar":customElements.get(t)||customElements.define(t,t3);break}})}const r3=o3;/*! * (C) Ionic http://ionicframework.com - MIT License */const Nu=(e,t,n)=>typeof n=="function"?n(e,t):typeof n=="string"?e[n]===t[n]:Array.isArray(t)?t.includes(e):e===t,ga=(e,t,n)=>e===void 0?!1:Array.isArray(e)?e.some(i=>Nu(i,t,n)):Nu(e,t,n),s3=':host{--inner-border-radius:50%;display:inline-block;position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;max-width:100%;min-height:inherit;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:2}:host(:not(.legacy-radio)){cursor:pointer}:host(.radio-disabled){pointer-events:none}.radio-icon{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;contain:layout size style}.radio-icon,.radio-inner{-webkit-box-sizing:border-box;box-sizing:border-box}:host(.legacy-radio) label{top:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;position:absolute;width:100%;height:100%;border:0;background:transparent;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;opacity:0}@supports (inset-inline-start: 0){:host(.legacy-radio) label{inset-inline-start:0}}@supports not (inset-inline-start: 0){:host(.legacy-radio) label{left:0}:host-context([dir=rtl]):host(.legacy-radio) label,:host-context([dir=rtl]).legacy-radio label{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){:host(.legacy-radio:dir(rtl)) label{left:unset;right:unset;right:0}}}:host(.legacy-radio) label::-moz-focus-inner{border:0}input{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}:host(:focus){outline:none}:host(.in-item:not(.legacy-radio)){width:100%;height:100%}:host([slot=start]:not(.legacy-radio)),:host([slot=end]:not(.legacy-radio)){width:auto}.radio-wrapper{display:-ms-flexbox;display:flex;position:relative;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center;height:inherit;min-height:inherit;cursor:inherit}.label-text-wrapper{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}:host(.in-item:not(.legacy-radio)) .label-text-wrapper{margin-top:10px;margin-bottom:10px}:host(.in-item.radio-label-placement-stacked) .label-text-wrapper{margin-top:10px;margin-bottom:16px}:host(.in-item.radio-label-placement-stacked) .native-wrapper{margin-bottom:10px}.label-text-wrapper-hidden{display:none}.native-wrapper{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host(.radio-justify-space-between) .radio-wrapper{-ms-flex-pack:justify;justify-content:space-between}:host(.radio-justify-start) .radio-wrapper{-ms-flex-pack:start;justify-content:start}:host(.radio-justify-end) .radio-wrapper{-ms-flex-pack:end;justify-content:end}:host(.radio-alignment-start) .radio-wrapper{-ms-flex-align:start;align-items:start}:host(.radio-alignment-center) .radio-wrapper{-ms-flex-align:center;align-items:center}:host(.radio-label-placement-start) .radio-wrapper{-ms-flex-direction:row;flex-direction:row}:host(.radio-label-placement-start) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px}:host(.radio-label-placement-end) .radio-wrapper{-ms-flex-direction:row-reverse;flex-direction:row-reverse}:host(.radio-label-placement-end) .label-text-wrapper{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0}:host(.radio-label-placement-fixed) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px}:host(.radio-label-placement-fixed) .label-text-wrapper{-ms-flex:0 0 100px;flex:0 0 100px;width:100px;min-width:100px}:host(.radio-label-placement-stacked) .radio-wrapper{-ms-flex-direction:column;flex-direction:column}:host(.radio-label-placement-stacked) .label-text-wrapper{-webkit-transform:scale(0.75);transform:scale(0.75);margin-left:0;margin-right:0;margin-bottom:16px;max-width:calc(100% / 0.75)}:host(.radio-label-placement-stacked.radio-alignment-start) .label-text-wrapper{-webkit-transform-origin:left top;transform-origin:left top}:host-context([dir=rtl]):host(.radio-label-placement-stacked.radio-alignment-start) .label-text-wrapper,:host-context([dir=rtl]).radio-label-placement-stacked.radio-alignment-start .label-text-wrapper{-webkit-transform-origin:right top;transform-origin:right top}@supports selector(:dir(rtl)){:host(.radio-label-placement-stacked.radio-alignment-start:dir(rtl)) .label-text-wrapper{-webkit-transform-origin:right top;transform-origin:right top}}:host(.radio-label-placement-stacked.radio-alignment-center) .label-text-wrapper{-webkit-transform-origin:center top;transform-origin:center top}:host-context([dir=rtl]):host(.radio-label-placement-stacked.radio-alignment-center) .label-text-wrapper,:host-context([dir=rtl]).radio-label-placement-stacked.radio-alignment-center .label-text-wrapper{-webkit-transform-origin:calc(100% - center) top;transform-origin:calc(100% - center) top}@supports selector(:dir(rtl)){:host(.radio-label-placement-stacked.radio-alignment-center:dir(rtl)) .label-text-wrapper{-webkit-transform-origin:calc(100% - center) top;transform-origin:calc(100% - center) top}}:host{--color-checked:var(--ion-color-primary, #3880ff)}:host(.legacy-radio){width:0.9375rem;height:1.5rem}:host(.ion-color.radio-checked) .radio-inner{border-color:var(--ion-color-base)}.item-radio.item-ios ion-label{-webkit-margin-start:0;margin-inline-start:0}.radio-inner{width:33%;height:50%}:host(.radio-checked) .radio-inner{-webkit-transform:rotate(45deg);transform:rotate(45deg);border-width:0.125rem;border-top-width:0;border-left-width:0;border-style:solid;border-color:var(--color-checked)}:host(.radio-disabled){opacity:0.3}:host(.ion-focused) .radio-icon::after{border-radius:var(--inner-border-radius);top:-8px;display:block;position:absolute;width:36px;height:36px;background:var(--ion-color-primary-tint, #4c8dff);content:"";opacity:0.2}@supports (inset-inline-start: 0){:host(.ion-focused) .radio-icon::after{inset-inline-start:-9px}}@supports not (inset-inline-start: 0){:host(.ion-focused) .radio-icon::after{left:-9px}:host-context([dir=rtl]):host(.ion-focused) .radio-icon::after,:host-context([dir=rtl]).ion-focused .radio-icon::after{left:unset;right:unset;right:-9px}@supports selector(:dir(rtl)){:host(.ion-focused:dir(rtl)) .radio-icon::after{left:unset;right:unset;right:-9px}}}:host(.in-item.legacy-radio){-webkit-margin-start:8px;margin-inline-start:8px;-webkit-margin-end:11px;margin-inline-end:11px;margin-top:8px;margin-bottom:8px;display:block;position:static}:host(.in-item.legacy-radio[slot=start]){-webkit-margin-start:3px;margin-inline-start:3px;-webkit-margin-end:21px;margin-inline-end:21px;margin-top:8px;margin-bottom:8px}.native-wrapper .radio-icon{width:0.9375rem;height:1.5rem}',a3=':host{--inner-border-radius:50%;display:inline-block;position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;max-width:100%;min-height:inherit;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:2}:host(:not(.legacy-radio)){cursor:pointer}:host(.radio-disabled){pointer-events:none}.radio-icon{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;contain:layout size style}.radio-icon,.radio-inner{-webkit-box-sizing:border-box;box-sizing:border-box}:host(.legacy-radio) label{top:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;position:absolute;width:100%;height:100%;border:0;background:transparent;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;opacity:0}@supports (inset-inline-start: 0){:host(.legacy-radio) label{inset-inline-start:0}}@supports not (inset-inline-start: 0){:host(.legacy-radio) label{left:0}:host-context([dir=rtl]):host(.legacy-radio) label,:host-context([dir=rtl]).legacy-radio label{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){:host(.legacy-radio:dir(rtl)) label{left:unset;right:unset;right:0}}}:host(.legacy-radio) label::-moz-focus-inner{border:0}input{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}:host(:focus){outline:none}:host(.in-item:not(.legacy-radio)){width:100%;height:100%}:host([slot=start]:not(.legacy-radio)),:host([slot=end]:not(.legacy-radio)){width:auto}.radio-wrapper{display:-ms-flexbox;display:flex;position:relative;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center;height:inherit;min-height:inherit;cursor:inherit}.label-text-wrapper{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}:host(.in-item:not(.legacy-radio)) .label-text-wrapper{margin-top:10px;margin-bottom:10px}:host(.in-item.radio-label-placement-stacked) .label-text-wrapper{margin-top:10px;margin-bottom:16px}:host(.in-item.radio-label-placement-stacked) .native-wrapper{margin-bottom:10px}.label-text-wrapper-hidden{display:none}.native-wrapper{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host(.radio-justify-space-between) .radio-wrapper{-ms-flex-pack:justify;justify-content:space-between}:host(.radio-justify-start) .radio-wrapper{-ms-flex-pack:start;justify-content:start}:host(.radio-justify-end) .radio-wrapper{-ms-flex-pack:end;justify-content:end}:host(.radio-alignment-start) .radio-wrapper{-ms-flex-align:start;align-items:start}:host(.radio-alignment-center) .radio-wrapper{-ms-flex-align:center;align-items:center}:host(.radio-label-placement-start) .radio-wrapper{-ms-flex-direction:row;flex-direction:row}:host(.radio-label-placement-start) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px}:host(.radio-label-placement-end) .radio-wrapper{-ms-flex-direction:row-reverse;flex-direction:row-reverse}:host(.radio-label-placement-end) .label-text-wrapper{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0}:host(.radio-label-placement-fixed) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px}:host(.radio-label-placement-fixed) .label-text-wrapper{-ms-flex:0 0 100px;flex:0 0 100px;width:100px;min-width:100px}:host(.radio-label-placement-stacked) .radio-wrapper{-ms-flex-direction:column;flex-direction:column}:host(.radio-label-placement-stacked) .label-text-wrapper{-webkit-transform:scale(0.75);transform:scale(0.75);margin-left:0;margin-right:0;margin-bottom:16px;max-width:calc(100% / 0.75)}:host(.radio-label-placement-stacked.radio-alignment-start) .label-text-wrapper{-webkit-transform-origin:left top;transform-origin:left top}:host-context([dir=rtl]):host(.radio-label-placement-stacked.radio-alignment-start) .label-text-wrapper,:host-context([dir=rtl]).radio-label-placement-stacked.radio-alignment-start .label-text-wrapper{-webkit-transform-origin:right top;transform-origin:right top}@supports selector(:dir(rtl)){:host(.radio-label-placement-stacked.radio-alignment-start:dir(rtl)) .label-text-wrapper{-webkit-transform-origin:right top;transform-origin:right top}}:host(.radio-label-placement-stacked.radio-alignment-center) .label-text-wrapper{-webkit-transform-origin:center top;transform-origin:center top}:host-context([dir=rtl]):host(.radio-label-placement-stacked.radio-alignment-center) .label-text-wrapper,:host-context([dir=rtl]).radio-label-placement-stacked.radio-alignment-center .label-text-wrapper{-webkit-transform-origin:calc(100% - center) top;transform-origin:calc(100% - center) top}@supports selector(:dir(rtl)){:host(.radio-label-placement-stacked.radio-alignment-center:dir(rtl)) .label-text-wrapper{-webkit-transform-origin:calc(100% - center) top;transform-origin:calc(100% - center) top}}:host{--color:rgb(var(--ion-text-color-rgb, 0, 0, 0), 0.6);--color-checked:var(--ion-color-primary, #3880ff);--border-width:0.125rem;--border-style:solid;--border-radius:50%}:host(.legacy-radio){width:1.25rem;height:1.25rem}:host(.ion-color) .radio-inner{background:var(--ion-color-base)}:host(.ion-color.radio-checked) .radio-icon{border-color:var(--ion-color-base)}.radio-icon{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;border-radius:var(--border-radius);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--color)}.radio-inner{border-radius:var(--inner-border-radius);width:calc(50% + var(--border-width));height:calc(50% + var(--border-width));-webkit-transform:scale3d(0, 0, 0);transform:scale3d(0, 0, 0);-webkit-transition:-webkit-transform 280ms cubic-bezier(0.4, 0, 0.2, 1);transition:-webkit-transform 280ms cubic-bezier(0.4, 0, 0.2, 1);transition:transform 280ms cubic-bezier(0.4, 0, 0.2, 1);transition:transform 280ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 280ms cubic-bezier(0.4, 0, 0.2, 1);background:var(--color-checked)}:host(.radio-checked) .radio-icon{border-color:var(--color-checked)}:host(.radio-checked) .radio-inner{-webkit-transform:scale3d(1, 1, 1);transform:scale3d(1, 1, 1)}:host(.legacy-radio.radio-disabled),:host(.radio-disabled) .label-text-wrapper{opacity:0.38}:host(.radio-disabled) .native-wrapper{opacity:0.63}:host(.ion-focused.legacy-radio) .radio-icon::after{top:-12px}@supports (inset-inline-start: 0){:host(.ion-focused.legacy-radio) .radio-icon::after{inset-inline-start:-12px}}@supports not (inset-inline-start: 0){:host(.ion-focused.legacy-radio) .radio-icon::after{left:-12px}:host-context([dir=rtl]):host(.ion-focused.legacy-radio) .radio-icon::after,:host-context([dir=rtl]).ion-focused.legacy-radio .radio-icon::after{left:unset;right:unset;right:-12px}@supports selector(:dir(rtl)){:host(.ion-focused.legacy-radio:dir(rtl)) .radio-icon::after{left:unset;right:unset;right:-12px}}}:host(.ion-focused) .radio-icon::after{border-radius:var(--inner-border-radius);display:block;position:absolute;width:36px;height:36px;background:var(--ion-color-primary-tint, #4c8dff);content:"";opacity:0.2}:host(.in-item.legacy-radio){margin-left:0;margin-right:0;margin-top:9px;margin-bottom:9px;display:block;position:static}:host(.in-item.legacy-radio[slot=start]){-webkit-margin-start:4px;margin-inline-start:4px;-webkit-margin-end:36px;margin-inline-end:36px;margin-top:11px;margin-bottom:10px}.native-wrapper .radio-icon{width:1.25rem;height:1.25rem}',l3=ne(class extends ie{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionStyle=B(this,"ionStyle",7),this.ionFocus=B(this,"ionFocus",7),this.ionBlur=B(this,"ionBlur",7),this.inputId=`ion-rb-${c3++}`,this.radioGroup=null,this.hasLoggedDeprecationWarning=!1,this.updateState=()=>{if(this.radioGroup){const{compareWith:t,value:n}=this.radioGroup;this.checked=ga(n,this.value,t)}},this.onClick=()=>{const{radioGroup:t,checked:n,disabled:i}=this;if(!i){if(this.legacyFormController.hasLegacyControl()){this.checked=this.nativeInput.checked;return}n&&(t!=null&&t.allowEmptySelection)?this.checked=!1:this.checked=!0}},this.onFocus=()=>{this.ionFocus.emit()},this.onBlur=()=>{this.ionBlur.emit()},this.checked=!1,this.buttonTabindex=-1,this.color=void 0,this.name=this.inputId,this.disabled=!1,this.value=void 0,this.labelPlacement="start",this.legacy=void 0,this.justify="space-between",this.alignment="center"}valueChanged(){this.updateState()}async setFocus(t){t.stopPropagation(),t.preventDefault(),this.el.focus()}async setButtonTabindex(t){this.buttonTabindex=t}connectedCallback(){this.legacyFormController=Nl(this.el),this.value===void 0&&(this.value=this.inputId);const t=this.radioGroup=this.el.closest("ion-radio-group");t&&(this.updateState(),vf(t,"ionValueChange",this.updateState))}disconnectedCallback(){const t=this.radioGroup;t&&(fx(t,"ionValueChange",this.updateState),this.radioGroup=null)}componentWillLoad(){this.emitStyle()}styleChanged(){this.emitStyle()}emitStyle(){const t={"interactive-disabled":this.disabled,legacy:!!this.legacy};this.legacyFormController.hasLegacyControl()&&(t["radio-checked"]=this.checked),this.ionStyle.emit(t)}get hasLabel(){return this.el.textContent!==""}renderRadioControl(){return y("div",{class:"radio-icon",part:"container"},y("div",{class:"radio-inner",part:"mark"}),y("div",{class:"radio-ripple"}))}render(){const{legacyFormController:t}=this;return t.hasLegacyControl()?this.renderLegacyRadio():this.renderRadio()}renderRadio(){const{checked:t,disabled:n,color:i,el:o,justify:r,labelPlacement:s,hasLabel:a,buttonTabindex:l,alignment:c}=this,d=W(this),u=De("ion-item",o);return y(ee,{onFocus:this.onFocus,onBlur:this.onBlur,onClick:this.onClick,class:Ne(i,{[d]:!0,"in-item":u,"radio-checked":t,"radio-disabled":n,[`radio-justify-${r}`]:!0,[`radio-alignment-${c}`]:!0,[`radio-label-placement-${s}`]:!0,"ion-activatable":!u,"ion-focusable":!u}),role:"radio","aria-checked":t?"true":"false","aria-disabled":n?"true":null,tabindex:l},y("label",{class:"radio-wrapper"},y("div",{class:{"label-text-wrapper":!0,"label-text-wrapper-hidden":!a},part:"label"},y("slot",null)),y("div",{class:"native-wrapper"},this.renderRadioControl())))}renderLegacyRadio(){this.hasLoggedDeprecationWarning||(pe(`ion-radio now requires providing a label with either the default slot or the "aria-label" attribute. To migrate, remove any usage of "ion-label" and pass the label text to either the component or the "aria-label" attribute. Example: Option Label Example with aria-label: Developers can use the "legacy" property to continue using the legacy form markup. This property will be removed in an upcoming major release of Ionic where this form control will use the modern form markup.`,this.el),this.legacy&&pe(`ion-radio is being used with the "legacy" property enabled which will forcibly enable the legacy form markup. This property will be removed in an upcoming major release of Ionic where this form control will use the modern form markup. Developers can dismiss this warning by removing their usage of the "legacy" property and using the new radio syntax.`,this.el),this.hasLoggedDeprecationWarning=!0);const{inputId:t,disabled:n,checked:i,color:o,el:r,buttonTabindex:s}=this,a=W(this),{label:l,labelId:c,labelText:d}=es(r,t);return y(ee,{"aria-checked":`${i}`,"aria-hidden":n?"true":null,"aria-labelledby":l?c:null,role:"radio",tabindex:s,onFocus:this.onFocus,onBlur:this.onBlur,onClick:this.onClick,class:Ne(o,{[a]:!0,"in-item":De("ion-item",r),interactive:!0,"radio-checked":i,"radio-disabled":n,"legacy-radio":!0})},this.renderRadioControl(),y("label",{htmlFor:t},d),y("input",{type:"radio",checked:i,disabled:n,tabindex:"-1",id:t,ref:u=>this.nativeInput=u}))}get el(){return this}static get watchers(){return{value:["valueChanged"],checked:["styleChanged"],color:["styleChanged"],disabled:["styleChanged"]}}static get style(){return{ios:s3,md:a3}}},[33,"ion-radio",{color:[513],name:[1],disabled:[4],value:[8],labelPlacement:[1,"label-placement"],legacy:[4],justify:[1],alignment:[1],checked:[32],buttonTabindex:[32],setFocus:[64],setButtonTabindex:[64]},void 0,{value:["valueChanged"],checked:["styleChanged"],color:["styleChanged"],disabled:["styleChanged"]}]);let c3=0;function sw(){if(typeof customElements>"u")return;["ion-radio"].forEach(t=>{switch(t){case"ion-radio":customElements.get(t)||customElements.define(t,l3);break}})}/*! * (C) Ionic http://ionicframework.com - MIT License */const d3=ne(class extends ie{constructor(){super(),this.__registerHost(),this.ionChange=B(this,"ionChange",7),this.ionValueChange=B(this,"ionValueChange",7),this.inputId=`ion-rg-${u3++}`,this.labelId=`${this.inputId}-lbl`,this.setRadioTabindex=t=>{const n=this.getRadios(),i=n.find(s=>!s.disabled),o=n.find(s=>s.value===t&&!s.disabled);if(!i&&!o)return;const r=o||i;for(const s of n){const a=s===r?0:-1;s.setButtonTabindex(a)}},this.onClick=t=>{t.preventDefault();const n=t.target&&t.target.closest("ion-radio");if(n&&!n.disabled){const i=this.value,o=n.value;o!==i?(this.value=o,this.emitValueChange(t)):this.allowEmptySelection&&(this.value=void 0,this.emitValueChange(t))}},this.allowEmptySelection=!1,this.compareWith=void 0,this.name=this.inputId,this.value=void 0}valueChanged(t){this.setRadioTabindex(t),this.ionValueChange.emit({value:t})}componentDidLoad(){this.valueChanged(this.value)}async connectedCallback(){const t=this.el.querySelector("ion-list-header")||this.el.querySelector("ion-item-divider");if(t){const n=this.label=t.querySelector("ion-label");n&&(this.labelId=n.id=this.name+"-lbl")}}getRadios(){return Array.from(this.el.querySelectorAll("ion-radio"))}emitValueChange(t){const{value:n}=this;this.ionChange.emit({value:n,event:t})}onKeydown(t){const n=!!this.el.closest("ion-select-popover");if(t.target&&!this.el.contains(t.target))return;const i=this.getRadios().filter(o=>!o.disabled);if(t.target&&i.includes(t.target)){const o=i.findIndex(a=>a===t.target),r=i[o];let s;if(["ArrowDown","ArrowRight"].includes(t.key)&&(s=o===i.length-1?i[0]:i[o+1]),["ArrowUp","ArrowLeft"].includes(t.key)&&(s=o===0?i[i.length-1]:i[o-1]),s&&i.includes(s)&&(s.setFocus(t),n||(this.value=s.value,this.emitValueChange(t))),[" "].includes(t.key)){const a=this.value;this.value=this.allowEmptySelection&&this.value!==void 0?void 0:r.value,(a!==this.value||this.allowEmptySelection)&&this.emitValueChange(t),t.preventDefault()}}}render(){const{label:t,labelId:n,el:i,name:o,value:r}=this,s=W(this);return Di(!0,i,o,r,!1),y(ee,{role:"radiogroup","aria-labelledby":t?n:null,onClick:this.onClick,class:s})}get el(){return this}static get watchers(){return{value:["valueChanged"]}}},[0,"ion-radio-group",{allowEmptySelection:[4,"allow-empty-selection"],compareWith:[1,"compare-with"],name:[1],value:[1032]},[[4,"keydown","onKeydown"]],{value:["valueChanged"]}]);let u3=0;function aw(){if(typeof customElements>"u")return;["ion-radio-group"].forEach(t=>{switch(t){case"ion-radio-group":customElements.get(t)||customElements.define(t,d3);break}})}function h3(e){return e%1===0?0:e.toString().split(".")[1].length}function f3(e,...t){const n=Math.max(...t.map(i=>h3(i)));return Number(e.toFixed(n))}const p3=":host{--knob-handle-size:calc(var(--knob-size) * 2);display:-ms-flexbox;display:flex;position:relative;-ms-flex:3;flex:3;-ms-flex-align:center;align-items:center;font-family:var(--ion-font-family, inherit);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:2}:host(.range-disabled){pointer-events:none}::slotted(ion-label){-ms-flex:initial;flex:initial}::slotted(ion-icon[slot]){font-size:24px}.range-slider{position:relative;-ms-flex:1;flex:1;width:100%;height:var(--height);contain:size layout style;cursor:-webkit-grab;cursor:grab;-ms-touch-action:pan-y;touch-action:pan-y}:host(.range-pressed) .range-slider{cursor:-webkit-grabbing;cursor:grabbing}.range-pin{position:absolute;background:var(--ion-color-base);color:var(--ion-color-contrast);text-align:center;-webkit-box-sizing:border-box;box-sizing:border-box}.range-knob-handle{top:calc((var(--height) - var(--knob-handle-size)) / 2);-webkit-margin-start:calc(0px - var(--knob-handle-size) / 2);margin-inline-start:calc(0px - var(--knob-handle-size) / 2);display:-ms-flexbox;display:flex;position:absolute;-ms-flex-pack:center;justify-content:center;width:var(--knob-handle-size);height:var(--knob-handle-size);text-align:center}@supports (inset-inline-start: 0){.range-knob-handle{inset-inline-start:0}}@supports not (inset-inline-start: 0){.range-knob-handle{left:0}:host-context([dir=rtl]) .range-knob-handle{left:unset;right:unset;right:0}[dir=rtl] .range-knob-handle{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){.range-knob-handle:dir(rtl){left:unset;right:unset;right:0}}}:host-context([dir=rtl]) .range-knob-handle{left:unset}[dir=rtl] .range-knob-handle{left:unset}@supports selector(:dir(rtl)){.range-knob-handle:dir(rtl){left:unset}}.range-knob-handle:active,.range-knob-handle:focus{outline:none}.range-bar-container{border-radius:var(--bar-border-radius);top:calc((var(--height) - var(--bar-height)) / 2);position:absolute;width:100%;height:var(--bar-height)}@supports (inset-inline-start: 0){.range-bar-container{inset-inline-start:0}}@supports not (inset-inline-start: 0){.range-bar-container{left:0}:host-context([dir=rtl]) .range-bar-container{left:unset;right:unset;right:0}[dir=rtl] .range-bar-container{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){.range-bar-container:dir(rtl){left:unset;right:unset;right:0}}}:host-context([dir=rtl]) .range-bar-container{left:unset}[dir=rtl] .range-bar-container{left:unset}@supports selector(:dir(rtl)){.range-bar-container:dir(rtl){left:unset}}.range-bar{border-radius:var(--bar-border-radius);position:absolute;width:100%;height:var(--bar-height);background:var(--bar-background);pointer-events:none}.range-knob{border-radius:var(--knob-border-radius);top:calc(50% - var(--knob-size) / 2);position:absolute;width:var(--knob-size);height:var(--knob-size);background:var(--knob-background);-webkit-box-shadow:var(--knob-box-shadow);box-shadow:var(--knob-box-shadow);z-index:2;pointer-events:none}@supports (inset-inline-start: 0){.range-knob{inset-inline-start:calc(50% - var(--knob-size) / 2)}}@supports not (inset-inline-start: 0){.range-knob{left:calc(50% - var(--knob-size) / 2)}:host-context([dir=rtl]) .range-knob{left:unset;right:unset;right:calc(50% - var(--knob-size) / 2)}[dir=rtl] .range-knob{left:unset;right:unset;right:calc(50% - var(--knob-size) / 2)}@supports selector(:dir(rtl)){.range-knob:dir(rtl){left:unset;right:unset;right:calc(50% - var(--knob-size) / 2)}}}:host-context([dir=rtl]) .range-knob{left:unset}[dir=rtl] .range-knob{left:unset}@supports selector(:dir(rtl)){.range-knob:dir(rtl){left:unset}}:host(.range-pressed) .range-bar-active{will-change:left, right}:host(.in-item){width:100%}:host([slot=start]),:host([slot=end]){width:auto}:host(.in-item) ::slotted(ion-label){-ms-flex-item-align:center;align-self:center}.range-wrapper{display:-ms-flexbox;display:flex;position:relative;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center;height:inherit}::slotted([slot=label]){max-width:200px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.label-text-wrapper-hidden{display:none}.native-wrapper{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center}:host(.range-label-placement-start) .range-wrapper{-ms-flex-direction:row;flex-direction:row}:host(.range-label-placement-start) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:0;margin-bottom:0}:host(.range-label-placement-end) .range-wrapper{-ms-flex-direction:row-reverse;flex-direction:row-reverse}:host(.range-label-placement-end) .label-text-wrapper{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0;margin-top:0;margin-bottom:0}:host(.range-label-placement-fixed) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:0;margin-bottom:0}:host(.range-label-placement-fixed) .label-text-wrapper{-ms-flex:0 0 100px;flex:0 0 100px;width:100px;min-width:100px;max-width:200px}:host(.range-label-placement-stacked) .range-wrapper{-ms-flex-direction:column;flex-direction:column;-ms-flex-align:stretch;align-items:stretch}:host(.range-label-placement-stacked) .label-text-wrapper{-webkit-transform-origin:left top;transform-origin:left top;-webkit-transform:scale(0.75);transform:scale(0.75);margin-left:0;margin-right:0;margin-bottom:16px;max-width:calc(100% / 0.75)}:host-context([dir=rtl]):host(.range-label-placement-stacked) .label-text-wrapper,:host-context([dir=rtl]).range-label-placement-stacked .label-text-wrapper{-webkit-transform-origin:right top;transform-origin:right top}@supports selector(:dir(rtl)){:host(.range-label-placement-stacked:dir(rtl)) .label-text-wrapper{-webkit-transform-origin:right top;transform-origin:right top}}:host(.in-item.range-label-placement-stacked) .label-text-wrapper{margin-top:10px;margin-bottom:16px}:host(.in-item.range-label-placement-stacked) .native-wrapper{margin-bottom:0px}:host{--knob-border-radius:50%;--knob-background:#ffffff;--knob-box-shadow:0px 0.5px 4px rgba(0, 0, 0, 0.12), 0px 6px 13px rgba(0, 0, 0, 0.12);--knob-size:26px;--bar-height:4px;--bar-background:var(--ion-color-step-900, #e6e6e6);--bar-background-active:var(--ion-color-primary, #3880ff);--bar-border-radius:2px;--height:42px}:host(.legacy-range){-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:8px;padding-bottom:8px}:host(.range-item-start-adjustment){-webkit-padding-start:24px;padding-inline-start:24px}:host(.range-item-end-adjustment){-webkit-padding-end:24px;padding-inline-end:24px}:host(.ion-color) .range-bar-active,:host(.ion-color) .range-tick-active{background:var(--ion-color-base)}::slotted([slot=start]){-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:0;margin-bottom:0}::slotted([slot=end]){-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0;margin-top:0;margin-bottom:0}:host(.range-has-pin:not(.range-label-placement-stacked)){padding-top:calc(8px + 0.75rem)}:host(.range-has-pin.range-label-placement-stacked) .label-text-wrapper{margin-bottom:calc(8px + 0.75rem)}.range-bar-active{bottom:0;width:auto;background:var(--bar-background-active)}.range-bar-active.has-ticks{border-radius:0;-webkit-margin-start:-2px;margin-inline-start:-2px;-webkit-margin-end:-2px;margin-inline-end:-2px}.range-tick{-webkit-margin-start:-2px;margin-inline-start:-2px;border-radius:0;position:absolute;top:17px;width:4px;height:8px;background:var(--ion-color-step-900, #e6e6e6);pointer-events:none}.range-tick-active{background:var(--bar-background-active)}.range-pin{-webkit-transform:translate3d(0, 100%, 0) scale(0.01);transform:translate3d(0, 100%, 0) scale(0.01);-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px;padding-top:8px;padding-bottom:8px;min-width:28px;-webkit-transition:-webkit-transform 120ms ease;transition:-webkit-transform 120ms ease;transition:transform 120ms ease;transition:transform 120ms ease, -webkit-transform 120ms ease;background:transparent;color:var(--ion-text-color, #000);font-size:0.75rem;text-align:center}.range-knob-pressed .range-pin,.range-knob-handle.ion-focused .range-pin{-webkit-transform:translate3d(0, calc(-100% + 11px), 0) scale(1);transform:translate3d(0, calc(-100% + 11px), 0) scale(1)}:host(.range-disabled){opacity:0.3}",m3=':host{--knob-handle-size:calc(var(--knob-size) * 2);display:-ms-flexbox;display:flex;position:relative;-ms-flex:3;flex:3;-ms-flex-align:center;align-items:center;font-family:var(--ion-font-family, inherit);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:2}:host(.range-disabled){pointer-events:none}::slotted(ion-label){-ms-flex:initial;flex:initial}::slotted(ion-icon[slot]){font-size:24px}.range-slider{position:relative;-ms-flex:1;flex:1;width:100%;height:var(--height);contain:size layout style;cursor:-webkit-grab;cursor:grab;-ms-touch-action:pan-y;touch-action:pan-y}:host(.range-pressed) .range-slider{cursor:-webkit-grabbing;cursor:grabbing}.range-pin{position:absolute;background:var(--ion-color-base);color:var(--ion-color-contrast);text-align:center;-webkit-box-sizing:border-box;box-sizing:border-box}.range-knob-handle{top:calc((var(--height) - var(--knob-handle-size)) / 2);-webkit-margin-start:calc(0px - var(--knob-handle-size) / 2);margin-inline-start:calc(0px - var(--knob-handle-size) / 2);display:-ms-flexbox;display:flex;position:absolute;-ms-flex-pack:center;justify-content:center;width:var(--knob-handle-size);height:var(--knob-handle-size);text-align:center}@supports (inset-inline-start: 0){.range-knob-handle{inset-inline-start:0}}@supports not (inset-inline-start: 0){.range-knob-handle{left:0}:host-context([dir=rtl]) .range-knob-handle{left:unset;right:unset;right:0}[dir=rtl] .range-knob-handle{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){.range-knob-handle:dir(rtl){left:unset;right:unset;right:0}}}:host-context([dir=rtl]) .range-knob-handle{left:unset}[dir=rtl] .range-knob-handle{left:unset}@supports selector(:dir(rtl)){.range-knob-handle:dir(rtl){left:unset}}.range-knob-handle:active,.range-knob-handle:focus{outline:none}.range-bar-container{border-radius:var(--bar-border-radius);top:calc((var(--height) - var(--bar-height)) / 2);position:absolute;width:100%;height:var(--bar-height)}@supports (inset-inline-start: 0){.range-bar-container{inset-inline-start:0}}@supports not (inset-inline-start: 0){.range-bar-container{left:0}:host-context([dir=rtl]) .range-bar-container{left:unset;right:unset;right:0}[dir=rtl] .range-bar-container{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){.range-bar-container:dir(rtl){left:unset;right:unset;right:0}}}:host-context([dir=rtl]) .range-bar-container{left:unset}[dir=rtl] .range-bar-container{left:unset}@supports selector(:dir(rtl)){.range-bar-container:dir(rtl){left:unset}}.range-bar{border-radius:var(--bar-border-radius);position:absolute;width:100%;height:var(--bar-height);background:var(--bar-background);pointer-events:none}.range-knob{border-radius:var(--knob-border-radius);top:calc(50% - var(--knob-size) / 2);position:absolute;width:var(--knob-size);height:var(--knob-size);background:var(--knob-background);-webkit-box-shadow:var(--knob-box-shadow);box-shadow:var(--knob-box-shadow);z-index:2;pointer-events:none}@supports (inset-inline-start: 0){.range-knob{inset-inline-start:calc(50% - var(--knob-size) / 2)}}@supports not (inset-inline-start: 0){.range-knob{left:calc(50% - var(--knob-size) / 2)}:host-context([dir=rtl]) .range-knob{left:unset;right:unset;right:calc(50% - var(--knob-size) / 2)}[dir=rtl] .range-knob{left:unset;right:unset;right:calc(50% - var(--knob-size) / 2)}@supports selector(:dir(rtl)){.range-knob:dir(rtl){left:unset;right:unset;right:calc(50% - var(--knob-size) / 2)}}}:host-context([dir=rtl]) .range-knob{left:unset}[dir=rtl] .range-knob{left:unset}@supports selector(:dir(rtl)){.range-knob:dir(rtl){left:unset}}:host(.range-pressed) .range-bar-active{will-change:left, right}:host(.in-item){width:100%}:host([slot=start]),:host([slot=end]){width:auto}:host(.in-item) ::slotted(ion-label){-ms-flex-item-align:center;align-self:center}.range-wrapper{display:-ms-flexbox;display:flex;position:relative;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center;height:inherit}::slotted([slot=label]){max-width:200px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.label-text-wrapper-hidden{display:none}.native-wrapper{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center}:host(.range-label-placement-start) .range-wrapper{-ms-flex-direction:row;flex-direction:row}:host(.range-label-placement-start) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:0;margin-bottom:0}:host(.range-label-placement-end) .range-wrapper{-ms-flex-direction:row-reverse;flex-direction:row-reverse}:host(.range-label-placement-end) .label-text-wrapper{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0;margin-top:0;margin-bottom:0}:host(.range-label-placement-fixed) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:0;margin-bottom:0}:host(.range-label-placement-fixed) .label-text-wrapper{-ms-flex:0 0 100px;flex:0 0 100px;width:100px;min-width:100px;max-width:200px}:host(.range-label-placement-stacked) .range-wrapper{-ms-flex-direction:column;flex-direction:column;-ms-flex-align:stretch;align-items:stretch}:host(.range-label-placement-stacked) .label-text-wrapper{-webkit-transform-origin:left top;transform-origin:left top;-webkit-transform:scale(0.75);transform:scale(0.75);margin-left:0;margin-right:0;margin-bottom:16px;max-width:calc(100% / 0.75)}:host-context([dir=rtl]):host(.range-label-placement-stacked) .label-text-wrapper,:host-context([dir=rtl]).range-label-placement-stacked .label-text-wrapper{-webkit-transform-origin:right top;transform-origin:right top}@supports selector(:dir(rtl)){:host(.range-label-placement-stacked:dir(rtl)) .label-text-wrapper{-webkit-transform-origin:right top;transform-origin:right top}}:host(.in-item.range-label-placement-stacked) .label-text-wrapper{margin-top:10px;margin-bottom:16px}:host(.in-item.range-label-placement-stacked) .native-wrapper{margin-bottom:0px}:host{--knob-border-radius:50%;--knob-background:var(--bar-background-active);--knob-box-shadow:none;--knob-size:18px;--bar-height:2px;--bar-background:rgba(var(--ion-color-primary-rgb, 56, 128, 255), 0.26);--bar-background-active:var(--ion-color-primary, #3880ff);--bar-border-radius:0;--height:42px;--pin-background:var(--ion-color-primary, #3880ff);--pin-color:var(--ion-color-primary-contrast, #fff)}:host(.legacy-range) ::slotted([slot=label]){font-size:initial}:host(:not(.legacy-range)) ::slotted(:not(ion-icon)[slot=start]),:host(:not(.legacy-range)) ::slotted(:not(ion-icon)[slot=end]),:host(:not(.legacy-range)) .native-wrapper{font-size:0.75rem}:host(.legacy-range){-webkit-padding-start:14px;padding-inline-start:14px;-webkit-padding-end:14px;padding-inline-end:14px;padding-top:8px;padding-bottom:8px;font-size:0.75rem}:host(.range-item-start-adjustment){-webkit-padding-start:18px;padding-inline-start:18px}:host(.range-item-end-adjustment){-webkit-padding-end:18px;padding-inline-end:18px}:host(.ion-color) .range-bar{background:rgba(var(--ion-color-base-rgb), 0.26)}:host(.ion-color) .range-bar-active,:host(.ion-color) .range-knob,:host(.ion-color) .range-knob::before,:host(.ion-color) .range-pin,:host(.ion-color) .range-pin::before,:host(.ion-color) .range-tick{background:var(--ion-color-base);color:var(--ion-color-contrast)}::slotted([slot=start]){-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:14px;margin-inline-end:14px;margin-top:0;margin-bottom:0}::slotted([slot=end]){-webkit-margin-start:14px;margin-inline-start:14px;-webkit-margin-end:0;margin-inline-end:0;margin-top:0;margin-bottom:0}:host(.range-has-pin:not(.range-label-placement-stacked)){padding-top:1.75rem}:host(.range-has-pin.range-label-placement-stacked) .label-text-wrapper{margin-bottom:1.75rem}.range-bar-active{bottom:0;width:auto;background:var(--bar-background-active)}.range-knob{-webkit-transform:scale(0.67);transform:scale(0.67);-webkit-transition-duration:120ms;transition-duration:120ms;-webkit-transition-property:background-color, border, -webkit-transform;transition-property:background-color, border, -webkit-transform;transition-property:transform, background-color, border;transition-property:transform, background-color, border, -webkit-transform;-webkit-transition-timing-function:ease;transition-timing-function:ease;z-index:2}.range-knob::before{border-radius:50%;position:absolute;width:var(--knob-size);height:var(--knob-size);-webkit-transform:scale(1);transform:scale(1);-webkit-transition:0.267s cubic-bezier(0, 0, 0.58, 1);transition:0.267s cubic-bezier(0, 0, 0.58, 1);background:var(--knob-background);content:"";opacity:0.13;pointer-events:none}@supports (inset-inline-start: 0){.range-knob::before{inset-inline-start:0}}@supports not (inset-inline-start: 0){.range-knob::before{left:0}:host-context([dir=rtl]) .range-knob::before{left:unset;right:unset;right:0}[dir=rtl] .range-knob::before{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){.range-knob::before:dir(rtl){left:unset;right:unset;right:0}}}.range-tick{position:absolute;top:calc((var(--height) - var(--bar-height)) / 2);width:var(--bar-height);height:var(--bar-height);background:var(--bar-background-active);z-index:1;pointer-events:none}.range-tick-active{background:transparent}.range-pin{padding-left:0;padding-right:0;padding-top:8px;padding-bottom:8px;border-radius:50%;-webkit-transform:translate3d(0, 0, 0) scale(0.01);transform:translate3d(0, 0, 0) scale(0.01);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:1.75rem;height:1.75rem;-webkit-transition:background 120ms ease, -webkit-transform 120ms ease;transition:background 120ms ease, -webkit-transform 120ms ease;transition:transform 120ms ease, background 120ms ease;transition:transform 120ms ease, background 120ms ease, -webkit-transform 120ms ease;background:var(--pin-background);color:var(--pin-color)}.range-pin::before{bottom:-1px;-webkit-margin-start:-13px;margin-inline-start:-13px;border-radius:50% 50% 50% 0;position:absolute;width:26px;height:26px;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);-webkit-transition:background 120ms ease;transition:background 120ms ease;background:var(--pin-background);content:"";z-index:-1}@supports (inset-inline-start: 0){.range-pin::before{inset-inline-start:50%}}@supports not (inset-inline-start: 0){.range-pin::before{left:50%}:host-context([dir=rtl]) .range-pin::before{left:unset;right:unset;right:50%}[dir=rtl] .range-pin::before{left:unset;right:unset;right:50%}@supports selector(:dir(rtl)){.range-pin::before:dir(rtl){left:unset;right:unset;right:50%}}}:host-context([dir=rtl]) .range-pin::before{left:unset}[dir=rtl] .range-pin::before{left:unset}@supports selector(:dir(rtl)){.range-pin::before:dir(rtl){left:unset}}.range-knob-pressed .range-pin,.range-knob-handle.ion-focused .range-pin{-webkit-transform:translate3d(0, calc(-100% + 4px), 0) scale(1);transform:translate3d(0, calc(-100% + 4px), 0) scale(1)}@media (any-hover: hover){.range-knob-handle:hover .range-knob:before{-webkit-transform:scale(2);transform:scale(2);opacity:0.13}}.range-knob-handle.ion-activated .range-knob:before,.range-knob-handle.ion-focused .range-knob:before,.range-knob-handle.range-knob-pressed .range-knob:before{-webkit-transform:scale(2);transform:scale(2)}.range-knob-handle.ion-focused .range-knob::before{opacity:0.13}.range-knob-handle.ion-activated .range-knob::before,.range-knob-handle.range-knob-pressed .range-knob::before{opacity:0.25}:host(:not(.range-has-pin)) .range-knob-pressed .range-knob,:host(:not(.range-has-pin)) .range-knob-handle.ion-focused .range-knob{-webkit-transform:scale(1);transform:scale(1)}:host(.range-disabled) .range-bar-active,:host(.range-disabled) .range-bar,:host(.range-disabled) .range-tick{background-color:var(--ion-color-step-250, #bfbfbf)}:host(.range-disabled) .range-knob{-webkit-transform:scale(0.55);transform:scale(0.55);outline:5px solid #fff;background-color:var(--ion-color-step-250, #bfbfbf)}:host(.range-disabled) .label-text-wrapper,:host(.range-disabled) ::slotted([slot=start]),:host(.range-disabled) ::slotted([slot=end]){opacity:0.38}',g3=ne(class extends ie{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionChange=B(this,"ionChange",7),this.ionInput=B(this,"ionInput",7),this.ionStyle=B(this,"ionStyle",7),this.ionFocus=B(this,"ionFocus",7),this.ionBlur=B(this,"ionBlur",7),this.ionKnobMoveStart=B(this,"ionKnobMoveStart",7),this.ionKnobMoveEnd=B(this,"ionKnobMoveEnd",7),this.rangeId=`ion-r-${b3++}`,this.didLoad=!1,this.noUpdate=!1,this.hasFocus=!1,this.inheritedAttributes={},this.contentEl=null,this.initialContentScrollY=!0,this.hasLoggedDeprecationWarning=!1,this.clampBounds=t=>et(this.min,t,this.max),this.ensureValueInBounds=t=>this.dualKnobs?{lower:this.clampBounds(t.lower),upper:this.clampBounds(t.upper)}:this.clampBounds(t),this.setupGesture=async()=>{const t=this.rangeSlider;t&&(this.gesture=(await $t(()=>Promise.resolve().then(()=>Ex),void 0)).createGesture({el:t,gestureName:"range",gesturePriority:100,threshold:0,onStart:n=>this.onStart(n),onMove:n=>this.onMove(n),onEnd:n=>this.onEnd(n)}),this.gesture.enable(!this.disabled))},this.handleKeyboard=(t,n)=>{const{ensureValueInBounds:i}=this;let o=this.step;o=o>0?o:1,o=o/(this.max-this.min),n||(o*=-1),t==="A"?this.ratioA=et(0,this.ratioA+o,1):this.ratioB=et(0,this.ratioB+o,1),this.ionKnobMoveStart.emit({value:i(this.value)}),this.updateValue(),this.emitValueChange(),this.ionKnobMoveEnd.emit({value:i(this.value)})},this.onBlur=()=>{this.hasFocus&&(this.hasFocus=!1,this.ionBlur.emit(),this.emitStyle())},this.onFocus=()=>{this.hasFocus||(this.hasFocus=!0,this.ionFocus.emit(),this.emitStyle())},this.ratioA=0,this.ratioB=0,this.pressedKnob=void 0,this.color=void 0,this.debounce=void 0,this.name=this.rangeId,this.label=void 0,this.dualKnobs=!1,this.min=0,this.max=100,this.pin=!1,this.pinFormatter=t=>Math.round(t),this.snaps=!1,this.step=1,this.ticks=!0,this.activeBarStart=void 0,this.disabled=!1,this.value=0,this.labelPlacement="start",this.legacy=void 0}debounceChanged(){const{ionInput:t,debounce:n,originalIonInput:i}=this;this.ionInput=n===void 0?i??t:j2(t,n)}minChanged(){this.noUpdate||this.updateRatio()}maxChanged(){this.noUpdate||this.updateRatio()}activeBarStartChanged(){const{activeBarStart:t}=this;t!==void 0&&(t>this.max?(pe(`Range: The value of activeBarStart (${t}) is greater than the max (${this.max}). Valid values are greater than or equal to the min value and less than or equal to the max value.`,this.el),this.activeBarStart=this.max):t
Volume
Example with aria-label: Developers can use the "legacy" property to continue using the legacy form markup. This property will be removed in an upcoming major release of Ionic where this form control will use the modern form markup.`,this.el),this.legacy&&pe(`ion-range is being used with the "legacy" property enabled which will forcibly enable the legacy form markup. This property will be removed in an upcoming major release of Ionic where this form control will use the modern form markup. Developers can dismiss this warning by removing their usage of the "legacy" property and using the new range syntax.`,this.el),this.hasLoggedDeprecationWarning=!0);const{el:t,pressedKnob:n,disabled:i,pin:o,rangeId:r}=this,s=W(this);return Di(!0,t,this.name,JSON.stringify(this.getValue()),i),y(ee,{onFocusin:this.onFocus,onFocusout:this.onBlur,id:r,class:Ne(this.color,{[s]:!0,"in-item":De("ion-item",t),"range-disabled":i,"range-pressed":n!==void 0,"range-has-pin":o,"legacy-range":!0})},y("slot",{name:"start"}),this.renderRangeSlider(),y("slot",{name:"end"}))}get hasStartSlotContent(){return this.el.querySelector('[slot="start"]')!==null}get hasEndSlotContent(){return this.el.querySelector('[slot="end"]')!==null}renderRange(){const{disabled:t,el:n,hasLabel:i,rangeId:o,pin:r,pressedKnob:s,labelPlacement:a,label:l}=this,c=De("ion-item",n),d=i&&(a==="start"||a==="fixed")||this.hasStartSlotContent,u=c&&!d,h=i&&a==="end"||this.hasEndSlotContent,f=c&&!h,p=W(this);return Di(!0,n,this.name,JSON.stringify(this.getValue()),t),y(ee,{onFocusin:this.onFocus,onFocusout:this.onBlur,id:o,class:Ne(this.color,{[p]:!0,"in-item":c,"range-disabled":t,"range-pressed":s!==void 0,"range-has-pin":r,[`range-label-placement-${a}`]:!0,"range-item-start-adjustment":u,"range-item-end-adjustment":f})},y("label",{class:"range-wrapper",id:"range-label"},y("div",{class:{"label-text-wrapper":!0,"label-text-wrapper-hidden":!i},part:"label"},l!==void 0?y("div",{class:"label-text"},l):y("slot",{name:"label"})),y("div",{class:"native-wrapper"},y("slot",{name:"start"}),this.renderRangeSlider(),y("slot",{name:"end"}))))}get hasLabel(){return this.label!==void 0||this.el.querySelector('[slot="label"]')!==null}renderRangeSlider(){var t;const{min:n,max:i,step:o,el:r,handleKeyboard:s,pressedKnob:a,disabled:l,pin:c,ratioLower:d,ratioUpper:u,inheritedAttributes:h,rangeId:f,pinFormatter:p}=this;let{labelText:m}=es(r,f);m==null&&(m=h["aria-label"]);let x=`${d*100}%`,b=`${100-u*100}%`;const g=Ar(this.el),v=g?"right":"left",w=g?"left":"right",E=A=>({[v]:A[v]});this.dualKnobs===!1&&(this.valA<((t=this.activeBarStart)!==null&&t!==void 0?t:this.min)?(x=`${u*100}%`,b=`${100-d*100}%`):(x=`${d*100}%`,b=`${100-u*100}%`));const S={[v]:x,[w]:b},k=[];if(this.snaps&&this.ticks)for(let A=n;A<=i;A+=o){const D=Qi(A,n,i),R=Math.min(d,u),V=Math.max(d,u),q={ratio:D,active:D>=R&&D<=V};q[v]=`${D*100}%`,k.push(q)}let C;return!this.legacyFormController.hasLegacyControl()&&this.hasLabel&&(C="range-label"),y("div",{class:"range-slider",ref:A=>this.rangeSlider=A},k.map(A=>y("div",{style:E(A),role:"presentation",class:{"range-tick":!0,"range-tick-active":A.active},part:A.active?"tick-active":"tick"})),y("div",{class:"range-bar-container"},y("div",{class:"range-bar",role:"presentation",part:"bar"}),y("div",{class:{"range-bar":!0,"range-bar-active":!0,"has-ticks":k.length>0},role:"presentation",style:S,part:"bar-active"})),Mg(g,{knob:"A",pressed:a==="A",value:this.valA,ratio:this.ratioA,pin:c,pinFormatter:p,disabled:l,handleKeyboard:s,min:n,max:i,labelText:m,labelledBy:C}),this.dualKnobs&&Mg(g,{knob:"B",pressed:a==="B",value:this.valB,ratio:this.ratioB,pin:c,pinFormatter:p,disabled:l,handleKeyboard:s,min:n,max:i,labelText:m,labelledBy:C}))}render(){const{legacyFormController:t}=this;return t.hasLegacyControl()?this.renderLegacyRange():this.renderRange()}get el(){return this}static get watchers(){return{debounce:["debounceChanged"],min:["minChanged"],max:["maxChanged"],activeBarStart:["activeBarStartChanged"],disabled:["disabledChanged"],value:["valueChanged"]}}static get style(){return{ios:p3,md:m3}}},[33,"ion-range",{color:[513],debounce:[2],name:[1],label:[1],dualKnobs:[4,"dual-knobs"],min:[2],max:[2],pin:[4],pinFormatter:[16],snaps:[4],step:[2],ticks:[4],activeBarStart:[1026,"active-bar-start"],disabled:[4],value:[1026],labelPlacement:[1,"label-placement"],legacy:[4],ratioA:[32],ratioB:[32],pressedKnob:[32]},void 0,{debounce:["debounceChanged"],min:["minChanged"],max:["maxChanged"],activeBarStart:["activeBarStartChanged"],disabled:["disabledChanged"],value:["valueChanged"]}]),Mg=(e,{knob:t,value:n,ratio:i,min:o,max:r,disabled:s,pressed:a,pin:l,handleKeyboard:c,labelText:d,labelledBy:u,pinFormatter:h})=>{const f=e?"right":"left";return y("div",{onKeyDown:m=>{const x=m.key;x==="ArrowLeft"||x==="ArrowDown"?(c(t,!1),m.preventDefault(),m.stopPropagation()):(x==="ArrowRight"||x==="ArrowUp")&&(c(t,!0),m.preventDefault(),m.stopPropagation())},class:{"range-knob-handle":!0,"range-knob-a":t==="A","range-knob-b":t==="B","range-knob-pressed":a,"range-knob-min":n===o,"range-knob-max":n===r,"ion-activatable":!0,"ion-focusable":!0},style:(()=>{const m={};return m[f]=`${i*100}%`,m})(),role:"slider",tabindex:s?-1:0,"aria-label":u===void 0?d:null,"aria-labelledby":u!==void 0?u:null,"aria-valuemin":o,"aria-valuemax":r,"aria-disabled":s?"true":null,"aria-valuenow":n},l&&y("div",{class:"range-pin",role:"presentation",part:"pin"},h(n)),y("div",{class:"range-knob",role:"presentation",part:"knob"}))},ad=(e,t,n,i)=>{let o=(n-t)*e;i>0&&(o=Math.round(o/i)*i+t);const r=et(t,o,n);return f3(r,t,n,i)},Qi=(e,t,n)=>et(0,(e-t)/(n-t),1);let b3=0;function v3(){if(typeof customElements>"u")return;["ion-range"].forEach(t=>{switch(t){case"ion-range":customElements.get(t)||customElements.define(t,g3);break}})}const y3=v3;/*! * (C) Ionic http://ionicframework.com - MIT License */const x3=":host{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}",w3=ne(class extends ie{constructor(){super(),this.__registerHost(),this.__attachShadow()}render(){return y(ee,{class:W(this)},y("slot",null))}static get style(){return x3}},[1,"ion-row"]);function k3(){if(typeof customElements>"u")return;["ion-row"].forEach(t=>{switch(t){case"ion-row":customElements.get(t)||customElements.define(t,w3);break}})}const C3=k3;/*! * (C) Ionic http://ionicframework.com - MIT License */const lw=(e,t)=>{let n,i;const o=(a,l,c)=>{if(typeof document>"u")return;const d=document.elementFromPoint(a,l);if(!d||!t(d)){s();return}d!==n&&(s(),r(d,c))},r=(a,l)=>{n=a,i||(i=n);const c=n;Ft(()=>c.classList.add("ion-activated")),l()},s=(a=!1)=>{if(!n)return;const l=n;Ft(()=>l.classList.remove("ion-activated")),a&&i!==n&&n.click(),n=void 0};return zl({el:e,gestureName:"buttonActiveDrag",threshold:0,onStart:a=>o(a.currentX,a.currentY,x5),onMove:a=>o(a.currentX,a.currentY,w5),onEnd:()=>{s(!0),k5(),i=void 0}})};/*! * (C) Ionic http://ionicframework.com - MIT License */const S3=e=>{const t=U(),n=U(),i=U();return n.addElement(e.querySelector("ion-backdrop")).fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),i.addElement(e.querySelector(".action-sheet-wrapper")).fromTo("transform","translateY(100%)","translateY(0%)"),t.addElement(e).easing("cubic-bezier(.36,.66,.04,1)").duration(400).addAnimation([n,i])},E3=e=>{const t=U(),n=U(),i=U();return n.addElement(e.querySelector("ion-backdrop")).fromTo("opacity","var(--backdrop-opacity)",0),i.addElement(e.querySelector(".action-sheet-wrapper")).fromTo("transform","translateY(0%)","translateY(100%)"),t.addElement(e).easing("cubic-bezier(.36,.66,.04,1)").duration(450).addAnimation([n,i])},T3=e=>{const t=U(),n=U(),i=U();return n.addElement(e.querySelector("ion-backdrop")).fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),i.addElement(e.querySelector(".action-sheet-wrapper")).fromTo("transform","translateY(100%)","translateY(0%)"),t.addElement(e).easing("cubic-bezier(.36,.66,.04,1)").duration(400).addAnimation([n,i])},P3=e=>{const t=U(),n=U(),i=U();return n.addElement(e.querySelector("ion-backdrop")).fromTo("opacity","var(--backdrop-opacity)",0),i.addElement(e.querySelector(".action-sheet-wrapper")).fromTo("transform","translateY(0%)","translateY(100%)"),t.addElement(e).easing("cubic-bezier(.36,.66,.04,1)").duration(450).addAnimation([n,i])},A3='.sc-ion-action-sheet-ios-h{--color:initial;--button-color-activated:var(--button-color);--button-color-focused:var(--button-color);--button-color-hover:var(--button-color);--button-color-selected:var(--button-color);--min-width:auto;--width:100%;--max-width:500px;--min-height:auto;--height:auto;--max-height:calc(100% - (var(--ion-safe-area-top) + var(--ion-safe-area-bottom)));-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;left:0;right:0;top:0;bottom:0;display:block;position:fixed;outline:none;font-family:var(--ion-font-family, inherit);-ms-touch-action:none;touch-action:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:1001}.overlay-hidden.sc-ion-action-sheet-ios-h{display:none}.action-sheet-wrapper.sc-ion-action-sheet-ios{left:0;right:0;bottom:0;-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0);display:block;position:absolute;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);z-index:10;pointer-events:none}.action-sheet-button.sc-ion-action-sheet-ios{display:block;position:relative;width:100%;border:0;outline:none;background:var(--button-background);color:var(--button-color);font-family:inherit;overflow:hidden}.action-sheet-button-inner.sc-ion-action-sheet-ios{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;pointer-events:none;width:100%;height:100%;z-index:1}.action-sheet-container.sc-ion-action-sheet-ios{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;-ms-flex-pack:end;justify-content:flex-end;height:100%;max-height:calc(100vh - (var(--ion-safe-area-top, 0) + var(--ion-safe-area-bottom, 0)));max-height:calc(100dvh - (var(--ion-safe-area-top, 0) + var(--ion-safe-area-bottom, 0)))}.action-sheet-group.sc-ion-action-sheet-ios{-ms-flex-negative:2;flex-shrink:2;overscroll-behavior-y:contain;overflow-y:auto;-webkit-overflow-scrolling:touch;pointer-events:all;background:var(--background)}@media (any-pointer: coarse){.action-sheet-group.sc-ion-action-sheet-ios::-webkit-scrollbar{display:none}}.action-sheet-group-cancel.sc-ion-action-sheet-ios{-ms-flex-negative:0;flex-shrink:0;overflow:hidden}.action-sheet-button.sc-ion-action-sheet-ios::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}.action-sheet-selected.sc-ion-action-sheet-ios{color:var(--button-color-selected)}.action-sheet-selected.sc-ion-action-sheet-ios::after{background:var(--button-background-selected);opacity:var(--button-background-selected-opacity)}.action-sheet-button.ion-activated.sc-ion-action-sheet-ios{color:var(--button-color-activated)}.action-sheet-button.ion-activated.sc-ion-action-sheet-ios::after{background:var(--button-background-activated);opacity:var(--button-background-activated-opacity)}.action-sheet-button.ion-focused.sc-ion-action-sheet-ios{color:var(--button-color-focused)}.action-sheet-button.ion-focused.sc-ion-action-sheet-ios::after{background:var(--button-background-focused);opacity:var(--button-background-focused-opacity)}@media (any-hover: hover){.action-sheet-button.sc-ion-action-sheet-ios:hover{color:var(--button-color-hover)}.action-sheet-button.sc-ion-action-sheet-ios:hover::after{background:var(--button-background-hover);opacity:var(--button-background-hover-opacity)}}.sc-ion-action-sheet-ios-h{--background:var(--ion-overlay-background-color, var(--ion-color-step-100, #f9f9f9));--backdrop-opacity:var(--ion-backdrop-opacity, 0.4);--button-background:linear-gradient(0deg, rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.08), rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.08) 50%, transparent 50%) bottom/100% 1px no-repeat transparent;--button-background-activated:var(--ion-text-color, #000);--button-background-activated-opacity:.08;--button-background-hover:currentColor;--button-background-hover-opacity:.04;--button-background-focused:currentColor;--button-background-focused-opacity:.12;--button-background-selected:var(--ion-color-step-150, var(--ion-background-color, #fff));--button-background-selected-opacity:1;--button-color:var(--ion-color-primary, #3880ff);--color:var(--ion-color-step-400, #999999);text-align:center}.action-sheet-wrapper.sc-ion-action-sheet-ios{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:var(--ion-safe-area-top, 0);margin-bottom:var(--ion-safe-area-bottom, 0)}.action-sheet-container.sc-ion-action-sheet-ios{-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px;padding-top:0;padding-bottom:0}.action-sheet-group.sc-ion-action-sheet-ios{border-radius:13px;margin-bottom:8px}.action-sheet-group.sc-ion-action-sheet-ios:first-child{margin-top:10px}.action-sheet-group.sc-ion-action-sheet-ios:last-child{margin-bottom:10px}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){.action-sheet-translucent.sc-ion-action-sheet-ios-h .action-sheet-group.sc-ion-action-sheet-ios{background-color:transparent;-webkit-backdrop-filter:saturate(280%) blur(20px);backdrop-filter:saturate(280%) blur(20px)}.action-sheet-translucent.sc-ion-action-sheet-ios-h .action-sheet-title.sc-ion-action-sheet-ios,.action-sheet-translucent.sc-ion-action-sheet-ios-h .action-sheet-button.sc-ion-action-sheet-ios{background-color:transparent;background-image:-webkit-gradient(linear, left bottom, left top, from(rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8)), to(rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8))), -webkit-gradient(linear, left bottom, left top, from(rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.4)), color-stop(50%, rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.4)), color-stop(50%, rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8)));background-image:linear-gradient(0deg, rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8), rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8) 100%), linear-gradient(0deg, rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.4), rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.4) 50%, rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8) 50%);background-repeat:no-repeat;background-position:top, bottom;background-size:100% calc(100% - 1px), 100% 1px;-webkit-backdrop-filter:saturate(120%);backdrop-filter:saturate(120%)}.action-sheet-translucent.sc-ion-action-sheet-ios-h .action-sheet-button.ion-activated.sc-ion-action-sheet-ios{background-color:rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.7);background-image:none}.action-sheet-translucent.sc-ion-action-sheet-ios-h .action-sheet-cancel.sc-ion-action-sheet-ios{background:var(--button-background-selected)}}.action-sheet-title.sc-ion-action-sheet-ios{background:-webkit-gradient(linear, left bottom, left top, from(rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.08)), color-stop(50%, rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.08)), color-stop(50%, transparent)) bottom/100% 1px no-repeat transparent;background:linear-gradient(0deg, rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.08), rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.08) 50%, transparent 50%) bottom/100% 1px no-repeat transparent}.action-sheet-title.sc-ion-action-sheet-ios{-webkit-padding-start:10px;padding-inline-start:10px;-webkit-padding-end:10px;padding-inline-end:10px;padding-top:14px;padding-bottom:13px;color:var(--color, var(--ion-color-step-400, #999999));font-size:max(13px, 0.8125rem);font-weight:400;text-align:center}.action-sheet-title.action-sheet-has-sub-title.sc-ion-action-sheet-ios{font-weight:600}.action-sheet-sub-title.sc-ion-action-sheet-ios{padding-left:0;padding-right:0;padding-top:6px;padding-bottom:0;font-size:max(13px, 0.8125rem);font-weight:400}.action-sheet-button.sc-ion-action-sheet-ios{-webkit-padding-start:14px;padding-inline-start:14px;-webkit-padding-end:14px;padding-inline-end:14px;padding-top:14px;padding-bottom:14px;min-height:56px;font-size:max(20px, 1.25rem);contain:content}.action-sheet-button.sc-ion-action-sheet-ios .action-sheet-icon.sc-ion-action-sheet-ios{-webkit-margin-end:0.3em;margin-inline-end:0.3em;font-size:max(28px, 1.75rem);pointer-events:none}.action-sheet-button.sc-ion-action-sheet-ios:last-child{background-image:none}.action-sheet-selected.sc-ion-action-sheet-ios{font-weight:bold}.action-sheet-cancel.sc-ion-action-sheet-ios{font-weight:600}.action-sheet-cancel.sc-ion-action-sheet-ios::after{background:var(--button-background-selected);opacity:var(--button-background-selected-opacity)}.action-sheet-destructive.sc-ion-action-sheet-ios,.action-sheet-destructive.ion-activated.sc-ion-action-sheet-ios,.action-sheet-destructive.ion-focused.sc-ion-action-sheet-ios{color:var(--ion-color-danger, #eb445a)}@media (any-hover: hover){.action-sheet-destructive.sc-ion-action-sheet-ios:hover{color:var(--ion-color-danger, #eb445a)}}',L3='.sc-ion-action-sheet-md-h{--color:initial;--button-color-activated:var(--button-color);--button-color-focused:var(--button-color);--button-color-hover:var(--button-color);--button-color-selected:var(--button-color);--min-width:auto;--width:100%;--max-width:500px;--min-height:auto;--height:auto;--max-height:calc(100% - (var(--ion-safe-area-top) + var(--ion-safe-area-bottom)));-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;left:0;right:0;top:0;bottom:0;display:block;position:fixed;outline:none;font-family:var(--ion-font-family, inherit);-ms-touch-action:none;touch-action:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:1001}.overlay-hidden.sc-ion-action-sheet-md-h{display:none}.action-sheet-wrapper.sc-ion-action-sheet-md{left:0;right:0;bottom:0;-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0);display:block;position:absolute;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);z-index:10;pointer-events:none}.action-sheet-button.sc-ion-action-sheet-md{display:block;position:relative;width:100%;border:0;outline:none;background:var(--button-background);color:var(--button-color);font-family:inherit;overflow:hidden}.action-sheet-button-inner.sc-ion-action-sheet-md{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;pointer-events:none;width:100%;height:100%;z-index:1}.action-sheet-container.sc-ion-action-sheet-md{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;-ms-flex-pack:end;justify-content:flex-end;height:100%;max-height:calc(100vh - (var(--ion-safe-area-top, 0) + var(--ion-safe-area-bottom, 0)));max-height:calc(100dvh - (var(--ion-safe-area-top, 0) + var(--ion-safe-area-bottom, 0)))}.action-sheet-group.sc-ion-action-sheet-md{-ms-flex-negative:2;flex-shrink:2;overscroll-behavior-y:contain;overflow-y:auto;-webkit-overflow-scrolling:touch;pointer-events:all;background:var(--background)}@media (any-pointer: coarse){.action-sheet-group.sc-ion-action-sheet-md::-webkit-scrollbar{display:none}}.action-sheet-group-cancel.sc-ion-action-sheet-md{-ms-flex-negative:0;flex-shrink:0;overflow:hidden}.action-sheet-button.sc-ion-action-sheet-md::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}.action-sheet-selected.sc-ion-action-sheet-md{color:var(--button-color-selected)}.action-sheet-selected.sc-ion-action-sheet-md::after{background:var(--button-background-selected);opacity:var(--button-background-selected-opacity)}.action-sheet-button.ion-activated.sc-ion-action-sheet-md{color:var(--button-color-activated)}.action-sheet-button.ion-activated.sc-ion-action-sheet-md::after{background:var(--button-background-activated);opacity:var(--button-background-activated-opacity)}.action-sheet-button.ion-focused.sc-ion-action-sheet-md{color:var(--button-color-focused)}.action-sheet-button.ion-focused.sc-ion-action-sheet-md::after{background:var(--button-background-focused);opacity:var(--button-background-focused-opacity)}@media (any-hover: hover){.action-sheet-button.sc-ion-action-sheet-md:hover{color:var(--button-color-hover)}.action-sheet-button.sc-ion-action-sheet-md:hover::after{background:var(--button-background-hover);opacity:var(--button-background-hover-opacity)}}.sc-ion-action-sheet-md-h{--background:var(--ion-overlay-background-color, var(--ion-background-color, #fff));--backdrop-opacity:var(--ion-backdrop-opacity, 0.32);--button-background:transparent;--button-background-selected:currentColor;--button-background-selected-opacity:0;--button-background-activated:transparent;--button-background-activated-opacity:0;--button-background-hover:currentColor;--button-background-hover-opacity:.04;--button-background-focused:currentColor;--button-background-focused-opacity:.12;--button-color:var(--ion-color-step-850, #262626);--color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.54)}.action-sheet-wrapper.sc-ion-action-sheet-md{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:var(--ion-safe-area-top, 0);margin-bottom:0}.action-sheet-title.sc-ion-action-sheet-md{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:20px;padding-bottom:17px;min-height:60px;color:var(--color, rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.54));font-size:1rem;text-align:start}.action-sheet-sub-title.sc-ion-action-sheet-md{padding-left:0;padding-right:0;padding-top:16px;padding-bottom:0;font-size:0.875rem}.action-sheet-group.sc-ion-action-sheet-md:first-child{padding-top:0}.action-sheet-group.sc-ion-action-sheet-md:last-child{padding-bottom:var(--ion-safe-area-bottom)}.action-sheet-button.sc-ion-action-sheet-md{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:12px;padding-bottom:12px;position:relative;min-height:52px;font-size:1rem;text-align:start;contain:content;overflow:hidden}.action-sheet-icon.sc-ion-action-sheet-md{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:32px;margin-inline-end:32px;margin-top:0;margin-bottom:0;color:var(--color);font-size:1.5rem}.action-sheet-button-inner.sc-ion-action-sheet-md{-ms-flex-pack:start;justify-content:flex-start}.action-sheet-selected.sc-ion-action-sheet-md{font-weight:bold}',I3=ne(class extends ie{constructor(){super(),this.__registerHost(),this.didPresent=B(this,"ionActionSheetDidPresent",7),this.willPresent=B(this,"ionActionSheetWillPresent",7),this.willDismiss=B(this,"ionActionSheetWillDismiss",7),this.didDismiss=B(this,"ionActionSheetDidDismiss",7),this.didPresentShorthand=B(this,"didPresent",7),this.willPresentShorthand=B(this,"willPresent",7),this.willDismissShorthand=B(this,"willDismiss",7),this.didDismissShorthand=B(this,"didDismiss",7),this.delegateController=jx(this),this.lockController=ys(),this.triggerController=Tf(),this.presented=!1,this.onBackdropTap=()=>{this.dismiss(void 0,zi)},this.dispatchCancelHandler=t=>{const n=t.detail.role;if(tl(n)){const i=this.getButtons().find(o=>o.role==="cancel");this.callButtonHandler(i)}},this.overlayIndex=void 0,this.delegate=void 0,this.hasController=!1,this.keyboardClose=!0,this.enterAnimation=void 0,this.leaveAnimation=void 0,this.buttons=[],this.cssClass=void 0,this.backdropDismiss=!0,this.header=void 0,this.subHeader=void 0,this.translucent=!1,this.animated=!0,this.htmlAttributes=void 0,this.isOpen=!1,this.trigger=void 0}onIsOpenChange(t,n){t===!0&&n===!1?this.present():t===!1&&n===!0&&this.dismiss()}triggerChanged(){const{trigger:t,el:n,triggerController:i}=this;t&&i.addClickListener(n,t)}async present(){const t=await this.lockController.lock();await this.delegateController.attachViewToDom(),await Fl(this,"actionSheetEnter",S3,T3),t()}async dismiss(t,n){const i=await this.lockController.lock(),o=await Hl(this,t,n,"actionSheetLeave",E3,P3);return o&&this.delegateController.removeViewFromDom(),i(),o}onDidDismiss(){return ti(this.el,"ionActionSheetDidDismiss")}onWillDismiss(){return ti(this.el,"ionActionSheetWillDismiss")}async buttonClick(t){const n=t.role;return tl(n)?this.dismiss(t.data,n):await this.callButtonHandler(t)?this.dismiss(t.data,t.role):Promise.resolve()}async callButtonHandler(t){return!(t&&await Tr(t.handler)===!1)}getButtons(){return this.buttons.map(t=>typeof t=="string"?{text:t}:t)}connectedCallback(){jl(this.el),this.triggerChanged()}disconnectedCallback(){this.gesture&&(this.gesture.destroy(),this.gesture=void 0),this.triggerController.removeClickListener()}componentWillLoad(){Vl(this.el)}componentDidLoad(){const{groupEl:t,wrapperEl:n}=this;!this.gesture&&W(this)==="ios"&&n&&t&&$o(()=>{t.scrollHeight>t.clientHeight||(this.gesture=lw(n,o=>o.classList.contains("action-sheet-button")),this.gesture.enable(!0))}),this.isOpen===!0&&Ie(()=>this.present()),this.triggerChanged()}render(){const{header:t,htmlAttributes:n,overlayIndex:i}=this,o=W(this),r=this.getButtons(),s=r.find(c=>c.role==="cancel"),a=r.filter(c=>c.role!=="cancel"),l=`action-sheet-${i}-header`;return y(ee,Object.assign({role:"dialog","aria-modal":"true","aria-labelledby":t!==void 0?l:null,tabindex:"-1"},n,{style:{zIndex:`${2e4+this.overlayIndex}`},class:Object.assign(Object.assign({[o]:!0},Mt(this.cssClass)),{"overlay-hidden":!0,"action-sheet-translucent":this.translucent}),onIonActionSheetWillDismiss:this.dispatchCancelHandler,onIonBackdropTap:this.onBackdropTap}),y("ion-backdrop",{tappable:this.backdropDismiss}),y("div",{tabindex:"0"}),y("div",{class:"action-sheet-wrapper ion-overlay-wrapper",ref:c=>this.wrapperEl=c},y("div",{class:"action-sheet-container"},y("div",{class:"action-sheet-group",ref:c=>this.groupEl=c},t!==void 0&&y("div",{id:l,class:{"action-sheet-title":!0,"action-sheet-has-sub-title":this.subHeader!==void 0}},t,this.subHeader&&y("div",{class:"action-sheet-sub-title"},this.subHeader)),a.map(c=>y("button",Object.assign({},c.htmlAttributes,{type:"button",id:c.id,class:Bg(c),onClick:()=>this.buttonClick(c)}),y("span",{class:"action-sheet-button-inner"},c.icon&&y("ion-icon",{icon:c.icon,"aria-hidden":"true",lazy:!1,class:"action-sheet-icon"}),c.text),o==="md"&&y("ion-ripple-effect",null)))),s&&y("div",{class:"action-sheet-group action-sheet-group-cancel"},y("button",Object.assign({},s.htmlAttributes,{type:"button",class:Bg(s),onClick:()=>this.buttonClick(s)}),y("span",{class:"action-sheet-button-inner"},s.icon&&y("ion-icon",{icon:s.icon,"aria-hidden":"true",lazy:!1,class:"action-sheet-icon"}),s.text),o==="md"&&y("ion-ripple-effect",null))))),y("div",{tabindex:"0"}))}get el(){return this}static get watchers(){return{isOpen:["onIsOpenChange"],trigger:["triggerChanged"]}}static get style(){return{ios:A3,md:L3}}},[34,"ion-action-sheet",{overlayIndex:[2,"overlay-index"],delegate:[16],hasController:[4,"has-controller"],keyboardClose:[4,"keyboard-close"],enterAnimation:[16],leaveAnimation:[16],buttons:[16],cssClass:[1,"css-class"],backdropDismiss:[4,"backdrop-dismiss"],header:[1],subHeader:[1,"sub-header"],translucent:[4],animated:[4],htmlAttributes:[16],isOpen:[4,"is-open"],trigger:[1],present:[64],dismiss:[64],onDidDismiss:[64],onWillDismiss:[64]},void 0,{isOpen:["onIsOpenChange"],trigger:["triggerChanged"]}]),Bg=e=>Object.assign({"action-sheet-button":!0,"ion-activatable":!0,"ion-focusable":!0,[`action-sheet-${e.role}`]:e.role!==void 0},Mt(e.cssClass));function O3(){if(typeof customElements>"u")return;["ion-action-sheet","ion-backdrop","ion-icon","ion-ripple-effect"].forEach(t=>{switch(t){case"ion-action-sheet":customElements.get(t)||customElements.define(t,I3);break;case"ion-backdrop":customElements.get(t)||Wo();break;case"ion-icon":customElements.get(t)||vs();break;case"ion-ripple-effect":customElements.get(t)||Fi();break}})}/*! * (C) Ionic http://ionicframework.com - MIT License */const R3=e=>{const t=U(),n=U(),i=U();return n.addElement(e.querySelector("ion-backdrop")).fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),i.addElement(e.querySelector(".alert-wrapper")).keyframes([{offset:0,opacity:"0.01",transform:"scale(1.1)"},{offset:1,opacity:"1",transform:"scale(1)"}]),t.addElement(e).easing("ease-in-out").duration(200).addAnimation([n,i])},D3=e=>{const t=U(),n=U(),i=U();return n.addElement(e.querySelector("ion-backdrop")).fromTo("opacity","var(--backdrop-opacity)",0),i.addElement(e.querySelector(".alert-wrapper")).keyframes([{offset:0,opacity:.99,transform:"scale(1)"},{offset:1,opacity:0,transform:"scale(0.9)"}]),t.addElement(e).easing("ease-in-out").duration(200).addAnimation([n,i])},$3=e=>{const t=U(),n=U(),i=U();return n.addElement(e.querySelector("ion-backdrop")).fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),i.addElement(e.querySelector(".alert-wrapper")).keyframes([{offset:0,opacity:"0.01",transform:"scale(0.9)"},{offset:1,opacity:"1",transform:"scale(1)"}]),t.addElement(e).easing("ease-in-out").duration(150).addAnimation([n,i])},_3=e=>{const t=U(),n=U(),i=U();return n.addElement(e.querySelector("ion-backdrop")).fromTo("opacity","var(--backdrop-opacity)",0),i.addElement(e.querySelector(".alert-wrapper")).fromTo("opacity",.99,0),t.addElement(e).easing("ease-in-out").duration(150).addAnimation([n,i])},z3=".sc-ion-alert-ios-h{--min-width:250px;--width:auto;--min-height:auto;--height:auto;--max-height:90%;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:absolute;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;outline:none;font-family:var(--ion-font-family, inherit);contain:strict;-ms-touch-action:none;touch-action:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:1001}.overlay-hidden.sc-ion-alert-ios-h{display:none}.alert-top.sc-ion-alert-ios-h{padding-top:50px;-ms-flex-align:start;align-items:flex-start}.alert-wrapper.sc-ion-alert-ios{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);background:var(--background);contain:content;opacity:0;z-index:10}.alert-title.sc-ion-alert-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0}.alert-sub-title.sc-ion-alert-ios{margin-left:0;margin-right:0;margin-top:5px;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;font-weight:normal}.alert-message.sc-ion-alert-ios,.alert-input-group.sc-ion-alert-ios{-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-overflow-scrolling:touch;overflow-y:auto;overscroll-behavior-y:contain}.alert-checkbox-label.sc-ion-alert-ios,.alert-radio-label.sc-ion-alert-ios{overflow-wrap:anywhere}@media (any-pointer: coarse){.alert-checkbox-group.sc-ion-alert-ios::-webkit-scrollbar,.alert-radio-group.sc-ion-alert-ios::-webkit-scrollbar,.alert-message.sc-ion-alert-ios::-webkit-scrollbar{display:none}}.alert-input.sc-ion-alert-ios{padding-left:0;padding-right:0;padding-top:10px;padding-bottom:10px;width:100%;border:0;background:inherit;font:inherit;-webkit-box-sizing:border-box;box-sizing:border-box}.alert-button-group.sc-ion-alert-ios{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;width:100%}.alert-button-group-vertical.sc-ion-alert-ios{-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:nowrap;flex-wrap:nowrap}.alert-button.sc-ion-alert-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:block;border:0;font-size:0.875rem;line-height:1.25rem;z-index:0}.alert-button.ion-focused.sc-ion-alert-ios,.alert-tappable.ion-focused.sc-ion-alert-ios{background:var(--ion-color-step-100, #e6e6e6)}.alert-button-inner.sc-ion-alert-ios{display:-ms-flexbox;display:flex;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;min-height:inherit}.alert-input-disabled.sc-ion-alert-ios,.alert-checkbox-button-disabled.sc-ion-alert-ios .alert-button-inner.sc-ion-alert-ios,.alert-radio-button-disabled.sc-ion-alert-ios .alert-button-inner.sc-ion-alert-ios{cursor:default;opacity:0.5;pointer-events:none}.alert-tappable.sc-ion-alert-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;display:-ms-flexbox;display:flex;width:100%;border:0;background:transparent;font-size:inherit;line-height:initial;text-align:start;-webkit-appearance:none;-moz-appearance:none;appearance:none;contain:content}.alert-button.sc-ion-alert-ios,.alert-checkbox.sc-ion-alert-ios,.alert-input.sc-ion-alert-ios,.alert-radio.sc-ion-alert-ios{outline:none}.alert-radio-icon.sc-ion-alert-ios,.alert-checkbox-icon.sc-ion-alert-ios,.alert-checkbox-inner.sc-ion-alert-ios{-webkit-box-sizing:border-box;box-sizing:border-box}textarea.alert-input.sc-ion-alert-ios{min-height:37px;resize:none}.sc-ion-alert-ios-h{--background:var(--ion-overlay-background-color, var(--ion-color-step-100, #f9f9f9));--max-width:clamp(270px, 16.875rem, 324px);--backdrop-opacity:var(--ion-backdrop-opacity, 0.3);font-size:max(14px, 0.875rem)}.alert-wrapper.sc-ion-alert-ios{border-radius:13px;-webkit-box-shadow:none;box-shadow:none;overflow:hidden}.alert-button.sc-ion-alert-ios .alert-button-inner.sc-ion-alert-ios{pointer-events:none}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){.alert-translucent.sc-ion-alert-ios-h .alert-wrapper.sc-ion-alert-ios{background:rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.9);-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px)}}.alert-head.sc-ion-alert-ios{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:12px;padding-bottom:7px;text-align:center}.alert-title.sc-ion-alert-ios{margin-top:8px;color:var(--ion-text-color, #000);font-size:max(17px, 1.0625rem);font-weight:600}.alert-sub-title.sc-ion-alert-ios{color:var(--ion-color-step-600, #666666);font-size:max(14px, 0.875rem)}.alert-message.sc-ion-alert-ios,.alert-input-group.sc-ion-alert-ios{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:0;padding-bottom:21px;color:var(--ion-text-color, #000);font-size:max(13px, 0.8125rem);text-align:center}.alert-message.sc-ion-alert-ios{max-height:240px}.alert-message.sc-ion-alert-ios:empty{padding-left:0;padding-right:0;padding-top:0;padding-bottom:12px}.alert-input.sc-ion-alert-ios{border-radius:4px;margin-top:10px;-webkit-padding-start:6px;padding-inline-start:6px;-webkit-padding-end:6px;padding-inline-end:6px;padding-top:6px;padding-bottom:6px;border:0.55px solid var(--ion-color-step-250, #bfbfbf);background-color:var(--ion-background-color, #fff);-webkit-appearance:none;-moz-appearance:none;appearance:none}.alert-input.sc-ion-alert-ios::-webkit-input-placeholder{color:var(--ion-placeholder-color, var(--ion-color-step-400, #999999));font-family:inherit;font-weight:inherit}.alert-input.sc-ion-alert-ios::-moz-placeholder{color:var(--ion-placeholder-color, var(--ion-color-step-400, #999999));font-family:inherit;font-weight:inherit}.alert-input.sc-ion-alert-ios:-ms-input-placeholder{color:var(--ion-placeholder-color, var(--ion-color-step-400, #999999));font-family:inherit;font-weight:inherit}.alert-input.sc-ion-alert-ios::-ms-input-placeholder{color:var(--ion-placeholder-color, var(--ion-color-step-400, #999999));font-family:inherit;font-weight:inherit}.alert-input.sc-ion-alert-ios::placeholder{color:var(--ion-placeholder-color, var(--ion-color-step-400, #999999));font-family:inherit;font-weight:inherit}.alert-input.sc-ion-alert-ios::-ms-clear{display:none}.alert-input.sc-ion-alert-ios::-webkit-date-and-time-value{height:18px}.alert-radio-group.sc-ion-alert-ios,.alert-checkbox-group.sc-ion-alert-ios{-ms-scroll-chaining:none;overscroll-behavior:contain;max-height:240px;border-top:0.55px solid rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.2);overflow-y:auto;-webkit-overflow-scrolling:touch}.alert-tappable.sc-ion-alert-ios{min-height:44px}.alert-radio-label.sc-ion-alert-ios{-webkit-padding-start:13px;padding-inline-start:13px;-webkit-padding-end:13px;padding-inline-end:13px;padding-top:13px;padding-bottom:13px;-ms-flex:1;flex:1;-ms-flex-order:0;order:0;color:var(--ion-text-color, #000)}[aria-checked=true].sc-ion-alert-ios .alert-radio-label.sc-ion-alert-ios{color:var(--ion-color-primary, #3880ff)}.alert-radio-icon.sc-ion-alert-ios{position:relative;-ms-flex-order:1;order:1;min-width:30px}[aria-checked=true].sc-ion-alert-ios .alert-radio-inner.sc-ion-alert-ios{top:-7px;position:absolute;width:6px;height:12px;-webkit-transform:rotate(45deg);transform:rotate(45deg);border-width:2px;border-top-width:0;border-left-width:0;border-style:solid;border-color:var(--ion-color-primary, #3880ff)}@supports (inset-inline-start: 0){[aria-checked=true].sc-ion-alert-ios .alert-radio-inner.sc-ion-alert-ios{inset-inline-start:7px}}@supports not (inset-inline-start: 0){[aria-checked=true].sc-ion-alert-ios .alert-radio-inner.sc-ion-alert-ios{left:7px}[dir=rtl].sc-ion-alert-ios-h [aria-checked=true].sc-ion-alert-ios .alert-radio-inner.sc-ion-alert-ios,[dir=rtl] .sc-ion-alert-ios-h [aria-checked=true].sc-ion-alert-ios .alert-radio-inner.sc-ion-alert-ios{left:unset;right:unset;right:7px}[dir=rtl].sc-ion-alert-ios [aria-checked=true].sc-ion-alert-ios .alert-radio-inner.sc-ion-alert-ios{left:unset;right:unset;right:7px}@supports selector(:dir(rtl)){[aria-checked=true].sc-ion-alert-ios .alert-radio-inner.sc-ion-alert-ios:dir(rtl){left:unset;right:unset;right:7px}}}.alert-checkbox-label.sc-ion-alert-ios{-webkit-padding-start:13px;padding-inline-start:13px;-webkit-padding-end:13px;padding-inline-end:13px;padding-top:13px;padding-bottom:13px;-ms-flex:1;flex:1;color:var(--ion-text-color, #000)}.alert-checkbox-icon.sc-ion-alert-ios{border-radius:50%;-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:6px;margin-inline-end:6px;margin-top:10px;margin-bottom:10px;position:relative;width:min(1.5rem, 66px);height:min(1.5rem, 66px);border-width:0.0625rem;border-style:solid;border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-250, #c8c7cc)));background-color:var(--ion-item-background, var(--ion-background-color, #fff));contain:strict}[aria-checked=true].sc-ion-alert-ios .alert-checkbox-icon.sc-ion-alert-ios{border-color:var(--ion-color-primary, #3880ff);background-color:var(--ion-color-primary, #3880ff)}[aria-checked=true].sc-ion-alert-ios .alert-checkbox-inner.sc-ion-alert-ios{top:calc(min(1.5rem, 66px) / 6);position:absolute;width:calc(min(1.5rem, 66px) / 6 + 1px);height:calc(min(1.5rem, 66px) * 0.5);-webkit-transform:rotate(45deg);transform:rotate(45deg);border-width:0.0625rem;border-top-width:0;border-left-width:0;border-style:solid;border-color:var(--ion-background-color, #fff)}@supports (inset-inline-start: 0){[aria-checked=true].sc-ion-alert-ios .alert-checkbox-inner.sc-ion-alert-ios{inset-inline-start:calc(min(1.5rem, 66px) / 3 + 1px)}}@supports not (inset-inline-start: 0){[aria-checked=true].sc-ion-alert-ios .alert-checkbox-inner.sc-ion-alert-ios{left:calc(min(1.5rem, 66px) / 3 + 1px)}[dir=rtl].sc-ion-alert-ios-h [aria-checked=true].sc-ion-alert-ios .alert-checkbox-inner.sc-ion-alert-ios,[dir=rtl] .sc-ion-alert-ios-h [aria-checked=true].sc-ion-alert-ios .alert-checkbox-inner.sc-ion-alert-ios{left:unset;right:unset;right:calc(min(1.5rem, 66px) / 3 + 1px)}[dir=rtl].sc-ion-alert-ios [aria-checked=true].sc-ion-alert-ios .alert-checkbox-inner.sc-ion-alert-ios{left:unset;right:unset;right:calc(min(1.5rem, 66px) / 3 + 1px)}@supports selector(:dir(rtl)){[aria-checked=true].sc-ion-alert-ios .alert-checkbox-inner.sc-ion-alert-ios:dir(rtl){left:unset;right:unset;right:calc(min(1.5rem, 66px) / 3 + 1px)}}}.alert-button-group.sc-ion-alert-ios{-webkit-margin-end:-0.55px;margin-inline-end:-0.55px;-ms-flex-wrap:wrap;flex-wrap:wrap}.alert-button.sc-ion-alert-ios{-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;border-radius:0;-ms-flex:1 1 auto;flex:1 1 auto;min-width:50%;height:max(44px, 2.75rem);border-top:0.55px solid rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.2);border-right:0.55px solid rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.2);background-color:transparent;color:var(--ion-color-primary, #3880ff);font-size:max(17px, 1.0625rem);overflow:hidden}[dir=rtl].sc-ion-alert-ios-h .alert-button.sc-ion-alert-ios:first-child,[dir=rtl] .sc-ion-alert-ios-h .alert-button.sc-ion-alert-ios:first-child{border-right:0}[dir=rtl].sc-ion-alert-ios .alert-button.sc-ion-alert-ios:first-child{border-right:0}@supports selector(:dir(rtl)){.alert-button.sc-ion-alert-ios:first-child:dir(rtl){border-right:0}}.alert-button.sc-ion-alert-ios:last-child{border-right:0;font-weight:bold}[dir=rtl].sc-ion-alert-ios-h .alert-button.sc-ion-alert-ios:last-child,[dir=rtl] .sc-ion-alert-ios-h .alert-button.sc-ion-alert-ios:last-child{border-right:0.55px solid rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.2)}[dir=rtl].sc-ion-alert-ios .alert-button.sc-ion-alert-ios:last-child{border-right:0.55px solid rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.2)}@supports selector(:dir(rtl)){.alert-button.sc-ion-alert-ios:last-child:dir(rtl){border-right:0.55px solid rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.2)}}.alert-button.ion-activated.sc-ion-alert-ios{background-color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.1)}.alert-button-role-destructive.sc-ion-alert-ios,.alert-button-role-destructive.ion-activated.sc-ion-alert-ios,.alert-button-role-destructive.ion-focused.sc-ion-alert-ios{color:var(--ion-color-danger, #eb445a)}",M3=".sc-ion-alert-md-h{--min-width:250px;--width:auto;--min-height:auto;--height:auto;--max-height:90%;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:absolute;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;outline:none;font-family:var(--ion-font-family, inherit);contain:strict;-ms-touch-action:none;touch-action:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:1001}.overlay-hidden.sc-ion-alert-md-h{display:none}.alert-top.sc-ion-alert-md-h{padding-top:50px;-ms-flex-align:start;align-items:flex-start}.alert-wrapper.sc-ion-alert-md{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);background:var(--background);contain:content;opacity:0;z-index:10}.alert-title.sc-ion-alert-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0}.alert-sub-title.sc-ion-alert-md{margin-left:0;margin-right:0;margin-top:5px;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;font-weight:normal}.alert-message.sc-ion-alert-md,.alert-input-group.sc-ion-alert-md{-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-overflow-scrolling:touch;overflow-y:auto;overscroll-behavior-y:contain}.alert-checkbox-label.sc-ion-alert-md,.alert-radio-label.sc-ion-alert-md{overflow-wrap:anywhere}@media (any-pointer: coarse){.alert-checkbox-group.sc-ion-alert-md::-webkit-scrollbar,.alert-radio-group.sc-ion-alert-md::-webkit-scrollbar,.alert-message.sc-ion-alert-md::-webkit-scrollbar{display:none}}.alert-input.sc-ion-alert-md{padding-left:0;padding-right:0;padding-top:10px;padding-bottom:10px;width:100%;border:0;background:inherit;font:inherit;-webkit-box-sizing:border-box;box-sizing:border-box}.alert-button-group.sc-ion-alert-md{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;width:100%}.alert-button-group-vertical.sc-ion-alert-md{-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:nowrap;flex-wrap:nowrap}.alert-button.sc-ion-alert-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:block;border:0;font-size:0.875rem;line-height:1.25rem;z-index:0}.alert-button.ion-focused.sc-ion-alert-md,.alert-tappable.ion-focused.sc-ion-alert-md{background:var(--ion-color-step-100, #e6e6e6)}.alert-button-inner.sc-ion-alert-md{display:-ms-flexbox;display:flex;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;min-height:inherit}.alert-input-disabled.sc-ion-alert-md,.alert-checkbox-button-disabled.sc-ion-alert-md .alert-button-inner.sc-ion-alert-md,.alert-radio-button-disabled.sc-ion-alert-md .alert-button-inner.sc-ion-alert-md{cursor:default;opacity:0.5;pointer-events:none}.alert-tappable.sc-ion-alert-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;display:-ms-flexbox;display:flex;width:100%;border:0;background:transparent;font-size:inherit;line-height:initial;text-align:start;-webkit-appearance:none;-moz-appearance:none;appearance:none;contain:content}.alert-button.sc-ion-alert-md,.alert-checkbox.sc-ion-alert-md,.alert-input.sc-ion-alert-md,.alert-radio.sc-ion-alert-md{outline:none}.alert-radio-icon.sc-ion-alert-md,.alert-checkbox-icon.sc-ion-alert-md,.alert-checkbox-inner.sc-ion-alert-md{-webkit-box-sizing:border-box;box-sizing:border-box}textarea.alert-input.sc-ion-alert-md{min-height:37px;resize:none}.sc-ion-alert-md-h{--background:var(--ion-overlay-background-color, var(--ion-background-color, #fff));--max-width:280px;--backdrop-opacity:var(--ion-backdrop-opacity, 0.32);font-size:0.875rem}.alert-wrapper.sc-ion-alert-md{border-radius:4px;-webkit-box-shadow:0 11px 15px -7px rgba(0, 0, 0, 0.2), 0 24px 38px 3px rgba(0, 0, 0, 0.14), 0 9px 46px 8px rgba(0, 0, 0, 0.12);box-shadow:0 11px 15px -7px rgba(0, 0, 0, 0.2), 0 24px 38px 3px rgba(0, 0, 0, 0.14), 0 9px 46px 8px rgba(0, 0, 0, 0.12)}.alert-head.sc-ion-alert-md{-webkit-padding-start:23px;padding-inline-start:23px;-webkit-padding-end:23px;padding-inline-end:23px;padding-top:20px;padding-bottom:15px;text-align:start}.alert-title.sc-ion-alert-md{color:var(--ion-text-color, #000);font-size:1.25rem;font-weight:500}.alert-sub-title.sc-ion-alert-md{color:var(--ion-text-color, #000);font-size:1rem}.alert-message.sc-ion-alert-md,.alert-input-group.sc-ion-alert-md{-webkit-padding-start:24px;padding-inline-start:24px;-webkit-padding-end:24px;padding-inline-end:24px;padding-top:20px;padding-bottom:20px;color:var(--ion-color-step-550, #737373)}.alert-message.sc-ion-alert-md{font-size:1rem}@media screen and (max-width: 767px){.alert-message.sc-ion-alert-md{max-height:266px}}.alert-message.sc-ion-alert-md:empty{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0}.alert-head.sc-ion-alert-md+.alert-message.sc-ion-alert-md{padding-top:0}.alert-input.sc-ion-alert-md{margin-left:0;margin-right:0;margin-top:5px;margin-bottom:5px;border-bottom:1px solid var(--ion-color-step-150, #d9d9d9);color:var(--ion-text-color, #000)}.alert-input.sc-ion-alert-md::-webkit-input-placeholder{color:var(--ion-placeholder-color, var(--ion-color-step-400, #999999));font-family:inherit;font-weight:inherit}.alert-input.sc-ion-alert-md::-moz-placeholder{color:var(--ion-placeholder-color, var(--ion-color-step-400, #999999));font-family:inherit;font-weight:inherit}.alert-input.sc-ion-alert-md:-ms-input-placeholder{color:var(--ion-placeholder-color, var(--ion-color-step-400, #999999));font-family:inherit;font-weight:inherit}.alert-input.sc-ion-alert-md::-ms-input-placeholder{color:var(--ion-placeholder-color, var(--ion-color-step-400, #999999));font-family:inherit;font-weight:inherit}.alert-input.sc-ion-alert-md::placeholder{color:var(--ion-placeholder-color, var(--ion-color-step-400, #999999));font-family:inherit;font-weight:inherit}.alert-input.sc-ion-alert-md::-ms-clear{display:none}.alert-input.sc-ion-alert-md:focus{margin-bottom:4px;border-bottom:2px solid var(--ion-color-primary, #3880ff)}.alert-radio-group.sc-ion-alert-md,.alert-checkbox-group.sc-ion-alert-md{position:relative;border-top:1px solid var(--ion-color-step-150, #d9d9d9);border-bottom:1px solid var(--ion-color-step-150, #d9d9d9);overflow:auto}@media screen and (max-width: 767px){.alert-radio-group.sc-ion-alert-md,.alert-checkbox-group.sc-ion-alert-md{max-height:266px}}.alert-tappable.sc-ion-alert-md{position:relative;min-height:48px}.alert-radio-label.sc-ion-alert-md{-webkit-padding-start:52px;padding-inline-start:52px;-webkit-padding-end:26px;padding-inline-end:26px;padding-top:13px;padding-bottom:13px;-ms-flex:1;flex:1;color:var(--ion-color-step-850, #262626);font-size:1rem}.alert-radio-icon.sc-ion-alert-md{top:0;border-radius:50%;display:block;position:relative;width:20px;height:20px;border-width:2px;border-style:solid;border-color:var(--ion-color-step-550, #737373)}@supports (inset-inline-start: 0){.alert-radio-icon.sc-ion-alert-md{inset-inline-start:26px}}@supports not (inset-inline-start: 0){.alert-radio-icon.sc-ion-alert-md{left:26px}[dir=rtl].sc-ion-alert-md-h .alert-radio-icon.sc-ion-alert-md,[dir=rtl] .sc-ion-alert-md-h .alert-radio-icon.sc-ion-alert-md{left:unset;right:unset;right:26px}[dir=rtl].sc-ion-alert-md .alert-radio-icon.sc-ion-alert-md{left:unset;right:unset;right:26px}@supports selector(:dir(rtl)){.alert-radio-icon.sc-ion-alert-md:dir(rtl){left:unset;right:unset;right:26px}}}.alert-radio-inner.sc-ion-alert-md{top:3px;border-radius:50%;position:absolute;width:10px;height:10px;-webkit-transform:scale3d(0, 0, 0);transform:scale3d(0, 0, 0);-webkit-transition:-webkit-transform 280ms cubic-bezier(0.4, 0, 0.2, 1);transition:-webkit-transform 280ms cubic-bezier(0.4, 0, 0.2, 1);transition:transform 280ms cubic-bezier(0.4, 0, 0.2, 1);transition:transform 280ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 280ms cubic-bezier(0.4, 0, 0.2, 1);background-color:var(--ion-color-primary, #3880ff)}@supports (inset-inline-start: 0){.alert-radio-inner.sc-ion-alert-md{inset-inline-start:3px}}@supports not (inset-inline-start: 0){.alert-radio-inner.sc-ion-alert-md{left:3px}[dir=rtl].sc-ion-alert-md-h .alert-radio-inner.sc-ion-alert-md,[dir=rtl] .sc-ion-alert-md-h .alert-radio-inner.sc-ion-alert-md{left:unset;right:unset;right:3px}[dir=rtl].sc-ion-alert-md .alert-radio-inner.sc-ion-alert-md{left:unset;right:unset;right:3px}@supports selector(:dir(rtl)){.alert-radio-inner.sc-ion-alert-md:dir(rtl){left:unset;right:unset;right:3px}}}[aria-checked=true].sc-ion-alert-md .alert-radio-label.sc-ion-alert-md{color:var(--ion-color-step-850, #262626)}[aria-checked=true].sc-ion-alert-md .alert-radio-icon.sc-ion-alert-md{border-color:var(--ion-color-primary, #3880ff)}[aria-checked=true].sc-ion-alert-md .alert-radio-inner.sc-ion-alert-md{-webkit-transform:scale3d(1, 1, 1);transform:scale3d(1, 1, 1)}.alert-checkbox-label.sc-ion-alert-md{-webkit-padding-start:53px;padding-inline-start:53px;-webkit-padding-end:26px;padding-inline-end:26px;padding-top:13px;padding-bottom:13px;-ms-flex:1;flex:1;width:calc(100% - 53px);color:var(--ion-color-step-850, #262626);font-size:1rem}.alert-checkbox-icon.sc-ion-alert-md{top:0;border-radius:2px;position:relative;width:16px;height:16px;border-width:2px;border-style:solid;border-color:var(--ion-color-step-550, #737373);contain:strict}@supports (inset-inline-start: 0){.alert-checkbox-icon.sc-ion-alert-md{inset-inline-start:26px}}@supports not (inset-inline-start: 0){.alert-checkbox-icon.sc-ion-alert-md{left:26px}[dir=rtl].sc-ion-alert-md-h .alert-checkbox-icon.sc-ion-alert-md,[dir=rtl] .sc-ion-alert-md-h .alert-checkbox-icon.sc-ion-alert-md{left:unset;right:unset;right:26px}[dir=rtl].sc-ion-alert-md .alert-checkbox-icon.sc-ion-alert-md{left:unset;right:unset;right:26px}@supports selector(:dir(rtl)){.alert-checkbox-icon.sc-ion-alert-md:dir(rtl){left:unset;right:unset;right:26px}}}[aria-checked=true].sc-ion-alert-md .alert-checkbox-icon.sc-ion-alert-md{border-color:var(--ion-color-primary, #3880ff);background-color:var(--ion-color-primary, #3880ff)}[aria-checked=true].sc-ion-alert-md .alert-checkbox-inner.sc-ion-alert-md{top:0;position:absolute;width:6px;height:10px;-webkit-transform:rotate(45deg);transform:rotate(45deg);border-width:2px;border-top-width:0;border-left-width:0;border-style:solid;border-color:var(--ion-color-primary-contrast, #fff)}@supports (inset-inline-start: 0){[aria-checked=true].sc-ion-alert-md .alert-checkbox-inner.sc-ion-alert-md{inset-inline-start:3px}}@supports not (inset-inline-start: 0){[aria-checked=true].sc-ion-alert-md .alert-checkbox-inner.sc-ion-alert-md{left:3px}[dir=rtl].sc-ion-alert-md-h [aria-checked=true].sc-ion-alert-md .alert-checkbox-inner.sc-ion-alert-md,[dir=rtl] .sc-ion-alert-md-h [aria-checked=true].sc-ion-alert-md .alert-checkbox-inner.sc-ion-alert-md{left:unset;right:unset;right:3px}[dir=rtl].sc-ion-alert-md [aria-checked=true].sc-ion-alert-md .alert-checkbox-inner.sc-ion-alert-md{left:unset;right:unset;right:3px}@supports selector(:dir(rtl)){[aria-checked=true].sc-ion-alert-md .alert-checkbox-inner.sc-ion-alert-md:dir(rtl){left:unset;right:unset;right:3px}}}.alert-button-group.sc-ion-alert-md{-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px;padding-top:8px;padding-bottom:8px;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex-wrap:wrap-reverse;flex-wrap:wrap-reverse;-ms-flex-pack:end;justify-content:flex-end}.alert-button.sc-ion-alert-md{border-radius:2px;-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:8px;margin-inline-end:8px;margin-top:0;margin-bottom:0;-webkit-padding-start:10px;padding-inline-start:10px;-webkit-padding-end:10px;padding-inline-end:10px;padding-top:10px;padding-bottom:10px;position:relative;background-color:transparent;color:var(--ion-color-primary, #3880ff);font-weight:500;text-align:end;text-transform:uppercase;overflow:hidden}.alert-button-inner.sc-ion-alert-md{-ms-flex-pack:end;justify-content:flex-end}@media screen and (min-width: 768px){.sc-ion-alert-md-h{--max-width:min(100vw - 96px, 560px);--max-height:min(100vh - 96px, 560px)}}",B3=ne(class extends ie{constructor(){super(),this.__registerHost(),this.didPresent=B(this,"ionAlertDidPresent",7),this.willPresent=B(this,"ionAlertWillPresent",7),this.willDismiss=B(this,"ionAlertWillDismiss",7),this.didDismiss=B(this,"ionAlertDidDismiss",7),this.didPresentShorthand=B(this,"didPresent",7),this.willPresentShorthand=B(this,"willPresent",7),this.willDismissShorthand=B(this,"willDismiss",7),this.didDismissShorthand=B(this,"didDismiss",7),this.delegateController=jx(this),this.lockController=ys(),this.triggerController=Tf(),this.customHTMLEnabled=le.get("innerHTMLTemplatesEnabled",VT),this.processedInputs=[],this.processedButtons=[],this.presented=!1,this.onBackdropTap=()=>{this.dismiss(void 0,zi)},this.dispatchCancelHandler=t=>{const n=t.detail.role;if(tl(n)){const i=this.processedButtons.find(o=>o.role==="cancel");this.callButtonHandler(i)}},this.overlayIndex=void 0,this.delegate=void 0,this.hasController=!1,this.keyboardClose=!0,this.enterAnimation=void 0,this.leaveAnimation=void 0,this.cssClass=void 0,this.header=void 0,this.subHeader=void 0,this.message=void 0,this.buttons=[],this.inputs=[],this.backdropDismiss=!0,this.translucent=!1,this.animated=!0,this.htmlAttributes=void 0,this.isOpen=!1,this.trigger=void 0}onIsOpenChange(t,n){t===!0&&n===!1?this.present():t===!1&&n===!0&&this.dismiss()}triggerChanged(){const{trigger:t,el:n,triggerController:i}=this;t&&i.addClickListener(n,t)}onKeydown(t){const n=new Set(this.processedInputs.map(a=>a.type));if(n.has("checkbox")&&t.key==="Enter"){t.preventDefault();return}if(!n.has("radio")||t.target&&!this.el.contains(t.target)||t.target.classList.contains("alert-button"))return;const i=this.el.querySelectorAll(".alert-radio"),o=Array.from(i).filter(a=>!a.disabled),r=o.findIndex(a=>a.id===t.target.id);let s;if(["ArrowDown","ArrowRight"].includes(t.key)&&(s=r===o.length-1?o[0]:o[r+1]),["ArrowUp","ArrowLeft"].includes(t.key)&&(s=r===0?o[o.length-1]:o[r-1]),s&&o.includes(s)){const a=this.processedInputs.find(l=>l.id===(s==null?void 0:s.id));a&&(this.rbClick(a),s.focus())}}buttonsChanged(){const t=this.buttons;this.processedButtons=t.map(n=>typeof n=="string"?{text:n,role:n.toLowerCase()==="cancel"?"cancel":void 0}:n)}inputsChanged(){const t=this.inputs,n=t.find(s=>!s.disabled),o=t.find(s=>s.checked&&!s.disabled)||n,r=new Set(t.map(s=>s.type));r.has("checkbox")&&r.has("radio")&&console.warn(`Alert cannot mix input types: ${Array.from(r.values()).join("/")}. Please see alert docs for more info.`),this.inputType=r.values().next().value,this.processedInputs=t.map((s,a)=>{var l;return{type:s.type||"text",name:s.name||`${a}`,placeholder:s.placeholder||"",value:s.value,label:s.label,checked:!!s.checked,disabled:!!s.disabled,id:s.id||`alert-input-${this.overlayIndex}-${a}`,handler:s.handler,min:s.min,max:s.max,cssClass:(l=s.cssClass)!==null&&l!==void 0?l:"",attributes:s.attributes||{},tabindex:s.type==="radio"&&s!==o?-1:0}})}connectedCallback(){jl(this.el),this.triggerChanged()}componentWillLoad(){Vl(this.el),this.inputsChanged(),this.buttonsChanged()}disconnectedCallback(){this.triggerController.removeClickListener(),this.gesture&&(this.gesture.destroy(),this.gesture=void 0)}componentDidLoad(){!this.gesture&&W(this)==="ios"&&this.wrapperEl&&(this.gesture=lw(this.wrapperEl,t=>t.classList.contains("alert-button")),this.gesture.enable(!0)),this.isOpen===!0&&Ie(()=>this.present()),this.triggerChanged()}async present(){const t=await this.lockController.lock();await this.delegateController.attachViewToDom(),await Fl(this,"alertEnter",R3,$3),t()}async dismiss(t,n){const i=await this.lockController.lock(),o=await Hl(this,t,n,"alertLeave",D3,_3);return o&&this.delegateController.removeViewFromDom(),i(),o}onDidDismiss(){return ti(this.el,"ionAlertDidDismiss")}onWillDismiss(){return ti(this.el,"ionAlertWillDismiss")}rbClick(t){for(const n of this.processedInputs)n.checked=n===t,n.tabindex=n===t?0:-1;this.activeId=t.id,Tr(t.handler,t),En(this)}cbClick(t){t.checked=!t.checked,Tr(t.handler,t),En(this)}async buttonClick(t){const n=t.role,i=this.getValues();if(tl(n))return this.dismiss({values:i},n);const o=await this.callButtonHandler(t,i);return o!==!1?this.dismiss(Object.assign({values:i},o),t.role):!1}async callButtonHandler(t,n){if(t!=null&&t.handler){const i=await Tr(t.handler,n);if(i===!1)return!1;if(typeof i=="object")return i}return{}}getValues(){if(this.processedInputs.length===0)return;if(this.inputType==="radio"){const n=this.processedInputs.find(i=>!!i.checked);return n?n.value:void 0}if(this.inputType==="checkbox")return this.processedInputs.filter(n=>n.checked).map(n=>n.value);const t={};return this.processedInputs.forEach(n=>{t[n.name]=n.value||""}),t}renderAlertInputs(){switch(this.inputType){case"checkbox":return this.renderCheckbox();case"radio":return this.renderRadio();default:return this.renderInput()}}renderCheckbox(){const t=this.processedInputs,n=W(this);return t.length===0?null:y("div",{class:"alert-checkbox-group"},t.map(i=>y("button",{type:"button",onClick:()=>this.cbClick(i),"aria-checked":`${i.checked}`,id:i.id,disabled:i.disabled,tabIndex:i.tabindex,role:"checkbox",class:Object.assign(Object.assign({},Mt(i.cssClass)),{"alert-tappable":!0,"alert-checkbox":!0,"alert-checkbox-button":!0,"ion-focusable":!0,"alert-checkbox-button-disabled":i.disabled||!1})},y("div",{class:"alert-button-inner"},y("div",{class:"alert-checkbox-icon"},y("div",{class:"alert-checkbox-inner"})),y("div",{class:"alert-checkbox-label"},i.label)),n==="md"&&y("ion-ripple-effect",null))))}renderRadio(){const t=this.processedInputs;return t.length===0?null:y("div",{class:"alert-radio-group",role:"radiogroup","aria-activedescendant":this.activeId},t.map(n=>y("button",{type:"button",onClick:()=>this.rbClick(n),"aria-checked":`${n.checked}`,disabled:n.disabled,id:n.id,tabIndex:n.tabindex,class:Object.assign(Object.assign({},Mt(n.cssClass)),{"alert-radio-button":!0,"alert-tappable":!0,"alert-radio":!0,"ion-focusable":!0,"alert-radio-button-disabled":n.disabled||!1}),role:"radio"},y("div",{class:"alert-button-inner"},y("div",{class:"alert-radio-icon"},y("div",{class:"alert-radio-inner"})),y("div",{class:"alert-radio-label"},n.label)))))}renderInput(){const t=this.processedInputs;return t.length===0?null:y("div",{class:"alert-input-group"},t.map(n=>{var i,o,r,s;return n.type==="textarea"?y("div",{class:"alert-input-wrapper"},y("textarea",Object.assign({placeholder:n.placeholder,value:n.value,id:n.id,tabIndex:n.tabindex},n.attributes,{disabled:(o=(i=n.attributes)===null||i===void 0?void 0:i.disabled)!==null&&o!==void 0?o:n.disabled,class:jg(n),onInput:a=>{var l;n.value=a.target.value,!((l=n.attributes)===null||l===void 0)&&l.onInput&&n.attributes.onInput(a)}}))):y("div",{class:"alert-input-wrapper"},y("input",Object.assign({placeholder:n.placeholder,type:n.type,min:n.min,max:n.max,value:n.value,id:n.id,tabIndex:n.tabindex},n.attributes,{disabled:(s=(r=n.attributes)===null||r===void 0?void 0:r.disabled)!==null&&s!==void 0?s:n.disabled,class:jg(n),onInput:a=>{var l;n.value=a.target.value,!((l=n.attributes)===null||l===void 0)&&l.onInput&&n.attributes.onInput(a)}})))}))}renderAlertButtons(){const t=this.processedButtons,n=W(this),i={"alert-button-group":!0,"alert-button-group-vertical":t.length>2};return y("div",{class:i},t.map(o=>y("button",Object.assign({},o.htmlAttributes,{type:"button",id:o.id,class:j3(o),tabIndex:0,onClick:()=>this.buttonClick(o)}),y("span",{class:"alert-button-inner"},o.text),n==="md"&&y("ion-ripple-effect",null))))}renderAlertMessage(t){const{customHTMLEnabled:n,message:i}=this;return n?y("div",{id:t,class:"alert-message",innerHTML:_T(i)}):y("div",{id:t,class:"alert-message"},i)}render(){const{overlayIndex:t,header:n,subHeader:i,message:o,htmlAttributes:r}=this,s=W(this),a=`alert-${t}-hdr`,l=`alert-${t}-sub-hdr`,c=`alert-${t}-msg`,d=this.inputs.length>0||this.buttons.length>0?"alertdialog":"alert";return y(ee,Object.assign({role:d,"aria-modal":"true","aria-labelledby":n?a:i?l:null,"aria-describedby":o!==void 0?c:null,tabindex:"-1"},r,{style:{zIndex:`${2e4+t}`},class:Object.assign(Object.assign({},Mt(this.cssClass)),{[s]:!0,"overlay-hidden":!0,"alert-translucent":this.translucent}),onIonAlertWillDismiss:this.dispatchCancelHandler,onIonBackdropTap:this.onBackdropTap}),y("ion-backdrop",{tappable:this.backdropDismiss}),y("div",{tabindex:"0"}),y("div",{class:"alert-wrapper ion-overlay-wrapper",ref:h=>this.wrapperEl=h},y("div",{class:"alert-head"},n&&y("h2",{id:a,class:"alert-title"},n),i&&y("h2",{id:l,class:"alert-sub-title"},i)),this.renderAlertMessage(c),this.renderAlertInputs(),this.renderAlertButtons()),y("div",{tabindex:"0"}))}get el(){return this}static get watchers(){return{isOpen:["onIsOpenChange"],trigger:["triggerChanged"],buttons:["buttonsChanged"],inputs:["inputsChanged"]}}static get style(){return{ios:z3,md:M3}}},[34,"ion-alert",{overlayIndex:[2,"overlay-index"],delegate:[16],hasController:[4,"has-controller"],keyboardClose:[4,"keyboard-close"],enterAnimation:[16],leaveAnimation:[16],cssClass:[1,"css-class"],header:[1],subHeader:[1,"sub-header"],message:[1],buttons:[16],inputs:[1040],backdropDismiss:[4,"backdrop-dismiss"],translucent:[4],animated:[4],htmlAttributes:[16],isOpen:[4,"is-open"],trigger:[1],present:[64],dismiss:[64],onDidDismiss:[64],onWillDismiss:[64]},[[4,"keydown","onKeydown"]],{isOpen:["onIsOpenChange"],trigger:["triggerChanged"],buttons:["buttonsChanged"],inputs:["inputsChanged"]}]),jg=e=>{var t,n,i;return Object.assign(Object.assign({"alert-input":!0,"alert-input-disabled":((n=(t=e.attributes)===null||t===void 0?void 0:t.disabled)!==null&&n!==void 0?n:e.disabled)||!1},Mt(e.cssClass)),Mt(e.attributes?(i=e.attributes.class)===null||i===void 0?void 0:i.toString():""))},j3=e=>Object.assign({"alert-button":!0,"ion-focusable":!0,"ion-activatable":!0,[`alert-button-role-${e.role}`]:e.role!==void 0},Mt(e.cssClass));function V3(){if(typeof customElements>"u")return;["ion-alert","ion-backdrop","ion-ripple-effect"].forEach(t=>{switch(t){case"ion-alert":customElements.get(t)||customElements.define(t,B3);break;case"ion-backdrop":customElements.get(t)||Wo();break;case"ion-ripple-effect":customElements.get(t)||Fi();break}})}/*! * (C) Ionic http://ionicframework.com - MIT License */const F3=".sc-ion-select-popover-ios-h ion-list.sc-ion-select-popover-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}ion-list-header.sc-ion-select-popover-ios,ion-label.sc-ion-select-popover-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}",H3=".sc-ion-select-popover-md-h ion-list.sc-ion-select-popover-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}ion-list-header.sc-ion-select-popover-md,ion-label.sc-ion-select-popover-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}ion-list.sc-ion-select-popover-md ion-radio.sc-ion-select-popover-md::part(container){opacity:0}ion-item.sc-ion-select-popover-md{--inner-border-width:0}.item-radio-checked.sc-ion-select-popover-md{--background:rgba(var(--ion-color-primary-rgb, 56, 128, 255), 0.08);--background-focused:var(--ion-color-primary, #3880ff);--background-focused-opacity:0.2;--background-hover:var(--ion-color-primary, #3880ff);--background-hover-opacity:0.12}.item-checkbox-checked.sc-ion-select-popover-md{--background-activated:var(--ion-item-color, var(--ion-text-color, #000));--background-focused:var(--ion-item-color, var(--ion-text-color, #000));--background-hover:var(--ion-item-color, var(--ion-text-color, #000));--color:var(--ion-color-primary, #3880ff)}",N3=ne(class extends ie{constructor(){super(),this.__registerHost(),this.header=void 0,this.subHeader=void 0,this.message=void 0,this.multiple=void 0,this.options=[]}findOptionFromEvent(t){const{options:n}=this;return n.find(i=>i.value===t.target.value)}callOptionHandler(t){const n=this.findOptionFromEvent(t),i=this.getValues(t);n!=null&&n.handler&&Tr(n.handler,i)}dismissParentPopover(){const t=this.el.closest("ion-popover");t&&t.dismiss()}setChecked(t){const{multiple:n}=this,i=this.findOptionFromEvent(t);n&&i&&(i.checked=t.detail.checked)}getValues(t){const{multiple:n,options:i}=this;if(n)return i.filter(r=>r.checked).map(r=>r.value);const o=this.findOptionFromEvent(t);return o?o.value:void 0}renderOptions(t){const{multiple:n}=this;switch(n){case!0:return this.renderCheckboxOptions(t);default:return this.renderRadioOptions(t)}}renderCheckboxOptions(t){return t.map(n=>y("ion-item",{class:Object.assign({"item-checkbox-checked":n.checked},Mt(n.cssClass))},y("ion-checkbox",{value:n.value,disabled:n.disabled,checked:n.checked,justify:"start",labelPlacement:"end",onIonChange:i=>{this.setChecked(i),this.callOptionHandler(i),En(this)}},n.text)))}renderRadioOptions(t){const n=t.filter(i=>i.checked).map(i=>i.value)[0];return y("ion-radio-group",{value:n,onIonChange:i=>this.callOptionHandler(i)},t.map(i=>y("ion-item",{class:Object.assign({"item-radio-checked":i.value===n},Mt(i.cssClass))},y("ion-radio",{value:i.value,disabled:i.disabled,onClick:()=>this.dismissParentPopover(),onKeyUp:o=>{o.key===" "&&this.dismissParentPopover()}},i.text))))}render(){const{header:t,message:n,options:i,subHeader:o}=this,r=o!==void 0||n!==void 0;return y(ee,{class:W(this)},y("ion-list",null,t!==void 0&&y("ion-list-header",null,t),r&&y("ion-item",null,y("ion-label",{class:"ion-text-wrap"},o!==void 0&&y("h3",null,o),n!==void 0&&y("p",null,n))),this.renderOptions(i)))}get el(){return this}static get style(){return{ios:F3,md:H3}}},[34,"ion-select-popover",{header:[1],subHeader:[1,"sub-header"],message:[1],multiple:[4],options:[16]}]);function U3(){if(typeof customElements>"u")return;["ion-select-popover","ion-checkbox","ion-icon","ion-item","ion-label","ion-list","ion-list-header","ion-note","ion-radio","ion-radio-group","ion-ripple-effect"].forEach(t=>{switch(t){case"ion-select-popover":customElements.get(t)||customElements.define(t,N3);break;case"ion-checkbox":customElements.get(t)||Nx();break;case"ion-icon":customElements.get(t)||vs();break;case"ion-item":customElements.get(t)||Wx();break;case"ion-label":customElements.get(t)||Pf();break;case"ion-list":customElements.get(t)||If();break;case"ion-list-header":customElements.get(t)||Of();break;case"ion-note":customElements.get(t)||Ul();break;case"ion-radio":customElements.get(t)||sw();break;case"ion-radio-group":customElements.get(t)||aw();break;case"ion-ripple-effect":customElements.get(t)||Fi();break}})}/*! * (C) Ionic http://ionicframework.com - MIT License */const W3=":host{--padding-top:0px;--padding-end:0px;--padding-bottom:0px;--padding-start:0px;--placeholder-color:currentColor;--placeholder-opacity:0.6;--background:transparent;--border-style:solid;--highlight-color-focused:var(--ion-color-primary, #3880ff);--highlight-color-valid:var(--ion-color-success, #2dd36f);--highlight-color-invalid:var(--ion-color-danger, #eb445a);--highlight-color:var(--highlight-color-focused);display:block;position:relative;font-family:var(--ion-font-family, inherit);white-space:nowrap;cursor:pointer;z-index:2}:host(:not(.legacy-select)){width:100%;min-height:44px}:host(.select-label-placement-floating),:host(.select-label-placement-stacked){min-height:56px}:host(.ion-color){--highlight-color-focused:var(--ion-color-base)}:host(.legacy-select){-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;overflow:hidden}:host(.in-item:not(.legacy-select)){-ms-flex:1 1 0px;flex:1 1 0}:host(.in-item.legacy-select){position:static;max-width:45%}:host(.select-disabled){pointer-events:none}:host(.ion-focused) button{border:2px solid #5e9ed6}:host([slot=start]:not(.legacy-select)),:host([slot=end]:not(.legacy-select)){width:auto}.select-placeholder{color:var(--placeholder-color);opacity:var(--placeholder-opacity)}:host(.legacy-select) label{top:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;position:absolute;width:100%;height:100%;border:0;background:transparent;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;opacity:0}@supports (inset-inline-start: 0){:host(.legacy-select) label{inset-inline-start:0}}@supports not (inset-inline-start: 0){:host(.legacy-select) label{left:0}:host-context([dir=rtl]):host(.legacy-select) label,:host-context([dir=rtl]).legacy-select label{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){:host(.legacy-select:dir(rtl)) label{left:unset;right:unset;right:0}}}:host(.legacy-select) label::-moz-focus-inner{border:0}button{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}.select-icon{-webkit-margin-start:4px;margin-inline-start:4px;-webkit-margin-end:0;margin-inline-end:0;margin-top:0;margin-bottom:0;position:relative;-ms-flex-negative:0;flex-shrink:0}:host(.in-item-color) .select-icon{color:inherit}:host(.select-label-placement-stacked) .select-icon,:host(.select-label-placement-floating) .select-icon{position:absolute;height:100%}:host(.select-ltr.select-label-placement-stacked) .select-icon,:host(.select-ltr.select-label-placement-floating) .select-icon{right:var(--padding-end, 0)}:host(.select-rtl.select-label-placement-stacked) .select-icon,:host(.select-rtl.select-label-placement-floating) .select-icon{left:var(--padding-start, 0)}.select-text{-ms-flex:1;flex:1;min-width:16px;font-size:inherit;text-overflow:ellipsis;white-space:inherit;overflow:hidden}.select-wrapper{-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);border-radius:var(--border-radius);display:-ms-flexbox;display:flex;position:relative;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center;height:inherit;min-height:inherit;-webkit-transition:background-color 15ms linear;transition:background-color 15ms linear;background:var(--background);line-height:normal;cursor:inherit;-webkit-box-sizing:border-box;box-sizing:border-box}.select-wrapper .select-placeholder{-webkit-transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1)}.select-wrapper-inner{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;overflow:hidden}:host(.select-label-placement-stacked) .select-wrapper-inner,:host(.select-label-placement-floating) .select-wrapper-inner{-ms-flex-positive:1;flex-grow:1}:host(.ion-touched.ion-invalid){--highlight-color:var(--highlight-color-invalid)}:host(.ion-valid){--highlight-color:var(--highlight-color-valid)}.label-text-wrapper{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;max-width:200px;-webkit-transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), transform 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);pointer-events:none}.label-text,::slotted([slot=label]){text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.label-text-wrapper-hidden,.select-outline-notch-hidden{display:none}.native-wrapper{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-webkit-transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1);overflow:hidden}:host(.select-justify-space-between) .select-wrapper{-ms-flex-pack:justify;justify-content:space-between}:host(.select-justify-start) .select-wrapper{-ms-flex-pack:start;justify-content:start}:host(.select-justify-end) .select-wrapper{-ms-flex-pack:end;justify-content:end}:host(.select-label-placement-start) .select-wrapper{-ms-flex-direction:row;flex-direction:row}:host(.select-label-placement-start) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:0;margin-bottom:0}:host(.select-label-placement-end) .select-wrapper{-ms-flex-direction:row-reverse;flex-direction:row-reverse}:host(.select-label-placement-end) .label-text-wrapper{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0;margin-top:0;margin-bottom:0}:host(.select-label-placement-fixed) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:0;margin-bottom:0}:host(.select-label-placement-fixed) .label-text-wrapper{-ms-flex:0 0 100px;flex:0 0 100px;width:100px;min-width:100px;max-width:200px}:host(.select-label-placement-stacked) .select-wrapper,:host(.select-label-placement-floating) .select-wrapper{-ms-flex-direction:column;flex-direction:column;-ms-flex-align:start;align-items:start}:host(.select-label-placement-stacked) .label-text-wrapper,:host(.select-label-placement-floating) .label-text-wrapper{max-width:100%}:host(.select-ltr.select-label-placement-stacked) .label-text-wrapper,:host(.select-ltr.select-label-placement-floating) .label-text-wrapper{-webkit-transform-origin:left top;transform-origin:left top}:host(.select-rtl.select-label-placement-stacked) .label-text-wrapper,:host(.select-rtl.select-label-placement-floating) .label-text-wrapper{-webkit-transform-origin:right top;transform-origin:right top}:host(.select-label-placement-stacked) .native-wrapper,:host(.select-label-placement-floating) .native-wrapper{margin-left:0;margin-right:0;margin-top:1px;margin-bottom:0;-ms-flex-positive:1;flex-grow:1;width:100%}:host(.select-label-placement-floating) .label-text-wrapper{-webkit-transform:translateY(100%) scale(1);transform:translateY(100%) scale(1)}:host(.select-label-placement-floating:not(.label-floating)) .native-wrapper .select-placeholder{opacity:0}:host(.select-expanded.select-label-placement-floating) .native-wrapper .select-placeholder,:host(.ion-focused.select-label-placement-floating) .native-wrapper .select-placeholder,:host(.has-value.select-label-placement-floating) .native-wrapper .select-placeholder{opacity:1}:host(.label-floating) .label-text-wrapper{-webkit-transform:translateY(50%) scale(0.75);transform:translateY(50%) scale(0.75);max-width:calc(100% / 0.75)}::slotted([slot=start]),::slotted([slot=end]){-ms-flex-negative:0;flex-shrink:0}::slotted([slot=start]){-webkit-margin-end:16px;margin-inline-end:16px;-webkit-margin-start:0;margin-inline-start:0}::slotted([slot=end]){-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0}:host(.legacy-select){--padding-top:10px;--padding-end:8px;--padding-bottom:10px;--padding-start:16px}.select-icon{width:1.125rem;height:1.125rem;color:var(--ion-color-step-650, #595959)}:host(.select-label-placement-stacked) .select-wrapper-inner,:host(.select-label-placement-floating) .select-wrapper-inner{width:calc(100% - 1.125rem - 4px)}:host(.select-disabled){opacity:0.3}::slotted(ion-button[slot=start].button-has-icon-only),::slotted(ion-button[slot=end].button-has-icon-only){--border-radius:50%;--padding-start:0;--padding-end:0;--padding-top:0;--padding-bottom:0;aspect-ratio:1}",X3=":host{--padding-top:0px;--padding-end:0px;--padding-bottom:0px;--padding-start:0px;--placeholder-color:currentColor;--placeholder-opacity:0.6;--background:transparent;--border-style:solid;--highlight-color-focused:var(--ion-color-primary, #3880ff);--highlight-color-valid:var(--ion-color-success, #2dd36f);--highlight-color-invalid:var(--ion-color-danger, #eb445a);--highlight-color:var(--highlight-color-focused);display:block;position:relative;font-family:var(--ion-font-family, inherit);white-space:nowrap;cursor:pointer;z-index:2}:host(:not(.legacy-select)){width:100%;min-height:44px}:host(.select-label-placement-floating),:host(.select-label-placement-stacked){min-height:56px}:host(.ion-color){--highlight-color-focused:var(--ion-color-base)}:host(.legacy-select){-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;overflow:hidden}:host(.in-item:not(.legacy-select)){-ms-flex:1 1 0px;flex:1 1 0}:host(.in-item.legacy-select){position:static;max-width:45%}:host(.select-disabled){pointer-events:none}:host(.ion-focused) button{border:2px solid #5e9ed6}:host([slot=start]:not(.legacy-select)),:host([slot=end]:not(.legacy-select)){width:auto}.select-placeholder{color:var(--placeholder-color);opacity:var(--placeholder-opacity)}:host(.legacy-select) label{top:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;position:absolute;width:100%;height:100%;border:0;background:transparent;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;opacity:0}@supports (inset-inline-start: 0){:host(.legacy-select) label{inset-inline-start:0}}@supports not (inset-inline-start: 0){:host(.legacy-select) label{left:0}:host-context([dir=rtl]):host(.legacy-select) label,:host-context([dir=rtl]).legacy-select label{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){:host(.legacy-select:dir(rtl)) label{left:unset;right:unset;right:0}}}:host(.legacy-select) label::-moz-focus-inner{border:0}button{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}.select-icon{-webkit-margin-start:4px;margin-inline-start:4px;-webkit-margin-end:0;margin-inline-end:0;margin-top:0;margin-bottom:0;position:relative;-ms-flex-negative:0;flex-shrink:0}:host(.in-item-color) .select-icon{color:inherit}:host(.select-label-placement-stacked) .select-icon,:host(.select-label-placement-floating) .select-icon{position:absolute;height:100%}:host(.select-ltr.select-label-placement-stacked) .select-icon,:host(.select-ltr.select-label-placement-floating) .select-icon{right:var(--padding-end, 0)}:host(.select-rtl.select-label-placement-stacked) .select-icon,:host(.select-rtl.select-label-placement-floating) .select-icon{left:var(--padding-start, 0)}.select-text{-ms-flex:1;flex:1;min-width:16px;font-size:inherit;text-overflow:ellipsis;white-space:inherit;overflow:hidden}.select-wrapper{-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);border-radius:var(--border-radius);display:-ms-flexbox;display:flex;position:relative;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center;height:inherit;min-height:inherit;-webkit-transition:background-color 15ms linear;transition:background-color 15ms linear;background:var(--background);line-height:normal;cursor:inherit;-webkit-box-sizing:border-box;box-sizing:border-box}.select-wrapper .select-placeholder{-webkit-transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1)}.select-wrapper-inner{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;overflow:hidden}:host(.select-label-placement-stacked) .select-wrapper-inner,:host(.select-label-placement-floating) .select-wrapper-inner{-ms-flex-positive:1;flex-grow:1}:host(.ion-touched.ion-invalid){--highlight-color:var(--highlight-color-invalid)}:host(.ion-valid){--highlight-color:var(--highlight-color-valid)}.label-text-wrapper{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;max-width:200px;-webkit-transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), transform 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);pointer-events:none}.label-text,::slotted([slot=label]){text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.label-text-wrapper-hidden,.select-outline-notch-hidden{display:none}.native-wrapper{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-webkit-transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1);overflow:hidden}:host(.select-justify-space-between) .select-wrapper{-ms-flex-pack:justify;justify-content:space-between}:host(.select-justify-start) .select-wrapper{-ms-flex-pack:start;justify-content:start}:host(.select-justify-end) .select-wrapper{-ms-flex-pack:end;justify-content:end}:host(.select-label-placement-start) .select-wrapper{-ms-flex-direction:row;flex-direction:row}:host(.select-label-placement-start) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:0;margin-bottom:0}:host(.select-label-placement-end) .select-wrapper{-ms-flex-direction:row-reverse;flex-direction:row-reverse}:host(.select-label-placement-end) .label-text-wrapper{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0;margin-top:0;margin-bottom:0}:host(.select-label-placement-fixed) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:0;margin-bottom:0}:host(.select-label-placement-fixed) .label-text-wrapper{-ms-flex:0 0 100px;flex:0 0 100px;width:100px;min-width:100px;max-width:200px}:host(.select-label-placement-stacked) .select-wrapper,:host(.select-label-placement-floating) .select-wrapper{-ms-flex-direction:column;flex-direction:column;-ms-flex-align:start;align-items:start}:host(.select-label-placement-stacked) .label-text-wrapper,:host(.select-label-placement-floating) .label-text-wrapper{max-width:100%}:host(.select-ltr.select-label-placement-stacked) .label-text-wrapper,:host(.select-ltr.select-label-placement-floating) .label-text-wrapper{-webkit-transform-origin:left top;transform-origin:left top}:host(.select-rtl.select-label-placement-stacked) .label-text-wrapper,:host(.select-rtl.select-label-placement-floating) .label-text-wrapper{-webkit-transform-origin:right top;transform-origin:right top}:host(.select-label-placement-stacked) .native-wrapper,:host(.select-label-placement-floating) .native-wrapper{margin-left:0;margin-right:0;margin-top:1px;margin-bottom:0;-ms-flex-positive:1;flex-grow:1;width:100%}:host(.select-label-placement-floating) .label-text-wrapper{-webkit-transform:translateY(100%) scale(1);transform:translateY(100%) scale(1)}:host(.select-label-placement-floating:not(.label-floating)) .native-wrapper .select-placeholder{opacity:0}:host(.select-expanded.select-label-placement-floating) .native-wrapper .select-placeholder,:host(.ion-focused.select-label-placement-floating) .native-wrapper .select-placeholder,:host(.has-value.select-label-placement-floating) .native-wrapper .select-placeholder{opacity:1}:host(.label-floating) .label-text-wrapper{-webkit-transform:translateY(50%) scale(0.75);transform:translateY(50%) scale(0.75);max-width:calc(100% / 0.75)}::slotted([slot=start]),::slotted([slot=end]){-ms-flex-negative:0;flex-shrink:0}::slotted([slot=start]){-webkit-margin-end:16px;margin-inline-end:16px;-webkit-margin-start:0;margin-inline-start:0}::slotted([slot=end]){-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0}:host(.select-fill-solid){--background:var(--ion-color-step-50, #f2f2f2);--border-color:var(--ion-color-step-500, gray);--border-radius:4px;--padding-start:16px;--padding-end:16px;min-height:56px}:host(.select-fill-solid) .select-wrapper{border-bottom:var(--border-width) var(--border-style) var(--border-color)}:host(.has-focus.select-fill-solid.ion-valid),:host(.select-fill-solid.ion-touched.ion-invalid){--border-color:var(--highlight-color)}:host(.select-fill-solid) .select-bottom{border-top:none}@media (any-hover: hover){:host(.select-fill-solid:hover){--background:var(--ion-color-step-100, #e6e6e6);--border-color:var(--ion-color-step-750, #404040)}}:host(.select-fill-solid.select-expanded),:host(.select-fill-solid.ion-focused){--background:var(--ion-color-step-150, #d9d9d9);--border-color:var(--ion-color-step-750, #404040)}:host(.select-fill-solid) .select-wrapper{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-right-radius:0px;border-bottom-left-radius:0px}:host-context([dir=rtl]):host(.select-fill-solid) .select-wrapper,:host-context([dir=rtl]).select-fill-solid .select-wrapper{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-right-radius:0px;border-bottom-left-radius:0px}@supports selector(:dir(rtl)){:host(.select-fill-solid:dir(rtl)) .select-wrapper{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-right-radius:0px;border-bottom-left-radius:0px}}:host(.label-floating.select-fill-solid) .label-text-wrapper{max-width:calc(100% / 0.75)}:host(.select-fill-outline){--border-color:var(--ion-color-step-300, #b3b3b3);--border-radius:4px;--padding-start:16px;--padding-end:16px;min-height:56px}:host(.select-fill-outline.select-shape-round){--border-radius:28px;--padding-start:32px;--padding-end:32px}:host(.has-focus.select-fill-outline.ion-valid),:host(.select-fill-outline.ion-touched.ion-invalid){--border-color:var(--highlight-color)}@media (any-hover: hover){:host(.select-fill-outline:hover){--border-color:var(--ion-color-step-750, #404040)}}:host(.select-fill-outline.select-expanded),:host(.select-fill-outline.ion-focused){--border-width:2px;--border-color:var(--highlight-color)}:host(.select-fill-outline) .select-bottom{border-top:none}:host(.select-fill-outline) .select-wrapper{border-bottom:none}:host(.select-ltr.select-fill-outline.select-label-placement-stacked) .label-text-wrapper,:host(.select-ltr.select-fill-outline.select-label-placement-floating) .label-text-wrapper{-webkit-transform-origin:left top;transform-origin:left top}:host(.select-rtl.select-fill-outline.select-label-placement-stacked) .label-text-wrapper,:host(.select-rtl.select-fill-outline.select-label-placement-floating) .label-text-wrapper{-webkit-transform-origin:right top;transform-origin:right top}:host(.select-fill-outline.select-label-placement-stacked) .label-text-wrapper,:host(.select-fill-outline.select-label-placement-floating) .label-text-wrapper{position:absolute;max-width:calc(100% - var(--padding-start) - var(--padding-end))}:host(.select-fill-outline) .label-text-wrapper{position:relative;z-index:1}:host(.label-floating.select-fill-outline) .label-text-wrapper{-webkit-transform:translateY(-32%) scale(0.75);transform:translateY(-32%) scale(0.75);margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;max-width:calc((100% - var(--padding-start) - var(--padding-end) - 8px) / 0.75)}:host(.select-fill-outline.select-label-placement-stacked) select,:host(.select-fill-outline.select-label-placement-floating) select{margin-left:0;margin-right:0;margin-top:6px;margin-bottom:6px}:host(.select-fill-outline) .select-outline-container{left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:absolute;width:100%;height:100%}:host(.select-fill-outline) .select-outline-start,:host(.select-fill-outline) .select-outline-end{pointer-events:none}:host(.select-fill-outline) .select-outline-start,:host(.select-fill-outline) .select-outline-notch,:host(.select-fill-outline) .select-outline-end{border-top:var(--border-width) var(--border-style) var(--border-color);border-bottom:var(--border-width) var(--border-style) var(--border-color);-webkit-box-sizing:border-box;box-sizing:border-box}:host(.select-fill-outline) .select-outline-notch{max-width:calc(100% - var(--padding-start) - var(--padding-end))}:host(.select-fill-outline) .notch-spacer{-webkit-padding-end:8px;padding-inline-end:8px;font-size:calc(1em * 0.75);opacity:0;pointer-events:none}:host(.select-fill-outline) .select-outline-start{-webkit-border-start:var(--border-width) var(--border-style) var(--border-color);border-inline-start:var(--border-width) var(--border-style) var(--border-color)}:host(.select-ltr.select-fill-outline) .select-outline-start{border-radius:var(--border-radius) 0px 0px var(--border-radius)}:host(.select-rtl.select-fill-outline) .select-outline-start{border-radius:0px var(--border-radius) var(--border-radius) 0px}:host(.select-fill-outline) .select-outline-start{width:calc(var(--padding-start) - 4px)}:host(.select-fill-outline) .select-outline-end{-webkit-border-end:var(--border-width) var(--border-style) var(--border-color);border-inline-end:var(--border-width) var(--border-style) var(--border-color)}:host(.select-ltr.select-fill-outline) .select-outline-end{border-radius:0px var(--border-radius) var(--border-radius) 0px}:host(.select-rtl.select-fill-outline) .select-outline-end{border-radius:var(--border-radius) 0px 0px var(--border-radius)}:host(.select-fill-outline) .select-outline-end{-ms-flex-positive:1;flex-grow:1}:host(.label-floating.select-fill-outline) .select-outline-notch{border-top:none}:host{--border-width:1px;--border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-150, rgba(0, 0, 0, 0.13))))}:host(.legacy-select){--padding-top:10px;--padding-end:0;--padding-bottom:10px;--padding-start:16px}.select-icon{width:0.8125rem;-webkit-transition:-webkit-transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);transition:-webkit-transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);transition:transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);transition:transform 0.15s cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);color:var(--ion-color-step-500, gray)}:host(.select-label-placement-floating.select-expanded) .label-text-wrapper,:host(.select-label-placement-floating.ion-focused) .label-text-wrapper,:host(.select-label-placement-stacked.select-expanded) .label-text-wrapper,:host(.select-label-placement-stacked.ion-focused) .label-text-wrapper{color:var(--highlight-color)}:host(.has-focus.select-label-placement-floating.ion-valid) .label-text-wrapper,:host(.select-label-placement-floating.ion-touched.ion-invalid) .label-text-wrapper,:host(.has-focus.select-label-placement-stacked.ion-valid) .label-text-wrapper,:host(.select-label-placement-stacked.ion-touched.ion-invalid) .label-text-wrapper{color:var(--highlight-color)}.select-highlight{bottom:-1px;position:absolute;width:100%;height:2px;-webkit-transform:scale(0);transform:scale(0);-webkit-transition:-webkit-transform 200ms;transition:-webkit-transform 200ms;transition:transform 200ms;transition:transform 200ms, -webkit-transform 200ms;background:var(--highlight-color)}@supports (inset-inline-start: 0){.select-highlight{inset-inline-start:0}}@supports not (inset-inline-start: 0){.select-highlight{left:0}:host-context([dir=rtl]) .select-highlight{left:unset;right:unset;right:0}[dir=rtl] .select-highlight{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){.select-highlight:dir(rtl){left:unset;right:unset;right:0}}}:host(.select-expanded) .select-highlight,:host(.ion-focused) .select-highlight{-webkit-transform:scale(1);transform:scale(1)}:host(.in-item) .select-highlight{bottom:0}@supports (inset-inline-start: 0){:host(.in-item) .select-highlight{inset-inline-start:0}}@supports not (inset-inline-start: 0){:host(.in-item) .select-highlight{left:0}:host-context([dir=rtl]):host(.in-item) .select-highlight,:host-context([dir=rtl]).in-item .select-highlight{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){:host(.in-item:dir(rtl)) .select-highlight{left:unset;right:unset;right:0}}}:host(.select-expanded:not(.legacy-select):not(.has-expanded-icon)) .select-icon{-webkit-transform:rotate(180deg);transform:rotate(180deg)}:host(.select-expanded) .select-wrapper .select-icon,:host(.has-focus.ion-valid) .select-wrapper .select-icon,:host(.ion-touched.ion-invalid) .select-wrapper .select-icon,:host(.ion-focused) .select-wrapper .select-icon{color:var(--highlight-color)}:host-context(.item-label-stacked) .select-icon,:host-context(.item-label-floating:not(.item-fill-outline)) .select-icon,:host-context(.item-label-floating.item-fill-outline){-webkit-transform:translate3d(0, -9px, 0);transform:translate3d(0, -9px, 0)}:host-context(.item-has-focus):host(:not(.has-expanded-icon)) .select-icon{-webkit-transform:rotate(180deg);transform:rotate(180deg)}:host-context(.item-has-focus.item-label-stacked):host(:not(.has-expanded-icon)) .select-icon,:host-context(.item-has-focus.item-label-floating:not(.item-fill-outline)):host(:not(.has-expanded-icon)) .select-icon{-webkit-transform:translate3d(0, -9px, 0) rotate(180deg);transform:translate3d(0, -9px, 0) rotate(180deg)}:host(.select-shape-round){--border-radius:16px}:host(.select-label-placement-stacked) .select-wrapper-inner,:host(.select-label-placement-floating) .select-wrapper-inner{width:calc(100% - 0.8125rem - 4px)}:host(.select-disabled){opacity:0.38}::slotted(ion-button[slot=start].button-has-icon-only),::slotted(ion-button[slot=end].button-has-icon-only){--border-radius:50%;--padding-start:8px;--padding-end:8px;--padding-top:8px;--padding-bottom:8px;aspect-ratio:1;min-height:40px}",q3=ne(class extends ie{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionChange=B(this,"ionChange",7),this.ionCancel=B(this,"ionCancel",7),this.ionDismiss=B(this,"ionDismiss",7),this.ionFocus=B(this,"ionFocus",7),this.ionBlur=B(this,"ionBlur",7),this.ionStyle=B(this,"ionStyle",7),this.inputId=`ion-sel-${K3++}`,this.inheritedAttributes={},this.hasLoggedDeprecationWarning=!1,this.onClick=t=>{const n=t.target,i=n.closest('[slot="start"], [slot="end"]');n===this.el||i===null?(this.setFocus(),this.open(t)):(t.stopPropagation(),t.preventDefault())},this.onFocus=()=>{this.ionFocus.emit()},this.onBlur=()=>{this.ionBlur.emit()},this.isExpanded=!1,this.cancelText="Cancel",this.color=void 0,this.compareWith=void 0,this.disabled=!1,this.fill=void 0,this.interface="alert",this.interfaceOptions={},this.justify="space-between",this.label=void 0,this.labelPlacement="start",this.legacy=void 0,this.multiple=!1,this.name=this.inputId,this.okText="OK",this.placeholder=void 0,this.selectedText=void 0,this.toggleIcon=void 0,this.expandedIcon=void 0,this.shape=void 0,this.value=void 0}styleChanged(){this.emitStyle()}setValue(t){this.value=t,this.ionChange.emit({value:t})}componentWillLoad(){this.inheritedAttributes=No(this.el,["aria-label"])}async connectedCallback(){const{el:t}=this;this.legacyFormController=Nl(t),this.notchController=mA(t,()=>this.notchSpacerEl,()=>this.labelSlot),this.updateOverlayOptions(),this.emitStyle(),this.mutationO=gA(this.el,"ion-select-option",async()=>{this.updateOverlayOptions(),En(this)})}disconnectedCallback(){this.mutationO&&(this.mutationO.disconnect(),this.mutationO=void 0),this.notchController&&(this.notchController.destroy(),this.notchController=void 0)}async open(t){if(this.disabled||this.isExpanded)return;this.isExpanded=!0;const n=this.overlay=await this.createOverlay(t);if(n.onDidDismiss().then(()=>{this.overlay=void 0,this.isExpanded=!1,this.ionDismiss.emit(),this.setFocus()}),await n.present(),this.interface==="popover"){const i=this.childOpts.map(o=>o.value).indexOf(this.value);if(i>-1){const o=n.querySelector(`.select-interface-option:nth-child(${i+1})`);if(o){Iu(o);const r=o.querySelector("ion-radio, ion-checkbox");r&&r.focus()}}else{const o=n.querySelector("ion-radio:not(.radio-disabled), ion-checkbox:not(.checkbox-disabled)");o&&(Iu(o.closest("ion-item")),o.focus())}}return n}createOverlay(t){let n=this.interface;return n==="action-sheet"&&this.multiple&&(console.warn(`Select interface cannot be "${n}" with a multi-value select. Using the "alert" interface instead.`),n="alert"),n==="popover"&&!t&&(console.warn(`Select interface cannot be a "${n}" without passing an event. Using the "alert" interface instead.`),n="alert"),n==="action-sheet"?this.openActionSheet():n==="popover"?this.openPopover(t):this.openAlert()}updateOverlayOptions(){const t=this.overlay;if(!t)return;const n=this.childOpts,i=this.value;switch(this.interface){case"action-sheet":t.buttons=this.createActionSheetButtons(n,i);break;case"popover":const o=t.querySelector("ion-select-popover");o&&(o.options=this.createPopoverOptions(n,i));break;case"alert":const r=this.multiple?"checkbox":"radio";t.inputs=this.createAlertInputs(n,r,i);break}}createActionSheetButtons(t,n){const i=t.map(o=>{const r=ba(o),s=Array.from(o.classList).filter(l=>l!=="hydrated").join(" "),a=`${ld} ${s}`;return{role:ga(n,r,this.compareWith)?"selected":"",text:o.textContent,cssClass:a,handler:()=>{this.setValue(r)}}});return i.push({text:this.cancelText,role:"cancel",handler:()=>{this.ionCancel.emit()}}),i}createAlertInputs(t,n,i){return t.map(r=>{const s=ba(r),a=Array.from(r.classList).filter(c=>c!=="hydrated").join(" "),l=`${ld} ${a}`;return{type:n,cssClass:l,label:r.textContent||"",value:s,checked:ga(i,s,this.compareWith),disabled:r.disabled}})}createPopoverOptions(t,n){return t.map(o=>{const r=ba(o),s=Array.from(o.classList).filter(l=>l!=="hydrated").join(" "),a=`${ld} ${s}`;return{text:o.textContent||"",cssClass:a,value:r,checked:ga(n,r,this.compareWith),disabled:o.disabled,handler:l=>{this.setValue(l),this.multiple||this.close()}}})}async openPopover(t){const{fill:n,labelPlacement:i}=this,o=this.interfaceOptions,r=W(this),s=r!=="md",a=this.multiple,l=this.value;let c=t,d="auto";if(this.legacyFormController.hasLegacyControl()){const h=this.el.closest("ion-item");h&&(h.classList.contains("item-label-floating")||h.classList.contains("item-label-stacked"))&&(c=Object.assign(Object.assign({},t),{detail:{ionShadowTarget:h}}),d="cover")}else i==="floating"||i==="stacked"||r==="md"&&n!==void 0?d="cover":c=Object.assign(Object.assign({},t),{detail:{ionShadowTarget:this.nativeWrapperEl}});const u=Object.assign(Object.assign({mode:r,event:c,alignment:"center",size:d,showBackdrop:s},o),{component:"ion-select-popover",cssClass:["select-popover",o.cssClass],componentProps:{header:o.header,subHeader:o.subHeader,message:o.message,multiple:a,value:l,options:this.createPopoverOptions(this.childOpts,l)}});return tP.create(u)}async openActionSheet(){const t=W(this),n=this.interfaceOptions,i=Object.assign(Object.assign({mode:t},n),{buttons:this.createActionSheetButtons(this.childOpts,this.value),cssClass:["select-action-sheet",n.cssClass]});return eP.create(i)}async openAlert(){let t,n;this.legacyFormController.hasLegacyControl()?(t=this.getLabel(),n=t?t.textContent:null):n=this.labelText;const i=this.interfaceOptions,o=this.multiple?"checkbox":"radio",r=W(this),s=Object.assign(Object.assign({mode:r},i),{header:i.header?i.header:n,inputs:this.createAlertInputs(this.childOpts,o,this.value),buttons:[{text:this.cancelText,role:"cancel",handler:()=>{this.ionCancel.emit()}},{text:this.okText,handler:a=>{this.setValue(a)}}],cssClass:["select-alert",i.cssClass,this.multiple?"multiple-select-alert":"single-select-alert"]});return JT.create(s)}close(){return this.overlay?this.overlay.dismiss():Promise.resolve(!1)}getLabel(){return yf(this.el)}hasValue(){return this.getText()!==""}get childOpts(){return Array.from(this.el.querySelectorAll("ion-select-option"))}get labelText(){const{label:t}=this;if(t!==void 0)return t;const{labelSlot:n}=this;if(n!==null)return n.textContent}getText(){const t=this.selectedText;return t!=null&&t!==""?t:Y3(this.childOpts,this.value,this.compareWith)}setFocus(){this.focusEl&&this.focusEl.focus()}emitStyle(){const{disabled:t}=this,n={"interactive-disabled":t};this.legacyFormController.hasLegacyControl()&&(n.interactive=!0,n.select=!0,n["select-disabled"]=t,n["has-placeholder"]=this.placeholder!==void 0,n["has-value"]=this.hasValue(),n["has-focus"]=this.isExpanded,n.legacy=!!this.legacy),this.ionStyle.emit(n)}renderLabel(){const{label:t}=this;return y("div",{class:{"label-text-wrapper":!0,"label-text-wrapper-hidden":!this.hasLabel},part:"label"},t===void 0?y("slot",{name:"label"}):y("div",{class:"label-text"},t))}componentDidRender(){var t;(t=this.notchController)===null||t===void 0||t.calculateNotchWidth()}get labelSlot(){return this.el.querySelector('[slot="label"]')}get hasLabel(){return this.label!==void 0||this.labelSlot!==null}renderLabelContainer(){return W(this)==="md"&&this.fill==="outline"?[y("div",{class:"select-outline-container"},y("div",{class:"select-outline-start"}),y("div",{class:{"select-outline-notch":!0,"select-outline-notch-hidden":!this.hasLabel}},y("div",{class:"notch-spacer","aria-hidden":"true",ref:i=>this.notchSpacerEl=i},this.label)),y("div",{class:"select-outline-end"})),this.renderLabel()]:this.renderLabel()}renderSelect(){const{disabled:t,el:n,isExpanded:i,expandedIcon:o,labelPlacement:r,justify:s,placeholder:a,fill:l,shape:c,name:d,value:u}=this,h=W(this),f=r==="floating"||r==="stacked",p=!f,m=Ar(n)?"rtl":"ltr",x=De("ion-item",this.el),b=h==="md"&&l!=="outline"&&!x,g=this.hasValue(),v=n.querySelector('[slot="start"], [slot="end"]')!==null;Di(!0,n,d,Vg(u),t);const w=r==="stacked"||r==="floating"&&(g||i||v);return y(ee,{onClick:this.onClick,class:Ne(this.color,{[h]:!0,"in-item":x,"in-item-color":De("ion-item.ion-color",n),"select-disabled":t,"select-expanded":i,"has-expanded-icon":o!==void 0,"has-value":g,"label-floating":w,"has-placeholder":a!==void 0,"ion-focusable":!0,[`select-${m}`]:!0,[`select-fill-${l}`]:l!==void 0,[`select-justify-${s}`]:p,[`select-shape-${c}`]:c!==void 0,[`select-label-placement-${r}`]:!0})},y("label",{class:"select-wrapper",id:"select-label"},this.renderLabelContainer(),y("div",{class:"select-wrapper-inner"},y("slot",{name:"start"}),y("div",{class:"native-wrapper",ref:E=>this.nativeWrapperEl=E,part:"container"},this.renderSelectText(),this.renderListbox()),y("slot",{name:"end"}),!f&&this.renderSelectIcon()),f&&this.renderSelectIcon(),b&&y("div",{class:"select-highlight"})))}renderLegacySelect(){this.hasLoggedDeprecationWarning||(pe(`ion-select now requires providing a label with either the "label" property or the "aria-label" attribute. To migrate, remove any usage of "ion-label" and pass the label text to either the "label" property or the "aria-label" attribute. Example: ... Example with aria-label: ... Developers can use the "legacy" property to continue using the legacy form markup. This property will be removed in an upcoming major release of Ionic where this form control will use the modern form markup.`,this.el),this.legacy&&pe(`ion-select is being used with the "legacy" property enabled which will forcibly enable the legacy form markup. This property will be removed in an upcoming major release of Ionic where this form control will use the modern form markup. Developers can dismiss this warning by removing their usage of the "legacy" property and using the new select syntax.`,this.el),this.hasLoggedDeprecationWarning=!0);const{disabled:t,el:n,inputId:i,isExpanded:o,expandedIcon:r,name:s,placeholder:a,value:l}=this,c=W(this),{labelText:d,labelId:u}=es(n,i);Di(!0,n,s,Vg(l),t);let f=this.getText();f===""&&a!==void 0&&(f=a);const p=d!==void 0?f!==""?`${f}, ${d}`:d:f;return y(ee,{onClick:this.onClick,role:"button","aria-haspopup":"listbox","aria-disabled":t?"true":null,"aria-label":p,class:{[c]:!0,"in-item":De("ion-item",n),"in-item-color":De("ion-item.ion-color",n),"select-disabled":t,"select-expanded":o,"has-expanded-icon":r!==void 0,"legacy-select":!0}},this.renderSelectText(),this.renderSelectIcon(),y("label",{id:u},p),this.renderListbox())}renderSelectText(){const{placeholder:t}=this,n=this.getText();let i=!1,o=n;return o===""&&t!==void 0&&(o=t,i=!0),y("div",{"aria-hidden":"true",class:{"select-text":!0,"select-placeholder":i},part:i?"placeholder":"text"},o)}renderSelectIcon(){const t=W(this),{isExpanded:n,toggleIcon:i,expandedIcon:o}=this;let r;return n&&o!==void 0?r=o:r=i??(t==="ios"?fP:hP),y("ion-icon",{class:"select-icon",part:"icon","aria-hidden":"true",icon:r})}get ariaLabel(){var t,n;const{placeholder:i,el:o,inputId:r,inheritedAttributes:s}=this,a=this.getText(),{labelText:l}=es(o,r),c=(n=(t=this.labelText)!==null&&t!==void 0?t:s["aria-label"])!==null&&n!==void 0?n:l;let d=a;return d===""&&i!==void 0&&(d=i),c!==void 0&&(d=d===""?c:`${c}, ${d}`),d}renderListbox(){const{disabled:t,inputId:n,isExpanded:i}=this;return y("button",{disabled:t,id:n,"aria-label":this.ariaLabel,"aria-haspopup":"dialog","aria-expanded":`${i}`,onFocus:this.onFocus,onBlur:this.onBlur,ref:o=>this.focusEl=o})}render(){const{legacyFormController:t}=this;return t.hasLegacyControl()?this.renderLegacySelect():this.renderSelect()}get el(){return this}static get watchers(){return{disabled:["styleChanged"],isExpanded:["styleChanged"],placeholder:["styleChanged"],value:["styleChanged"]}}static get style(){return{ios:W3,md:X3}}},[33,"ion-select",{cancelText:[1,"cancel-text"],color:[513],compareWith:[1,"compare-with"],disabled:[4],fill:[1],interface:[1],interfaceOptions:[8,"interface-options"],justify:[1],label:[1],labelPlacement:[1,"label-placement"],legacy:[4],multiple:[4],name:[1],okText:[1,"ok-text"],placeholder:[1],selectedText:[1,"selected-text"],toggleIcon:[1,"toggle-icon"],expandedIcon:[1,"expanded-icon"],shape:[1],value:[1032],isExpanded:[32],open:[64]},void 0,{disabled:["styleChanged"],isExpanded:["styleChanged"],placeholder:["styleChanged"],value:["styleChanged"]}]),ba=e=>{const t=e.value;return t===void 0?e.textContent||"":t},Vg=e=>{if(e!=null)return Array.isArray(e)?e.join(","):e.toString()},Y3=(e,t,n)=>t===void 0?"":Array.isArray(t)?t.map(i=>Fg(e,i,n)).filter(i=>i!==null).join(", "):Fg(e,t,n)||"",Fg=(e,t,n)=>{const i=e.find(o=>Nu(t,ba(o),n));return i?i.textContent:null};let K3=0;const ld="select-interface-option";function G3(){if(typeof customElements>"u")return;["ion-select","ion-action-sheet","ion-alert","ion-backdrop","ion-checkbox","ion-icon","ion-item","ion-label","ion-list","ion-list-header","ion-note","ion-popover","ion-radio","ion-radio-group","ion-ripple-effect","ion-select-popover"].forEach(t=>{switch(t){case"ion-select":customElements.get(t)||customElements.define(t,q3);break;case"ion-action-sheet":customElements.get(t)||O3();break;case"ion-alert":customElements.get(t)||V3();break;case"ion-backdrop":customElements.get(t)||Wo();break;case"ion-checkbox":customElements.get(t)||Nx();break;case"ion-icon":customElements.get(t)||vs();break;case"ion-item":customElements.get(t)||Wx();break;case"ion-label":customElements.get(t)||Pf();break;case"ion-list":customElements.get(t)||If();break;case"ion-list-header":customElements.get(t)||Of();break;case"ion-note":customElements.get(t)||Ul();break;case"ion-popover":customElements.get(t)||q5();break;case"ion-radio":customElements.get(t)||sw();break;case"ion-radio-group":customElements.get(t)||aw();break;case"ion-ripple-effect":customElements.get(t)||Fi();break;case"ion-select-popover":customElements.get(t)||U3();break}})}const Q3=G3;/*! * (C) Ionic http://ionicframework.com - MIT License */const Z3=":host{display:none}",J3=ne(class extends ie{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.inputId=`ion-selopt-${eL++}`,this.disabled=!1,this.value=void 0}render(){return y(ee,{role:"option",id:this.inputId,class:W(this)})}get el(){return this}static get style(){return Z3}},[1,"ion-select-option",{disabled:[4],value:[8]}]);let eL=0;function tL(){if(typeof customElements>"u")return;["ion-select-option"].forEach(t=>{switch(t){case"ion-select-option":customElements.get(t)||customElements.define(t,J3);break}})}const nL=tL;/*! * (C) Ionic http://ionicframework.com - MIT License */const iL=":host{--side-width:100%;left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:absolute;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap;contain:strict}::slotted(ion-menu.menu-pane-visible){-ms-flex:0 1 auto;flex:0 1 auto;width:var(--side-width);min-width:var(--side-min-width);max-width:var(--side-max-width)}:host(.split-pane-visible) ::slotted(.split-pane-side),:host(.split-pane-visible) ::slotted(.split-pane-main){left:0;right:0;top:0;bottom:0;position:relative;-webkit-box-shadow:none;box-shadow:none;z-index:0}:host(.split-pane-visible) ::slotted(.split-pane-main){-ms-flex:1;flex:1;overflow:hidden}:host(.split-pane-visible) ::slotted(.split-pane-side:not(ion-menu)),:host(.split-pane-visible) ::slotted(ion-menu.split-pane-side.menu-enabled){display:-ms-flexbox;display:flex;-ms-flex-negative:0;flex-shrink:0}::slotted(.split-pane-side:not(ion-menu)){display:none}:host(.split-pane-visible) ::slotted(.split-pane-side){-ms-flex-order:-1;order:-1}:host(.split-pane-visible) ::slotted(.split-pane-side[side=end]){-ms-flex-order:1;order:1}:host{--border:0.55px solid var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-250, #c8c7cc)));--side-min-width:270px;--side-max-width:28%}:host(.split-pane-visible) ::slotted(.split-pane-side){-webkit-border-start:0;border-inline-start:0;-webkit-border-end:var(--border);border-inline-end:var(--border);border-top:0;border-bottom:0;min-width:var(--side-min-width);max-width:var(--side-max-width)}:host(.split-pane-visible) ::slotted(.split-pane-side[side=end]){-webkit-border-start:var(--border);border-inline-start:var(--border);-webkit-border-end:0;border-inline-end:0;border-top:0;border-bottom:0;min-width:var(--side-min-width);max-width:var(--side-max-width)}",oL=":host{--side-width:100%;left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:absolute;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap;contain:strict}::slotted(ion-menu.menu-pane-visible){-ms-flex:0 1 auto;flex:0 1 auto;width:var(--side-width);min-width:var(--side-min-width);max-width:var(--side-max-width)}:host(.split-pane-visible) ::slotted(.split-pane-side),:host(.split-pane-visible) ::slotted(.split-pane-main){left:0;right:0;top:0;bottom:0;position:relative;-webkit-box-shadow:none;box-shadow:none;z-index:0}:host(.split-pane-visible) ::slotted(.split-pane-main){-ms-flex:1;flex:1;overflow:hidden}:host(.split-pane-visible) ::slotted(.split-pane-side:not(ion-menu)),:host(.split-pane-visible) ::slotted(ion-menu.split-pane-side.menu-enabled){display:-ms-flexbox;display:flex;-ms-flex-negative:0;flex-shrink:0}::slotted(.split-pane-side:not(ion-menu)){display:none}:host(.split-pane-visible) ::slotted(.split-pane-side){-ms-flex-order:-1;order:-1}:host(.split-pane-visible) ::slotted(.split-pane-side[side=end]){-ms-flex-order:1;order:1}:host{--border:1px solid var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-150, rgba(0, 0, 0, 0.13))));--side-min-width:270px;--side-max-width:28%}:host(.split-pane-visible) ::slotted(.split-pane-side){-webkit-border-start:0;border-inline-start:0;-webkit-border-end:var(--border);border-inline-end:var(--border);border-top:0;border-bottom:0;min-width:var(--side-min-width);max-width:var(--side-max-width)}:host(.split-pane-visible) ::slotted(.split-pane-side[side=end]){-webkit-border-start:var(--border);border-inline-start:var(--border);-webkit-border-end:0;border-inline-end:0;border-top:0;border-bottom:0;min-width:var(--side-min-width);max-width:var(--side-max-width)}",Hg="split-pane-main",Uu="split-pane-side",Ng={xs:"(min-width: 0px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)",never:""},rL=ne(class extends ie{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionSplitPaneVisible=B(this,"ionSplitPaneVisible",7),this.visible=!1,this.contentId=void 0,this.disabled=!1,this.when=Ng.lg}visibleChanged(t){const n={visible:t,isPane:this.isPane.bind(this)};this.ionSplitPaneVisible.emit(n)}async connectedCallback(){typeof customElements<"u"&&customElements!=null&&await customElements.whenDefined("ion-split-pane"),this.styleChildren(),this.updateState()}disconnectedCallback(){this.rmL&&(this.rmL(),this.rmL=void 0)}updateState(){if(this.rmL&&(this.rmL(),this.rmL=void 0),this.disabled){this.visible=!1;return}const t=this.when;if(typeof t=="boolean"){this.visible=t;return}const n=Ng[t]||t;if(n.length===0){this.visible=!1;return}if(window.matchMedia){const i=r=>{this.visible=r.matches},o=window.matchMedia(n);o.addListener(i),this.rmL=()=>o.removeListener(i),this.visible=o.matches}}isPane(t){return this.visible?t.parentElement===this.el&&t.classList.contains(Uu):!1}styleChildren(){const t=this.contentId,n=this.el.children,i=this.el.childElementCount;let o=!1;for(let r=0;r{let n,i;t?(n=Hg,i=Uu):(n=Uu,i=Hg);const o=e.classList;o.add(n),o.remove(i)};function aL(){if(typeof customElements>"u")return;["ion-split-pane"].forEach(t=>{switch(t){case"ion-split-pane":customElements.get(t)||customElements.define(t,rL);break}})}const lL=aL;/*! * (C) Ionic http://ionicframework.com - MIT License */const cL=":host{--color:initial;display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;-ms-flex-align:center;align-items:center;-webkit-transform:translateZ(0);transform:translateZ(0);color:var(--color)}:host(.ion-color){color:var(--ion-color-base)}.toolbar-title{display:block;width:100%;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;pointer-events:auto}:host(.title-small) .toolbar-title{white-space:normal}:host{top:0;-webkit-padding-start:90px;padding-inline-start:90px;-webkit-padding-end:90px;padding-inline-end:90px;padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);position:absolute;width:100%;height:100%;-webkit-transform:translateZ(0);transform:translateZ(0);font-size:min(1.0625rem, 20.4px);font-weight:600;text-align:center;-webkit-box-sizing:border-box;box-sizing:border-box;pointer-events:none}@supports (inset-inline-start: 0){:host{inset-inline-start:0}}@supports not (inset-inline-start: 0){:host{left:0}:host-context([dir=rtl]){left:unset;right:unset;right:0}@supports selector(:dir(rtl)){:host(:dir(rtl)){left:unset;right:unset;right:0}}}:host(.title-small){-webkit-padding-start:9px;padding-inline-start:9px;-webkit-padding-end:9px;padding-inline-end:9px;padding-top:6px;padding-bottom:16px;position:relative;font-size:min(0.8125rem, 23.4px);font-weight:normal}:host(.title-large){-webkit-padding-start:12px;padding-inline-start:12px;-webkit-padding-end:12px;padding-inline-end:12px;padding-top:2px;padding-bottom:4px;-webkit-transform-origin:left center;transform-origin:left center;position:static;-ms-flex-align:end;align-items:flex-end;min-width:100%;font-size:min(2.125rem, 61.2px);font-weight:700;text-align:start}:host(.title-large.title-rtl){-webkit-transform-origin:right center;transform-origin:right center}:host(.title-large.ion-cloned-element){--color:var(--ion-text-color, #000);font-family:var(--ion-font-family)}:host(.title-large) .toolbar-title{-webkit-transform-origin:inherit;transform-origin:inherit;width:auto}:host-context([dir=rtl]):host(.title-large) .toolbar-title,:host-context([dir=rtl]).title-large .toolbar-title{-webkit-transform-origin:calc(100% - inherit);transform-origin:calc(100% - inherit)}@supports selector(:dir(rtl)){:host(.title-large:dir(rtl)) .toolbar-title{-webkit-transform-origin:calc(100% - inherit);transform-origin:calc(100% - inherit)}}",dL=":host{--color:initial;display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;-ms-flex-align:center;align-items:center;-webkit-transform:translateZ(0);transform:translateZ(0);color:var(--color)}:host(.ion-color){color:var(--ion-color-base)}.toolbar-title{display:block;width:100%;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;pointer-events:auto}:host(.title-small) .toolbar-title{white-space:normal}:host{-webkit-padding-start:20px;padding-inline-start:20px;-webkit-padding-end:20px;padding-inline-end:20px;padding-top:0;padding-bottom:0;font-size:1.25rem;font-weight:500;letter-spacing:0.0125em}:host(.title-small){width:100%;height:100%;font-size:0.9375rem;font-weight:normal}",uL=ne(class extends ie{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionStyle=B(this,"ionStyle",7),this.color=void 0,this.size=void 0}sizeChanged(){this.emitStyle()}connectedCallback(){this.emitStyle()}emitStyle(){const t=this.getSize();this.ionStyle.emit({[`title-${t}`]:!0})}getSize(){return this.size!==void 0?this.size:"default"}render(){const t=W(this),n=this.getSize();return y(ee,{class:Ne(this.color,{[t]:!0,[`title-${n}`]:!0,"title-rtl":document.dir==="rtl"})},y("div",{class:"toolbar-title"},y("slot",null)))}get el(){return this}static get watchers(){return{size:["sizeChanged"]}}static get style(){return{ios:cL,md:dL}}},[33,"ion-title",{color:[513],size:[1]},void 0,{size:["sizeChanged"]}]);function hL(){if(typeof customElements>"u")return;["ion-title"].forEach(t=>{switch(t){case"ion-title":customElements.get(t)||customElements.define(t,uL);break}})}const fL=hL;/*! * (C) Ionic http://ionicframework.com - MIT License */const pL=":host{--border-width:0;--border-style:solid;--opacity:1;--opacity-scale:1;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:block;position:relative;width:100%;padding-right:var(--ion-safe-area-right);padding-left:var(--ion-safe-area-left);color:var(--color);font-family:var(--ion-font-family, inherit);contain:content;z-index:10;-webkit-box-sizing:border-box;box-sizing:border-box}:host(.ion-color){color:var(--ion-color-contrast)}:host(.ion-color) .toolbar-background{background:var(--ion-color-base)}.toolbar-container{-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);display:-ms-flexbox;display:flex;position:relative;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;width:100%;min-height:var(--min-height);contain:content;overflow:hidden;z-index:10;-webkit-box-sizing:border-box;box-sizing:border-box}.toolbar-background{left:0;right:0;top:0;bottom:0;position:absolute;-webkit-transform:translateZ(0);transform:translateZ(0);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);contain:strict;opacity:calc(var(--opacity) * var(--opacity-scale));z-index:-1;pointer-events:none}::slotted(ion-progress-bar){left:0;right:0;bottom:0;position:absolute}:host{--background:var(--ion-toolbar-background, var(--ion-color-step-50, #f7f7f7));--color:var(--ion-toolbar-color, var(--ion-text-color, #000));--border-color:var(--ion-toolbar-border-color, var(--ion-border-color, var(--ion-color-step-150, rgba(0, 0, 0, 0.2))));--padding-top:3px;--padding-bottom:3px;--padding-start:4px;--padding-end:4px;--min-height:44px}.toolbar-content{-ms-flex:1;flex:1;-ms-flex-order:4;order:4;min-width:0}:host(.toolbar-segment) .toolbar-content{display:-ms-inline-flexbox;display:inline-flex}:host(.toolbar-searchbar) .toolbar-container{padding-top:0;padding-bottom:0}:host(.toolbar-searchbar) ::slotted(*){-ms-flex-item-align:start;align-self:start}:host(.toolbar-searchbar) ::slotted(ion-chip){margin-top:3px}::slotted(ion-buttons){min-height:38px}::slotted([slot=start]){-ms-flex-order:2;order:2}::slotted([slot=secondary]){-ms-flex-order:3;order:3}::slotted([slot=primary]){-ms-flex-order:5;order:5;text-align:end}::slotted([slot=end]){-ms-flex-order:6;order:6;text-align:end}:host(.toolbar-title-large) .toolbar-container{-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:start;align-items:flex-start}:host(.toolbar-title-large) .toolbar-content ion-title{-ms-flex:1;flex:1;-ms-flex-order:8;order:8;min-width:100%}",mL=":host{--border-width:0;--border-style:solid;--opacity:1;--opacity-scale:1;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:block;position:relative;width:100%;padding-right:var(--ion-safe-area-right);padding-left:var(--ion-safe-area-left);color:var(--color);font-family:var(--ion-font-family, inherit);contain:content;z-index:10;-webkit-box-sizing:border-box;box-sizing:border-box}:host(.ion-color){color:var(--ion-color-contrast)}:host(.ion-color) .toolbar-background{background:var(--ion-color-base)}.toolbar-container{-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);display:-ms-flexbox;display:flex;position:relative;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;width:100%;min-height:var(--min-height);contain:content;overflow:hidden;z-index:10;-webkit-box-sizing:border-box;box-sizing:border-box}.toolbar-background{left:0;right:0;top:0;bottom:0;position:absolute;-webkit-transform:translateZ(0);transform:translateZ(0);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);contain:strict;opacity:calc(var(--opacity) * var(--opacity-scale));z-index:-1;pointer-events:none}::slotted(ion-progress-bar){left:0;right:0;bottom:0;position:absolute}:host{--background:var(--ion-toolbar-background, var(--ion-background-color, #fff));--color:var(--ion-toolbar-color, var(--ion-text-color, #424242));--border-color:var(--ion-toolbar-border-color, var(--ion-border-color, var(--ion-color-step-150, #c1c4cd)));--padding-top:0;--padding-bottom:0;--padding-start:0;--padding-end:0;--min-height:56px}.toolbar-content{-ms-flex:1;flex:1;-ms-flex-order:3;order:3;min-width:0;max-width:100%}::slotted(.buttons-first-slot){-webkit-margin-start:4px;margin-inline-start:4px}::slotted(.buttons-last-slot){-webkit-margin-end:4px;margin-inline-end:4px}::slotted([slot=start]){-ms-flex-order:2;order:2}::slotted([slot=secondary]){-ms-flex-order:4;order:4}::slotted([slot=primary]){-ms-flex-order:5;order:5;text-align:end}::slotted([slot=end]){-ms-flex-order:6;order:6;text-align:end}",gL=ne(class extends ie{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.childrenStyles=new Map,this.color=void 0}componentWillLoad(){const t=Array.from(this.el.querySelectorAll("ion-buttons")),n=t.find(r=>r.slot==="start");n&&n.classList.add("buttons-first-slot");const i=t.reverse(),o=i.find(r=>r.slot==="end")||i.find(r=>r.slot==="primary")||i.find(r=>r.slot==="secondary");o&&o.classList.add("buttons-last-slot")}childrenStyle(t){t.stopPropagation();const n=t.target.tagName,i=t.detail,o={},r=this.childrenStyles.get(n)||{};let s=!1;Object.keys(i).forEach(a=>{const l=`toolbar-${a}`,c=i[a];c!==r[l]&&(s=!0),c&&(o[l]=!0)}),s&&(this.childrenStyles.set(n,o),En(this))}render(){const t=W(this),n={};return this.childrenStyles.forEach(i=>{Object.assign(n,i)}),y(ee,{class:Object.assign(Object.assign({},n),Ne(this.color,{[t]:!0,"in-toolbar":De("ion-toolbar",this.el)}))},y("div",{class:"toolbar-background"}),y("div",{class:"toolbar-container"},y("slot",{name:"start"}),y("slot",{name:"secondary"}),y("div",{class:"toolbar-content"},y("slot",null)),y("slot",{name:"primary"}),y("slot",{name:"end"})))}get el(){return this}static get style(){return{ios:pL,md:mL}}},[33,"ion-toolbar",{color:[513]},[[0,"ionStyle","childrenStyle"]]]);function bL(){if(typeof customElements>"u")return;["ion-toolbar"].forEach(t=>{switch(t){case"ion-toolbar":customElements.get(t)||customElements.define(t,gL);break}})}const vL=bL;/*! * (C) Ionic http://ionicframework.com - MIT License */const yL=u5;/*! * (C) Ionic http://ionicframework.com - MIT License */const xL=Ux;/*! * (C) Ionic http://ionicframework.com - MIT License */const ol="ionKeyboardDidShow",cw="ionKeyboardDidHide",wL=150;let rl={},bn={},Xo=!1;const kL=()=>{rl={},bn={},Xo=!1},CL=e=>{if(tw.getEngine())SL(e);else{if(!e.visualViewport)return;bn=_f(e.visualViewport),e.visualViewport.onresize=()=>{hw(e),dw()||uw(e)?Rf(e):$f(e)&&Df(e)}}},SL=e=>{e.addEventListener("keyboardDidShow",t=>Rf(e,t)),e.addEventListener("keyboardDidHide",()=>Df(e))},Rf=(e,t)=>{EL(e,t),Xo=!0},Df=e=>{TL(e),Xo=!1},dw=()=>{const e=(rl.height-bn.height)*bn.scale;return!Xo&&rl.width===bn.width&&e>wL},uw=e=>Xo&&!$f(e),$f=e=>Xo&&bn.height===e.innerHeight,EL=(e,t)=>{const n=t?t.keyboardHeight:e.innerHeight-bn.height,i=new CustomEvent(ol,{detail:{keyboardHeight:n}});e.dispatchEvent(i)},TL=e=>{const t=new CustomEvent(cw);e.dispatchEvent(t)},hw=e=>{rl=Object.assign({},bn),bn=_f(e.visualViewport)},_f=e=>({width:Math.round(e.width),height:Math.round(e.height),offsetTop:e.offsetTop,offsetLeft:e.offsetLeft,pageTop:e.pageTop,pageLeft:e.pageLeft,scale:e.scale}),PL=Object.freeze(Object.defineProperty({__proto__:null,KEYBOARD_DID_CLOSE:cw,KEYBOARD_DID_OPEN:ol,copyVisualViewport:_f,keyboardDidClose:$f,keyboardDidOpen:dw,keyboardDidResize:uw,resetKeyboardAssist:kL,setKeyboardClose:Df,setKeyboardOpen:Rf,startKeyboardAssist:CL,trackViewportChanges:hw},Symbol.toStringTag,{value:"Module"}));/*! * (C) Ionic http://ionicframework.com - MIT License */var zo;(function(e){e.Dark="DARK",e.Light="LIGHT",e.Default="DEFAULT"})(zo||(zo={}));const is={getEngine(){const e=To();if(e!=null&&e.isPluginAvailable("StatusBar"))return e.Plugins.StatusBar},supportsDefaultStatusBarStyle(){const e=To();return!!(e!=null&&e.PluginHeaders)},setStyle(e){const t=this.getEngine();t&&t.setStyle(e)},getStyle:async function(){const e=this.getEngine();if(!e)return zo.Default;const{style:t}=await e.getInfo();return t}},Wu=(e,t)=>{if(t===1)return 0;const n=1/(1-t),i=-(t*n);return e*n+i},fw=()=>{!Ae||Ae.innerWidth>=768||!is.supportsDefaultStatusBarStyle()||is.setStyle({style:zo.Dark})},Xu=(e=zo.Default)=>{!Ae||Ae.innerWidth>=768||!is.supportsDefaultStatusBarStyle()||is.setStyle({style:e})},pw=async(e,t)=>{typeof e.canDismiss!="function"||!await e.canDismiss(void 0,Pr)||(t.isRunning()?t.onFinish(()=>{e.dismiss(void 0,"handler")},{oneTimeCallback:!0}):e.dismiss(void 0,"handler"))},qu=e=>.00255275*2.71828**(-14.9619*e)-1.00255*2.71828**(-.0380968*e)+1,sl={MIN_PRESENTING_SCALE:.93},AL=(e,t,n,i)=>{const r=e.offsetHeight;let s=!1,a=!1,l=null,c=null;const d=.2;let u=!0,h=0;const f=()=>l&&Mi(l)?l.scrollY:!0,g=zl({el:e,gestureName:"modalSwipeToClose",gesturePriority:uP,direction:"y",threshold:10,canStart:v=>{const w=v.event.target;return w===null||!w.closest?!0:(l=Jx(w),l?(Mi(l)?c=ft(l).querySelector(".inner-scroll"):c=l,!!!l.querySelector("ion-refresher")&&c.scrollTop===0):w.closest("ion-footer")===null)},onStart:v=>{const{deltaY:w}=v;u=f(),a=e.canDismiss!==void 0&&e.canDismiss!==!0,w>0&&l&&ju(l),t.progressStart(!0,s?1:0)},onMove:v=>{const{deltaY:w}=v;w>0&&l&&ju(l);const E=v.deltaY/r,S=E>=0&&a,k=S?d:.9999,C=S?qu(E/k):E,A=et(1e-4,C,k);t.progressStep(A),A>=.5&&h<.5?Xu(n):A<.5&&h>=.5&&fw(),h=A},onEnd:v=>{const w=v.velocityY,E=v.deltaY/r,S=E>=0&&a,k=S?d:.9999,C=S?qu(E/k):E,A=et(1e-4,C,k),D=(v.deltaY+w*1e3)/r,R=!S&&D>=.5;let V=R?-.001:.001;R?(t.easing("cubic-bezier(0.32, 0.72, 0, 1)"),V+=$i([0,0],[.32,.72],[0,1],[1,1],A)[0]):(t.easing("cubic-bezier(1, 0, 0.68, 0.28)"),V+=$i([0,0],[1,0],[.68,.28],[1,1],A)[0]);const q=Ug(R?E*r:(1-A)*r,w);s=R,g.enable(!1),l&&ew(l,u),t.onFinish(()=>{R||g.enable(!0)}).progressEnd(R?1:0,V,q),S&&A>k/4?pw(e,t):R&&i()}});return g},Ug=(e,t)=>et(400,e/Math.abs(t*1.1),500),mw=e=>{const{currentBreakpoint:t,backdropBreakpoint:n}=e,i=n===void 0||n{const{currentBreakpoint:t,backdropBreakpoint:n}=e,i=`calc(var(--backdrop-opacity) * ${Wu(t,n)})`,o=[{offset:0,opacity:i},{offset:1,opacity:0}],r=[{offset:0,opacity:i},{offset:n,opacity:0},{offset:1,opacity:0}],s=U("backdropAnimation").keyframes(n!==0?r:o);return{wrapperAnimation:U("wrapperAnimation").keyframes([{offset:0,opacity:1,transform:`translateY(${100-t*100}%)`},{offset:1,opacity:1,transform:"translateY(100%)"}]),backdropAnimation:s}},LL=()=>{const e=U().fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),t=U().fromTo("transform","translateY(100vh)","translateY(0vh)");return{backdropAnimation:e,wrapperAnimation:t}},Wg=(e,t)=>{const{presentingEl:n,currentBreakpoint:i}=t,o=ft(e),{wrapperAnimation:r,backdropAnimation:s}=i!==void 0?mw(t):LL();s.addElement(o.querySelector("ion-backdrop")),r.addElement(o.querySelectorAll(".modal-wrapper, .modal-shadow")).beforeStyles({opacity:1});const a=U("entering-base").addElement(e).easing("cubic-bezier(0.32,0.72,0,1)").duration(500).addAnimation(r);if(n){const l=window.innerWidth<768,c=n.tagName==="ION-MODAL"&&n.presentingElement!==void 0,d=ft(n),u=U().beforeStyles({transform:"translateY(0)","transform-origin":"top center",overflow:"hidden"}),h=document.body;if(l){const f=CSS.supports("width","max(0px, 1px)")?"max(30px, var(--ion-safe-area-top))":"30px",p=c?"-10px":f,m=sl.MIN_PRESENTING_SCALE,x=`translateY(${p}) scale(${m})`;u.afterStyles({transform:x}).beforeAddWrite(()=>h.style.setProperty("background-color","black")).addElement(n).keyframes([{offset:0,filter:"contrast(1)",transform:"translateY(0px) scale(1)",borderRadius:"0px"},{offset:1,filter:"contrast(0.85)",transform:x,borderRadius:"10px 10px 0 0"}]),a.addAnimation(u)}else if(a.addAnimation(s),!c)r.fromTo("opacity","0","1");else{const p=`translateY(-10px) scale(${c?sl.MIN_PRESENTING_SCALE:1})`;u.afterStyles({transform:p}).addElement(d.querySelector(".modal-wrapper")).keyframes([{offset:0,filter:"contrast(1)",transform:"translateY(0) scale(1)"},{offset:1,filter:"contrast(0.85)",transform:p}]);const m=U().afterStyles({transform:p}).addElement(d.querySelector(".modal-shadow")).keyframes([{offset:0,opacity:"1",transform:"translateY(0) scale(1)"},{offset:1,opacity:"0",transform:p}]);a.addAnimation([u,m])}}else a.addAnimation(s);return a},IL=()=>{const e=U().fromTo("opacity","var(--backdrop-opacity)",0),t=U().fromTo("transform","translateY(0vh)","translateY(100vh)");return{backdropAnimation:e,wrapperAnimation:t}},Xg=(e,t,n=500)=>{const{presentingEl:i,currentBreakpoint:o}=t,r=ft(e),{wrapperAnimation:s,backdropAnimation:a}=o!==void 0?gw(t):IL();a.addElement(r.querySelector("ion-backdrop")),s.addElement(r.querySelectorAll(".modal-wrapper, .modal-shadow")).beforeStyles({opacity:1});const l=U("leaving-base").addElement(e).easing("cubic-bezier(0.32,0.72,0,1)").duration(n).addAnimation(s);if(i){const c=window.innerWidth<768,d=i.tagName==="ION-MODAL"&&i.presentingElement!==void 0,u=ft(i),h=U().beforeClearStyles(["transform"]).afterClearStyles(["transform"]).onFinish(p=>{if(p!==1)return;i.style.setProperty("overflow",""),Array.from(f.querySelectorAll("ion-modal:not(.overlay-hidden)")).filter(x=>x.presentingElement!==void 0).length<=1&&f.style.setProperty("background-color","")}),f=document.body;if(c){const p=CSS.supports("width","max(0px, 1px)")?"max(30px, var(--ion-safe-area-top))":"30px",m=d?"-10px":p,x=sl.MIN_PRESENTING_SCALE,b=`translateY(${m}) scale(${x})`;h.addElement(i).keyframes([{offset:0,filter:"contrast(0.85)",transform:b,borderRadius:"10px 10px 0 0"},{offset:1,filter:"contrast(1)",transform:"translateY(0px) scale(1)",borderRadius:"0px"}]),l.addAnimation(h)}else if(l.addAnimation(a),!d)s.fromTo("opacity","1","0");else{const m=`translateY(-10px) scale(${d?sl.MIN_PRESENTING_SCALE:1})`;h.addElement(u.querySelector(".modal-wrapper")).afterStyles({transform:"translate3d(0, 0, 0)"}).keyframes([{offset:0,filter:"contrast(0.85)",transform:m},{offset:1,filter:"contrast(1)",transform:"translateY(0) scale(1)"}]);const x=U().addElement(u.querySelector(".modal-shadow")).afterStyles({transform:"translateY(0) scale(1)"}).keyframes([{offset:0,opacity:"0",transform:m},{offset:1,opacity:"1",transform:"translateY(0) scale(1)"}]);l.addAnimation([h,x])}}else l.addAnimation(a);return l},OL=()=>{const e=U().fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),t=U().keyframes([{offset:0,opacity:.01,transform:"translateY(40px)"},{offset:1,opacity:1,transform:"translateY(0px)"}]);return{backdropAnimation:e,wrapperAnimation:t}},RL=(e,t)=>{const{currentBreakpoint:n}=t,i=ft(e),{wrapperAnimation:o,backdropAnimation:r}=n!==void 0?mw(t):OL();return r.addElement(i.querySelector("ion-backdrop")),o.addElement(i.querySelector(".modal-wrapper")),U().addElement(e).easing("cubic-bezier(0.36,0.66,0.04,1)").duration(280).addAnimation([r,o])},DL=()=>{const e=U().fromTo("opacity","var(--backdrop-opacity)",0),t=U().keyframes([{offset:0,opacity:.99,transform:"translateY(0px)"},{offset:1,opacity:0,transform:"translateY(40px)"}]);return{backdropAnimation:e,wrapperAnimation:t}},$L=(e,t)=>{const{currentBreakpoint:n}=t,i=ft(e),{wrapperAnimation:o,backdropAnimation:r}=n!==void 0?gw(t):DL();return r.addElement(i.querySelector("ion-backdrop")),o.addElement(i.querySelector(".modal-wrapper")),U().easing("cubic-bezier(0.47,0,0.745,0.715)").duration(200).addAnimation([r,o])},_L=(e,t,n,i,o,r,s=[],a,l,c)=>{const d=[{offset:0,opacity:"var(--backdrop-opacity)"},{offset:1,opacity:.01}],u=[{offset:0,opacity:"var(--backdrop-opacity)"},{offset:1-o,opacity:0},{offset:1,opacity:0}],h={WRAPPER_KEYFRAMES:[{offset:0,transform:"translateY(0%)"},{offset:1,transform:"translateY(100%)"}],BACKDROP_KEYFRAMES:o!==0?u:d},f=e.querySelector("ion-content"),p=n.clientHeight;let m=i,x=0,b=!1;const g=.95,v=r.childAnimations.find(G=>G.id==="wrapperAnimation"),w=r.childAnimations.find(G=>G.id==="backdropAnimation"),E=s[s.length-1],S=s[0],k=()=>{e.style.setProperty("pointer-events","auto"),t.style.setProperty("pointer-events","auto"),e.classList.remove("ion-disable-focus-trap")},C=()=>{e.style.setProperty("pointer-events","none"),t.style.setProperty("pointer-events","none"),e.classList.add("ion-disable-focus-trap")};v&&w&&(v.keyframes([...h.WRAPPER_KEYFRAMES]),w.keyframes([...h.BACKDROP_KEYFRAMES]),r.progressStart(!0,1-m),m>o?k():C()),f&&m!==E&&(f.scrollY=!1);const A=G=>{const Z=G.event.target.closest("ion-content");return m=a(),!(m===1&&Z)},D=()=>{b=e.canDismiss!==void 0&&e.canDismiss!==!0&&S===0,f&&(f.scrollY=!1),Ie(()=>{e.focus()}),r.progressStart(!0,1-m)},R=G=>{const Z=1-m,Q=s.length>1?1-s[1]:void 0,I=Z+G.deltaY/p,$=Q!==void 0&&I>=Q&&b,O=$?g:.9999,_=$&&Q!==void 0?Q+qu((I-Q)/(O-Q)):I;x=et(1e-4,_,O),r.progressStep(x)},V=G=>{const Z=G.velocityY,Q=(G.deltaY+Z*350)/p,I=m-Q,$=s.reduce((O,_)=>Math.abs(_-I){const{breakpoint:Z,canDismiss:Q,breakpointOffset:I,animated:$}=G,O=Q&&Z===0,_=O?m:Z,F=_!==0;return m=0,v&&w&&(v.keyframes([{offset:0,transform:`translateY(${I*100}%)`},{offset:1,transform:`translateY(${(1-_)*100}%)`}]),w.keyframes([{offset:0,opacity:`calc(var(--backdrop-opacity) * ${Wu(1-I,o)})`},{offset:1,opacity:`calc(var(--backdrop-opacity) * ${Wu(_,o)})`}]),r.progressStep(0)),Y.enable(!1),O?pw(e,r):F||l(),new Promise(te=>{r.onFinish(()=>{F?v&&w?Ie(()=>{v.keyframes([...h.WRAPPER_KEYFRAMES]),w.keyframes([...h.BACKDROP_KEYFRAMES]),r.progressStart(!0,1-_),m=_,c(m),f&&m===s[s.length-1]&&(f.scrollY=!0),m>o?k():C(),Y.enable(!0),te()}):(Y.enable(!0),te()):te()},{oneTimeCallback:!0}).progressEnd(1,0,$?500:0)})},Y=zl({el:n,gestureName:"modalSheet",gesturePriority:40,direction:"y",threshold:10,canStart:A,onStart:D,onMove:R,onEnd:V});return{gesture:Y,moveSheetToBreakpoint:q}},zL=':host{--width:100%;--min-width:auto;--max-width:auto;--height:100%;--min-height:auto;--max-height:auto;--overflow:hidden;--border-radius:0;--border-width:0;--border-style:none;--border-color:transparent;--background:var(--ion-background-color, #fff);--box-shadow:none;--backdrop-opacity:0;left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:absolute;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;outline:none;color:var(--ion-text-color, #000);contain:strict}.modal-wrapper,ion-backdrop{pointer-events:auto}:host(.overlay-hidden){display:none}.modal-wrapper,.modal-shadow{border-radius:var(--border-radius);width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);overflow:var(--overflow);z-index:10}.modal-shadow{position:absolute;background:transparent}@media only screen and (min-width: 768px) and (min-height: 600px){:host{--width:600px;--height:500px;--ion-safe-area-top:0px;--ion-safe-area-bottom:0px;--ion-safe-area-right:0px;--ion-safe-area-left:0px}}@media only screen and (min-width: 768px) and (min-height: 768px){:host{--width:600px;--height:600px}}.modal-handle{left:0px;right:0px;top:5px;border-radius:8px;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;position:absolute;width:36px;height:5px;-webkit-transform:translateZ(0);transform:translateZ(0);border:0;background:var(--ion-color-step-350, #c0c0be);cursor:pointer;z-index:11}.modal-handle::before{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:4px;padding-inline-end:4px;padding-top:4px;padding-bottom:4px;position:absolute;width:36px;height:5px;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);content:""}:host(.modal-sheet){--height:calc(100% - (var(--ion-safe-area-top) + 10px))}:host(.modal-sheet) .modal-wrapper,:host(.modal-sheet) .modal-shadow{position:absolute;bottom:0}:host{--backdrop-opacity:var(--ion-backdrop-opacity, 0.4)}:host(.modal-card),:host(.modal-sheet){--border-radius:10px}@media only screen and (min-width: 768px) and (min-height: 600px){:host{--border-radius:10px}}.modal-wrapper{-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0)}@media screen and (max-width: 767px){@supports (width: max(0px, 1px)){:host(.modal-card){--height:calc(100% - max(30px, var(--ion-safe-area-top)) - 10px)}}@supports not (width: max(0px, 1px)){:host(.modal-card){--height:calc(100% - 40px)}}:host(.modal-card) .modal-wrapper{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-right-radius:0;border-bottom-left-radius:0}:host-context([dir=rtl]):host(.modal-card) .modal-wrapper,:host-context([dir=rtl]).modal-card .modal-wrapper{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-right-radius:0;border-bottom-left-radius:0}@supports selector(:dir(rtl)){:host(.modal-card:dir(rtl)) .modal-wrapper{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-right-radius:0;border-bottom-left-radius:0}}:host(.modal-card){--backdrop-opacity:0;--width:100%;-ms-flex-align:end;align-items:flex-end}:host(.modal-card) .modal-shadow{display:none}:host(.modal-card) ion-backdrop{pointer-events:none}}@media screen and (min-width: 768px){:host(.modal-card){--width:calc(100% - 120px);--height:calc(100% - (120px + var(--ion-safe-area-top) + var(--ion-safe-area-bottom)));--max-width:720px;--max-height:1000px;--backdrop-opacity:0;--box-shadow:0px 0px 30px 10px rgba(0, 0, 0, 0.1);-webkit-transition:all 0.5s ease-in-out;transition:all 0.5s ease-in-out}:host(.modal-card) .modal-wrapper{-webkit-box-shadow:none;box-shadow:none}:host(.modal-card) .modal-shadow{-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow)}}:host(.modal-sheet) .modal-wrapper{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-right-radius:0;border-bottom-left-radius:0}:host-context([dir=rtl]):host(.modal-sheet) .modal-wrapper,:host-context([dir=rtl]).modal-sheet .modal-wrapper{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-right-radius:0;border-bottom-left-radius:0}@supports selector(:dir(rtl)){:host(.modal-sheet:dir(rtl)) .modal-wrapper{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-right-radius:0;border-bottom-left-radius:0}}',ML=':host{--width:100%;--min-width:auto;--max-width:auto;--height:100%;--min-height:auto;--max-height:auto;--overflow:hidden;--border-radius:0;--border-width:0;--border-style:none;--border-color:transparent;--background:var(--ion-background-color, #fff);--box-shadow:none;--backdrop-opacity:0;left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:absolute;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;outline:none;color:var(--ion-text-color, #000);contain:strict}.modal-wrapper,ion-backdrop{pointer-events:auto}:host(.overlay-hidden){display:none}.modal-wrapper,.modal-shadow{border-radius:var(--border-radius);width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);overflow:var(--overflow);z-index:10}.modal-shadow{position:absolute;background:transparent}@media only screen and (min-width: 768px) and (min-height: 600px){:host{--width:600px;--height:500px;--ion-safe-area-top:0px;--ion-safe-area-bottom:0px;--ion-safe-area-right:0px;--ion-safe-area-left:0px}}@media only screen and (min-width: 768px) and (min-height: 768px){:host{--width:600px;--height:600px}}.modal-handle{left:0px;right:0px;top:5px;border-radius:8px;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;position:absolute;width:36px;height:5px;-webkit-transform:translateZ(0);transform:translateZ(0);border:0;background:var(--ion-color-step-350, #c0c0be);cursor:pointer;z-index:11}.modal-handle::before{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:4px;padding-inline-end:4px;padding-top:4px;padding-bottom:4px;position:absolute;width:36px;height:5px;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);content:""}:host(.modal-sheet){--height:calc(100% - (var(--ion-safe-area-top) + 10px))}:host(.modal-sheet) .modal-wrapper,:host(.modal-sheet) .modal-shadow{position:absolute;bottom:0}:host{--backdrop-opacity:var(--ion-backdrop-opacity, 0.32)}@media only screen and (min-width: 768px) and (min-height: 600px){:host{--border-radius:2px;--box-shadow:0 28px 48px rgba(0, 0, 0, 0.4)}}.modal-wrapper{-webkit-transform:translate3d(0, 40px, 0);transform:translate3d(0, 40px, 0);opacity:0.01}',BL=ne(class extends ie{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.didPresent=B(this,"ionModalDidPresent",7),this.willPresent=B(this,"ionModalWillPresent",7),this.willDismiss=B(this,"ionModalWillDismiss",7),this.didDismiss=B(this,"ionModalDidDismiss",7),this.ionBreakpointDidChange=B(this,"ionBreakpointDidChange",7),this.didPresentShorthand=B(this,"didPresent",7),this.willPresentShorthand=B(this,"willPresent",7),this.willDismissShorthand=B(this,"willDismiss",7),this.didDismissShorthand=B(this,"didDismiss",7),this.ionMount=B(this,"ionMount",7),this.lockController=ys(),this.triggerController=Tf(),this.coreDelegate=Sf(),this.isSheetModal=!1,this.inheritedAttributes={},this.inline=!1,this.gestureAnimationDismissing=!1,this.onHandleClick=()=>{const{sheetTransition:t,handleBehavior:n}=this;n!=="cycle"||t!==void 0||this.moveToNextBreakpoint()},this.onBackdropTap=()=>{const{sheetTransition:t}=this;t===void 0&&this.dismiss(void 0,zi)},this.onLifecycle=t=>{const n=this.usersElement,i=jL[t.type];if(n&&i){const o=new CustomEvent(i,{bubbles:!1,cancelable:!1,detail:t.detail});n.dispatchEvent(o)}},this.presented=!1,this.hasController=!1,this.overlayIndex=void 0,this.delegate=void 0,this.keyboardClose=!0,this.enterAnimation=void 0,this.leaveAnimation=void 0,this.breakpoints=void 0,this.initialBreakpoint=void 0,this.backdropBreakpoint=0,this.handle=void 0,this.handleBehavior="none",this.component=void 0,this.componentProps=void 0,this.cssClass=void 0,this.backdropDismiss=!0,this.showBackdrop=!0,this.animated=!0,this.presentingElement=void 0,this.htmlAttributes=void 0,this.isOpen=!1,this.trigger=void 0,this.keepContentsMounted=!1,this.canDismiss=!0}onIsOpenChange(t,n){t===!0&&n===!1?this.present():t===!1&&n===!0&&this.dismiss()}triggerChanged(){const{trigger:t,el:n,triggerController:i}=this;t&&i.addClickListener(n,t)}breakpointsChanged(t){t!==void 0&&(this.sortedBreakpoints=t.sort((n,i)=>n-i))}connectedCallback(){const{el:t}=this;jl(t),this.triggerChanged()}disconnectedCallback(){this.triggerController.removeClickListener()}componentWillLoad(){const{breakpoints:t,initialBreakpoint:n,el:i}=this,o=this.isSheetModal=t!==void 0&&n!==void 0;this.inheritedAttributes=No(i,["aria-label","role"]),o&&(this.currentBreakpoint=this.initialBreakpoint),t!==void 0&&n!==void 0&&!t.includes(n)&&pe("Your breakpoints array must include the initialBreakpoint value."),Vl(i)}componentDidLoad(){this.isOpen===!0&&Ie(()=>this.present()),this.breakpointsChanged(this.breakpoints),this.triggerChanged()}getDelegate(t=!1){if(this.workingDelegate&&!t)return{delegate:this.workingDelegate,inline:this.inline};const n=this.el.parentNode,i=this.inline=n!==null&&!this.hasController,o=this.workingDelegate=i?this.delegate||this.coreDelegate:this.delegate;return{inline:i,delegate:o}}async checkCanDismiss(t,n){const{canDismiss:i}=this;return typeof i=="function"?i(t,n):i}async present(){const t=await this.lockController.lock();if(this.presented){t();return}const{presentingElement:n,el:i}=this;this.currentBreakpoint=this.initialBreakpoint;const{inline:o,delegate:r}=this.getDelegate(!0);this.ionMount.emit(),this.usersElement=await Bl(r,i,this.component,["ion-page"],this.componentProps,o),Jr(i)?await ts(this.usersElement):this.keepContentsMounted||await kx(),Ft(()=>this.el.classList.add("show-modal"));const s=n!==void 0;s&&W(this)==="ios"&&(this.statusBarStyle=await is.getStyle(),fw()),await Fl(this,"modalEnter",Wg,RL,{presentingEl:n,currentBreakpoint:this.initialBreakpoint,backdropBreakpoint:this.backdropBreakpoint}),typeof window<"u"&&(this.keyboardOpenCallback=()=>{this.gesture&&(this.gesture.enable(!1),Ie(()=>{this.gesture&&this.gesture.enable(!0)}))},window.addEventListener(ol,this.keyboardOpenCallback)),this.isSheetModal?this.initSheetGesture():s&&this.initSwipeToClose(),t()}initSwipeToClose(){var t;if(W(this)!=="ios")return;const{el:n}=this,i=this.leaveAnimation||le.get("modalLeave",Xg),o=this.animation=i(n,{presentingEl:this.presentingElement});if(!Mu(n)){Bu(n);return}const s=(t=this.statusBarStyle)!==null&&t!==void 0?t:zo.Default;this.gesture=AL(n,o,s,()=>{this.gestureAnimationDismissing=!0,Xu(this.statusBarStyle),this.animation.onFinish(async()=>{await this.dismiss(void 0,Pr),this.gestureAnimationDismissing=!1})}),this.gesture.enable(!0)}initSheetGesture(){const{wrapperEl:t,initialBreakpoint:n,backdropBreakpoint:i}=this;if(!t||n===void 0)return;const o=this.enterAnimation||le.get("modalEnter",Wg),r=this.animation=o(this.el,{presentingEl:this.presentingElement,currentBreakpoint:n,backdropBreakpoint:i});r.progressStart(!0,1);const{gesture:s,moveSheetToBreakpoint:a}=_L(this.el,this.backdropEl,t,n,i,r,this.sortedBreakpoints,()=>{var l;return(l=this.currentBreakpoint)!==null&&l!==void 0?l:0},()=>this.sheetOnDismiss(),l=>{this.currentBreakpoint!==l&&(this.currentBreakpoint=l,this.ionBreakpointDidChange.emit({breakpoint:l}))});this.gesture=s,this.moveSheetToBreakpoint=a,this.gesture.enable(!0)}sheetOnDismiss(){this.gestureAnimationDismissing=!0,this.animation.onFinish(async()=>{this.currentBreakpoint=0,this.ionBreakpointDidChange.emit({breakpoint:this.currentBreakpoint}),await this.dismiss(void 0,Pr),this.gestureAnimationDismissing=!1})}async dismiss(t,n){var i;if(this.gestureAnimationDismissing&&n!==Pr)return!1;const o=await this.lockController.lock();if(n!=="handler"&&!await this.checkCanDismiss(t,n))return o(),!1;const{presentingElement:r}=this;r!==void 0&&W(this)==="ios"&&Xu(this.statusBarStyle),typeof window<"u"&&this.keyboardOpenCallback&&(window.removeEventListener(ol,this.keyboardOpenCallback),this.keyboardOpenCallback=void 0);const a=el.get(this)||[],l=await Hl(this,t,n,"modalLeave",Xg,$L,{presentingEl:r,currentBreakpoint:(i=this.currentBreakpoint)!==null&&i!==void 0?i:this.initialBreakpoint,backdropBreakpoint:this.backdropBreakpoint});if(l){const{delegate:c}=this.getDelegate();await Cf(c,this.usersElement),Ft(()=>this.el.classList.remove("show-modal")),this.animation&&this.animation.destroy(),this.gesture&&this.gesture.destroy(),a.forEach(d=>d.destroy())}return this.currentBreakpoint=void 0,this.animation=void 0,o(),l}onDidDismiss(){return ti(this.el,"ionModalDidDismiss")}onWillDismiss(){return ti(this.el,"ionModalWillDismiss")}async setCurrentBreakpoint(t){if(!this.isSheetModal){pe("setCurrentBreakpoint is only supported on sheet modals.");return}if(!this.breakpoints.includes(t)){pe(`Attempted to set invalid breakpoint value ${t}. Please double check that the breakpoint value is part of your defined breakpoints.`);return}const{currentBreakpoint:n,moveSheetToBreakpoint:i,canDismiss:o,breakpoints:r,animated:s}=this;n!==t&&i&&(this.sheetTransition=i({breakpoint:t,breakpointOffset:1-n,canDismiss:o!==void 0&&o!==!0&&r[0]===0,animated:s}),await this.sheetTransition,this.sheetTransition=void 0)}async getCurrentBreakpoint(){return this.currentBreakpoint}async moveToNextBreakpoint(){const{breakpoints:t,currentBreakpoint:n}=this;if(!t||n==null)return!1;const i=t.filter(a=>a!==0),r=(i.indexOf(n)+1)%i.length,s=i[r];return await this.setCurrentBreakpoint(s),!0}render(){const{handle:t,isSheetModal:n,presentingElement:i,htmlAttributes:o,handleBehavior:r,inheritedAttributes:s}=this,a=t!==!1&&n,l=W(this),c=i!==void 0&&l==="ios",d=r==="cycle";return y(ee,Object.assign({"no-router":!0,tabindex:"-1"},o,{style:{zIndex:`${2e4+this.overlayIndex}`},class:Object.assign({[l]:!0,"modal-default":!c&&!n,"modal-card":c,"modal-sheet":n,"overlay-hidden":!0},Mt(this.cssClass)),onIonBackdropTap:this.onBackdropTap,onIonModalDidPresent:this.onLifecycle,onIonModalWillPresent:this.onLifecycle,onIonModalWillDismiss:this.onLifecycle,onIonModalDidDismiss:this.onLifecycle}),y("ion-backdrop",{ref:u=>this.backdropEl=u,visible:this.showBackdrop,tappable:this.backdropDismiss,part:"backdrop"}),l==="ios"&&y("div",{class:"modal-shadow"}),y("div",Object.assign({role:"dialog"},s,{"aria-modal":"true",class:"modal-wrapper ion-overlay-wrapper",part:"content",ref:u=>this.wrapperEl=u}),a&&y("button",{class:"modal-handle",tabIndex:d?0:-1,"aria-label":"Activate to adjust the size of the dialog overlaying the screen",onClick:d?this.onHandleClick:void 0,part:"handle"}),y("slot",null)))}get el(){return this}static get watchers(){return{isOpen:["onIsOpenChange"],trigger:["triggerChanged"]}}static get style(){return{ios:zL,md:ML}}},[33,"ion-modal",{hasController:[4,"has-controller"],overlayIndex:[2,"overlay-index"],delegate:[16],keyboardClose:[4,"keyboard-close"],enterAnimation:[16],leaveAnimation:[16],breakpoints:[16],initialBreakpoint:[2,"initial-breakpoint"],backdropBreakpoint:[2,"backdrop-breakpoint"],handle:[4],handleBehavior:[1,"handle-behavior"],component:[1],componentProps:[16],cssClass:[1,"css-class"],backdropDismiss:[4,"backdrop-dismiss"],showBackdrop:[4,"show-backdrop"],animated:[4],presentingElement:[16],htmlAttributes:[16],isOpen:[4,"is-open"],trigger:[1],keepContentsMounted:[4,"keep-contents-mounted"],canDismiss:[4,"can-dismiss"],presented:[32],present:[64],dismiss:[64],onDidDismiss:[64],onWillDismiss:[64],setCurrentBreakpoint:[64],getCurrentBreakpoint:[64]},void 0,{isOpen:["onIsOpenChange"],trigger:["triggerChanged"]}]),jL={ionModalDidPresent:"ionViewDidEnter",ionModalWillPresent:"ionViewWillEnter",ionModalWillDismiss:"ionViewWillLeave",ionModalDidDismiss:"ionViewDidLeave"};function VL(){if(typeof customElements>"u")return;["ion-modal","ion-backdrop"].forEach(t=>{switch(t){case"ion-modal":customElements.get(t)||customElements.define(t,BL);break;case"ion-backdrop":customElements.get(t)||Wo();break}})}const FL=VL,HL="html.plt-mobile ion-app{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}html.plt-mobile ion-app [contenteditable]{-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}ion-app.force-statusbar-padding{--ion-safe-area-top:20px}",NL=ne(class extends ie{constructor(){super(),this.__registerHost()}componentDidLoad(){WL(async()=>{const t=pn(window,"hybrid");if(le.getBoolean("_testing")||$t(()=>import("./index9-1qdZBY9m.js"),__vite__mapDeps([])).then(i=>i.startTapClick(le)),le.getBoolean("statusTap",t)&&$t(()=>import("./status-tap-4bOUhZsk.js"),__vite__mapDeps([])).then(i=>i.startStatusTap()),le.getBoolean("inputShims",UL())){const i=pn(window,"ios")?"ios":"android";$t(()=>import("./input-shims-lfS_sNNA.js"),__vite__mapDeps([])).then(o=>o.startInputShims(le,i))}const n=await $t(()=>Promise.resolve().then(()=>WT),void 0);le.getBoolean("hardwareBackButton",t)?n.startHardwareBackButton():n.blockHardwareBackButton(),typeof window<"u"&&$t(()=>Promise.resolve().then(()=>PL),void 0).then(i=>i.startKeyboardAssist(window)),$t(()=>import("./focus-visible-Pz59kC95.js"),__vite__mapDeps([])).then(i=>this.focusVisible=i.startFocusVisible())})}async setFocus(t){this.focusVisible&&this.focusVisible.setFocus(t)}render(){const t=W(this);return y(ee,{class:{[t]:!0,"ion-page":!0,"force-statusbar-padding":le.getBoolean("_forceStatusbarPadding")}})}get el(){return this}static get style(){return HL}},[0,"ion-app",{setFocus:[64]}]),UL=()=>!!(pn(window,"ios")&&pn(window,"mobile")||pn(window,"android")&&pn(window,"mobileweb")),WL=e=>{"requestIdleCallback"in window?window.requestIdleCallback(e):setTimeout(e,32)};function XL(){if(typeof customElements>"u")return;["ion-app"].forEach(t=>{switch(t){case"ion-app":customElements.get(t)||customElements.define(t,NL);break}})}const qL=XL,YL=":host{left:0;right:0;top:0;bottom:0;position:absolute;contain:layout size style;z-index:0}",KL=ne(class extends ie{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionNavWillLoad=B(this,"ionNavWillLoad",7),this.ionNavWillChange=B(this,"ionNavWillChange",3),this.ionNavDidChange=B(this,"ionNavDidChange",3),this.lockController=ys(),this.gestureOrAnimationInProgress=!1,this.mode=W(this),this.delegate=void 0,this.animated=!0,this.animation=void 0,this.swipeHandler=void 0}swipeHandlerChanged(){this.gesture&&this.gesture.enable(this.swipeHandler!==void 0)}async connectedCallback(){const t=()=>{this.gestureOrAnimationInProgress=!0,this.swipeHandler&&this.swipeHandler.onStart()};this.gesture=(await $t(()=>import("./swipe-back-k07CChuo.js"),__vite__mapDeps([]))).createSwipeBackGesture(this.el,()=>!this.gestureOrAnimationInProgress&&!!this.swipeHandler&&this.swipeHandler.canStart(),()=>t(),n=>{var i;return(i=this.ani)===null||i===void 0?void 0:i.progressStep(n)},(n,i,o)=>{if(this.ani){this.ani.onFinish(()=>{this.gestureOrAnimationInProgress=!1,this.swipeHandler&&this.swipeHandler.onEnd(n)},{oneTimeCallback:!0});let r=n?-.001:.001;n?r+=$i([0,0],[.32,.72],[0,1],[1,1],i)[0]:(this.ani.easing("cubic-bezier(1, 0, 0.68, 0.28)"),r+=$i([0,0],[1,0],[.68,.28],[1,1],i)[0]),this.ani.progressEnd(n?1:0,r,o)}else this.gestureOrAnimationInProgress=!1}),this.swipeHandlerChanged()}componentWillLoad(){this.ionNavWillLoad.emit()}disconnectedCallback(){this.gesture&&(this.gesture.destroy(),this.gesture=void 0)}async commit(t,n,i){const o=await this.lockController.lock();let r=!1;try{r=await this.transition(t,n,i)}catch(s){console.error(s)}return o(),r}async setRouteId(t,n,i,o){return{changed:await this.setRoot(t,n,{duration:i==="root"?0:void 0,direction:i==="back"?"back":"forward",animationBuilder:o}),element:this.activeEl}}async getRouteId(){const t=this.activeEl;return t?{id:t.tagName,element:t,params:this.activeParams}:void 0}async setRoot(t,n,i){if(this.activeComponent===t&&mx(n,this.activeParams))return!1;const o=this.activeEl,r=await Bl(this.delegate,this.el,t,["ion-page","ion-page-invisible"],n);return this.activeComponent=t,this.activeEl=r,this.activeParams=n,await this.commit(r,o,i),await Cf(this.delegate,o),!0}async transition(t,n,i={}){if(n===t)return!1;this.ionNavWillChange.emit();const{el:o,mode:r}=this,s=this.animated&&le.getBoolean("animated",!0),a=i.animationBuilder||this.animation||le.get("navAnimation");return await vx(Object.assign(Object.assign({mode:r,animated:s,enteringEl:t,leavingEl:n,baseEl:o,deepWait:Jr(o),progressCallback:i.progressAnimation?l=>{l!==void 0&&!this.gestureOrAnimationInProgress?(this.gestureOrAnimationInProgress=!0,l.onFinish(()=>{this.gestureOrAnimationInProgress=!1,this.swipeHandler&&this.swipeHandler.onEnd(!1)},{oneTimeCallback:!0}),l.progressEnd(0,0,0)):this.ani=l}:void 0},i),{animationBuilder:a})),this.ionNavDidChange.emit(),!0}render(){return y("slot",null)}get el(){return this}static get watchers(){return{swipeHandler:["swipeHandlerChanged"]}}static get style(){return YL}},[1,"ion-router-outlet",{mode:[1025],delegate:[16],animated:[4],animation:[16],swipeHandler:[16],commit:[64],setRouteId:[64],getRouteId:[64]},void 0,{swipeHandler:["swipeHandlerChanged"]}]);function GL(){if(typeof customElements>"u")return;["ion-router-outlet"].forEach(t=>{switch(t){case"ion-router-outlet":customElements.get(t)||customElements.define(t,KL);break}})}const QL=GL;/*! * (C) Ionic http://ionicframework.com - MIT License */const ZL=":host{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:auto;padding-right:var(--ion-safe-area-right);padding-bottom:var(--ion-safe-area-bottom, 0);padding-left:var(--ion-safe-area-left);border-top:var(--border);background:var(--background);color:var(--color);text-align:center;contain:strict;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:10;-webkit-box-sizing:content-box !important;box-sizing:content-box !important}:host(.ion-color) ::slotted(ion-tab-button){--background-focused:var(--ion-color-shade);--color-selected:var(--ion-color-contrast)}:host(.ion-color) ::slotted(.tab-selected){color:var(--ion-color-contrast)}:host(.ion-color),:host(.ion-color) ::slotted(ion-tab-button){color:rgba(var(--ion-color-contrast-rgb), 0.7)}:host(.ion-color),:host(.ion-color) ::slotted(ion-tab-button){background:var(--ion-color-base)}:host(.ion-color) ::slotted(ion-tab-button.ion-focused),:host(.tab-bar-translucent) ::slotted(ion-tab-button.ion-focused){background:var(--background-focused)}:host(.tab-bar-translucent) ::slotted(ion-tab-button){background:transparent}:host([slot=top]){padding-top:var(--ion-safe-area-top, 0);padding-bottom:0;border-top:0;border-bottom:var(--border)}:host(.tab-bar-hidden){display:none !important}:host{--background:var(--ion-tab-bar-background, var(--ion-color-step-50, #f7f7f7));--background-focused:var(--ion-tab-bar-background-focused, #e0e0e0);--border:0.55px solid var(--ion-tab-bar-border-color, var(--ion-border-color, var(--ion-color-step-150, rgba(0, 0, 0, 0.2))));--color:var(--ion-tab-bar-color, var(--ion-color-step-600, #666666));--color-selected:var(--ion-tab-bar-color-selected, var(--ion-color-primary, #3880ff));height:50px}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){:host(.tab-bar-translucent){--background:rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8);-webkit-backdrop-filter:saturate(210%) blur(20px);backdrop-filter:saturate(210%) blur(20px)}:host(.ion-color.tab-bar-translucent){background:rgba(var(--ion-color-base-rgb), 0.8)}:host(.tab-bar-translucent) ::slotted(ion-tab-button.ion-focused){background:rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.6)}}",JL=":host{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:auto;padding-right:var(--ion-safe-area-right);padding-bottom:var(--ion-safe-area-bottom, 0);padding-left:var(--ion-safe-area-left);border-top:var(--border);background:var(--background);color:var(--color);text-align:center;contain:strict;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:10;-webkit-box-sizing:content-box !important;box-sizing:content-box !important}:host(.ion-color) ::slotted(ion-tab-button){--background-focused:var(--ion-color-shade);--color-selected:var(--ion-color-contrast)}:host(.ion-color) ::slotted(.tab-selected){color:var(--ion-color-contrast)}:host(.ion-color),:host(.ion-color) ::slotted(ion-tab-button){color:rgba(var(--ion-color-contrast-rgb), 0.7)}:host(.ion-color),:host(.ion-color) ::slotted(ion-tab-button){background:var(--ion-color-base)}:host(.ion-color) ::slotted(ion-tab-button.ion-focused),:host(.tab-bar-translucent) ::slotted(ion-tab-button.ion-focused){background:var(--background-focused)}:host(.tab-bar-translucent) ::slotted(ion-tab-button){background:transparent}:host([slot=top]){padding-top:var(--ion-safe-area-top, 0);padding-bottom:0;border-top:0;border-bottom:var(--border)}:host(.tab-bar-hidden){display:none !important}:host{--background:var(--ion-tab-bar-background, var(--ion-background-color, #fff));--background-focused:var(--ion-tab-bar-background-focused, #e0e0e0);--border:1px solid var(--ion-tab-bar-border-color, var(--ion-border-color, var(--ion-color-step-150, rgba(0, 0, 0, 0.07))));--color:var(--ion-tab-bar-color, var(--ion-color-step-650, #595959));--color-selected:var(--ion-tab-bar-color-selected, var(--ion-color-primary, #3880ff));height:56px}",eI=ne(class extends ie{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionTabBarChanged=B(this,"ionTabBarChanged",7),this.ionTabBarLoaded=B(this,"ionTabBarLoaded",7),this.keyboardCtrl=null,this.keyboardVisible=!1,this.color=void 0,this.selectedTab=void 0,this.translucent=!1}selectedTabChanged(){this.selectedTab!==void 0&&this.ionTabBarChanged.emit({tab:this.selectedTab})}componentWillLoad(){this.selectedTabChanged()}async connectedCallback(){this.keyboardCtrl=await K5(async(t,n)=>{t===!1&&n!==void 0&&await n,this.keyboardVisible=t})}disconnectedCallback(){this.keyboardCtrl&&this.keyboardCtrl.destroy()}componentDidLoad(){this.ionTabBarLoaded.emit()}render(){const{color:t,translucent:n,keyboardVisible:i}=this,o=W(this),r=i&&this.el.getAttribute("slot")!=="top";return y(ee,{role:"tablist","aria-hidden":r?"true":null,class:Ne(t,{[o]:!0,"tab-bar-translucent":n,"tab-bar-hidden":r})},y("slot",null))}get el(){return this}static get watchers(){return{selectedTab:["selectedTabChanged"]}}static get style(){return{ios:ZL,md:JL}}},[33,"ion-tab-bar",{color:[513],selectedTab:[1,"selected-tab"],translucent:[4],keyboardVisible:[32]},void 0,{selectedTab:["selectedTabChanged"]}]);function tI(){if(typeof customElements>"u")return;["ion-tab-bar"].forEach(t=>{switch(t){case"ion-tab-bar":customElements.get(t)||customElements.define(t,eI);break}})}const nI=tI;/*! * (C) Ionic http://ionicframework.com - MIT License */const iI=':host{--ripple-color:var(--color-selected);--background-focused-opacity:1;-ms-flex:1;flex:1;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;height:100%;outline:none;background:var(--background);color:var(--color)}.button-native{border-radius:inherit;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;display:-ms-flexbox;display:flex;position:relative;-ms-flex-direction:inherit;flex-direction:inherit;-ms-flex-align:inherit;align-items:inherit;-ms-flex-pack:inherit;justify-content:inherit;width:100%;height:100%;border:0;outline:none;background:transparent;text-decoration:none;cursor:pointer;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-user-drag:none}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}.button-inner{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:inherit;flex-flow:inherit;-ms-flex-align:inherit;align-items:inherit;-ms-flex-pack:inherit;justify-content:inherit;width:100%;height:100%;z-index:1}:host(.ion-focused) .button-native{color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}@media (any-hover: hover){a:hover{color:var(--color-selected)}}:host(.tab-selected){color:var(--color-selected)}:host(.tab-hidden){display:none !important}:host(.tab-disabled){pointer-events:none;opacity:0.4}::slotted(ion-label),::slotted(ion-icon){display:block;-ms-flex-item-align:center;align-self:center;max-width:100%;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box}::slotted(ion-label){-ms-flex-order:0;order:0}::slotted(ion-icon){-ms-flex-order:-1;order:-1;height:1em}:host(.tab-has-label-only) ::slotted(ion-label){white-space:normal}::slotted(ion-badge){-webkit-box-sizing:border-box;box-sizing:border-box;position:absolute;z-index:1}:host(.tab-layout-icon-start){-ms-flex-direction:row;flex-direction:row}:host(.tab-layout-icon-end){-ms-flex-direction:row-reverse;flex-direction:row-reverse}:host(.tab-layout-icon-bottom){-ms-flex-direction:column-reverse;flex-direction:column-reverse}:host(.tab-layout-icon-hide) ::slotted(ion-icon){display:none}:host(.tab-layout-label-hide) ::slotted(ion-label){display:none}ion-ripple-effect{color:var(--ripple-color)}:host{--padding-top:0;--padding-end:2px;--padding-bottom:0;--padding-start:2px;max-width:240px;font-size:10px}::slotted(ion-badge){-webkit-padding-start:6px;padding-inline-start:6px;-webkit-padding-end:6px;padding-inline-end:6px;padding-top:1px;padding-bottom:1px;top:4px;height:auto;font-size:12px;line-height:16px}@supports (inset-inline-start: 0){::slotted(ion-badge){inset-inline-start:calc(50% + 6px)}}@supports not (inset-inline-start: 0){::slotted(ion-badge){left:calc(50% + 6px)}:host-context([dir=rtl]) ::slotted(ion-badge){left:unset;right:unset;right:calc(50% + 6px)}[dir=rtl] ::slotted(ion-badge){left:unset;right:unset;right:calc(50% + 6px)}@supports selector(:dir(rtl)){::slotted(ion-badge):dir(rtl){left:unset;right:unset;right:calc(50% + 6px)}}}::slotted(ion-icon){margin-top:2px;margin-bottom:2px;font-size:30px}::slotted(ion-icon::before){vertical-align:top}::slotted(ion-label){margin-top:0;margin-bottom:1px;min-height:11px;font-weight:500}:host(.tab-has-label-only) ::slotted(ion-label){margin-left:0;margin-right:0;margin-top:2px;margin-bottom:2px;font-size:12px;font-size:14px;line-height:1.1}:host(.tab-layout-icon-end) ::slotted(ion-label),:host(.tab-layout-icon-start) ::slotted(ion-label),:host(.tab-layout-icon-hide) ::slotted(ion-label){margin-top:2px;margin-bottom:2px;font-size:14px;line-height:1.1}:host(.tab-layout-icon-end) ::slotted(ion-icon),:host(.tab-layout-icon-start) ::slotted(ion-icon){min-width:24px;height:26px;margin-top:2px;margin-bottom:1px;font-size:24px}@supports (inset-inline-start: 0){:host(.tab-layout-icon-bottom) ::slotted(ion-badge){inset-inline-start:calc(50% + 12px)}}@supports not (inset-inline-start: 0){:host(.tab-layout-icon-bottom) ::slotted(ion-badge){left:calc(50% + 12px)}:host-context([dir=rtl]):host(.tab-layout-icon-bottom) ::slotted(ion-badge),:host-context([dir=rtl]).tab-layout-icon-bottom ::slotted(ion-badge){left:unset;right:unset;right:calc(50% + 12px)}@supports selector(:dir(rtl)){:host(.tab-layout-icon-bottom:dir(rtl)) ::slotted(ion-badge){left:unset;right:unset;right:calc(50% + 12px)}}}:host(.tab-layout-icon-bottom) ::slotted(ion-icon){margin-top:0;margin-bottom:1px}:host(.tab-layout-icon-bottom) ::slotted(ion-label){margin-top:4px}:host(.tab-layout-icon-start) ::slotted(ion-badge),:host(.tab-layout-icon-end) ::slotted(ion-badge){top:10px}@supports (inset-inline-start: 0){:host(.tab-layout-icon-start) ::slotted(ion-badge),:host(.tab-layout-icon-end) ::slotted(ion-badge){inset-inline-start:calc(50% + 35px)}}@supports not (inset-inline-start: 0){:host(.tab-layout-icon-start) ::slotted(ion-badge),:host(.tab-layout-icon-end) ::slotted(ion-badge){left:calc(50% + 35px)}:host-context([dir=rtl]):host(.tab-layout-icon-start) ::slotted(ion-badge),:host-context([dir=rtl]).tab-layout-icon-start ::slotted(ion-badge),:host-context([dir=rtl]):host(.tab-layout-icon-end) ::slotted(ion-badge),:host-context([dir=rtl]).tab-layout-icon-end ::slotted(ion-badge){left:unset;right:unset;right:calc(50% + 35px)}@supports selector(:dir(rtl)){:host(.tab-layout-icon-start:dir(rtl)) ::slotted(ion-badge),:host(.tab-layout-icon-end:dir(rtl)) ::slotted(ion-badge){left:unset;right:unset;right:calc(50% + 35px)}}}:host(.tab-layout-icon-hide) ::slotted(ion-badge),:host(.tab-has-label-only) ::slotted(ion-badge){top:10px}@supports (inset-inline-start: 0){:host(.tab-layout-icon-hide) ::slotted(ion-badge),:host(.tab-has-label-only) ::slotted(ion-badge){inset-inline-start:calc(50% + 30px)}}@supports not (inset-inline-start: 0){:host(.tab-layout-icon-hide) ::slotted(ion-badge),:host(.tab-has-label-only) ::slotted(ion-badge){left:calc(50% + 30px)}:host-context([dir=rtl]):host(.tab-layout-icon-hide) ::slotted(ion-badge),:host-context([dir=rtl]).tab-layout-icon-hide ::slotted(ion-badge),:host-context([dir=rtl]):host(.tab-has-label-only) ::slotted(ion-badge),:host-context([dir=rtl]).tab-has-label-only ::slotted(ion-badge){left:unset;right:unset;right:calc(50% + 30px)}@supports selector(:dir(rtl)){:host(.tab-layout-icon-hide:dir(rtl)) ::slotted(ion-badge),:host(.tab-has-label-only:dir(rtl)) ::slotted(ion-badge){left:unset;right:unset;right:calc(50% + 30px)}}}:host(.tab-layout-label-hide) ::slotted(ion-badge),:host(.tab-has-icon-only) ::slotted(ion-badge){top:10px}:host(.tab-layout-label-hide) ::slotted(ion-icon){margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}',oI=':host{--ripple-color:var(--color-selected);--background-focused-opacity:1;-ms-flex:1;flex:1;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;height:100%;outline:none;background:var(--background);color:var(--color)}.button-native{border-radius:inherit;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;display:-ms-flexbox;display:flex;position:relative;-ms-flex-direction:inherit;flex-direction:inherit;-ms-flex-align:inherit;align-items:inherit;-ms-flex-pack:inherit;justify-content:inherit;width:100%;height:100%;border:0;outline:none;background:transparent;text-decoration:none;cursor:pointer;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-user-drag:none}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}.button-inner{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:inherit;flex-flow:inherit;-ms-flex-align:inherit;align-items:inherit;-ms-flex-pack:inherit;justify-content:inherit;width:100%;height:100%;z-index:1}:host(.ion-focused) .button-native{color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}@media (any-hover: hover){a:hover{color:var(--color-selected)}}:host(.tab-selected){color:var(--color-selected)}:host(.tab-hidden){display:none !important}:host(.tab-disabled){pointer-events:none;opacity:0.4}::slotted(ion-label),::slotted(ion-icon){display:block;-ms-flex-item-align:center;align-self:center;max-width:100%;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box}::slotted(ion-label){-ms-flex-order:0;order:0}::slotted(ion-icon){-ms-flex-order:-1;order:-1;height:1em}:host(.tab-has-label-only) ::slotted(ion-label){white-space:normal}::slotted(ion-badge){-webkit-box-sizing:border-box;box-sizing:border-box;position:absolute;z-index:1}:host(.tab-layout-icon-start){-ms-flex-direction:row;flex-direction:row}:host(.tab-layout-icon-end){-ms-flex-direction:row-reverse;flex-direction:row-reverse}:host(.tab-layout-icon-bottom){-ms-flex-direction:column-reverse;flex-direction:column-reverse}:host(.tab-layout-icon-hide) ::slotted(ion-icon){display:none}:host(.tab-layout-label-hide) ::slotted(ion-label){display:none}ion-ripple-effect{color:var(--ripple-color)}:host{--padding-top:0;--padding-end:12px;--padding-bottom:0;--padding-start:12px;max-width:168px;font-size:12px;font-weight:normal;letter-spacing:0.03em}::slotted(ion-label){margin-left:0;margin-right:0;margin-top:2px;margin-bottom:2px;text-transform:none}::slotted(ion-icon){margin-left:0;margin-right:0;margin-top:16px;margin-bottom:16px;-webkit-transform-origin:center center;transform-origin:center center;font-size:22px}:host-context([dir=rtl]) ::slotted(ion-icon){-webkit-transform-origin:calc(100% - center) center;transform-origin:calc(100% - center) center}[dir=rtl] ::slotted(ion-icon){-webkit-transform-origin:calc(100% - center) center;transform-origin:calc(100% - center) center}@supports selector(:dir(rtl)){::slotted(ion-icon):dir(rtl){-webkit-transform-origin:calc(100% - center) center;transform-origin:calc(100% - center) center}}::slotted(ion-badge){border-radius:8px;-webkit-padding-start:2px;padding-inline-start:2px;-webkit-padding-end:2px;padding-inline-end:2px;padding-top:3px;padding-bottom:2px;top:8px;min-width:12px;font-size:8px;font-weight:normal}@supports (inset-inline-start: 0){::slotted(ion-badge){inset-inline-start:calc(50% + 6px)}}@supports not (inset-inline-start: 0){::slotted(ion-badge){left:calc(50% + 6px)}:host-context([dir=rtl]) ::slotted(ion-badge){left:unset;right:unset;right:calc(50% + 6px)}[dir=rtl] ::slotted(ion-badge){left:unset;right:unset;right:calc(50% + 6px)}@supports selector(:dir(rtl)){::slotted(ion-badge):dir(rtl){left:unset;right:unset;right:calc(50% + 6px)}}}::slotted(ion-badge:empty){display:block;min-width:8px;height:8px}:host(.tab-layout-icon-top) ::slotted(ion-icon){margin-top:6px;margin-bottom:2px}:host(.tab-layout-icon-top) ::slotted(ion-label){margin-top:0;margin-bottom:6px}:host(.tab-layout-icon-bottom) ::slotted(ion-badge){top:8px}@supports (inset-inline-start: 0){:host(.tab-layout-icon-bottom) ::slotted(ion-badge){inset-inline-start:70%}}@supports not (inset-inline-start: 0){:host(.tab-layout-icon-bottom) ::slotted(ion-badge){left:70%}:host-context([dir=rtl]):host(.tab-layout-icon-bottom) ::slotted(ion-badge),:host-context([dir=rtl]).tab-layout-icon-bottom ::slotted(ion-badge){left:unset;right:unset;right:70%}@supports selector(:dir(rtl)){:host(.tab-layout-icon-bottom:dir(rtl)) ::slotted(ion-badge){left:unset;right:unset;right:70%}}}:host(.tab-layout-icon-bottom) ::slotted(ion-icon){margin-top:0;margin-bottom:6px}:host(.tab-layout-icon-bottom) ::slotted(ion-label){margin-top:6px;margin-bottom:0}:host(.tab-layout-icon-start) ::slotted(ion-badge),:host(.tab-layout-icon-end) ::slotted(ion-badge){top:16px}@supports (inset-inline-start: 0){:host(.tab-layout-icon-start) ::slotted(ion-badge),:host(.tab-layout-icon-end) ::slotted(ion-badge){inset-inline-start:80%}}@supports not (inset-inline-start: 0){:host(.tab-layout-icon-start) ::slotted(ion-badge),:host(.tab-layout-icon-end) ::slotted(ion-badge){left:80%}:host-context([dir=rtl]):host(.tab-layout-icon-start) ::slotted(ion-badge),:host-context([dir=rtl]).tab-layout-icon-start ::slotted(ion-badge),:host-context([dir=rtl]):host(.tab-layout-icon-end) ::slotted(ion-badge),:host-context([dir=rtl]).tab-layout-icon-end ::slotted(ion-badge){left:unset;right:unset;right:80%}@supports selector(:dir(rtl)){:host(.tab-layout-icon-start:dir(rtl)) ::slotted(ion-badge),:host(.tab-layout-icon-end:dir(rtl)) ::slotted(ion-badge){left:unset;right:unset;right:80%}}}:host(.tab-layout-icon-start) ::slotted(ion-icon){-webkit-margin-end:6px;margin-inline-end:6px}:host(.tab-layout-icon-end) ::slotted(ion-icon){-webkit-margin-start:6px;margin-inline-start:6px}:host(.tab-layout-icon-hide) ::slotted(ion-badge),:host(.tab-has-label-only) ::slotted(ion-badge){top:16px}@supports (inset-inline-start: 0){:host(.tab-layout-icon-hide) ::slotted(ion-badge),:host(.tab-has-label-only) ::slotted(ion-badge){inset-inline-start:70%}}@supports not (inset-inline-start: 0){:host(.tab-layout-icon-hide) ::slotted(ion-badge),:host(.tab-has-label-only) ::slotted(ion-badge){left:70%}:host-context([dir=rtl]):host(.tab-layout-icon-hide) ::slotted(ion-badge),:host-context([dir=rtl]).tab-layout-icon-hide ::slotted(ion-badge),:host-context([dir=rtl]):host(.tab-has-label-only) ::slotted(ion-badge),:host-context([dir=rtl]).tab-has-label-only ::slotted(ion-badge){left:unset;right:unset;right:70%}@supports selector(:dir(rtl)){:host(.tab-layout-icon-hide:dir(rtl)) ::slotted(ion-badge),:host(.tab-has-label-only:dir(rtl)) ::slotted(ion-badge){left:unset;right:unset;right:70%}}}:host(.tab-layout-icon-hide) ::slotted(ion-label),:host(.tab-has-label-only) ::slotted(ion-label){margin-top:0;margin-bottom:0}:host(.tab-layout-label-hide) ::slotted(ion-badge),:host(.tab-has-icon-only) ::slotted(ion-badge){top:16px}:host(.tab-layout-label-hide) ::slotted(ion-icon),:host(.tab-has-icon-only) ::slotted(ion-icon){margin-top:0;margin-bottom:0;font-size:24px}',rI=ne(class extends ie{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionTabButtonClick=B(this,"ionTabButtonClick",7),this.inheritedAttributes={},this.onKeyUp=t=>{(t.key==="Enter"||t.key===" ")&&this.selectTab(t)},this.onClick=t=>{this.selectTab(t)},this.disabled=!1,this.download=void 0,this.href=void 0,this.rel=void 0,this.layout=void 0,this.selected=!1,this.tab=void 0,this.target=void 0}onTabBarChanged(t){const n=t.target,i=this.el.parentElement;(t.composedPath().includes(i)||n!=null&&n.contains(this.el))&&(this.selected=this.tab===t.detail.tab)}componentWillLoad(){this.inheritedAttributes=Object.assign({},No(this.el,["aria-label"])),this.layout===void 0&&(this.layout=le.get("tabButtonLayout","icon-top"))}selectTab(t){this.tab!==void 0&&(this.disabled||this.ionTabButtonClick.emit({tab:this.tab,href:this.href,selected:this.selected}),t.preventDefault())}get hasLabel(){return!!this.el.querySelector("ion-label")}get hasIcon(){return!!this.el.querySelector("ion-icon")}render(){const{disabled:t,hasIcon:n,hasLabel:i,href:o,rel:r,target:s,layout:a,selected:l,tab:c,inheritedAttributes:d}=this,u=W(this),h={download:this.download,href:o,rel:r,target:s};return y(ee,{onClick:this.onClick,onKeyup:this.onKeyUp,id:c!==void 0?`tab-button-${c}`:null,class:{[u]:!0,"tab-selected":l,"tab-disabled":t,"tab-has-label":i,"tab-has-icon":n,"tab-has-label-only":i&&!n,"tab-has-icon-only":n&&!i,[`tab-layout-${a}`]:!0,"ion-activatable":!0,"ion-selectable":!0,"ion-focusable":!0}},y("a",Object.assign({},h,{class:"button-native",part:"native",role:"tab","aria-selected":l?"true":null,"aria-disabled":t?"true":null,tabindex:t?"-1":void 0},d),y("span",{class:"button-inner"},y("slot",null)),u==="md"&&y("ion-ripple-effect",{type:"unbounded"})))}get el(){return this}static get style(){return{ios:iI,md:oI}}},[33,"ion-tab-button",{disabled:[4],download:[1],href:[1],rel:[1],layout:[1025],selected:[1028],tab:[1],target:[1]},[[8,"ionTabBarChanged","onTabBarChanged"]]]);function sI(){if(typeof customElements>"u")return;["ion-tab-button","ion-ripple-effect"].forEach(t=>{switch(t){case"ion-tab-button":customElements.get(t)||customElements.define(t,rI);break;case"ion-ripple-effect":customElements.get(t)||Fi();break}})}const aI=sI;let cd;const lI=()=>{if(typeof window>"u")return new Map;if(!cd){const e=window;e.Ionicons=e.Ionicons||{},cd=e.Ionicons.map=e.Ionicons.map||new Map}return cd},cI=e=>{let t=dd(e.src);return t||(t=bw(e.name,e.icon,e.mode,e.ios,e.md),t?dI(t,e):e.icon&&(t=dd(e.icon),t||(t=dd(e.icon[e.mode]),t))?t:null)},dI=(e,t)=>{const n=lI().get(e);if(n)return n;try{return Zy(`svg/${e}.svg`)}catch{console.warn(`[Ionicons Warning]: Could not load icon with name "${e}". Ensure that the icon is registered using addIcons or that the icon SVG data is passed directly to the icon component.`,t)}},bw=(e,t,n,i,o)=>(n=(n&&Zs(n))==="ios"?"ios":"md",i&&n==="ios"?e=Zs(i):o&&n==="md"?e=Zs(o):(!e&&t&&!vw(t)&&(e=t),al(e)&&(e=Zs(e))),!al(e)||e.trim()===""||e.replace(/[a-z]|-|\d/gi,"")!==""?null:e),dd=e=>al(e)&&(e=e.trim(),vw(e))?e:null,vw=e=>e.length>0&&/(\/|\.)/.test(e),al=e=>typeof e=="string",Zs=e=>e.toLowerCase(),uI=(e,t=[])=>{const n={};return t.forEach(i=>{e.hasAttribute(i)&&(e.getAttribute(i)!==null&&(n[i]=e.getAttribute(i)),e.removeAttribute(i))}),n},hI=e=>e&&e.dir!==""?e.dir.toLowerCase()==="rtl":(document==null?void 0:document.dir.toLowerCase())==="rtl",fI=e=>{const t=document.createElement("div");t.innerHTML=e;for(let i=t.childNodes.length-1;i>=0;i--)t.childNodes[i].nodeName.toLowerCase()!=="svg"&&t.removeChild(t.childNodes[i]);const n=t.firstElementChild;if(n&&n.nodeName.toLowerCase()==="svg"){const i=n.getAttribute("class")||"";if(n.setAttribute("class",(i+" s-ion-icon").trim()),yw(n))return t.innerHTML}return""},yw=e=>{if(e.nodeType===1){if(e.nodeName.toLowerCase()==="script")return!1;for(let t=0;te.startsWith("data:image/svg+xml"),mI=e=>e.indexOf(";utf8,")!==-1,ki=new Map,qg=new Map;let ud;const gI=(e,t)=>{let n=qg.get(e);if(!n)if(typeof fetch<"u"&&typeof document<"u")if(pI(e)&&mI(e)){ud||(ud=new DOMParser);const o=ud.parseFromString(e,"text/html").querySelector("svg");return o&&ki.set(e,o.outerHTML),Promise.resolve()}else n=fetch(e).then(i=>{if(i.ok)return i.text().then(o=>{o&&t!==!1&&(o=fI(o)),ki.set(e,o||"")});ki.set(e,"")}),qg.set(e,n);else return ki.set(e,""),Promise.resolve();return n},bI=":host{display:inline-block;width:1em;height:1em;contain:strict;fill:currentColor;-webkit-box-sizing:content-box !important;box-sizing:content-box !important}:host .ionicon{stroke:currentColor}.ionicon-fill-none{fill:none}.ionicon-stroke-width{stroke-width:32px;stroke-width:var(--ionicon-stroke-width, 32px)}.icon-inner,.ionicon,svg{display:block;height:100%;width:100%}@supports (background: -webkit-named-image(i)){:host(.icon-rtl) .icon-inner{-webkit-transform:scaleX(-1);transform:scaleX(-1)}}@supports not selector(:dir(rtl)) and selector(:host-context([dir='rtl'])){:host(.icon-rtl) .icon-inner{-webkit-transform:scaleX(-1);transform:scaleX(-1)}}:host(.flip-rtl):host-context([dir='rtl']) .icon-inner{-webkit-transform:scaleX(-1);transform:scaleX(-1)}@supports selector(:dir(rtl)){:host(.flip-rtl:dir(rtl)) .icon-inner{-webkit-transform:scaleX(-1);transform:scaleX(-1)}:host(.flip-rtl:dir(ltr)) .icon-inner{-webkit-transform:scaleX(1);transform:scaleX(1)}}:host(.icon-small){font-size:1.125rem !important}:host(.icon-large){font-size:2rem !important}:host(.ion-color){color:var(--ion-color-base) !important}:host(.ion-color-primary){--ion-color-base:var(--ion-color-primary, #3880ff)}:host(.ion-color-secondary){--ion-color-base:var(--ion-color-secondary, #0cd1e8)}:host(.ion-color-tertiary){--ion-color-base:var(--ion-color-tertiary, #f4a942)}:host(.ion-color-success){--ion-color-base:var(--ion-color-success, #10dc60)}:host(.ion-color-warning){--ion-color-base:var(--ion-color-warning, #ffce00)}:host(.ion-color-danger){--ion-color-base:var(--ion-color-danger, #f14141)}:host(.ion-color-light){--ion-color-base:var(--ion-color-light, #f4f5f8)}:host(.ion-color-medium){--ion-color-base:var(--ion-color-medium, #989aa2)}:host(.ion-color-dark){--ion-color-base:var(--ion-color-dark, #222428)}",vI=ne(class extends ie{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.iconName=null,this.inheritedAttributes={},this.didLoadIcon=!1,this.svgContent=void 0,this.isVisible=!1,this.mode=yI(),this.color=void 0,this.ios=void 0,this.md=void 0,this.flipRtl=void 0,this.name=void 0,this.src=void 0,this.icon=void 0,this.size=void 0,this.lazy=!1,this.sanitize=!0}componentWillLoad(){this.inheritedAttributes=uI(this.el,["aria-label"])}connectedCallback(){this.waitUntilVisible(this.el,"50px",()=>{this.isVisible=!0,this.loadIcon()})}componentDidLoad(){this.didLoadIcon||this.loadIcon()}disconnectedCallback(){this.io&&(this.io.disconnect(),this.io=void 0)}waitUntilVisible(t,n,i){if(this.lazy&&typeof window<"u"&&window.IntersectionObserver){const o=this.io=new window.IntersectionObserver(r=>{r[0].isIntersecting&&(o.disconnect(),this.io=void 0,i())},{rootMargin:n});o.observe(t)}else i()}loadIcon(){if(this.isVisible){const t=cI(this);t&&(ki.has(t)?this.svgContent=ki.get(t):gI(t,this.sanitize).then(()=>this.svgContent=ki.get(t)),this.didLoadIcon=!0)}this.iconName=bw(this.name,this.icon,this.mode,this.ios,this.md)}render(){const{flipRtl:t,iconName:n,inheritedAttributes:i,el:o}=this,r=this.mode||"md",s=n?(n.includes("arrow")||n.includes("chevron"))&&t!==!1:!1,a=t||s;return y(ee,Object.assign({role:"img",class:Object.assign(Object.assign({[r]:!0},xI(this.color)),{[`icon-${this.size}`]:!!this.size,"flip-rtl":a,"icon-rtl":a&&hI(o)})},i),this.svgContent?y("div",{class:"icon-inner",innerHTML:this.svgContent}):y("div",{class:"icon-inner"}))}static get assetsDirs(){return["svg"]}get el(){return this}static get watchers(){return{name:["loadIcon"],src:["loadIcon"],icon:["loadIcon"],ios:["loadIcon"],md:["loadIcon"]}}static get style(){return bI}},[1,"ion-icon",{mode:[1025],color:[1],ios:[1],md:[1],flipRtl:[4,"flip-rtl"],name:[513],src:[1],icon:[8],size:[1],lazy:[4],sanitize:[4],svgContent:[32],isVisible:[32]}]),yI=()=>typeof document<"u"&&document.documentElement.getAttribute("mode")||"md",xI=e=>e?{"ion-color":!0,[`ion-color-${e}`]:!0}:null;function wI(){if(typeof customElements>"u")return;["ion-icon"].forEach(t=>{switch(t){case"ion-icon":customElements.get(t)||customElements.define(t,vI);break}})}const kI=wI,zf=P.createContext({onIonViewWillEnter:()=>{},ionViewWillEnter:()=>{},onIonViewDidEnter:()=>{},ionViewDidEnter:()=>{},onIonViewWillLeave:()=>{},ionViewWillLeave:()=>{},onIonViewDidLeave:()=>{},ionViewDidLeave:()=>{},cleanupIonViewWillEnter:()=>{},cleanupIonViewDidEnter:()=>{},cleanupIonViewWillLeave:()=>{},cleanupIonViewDidLeave:()=>{}}),CI=class{constructor(){this.ionViewWillEnterCallbacks=[],this.ionViewDidEnterCallbacks=[],this.ionViewWillLeaveCallbacks=[],this.ionViewDidLeaveCallbacks=[],this.ionViewWillEnterDestructorCallbacks=[],this.ionViewDidEnterDestructorCallbacks=[],this.ionViewWillLeaveDestructorCallbacks=[],this.ionViewDidLeaveDestructorCallbacks=[]}onIonViewWillEnter(e){if(e.id){const t=this.ionViewWillEnterCallbacks.findIndex(n=>n.id===e.id);t>-1?this.ionViewWillEnterCallbacks[t]=e:this.ionViewWillEnterCallbacks.push(e)}else this.ionViewWillEnterCallbacks.push(e)}teardownCallback(e,t){const n=t.filter(i=>i.id===e.id);n.length!==0&&(n.forEach(i=>{i&&typeof i.destructor=="function"&&i.destructor()}),t=t.filter(i=>i.id!==e.id))}cleanupIonViewWillEnter(e){this.teardownCallback(e,this.ionViewWillEnterDestructorCallbacks)}cleanupIonViewDidEnter(e){this.teardownCallback(e,this.ionViewDidEnterDestructorCallbacks)}cleanupIonViewWillLeave(e){this.teardownCallback(e,this.ionViewWillLeaveDestructorCallbacks)}cleanupIonViewDidLeave(e){this.teardownCallback(e,this.ionViewDidLeaveDestructorCallbacks)}ionViewWillEnter(){this.ionViewWillEnterCallbacks.forEach(e=>{const t=e();e.id&&this.ionViewWillEnterDestructorCallbacks.push({id:e.id,destructor:t})})}onIonViewDidEnter(e){if(e.id){const t=this.ionViewDidEnterCallbacks.findIndex(n=>n.id===e.id);t>-1?this.ionViewDidEnterCallbacks[t]=e:this.ionViewDidEnterCallbacks.push(e)}else this.ionViewDidEnterCallbacks.push(e)}ionViewDidEnter(){this.ionViewDidEnterCallbacks.forEach(e=>{const t=e();e.id&&this.ionViewDidEnterDestructorCallbacks.push({id:e.id,destructor:t})})}onIonViewWillLeave(e){if(e.id){const t=this.ionViewWillLeaveCallbacks.findIndex(n=>n.id===e.id);t>-1?this.ionViewWillLeaveCallbacks[t]=e:this.ionViewWillLeaveCallbacks.push(e)}else this.ionViewWillLeaveCallbacks.push(e)}ionViewWillLeave(){this.ionViewWillLeaveCallbacks.forEach(e=>{const t=e();e.id&&this.ionViewWillLeaveDestructorCallbacks.push({id:e.id,destructor:t})})}onIonViewDidLeave(e){if(e.id){const t=this.ionViewDidLeaveCallbacks.findIndex(n=>n.id===e.id);t>-1?this.ionViewDidLeaveCallbacks[t]=e:this.ionViewDidLeaveCallbacks.push(e)}else this.ionViewDidLeaveCallbacks.push(e)}ionViewDidLeave(){this.ionViewDidLeaveCallbacks.forEach(e=>{const t=e();e.id&&this.ionViewDidLeaveDestructorCallbacks.push({id:e.id,destructor:t})}),this.componentCanBeDestroyed()}onComponentCanBeDestroyed(e){this.componentCanBeDestroyedCallback=e}componentCanBeDestroyed(){this.componentCanBeDestroyedCallback&&this.componentCanBeDestroyedCallback()}},An=P.createContext({getIonRedirect:()=>{},getIonRoute:()=>{},getPageManager:()=>{},getStackManager:()=>{},goBack:e=>{typeof window<"u"&&(typeof e=="string"?window.location.pathname=e:window.history.back())},navigate:e=>{typeof window<"u"&&(window.location.pathname=e)},hasIonicRouter:()=>!1,routeInfo:void 0,setCurrentTab:()=>{},changeTab:(e,t)=>{typeof window<"u"&&(window.location.pathname=t)},resetTab:(e,t)=>{typeof window<"u"&&(window.location.pathname=t)}}),Mf=e=>e.toLowerCase().split("-").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(""),Xl=e=>e.replace(/([A-Z])/g,t=>`-${t[0].toLowerCase()}`),Bf=(e,t,n={})=>{if(e instanceof Element){const i=SI(e.classList,t,n);i!==""&&(e.className=i),Object.keys(t).forEach(o=>{if(!(o==="children"||o==="style"||o==="ref"||o==="class"||o==="className"||o==="forwardedRef"))if(o.indexOf("on")===0&&o[2]===o[2].toUpperCase()){const r=o.substring(2),s=r[0].toLowerCase()+r.substring(1);xs(s)||TI(e,s,t[o])}else e[o]=t[o],typeof t[o]==="string"&&e.setAttribute(Xl(o),t[o])})}},SI=(e,t,n)=>{const i=t.className||t.class,o=n.className||n.class,r=hd(e),s=hd(i?i.split(" "):[]),a=hd(o?o.split(" "):[]),l=[];return r.forEach(c=>{s.has(c)?(l.push(c),s.delete(c)):a.has(c)||l.push(c)}),s.forEach(c=>l.push(c)),l.join(" ")},EI=e=>{switch(e){case"doubleclick":return"dblclick"}return e};/** * Checks if an event is supported in the current execution environment. * @license Modernizr 3.0.0pre (Custom Build) | MIT */const xs=e=>{if(typeof document>"u")return!0;{const t="on"+EI(e);let n=t in document;if(!n){const i=document.createElement("div");i.setAttribute(t,"return;"),n=typeof i[t]=="function"}return n}},TI=(e,t,n)=>{const i=e.__events||(e.__events={}),o=i[t];o&&e.removeEventListener(t,o),e.addEventListener(t,i[t]=function(s){n&&n.call(this,s)})},hd=e=>{const t=new Map;return e.forEach(n=>t.set(n,n)),t},PI=(e,t)=>{typeof e=="function"?e(t):e!=null&&(e.current=t)},ql=(...e)=>t=>{e.forEach(n=>{PI(n,t)})},AI=(e,t)=>{const n=(i,o)=>P.createElement(e,Object.assign({},i,{forwardedRef:o}));return n.displayName=t,P.forwardRef(n)},LI=(e,t)=>{t!==void 0&&typeof customElements<"u"&&!customElements.get(e)&&customElements.define(e,t)},he=(e,t,n,i)=>{i!==void 0&&i();const o=Mf(e),r=class extends P.Component{constructor(s){super(s),this.setComponentElRef=a=>{this.componentEl=a}}componentDidMount(){this.componentDidUpdate(this.props)}componentDidUpdate(s){Bf(this.componentEl,this.props,s)}render(){const s=this.props,{children:a,forwardedRef:l,style:c,className:d,ref:u}=s,h=Ke(s,["children","forwardedRef","style","className","ref"]);let f=Object.keys(h).reduce((m,x)=>{const b=h[x];if(x.indexOf("on")===0&&x[2]===x[2].toUpperCase()){const g=x.substring(2).toLowerCase();typeof document<"u"&&xs(g)&&(m[x]=b)}else{const g=typeof b;(g==="string"||g==="boolean"||g==="number")&&(m[Xl(x)]=b)}return m},{});n&&(f=n(this.props,f));const p=Object.assign(Object.assign({},f),{ref:ql(l,this.setComponentElRef),style:c});return X.createElement(e,p,a)}static get displayName(){return o}};return t&&(r.contextType=t),AI(r,o)},xw=he("ion-buttons",void 0,void 0,zP),Yg=he("ion-col",void 0,void 0,t5),ww=he("ion-content",void 0,void 0,l5),II=he("ion-grid",void 0,void 0,J5),kw=he("ion-header",void 0,void 0,cA),Yu=he("ion-img",void 0,void 0,pA),OI=he("ion-label",void 0,void 0,yA),Ku=he("ion-list",void 0,void 0,CA),RI=he("ion-list-header",void 0,void 0,PA),DI=he("ion-menu",void 0,void 0,MA),$I=he("ion-menu-button",void 0,void 0,HA),_I=he("ion-menu-toggle",void 0,void 0,XA),zI=he("ion-note",void 0,void 0,ZA),MI=he("ion-progress-bar",void 0,void 0,r3),BI=he("ion-range",void 0,void 0,y3),jI=he("ion-row",void 0,void 0,C3),Kg=he("ion-select",void 0,void 0,Q3),sr=he("ion-select-option",void 0,void 0,nL),VI=he("ion-split-pane",void 0,void 0,lL),jf=he("ion-title",void 0,void 0,fL),Vf=he("ion-toolbar",void 0,void 0,vL),Hi=(e,t)=>{const n=(i,o)=>P.createElement(e,Object.assign({},i,{forwardedRef:o}));return n.displayName=t,P.forwardRef(n)},Ff=()=>{if(typeof window<"u"){const e=window.Ionic;if(e&&e.config)return e.config}return null},Cw=(e,t)=>{LI(e,t);const n=Mf(e),i=class extends P.Component{constructor(o){super(o),this.handleClick=r=>{const{routerLink:s,routerDirection:a,routerOptions:l,routerAnimation:c}=this.props;s!==void 0&&(r.preventDefault(),this.context.navigate(s,a,void 0,c,l))},this.ref=P.createRef(),this.stableMergedRefs=ql(this.ref,this.props.forwardedRef)}componentDidMount(){this.componentDidUpdate(this.props)}componentDidUpdate(o){const r=this.ref.current;Bf(r,this.props,o)}render(){const o=this.props,{children:r,forwardedRef:s,style:a,className:l,ref:c}=o,d=Ke(o,["children","forwardedRef","style","className","ref"]),u=Object.keys(d).reduce((f,p)=>{if(p.indexOf("on")===0&&p[2]===p[2].toUpperCase()){const m=p.substring(2).toLowerCase();xs(m)&&(f[p]=d[p])}else["string","boolean","number"].includes(typeof d[p])&&(f[Xl(p)]=d[p]);return f},{}),h=Object.assign(Object.assign({},u),{ref:this.stableMergedRefs,style:a});if(this.props.routerLink&&!this.props.href&&(h.href=this.props.routerLink),h.onClick){const f=h.onClick;h.onClick=p=>{f(p),p.defaultPrevented||this.handleClick(p)}}else h.onClick=this.handleClick;return X.createElement(e,h,r)}static get displayName(){return n}static get contextType(){return An}};return Hi(i,n)},Gu=Cw("ion-button",yL),va=Cw("ion-item",xL),FI=(e,t)=>{e instanceof Element&&Object.keys(t).forEach(n=>{if(n.indexOf("on")===0&&n[2]===n[2].toUpperCase()){const i=n.substring(2),o=i[0].toLowerCase()+i.substring(1);xs(o)||HI(e,o)}})},HI=(e,t)=>{const n=e.__events||(e.__events={}),i=n[t];i&&(e.removeEventListener(t,i),n[t]=void 0)},NI=(e,t,n)=>{t&&t();const i=Mf(e),o=class extends P.Component{constructor(r){super(r),this.handleIonMount=()=>{this.setState({isOpen:!0})},this.handleWillPresent=s=>{this.setState({isOpen:!0}),this.props.onWillPresent&&this.props.onWillPresent(s)},this.handleDidDismiss=s=>{const a=this.wrapperRef.current,l=this.ref.current;a&&l&&(l.append(a),this.setState({isOpen:!1})),this.props.onDidDismiss&&this.props.onDidDismiss(s)},this.ref=P.createRef(),this.stableMergedRefs=ql(this.ref,this.props.forwardedRef),this.state={isOpen:!1},this.wrapperRef=P.createRef()}componentDidMount(){var r,s,a;this.componentDidUpdate(this.props),(r=this.ref.current)===null||r===void 0||r.addEventListener("ionMount",this.handleIonMount),(s=this.ref.current)===null||s===void 0||s.addEventListener("willPresent",this.handleWillPresent),(a=this.ref.current)===null||a===void 0||a.addEventListener("didDismiss",this.handleDidDismiss)}componentDidUpdate(r){const s=this.ref.current,a=this.props,l=Ke(a,["onDidDismiss","onWillPresent"]);Bf(s,l,r)}componentWillUnmount(){const r=this.ref.current;r&&this.state.isOpen&&(r.removeEventListener("didDismiss",this.handleDidDismiss),r.remove(),FI(r,this.props))}render(){const r=this.props,{children:s,forwardedRef:a,style:l,className:c,ref:d}=r,u=Ke(r,["children","forwardedRef","style","className","ref"]),h=Object.keys(u).reduce((m,x)=>{if(x.indexOf("on")===0&&x[2]===x[2].toUpperCase()){const b=x.substring(2).toLowerCase();xs(b)&&(m[x]=u[x])}else["string","boolean","number"].includes(typeof u[x])&&(m[Xl(x)]=u[x]);return m},{}),f=Object.assign(Object.assign({},h),{ref:this.stableMergedRefs,style:l}),p=()=>n?`${Gg} ion-page`:Gg;return X.createElement("template",{},X.createElement(e,f,this.state.isOpen||this.props.keepContentsMounted?X.createElement("div",{ref:this.wrapperRef,className:p()},s):null))}static get displayName(){return i}};return Hi(o,i)},Gg="ion-delegate-host",UI=NI("ion-modal",FL,!0),WI=P.createContext({addOverlay:()=>{},removeOverlay:()=>{}}),XI=({onAddOverlay:e,onRemoveOverlay:t})=>{const[n,i]=X.useState({}),o=X.useRef({});X.useEffect(()=>{e(r),t(s)},[]);const r=(l,c,d)=>{const u=Object.assign({},o.current);u[l]={component:c,containerElement:d},o.current=u,i(u)},s=l=>{const c=Object.assign({},o.current);delete c[l],o.current=c,i(c)},a=Object.keys(n);return P.createElement(P.Fragment,null,a.map(l=>{const c=n[l];return WE.createPortal(c.component,c.containerElement,`overlay-${l}`)}))},qI=he("ion-tab-button",void 0,void 0,aI),YI=he("ion-tab-bar",void 0,void 0,nI),Qu=he("ion-router-outlet",void 0,void 0,QL),KI=he("ion-app",void 0,void 0,qL),GI=he("ion-icon",void 0,void 0,kI),QI=class extends P.Component{constructor(e){super(e),this.ionContext={addOverlay:(t,n,i)=>{this.addOverlayCallback&&this.addOverlayCallback(t,n,i)},removeOverlay:t=>{this.removeOverlayCallback&&this.removeOverlayCallback(t)}}}render(){return P.createElement(WI.Provider,{value:this.ionContext},P.createElement(KI,Object.assign({},this.props),this.props.children),P.createElement(XI,{onAddOverlay:e=>{this.addOverlayCallback=e},onRemoveOverlay:e=>{this.removeOverlayCallback=e}}))}static get displayName(){return"IonApp"}},Hf=P.createContext({registerIonPage:()=>{},isInOutlet:()=>!1});class Sw extends P.PureComponent{constructor(t){super(t),this.ionPageElementRef=P.createRef(),this.stableMergedRefs=ql(this.ionPageElementRef,this.props.forwardedRef),this.ionViewWillEnterHandler=this.ionViewWillEnterHandler.bind(this),this.ionViewDidEnterHandler=this.ionViewDidEnterHandler.bind(this),this.ionViewWillLeaveHandler=this.ionViewWillLeaveHandler.bind(this),this.ionViewDidLeaveHandler=this.ionViewDidLeaveHandler.bind(this)}componentDidMount(){this.ionPageElementRef.current&&(this.context.isInOutlet()&&this.ionPageElementRef.current.classList.add("ion-page-invisible"),this.context.registerIonPage(this.ionPageElementRef.current,this.props.routeInfo),this.ionPageElementRef.current.addEventListener("ionViewWillEnter",this.ionViewWillEnterHandler),this.ionPageElementRef.current.addEventListener("ionViewDidEnter",this.ionViewDidEnterHandler),this.ionPageElementRef.current.addEventListener("ionViewWillLeave",this.ionViewWillLeaveHandler),this.ionPageElementRef.current.addEventListener("ionViewDidLeave",this.ionViewDidLeaveHandler))}componentWillUnmount(){this.ionPageElementRef.current&&(this.ionPageElementRef.current.removeEventListener("ionViewWillEnter",this.ionViewWillEnterHandler),this.ionPageElementRef.current.removeEventListener("ionViewDidEnter",this.ionViewDidEnterHandler),this.ionPageElementRef.current.removeEventListener("ionViewWillLeave",this.ionViewWillLeaveHandler),this.ionPageElementRef.current.removeEventListener("ionViewDidLeave",this.ionViewDidLeaveHandler))}ionViewWillEnterHandler(){this.ionLifeCycleContext.ionViewWillEnter()}ionViewDidEnterHandler(){this.ionLifeCycleContext.ionViewDidEnter()}ionViewWillLeaveHandler(){this.ionLifeCycleContext.ionViewWillLeave()}ionViewDidLeaveHandler(){this.ionLifeCycleContext.ionViewDidLeave()}render(){const t=this.props,{className:n,children:i,routeInfo:o,forwardedRef:r}=t,s=Ke(t,["className","children","routeInfo","forwardedRef"]);return P.createElement(zf.Consumer,null,a=>(this.ionLifeCycleContext=a,P.createElement("div",Object.assign({className:n?`${n} ion-page`:"ion-page",ref:this.stableMergedRefs},s),i)))}static get contextType(){return Hf}}class ZI extends P.Component{constructor(t){super(t)}render(){const t=this.props,{className:n,children:i,forwardedRef:o}=t,r=Ke(t,["className","children","forwardedRef"]);return this.context.hasIonicRouter()?P.createElement(Sw,Object.assign({className:n?`${n}`:"",routeInfo:this.context.routeInfo,forwardedRef:o},r),i):P.createElement("div",Object.assign({className:n?`ion-page ${n}`:"ion-page",ref:o},r),i)}static get displayName(){return"IonPage"}static get contextType(){return An}}const JI=Hi(ZI,"IonPage"),Qg={main:0},os=(e="main")=>{var t;const n=((t=Qg[e])!==null&&t!==void 0?t:0)+1;return Qg[e]=n,n.toString()},eO=(e,t)=>{const n=new WeakMap,i=`react-delegate-${os()}`;let o=0;return{attachViewToDom:async(a,l,c,d)=>{const u=document.createElement("div");d&&u.classList.add(...d),a.appendChild(u);const h=l(c),f=`${i}-${o++}`,p=ff.createPortal(h,u,f);return n.set(u,p),e(p),Promise.resolve(u)},removeViewFromDom:(a,l)=>{const c=n.get(l);return c&&t(c),l.remove(),Promise.resolve()}}},tO=he("ion-nav",void 0,void 0,QA),nO=e=>{var{children:t,forwardedRef:n}=e,i=Ke(e,["children","forwardedRef"]);const[o,r]=X.useState([]),s=c=>r(d=>[...d,c]),a=c=>r(d=>d.filter(u=>u!==c)),l=X.useMemo(()=>eO(s,a),[]);return P.createElement(tO,Object.assign({delegate:l,ref:n},i),o)};Hi(nO,"IonNav");P.createContext({activeTab:void 0,selectTab:()=>!1});const iO=typeof HTMLElement<"u"?HTMLElement:class{};class oO extends P.Component{constructor(t){super(t),this.outletIsReady=!1,this.ionViewWillEnterHandler=this.ionViewWillEnterHandler.bind(this),this.ionViewDidEnterHandler=this.ionViewDidEnterHandler.bind(this),this.ionViewWillLeaveHandler=this.ionViewWillLeaveHandler.bind(this),this.ionViewDidLeaveHandler=this.ionViewDidLeaveHandler.bind(this)}componentDidMount(){this.ionRouterOutlet&&(this.outletIsReady||ei(this.ionRouterOutlet,()=>{this.outletIsReady=!0,this.context.registerIonPage(this.ionRouterOutlet,this.props.routeInfo)}),this.ionRouterOutlet.addEventListener("ionViewWillEnter",this.ionViewWillEnterHandler),this.ionRouterOutlet.addEventListener("ionViewDidEnter",this.ionViewDidEnterHandler),this.ionRouterOutlet.addEventListener("ionViewWillLeave",this.ionViewWillLeaveHandler),this.ionRouterOutlet.addEventListener("ionViewDidLeave",this.ionViewDidLeaveHandler))}componentWillUnmount(){this.ionRouterOutlet&&(this.ionRouterOutlet.removeEventListener("ionViewWillEnter",this.ionViewWillEnterHandler),this.ionRouterOutlet.removeEventListener("ionViewDidEnter",this.ionViewDidEnterHandler),this.ionRouterOutlet.removeEventListener("ionViewWillLeave",this.ionViewWillLeaveHandler),this.ionRouterOutlet.removeEventListener("ionViewDidLeave",this.ionViewDidLeaveHandler))}ionViewWillEnterHandler(){this.ionLifeCycleContext.ionViewWillEnter()}ionViewDidEnterHandler(){this.ionLifeCycleContext.ionViewDidEnter()}ionViewWillLeaveHandler(){this.ionLifeCycleContext.ionViewWillLeave()}ionViewDidLeaveHandler(){this.ionLifeCycleContext.ionViewDidLeave()}render(){const t=this.props,{StackManager:n,children:i,routeInfo:o}=t,r=Ke(t,["StackManager","children","routeInfo"]);return P.createElement(zf.Consumer,null,s=>(this.ionLifeCycleContext=s,P.createElement(n,{routeInfo:o},P.createElement(Qu,Object.assign({setRef:a=>this.ionRouterOutlet=a},r),i))))}static get contextType(){return Hf}}class rO extends P.Component{constructor(t){super(t)}render(){const t=this.context.getStackManager(),n=this.props,{children:i,forwardedRef:o}=n,r=Ke(n,["children","forwardedRef"]);return this.context.hasIonicRouter()?r.ionPage?P.createElement(oO,Object.assign({StackManager:t,routeInfo:this.context.routeInfo},r),i):P.createElement(t,{routeInfo:this.context.routeInfo},P.createElement(Qu,Object.assign({},r,{forwardedRef:o}),i)):P.createElement(Qu,Object.assign({ref:o},this.props),this.props.children)}static get contextType(){return An}}const sO=Hi(rO,"IonRouterOutlet"),fd=class extends P.Component{constructor(e){super(e),this.handleIonTabButtonClick=this.handleIonTabButtonClick.bind(this)}handleIonTabButtonClick(){this.props.onClick&&this.props.onClick(new CustomEvent("ionTabButtonClick",{detail:{tab:this.props.tab,href:this.props.href,routeOptions:this.props.routerOptions}}))}render(){const e=this.props,t=Ke(e,["onClick"]);return P.createElement(qI,Object.assign({onIonTabButtonClick:this.handleIonTabButtonClick},t))}static get displayName(){return"IonTabButton"}};class aO extends P.PureComponent{constructor(t){super(t),this.setActiveTabOnContext=i=>{};const n={};P.Children.forEach(t.children,i=>{var o,r,s,a;i!=null&&typeof i=="object"&&i.props&&(i.type===fd||i.type.isTabButton)&&(n[i.props.tab]={originalHref:i.props.href,currentHref:i.props.href,originalRouteOptions:i.props.href===((o=t.routeInfo)===null||o===void 0?void 0:o.pathname)?(r=t.routeInfo)===null||r===void 0?void 0:r.routeOptions:void 0,currentRouteOptions:i.props.href===((s=t.routeInfo)===null||s===void 0?void 0:s.pathname)?(a=t.routeInfo)===null||a===void 0?void 0:a.routeOptions:void 0})}),this.state={tabs:n},this.onTabButtonClick=this.onTabButtonClick.bind(this),this.renderTabButton=this.renderTabButton.bind(this),this.setActiveTabOnContext=this.setActiveTabOnContext.bind(this),this.selectTab=this.selectTab.bind(this)}componentDidMount(){const t=this.state.tabs,i=Object.keys(t).find(o=>{const r=t[o].originalHref;return this.props.routeInfo.pathname.startsWith(r)});i&&this.setState({activeTab:i})}componentDidUpdate(){this.state.activeTab&&this.setActiveTabOnContext(this.state.activeTab)}selectTab(t){const n=this.state.tabs[t];return n?(this.onTabButtonClick(new CustomEvent("ionTabButtonClick",{detail:{href:n.currentHref,tab:t,selected:t===this.state.activeTab,routeOptions:void 0}})),!0):!1}static getDerivedStateFromProps(t,n){var i,o,r;const s=Object.assign({},n.tabs),l=Object.keys(n.tabs).find(d=>{const u=n.tabs[d].originalHref;return t.routeInfo.pathname.startsWith(u)});P.Children.forEach(t.children,d=>{if(d!=null&&typeof d=="object"&&d.props&&(d.type===fd||d.type.isTabButton)){const u=s[d.props.tab];(!u||u.originalHref!==d.props.href)&&(s[d.props.tab]={originalHref:d.props.href,currentHref:d.props.href,originalRouteOptions:d.props.routeOptions,currentRouteOptions:d.props.routeOptions})}});const{activeTab:c}=n;if(l&&c){const d=n.tabs[c].currentHref,u=n.tabs[c].currentRouteOptions;(l!==c||d!==((i=t.routeInfo)===null||i===void 0?void 0:i.pathname)||u!==((o=t.routeInfo)===null||o===void 0?void 0:o.routeOptions))&&(s[l]={originalHref:s[l].originalHref,currentHref:t.routeInfo.pathname+(t.routeInfo.search||""),originalRouteOptions:s[l].originalRouteOptions,currentRouteOptions:(r=t.routeInfo)===null||r===void 0?void 0:r.routeOptions},t.routeInfo.routeAction==="pop"&&l!==c&&(s[c]={originalHref:s[c].originalHref,currentHref:s[c].originalHref,originalRouteOptions:s[c].originalRouteOptions,currentRouteOptions:s[c].currentRouteOptions}))}return l&&t.onSetCurrentTab(l,t.routeInfo),{activeTab:l,tabs:s}}onTabButtonClick(t,n){const i=this.state.tabs[t.detail.tab],o=i.originalHref,r=t.detail.href,{activeTab:s}=this.state;n&&n(t),s===t.detail.tab?o!==r&&this.context.resetTab(t.detail.tab,o,i.originalRouteOptions):(this.props.onIonTabsWillChange&&this.props.onIonTabsWillChange(new CustomEvent("ionTabWillChange",{detail:{tab:t.detail.tab}})),this.props.onIonTabsDidChange&&this.props.onIonTabsDidChange(new CustomEvent("ionTabDidChange",{detail:{tab:t.detail.tab}})),this.setActiveTabOnContext(t.detail.tab),this.context.changeTab(t.detail.tab,r,t.detail.routeOptions))}renderTabButton(t){return n=>{var i,o;if(n!=null&&n.props&&(n.type===fd||n.type.isTabButton)){const r=n.props.tab===t?(i=this.props.routeInfo)===null||i===void 0?void 0:i.pathname:this.state.tabs[n.props.tab].currentHref,s=n.props.tab===t?(o=this.props.routeInfo)===null||o===void 0?void 0:o.routeOptions:this.state.tabs[n.props.tab].currentRouteOptions;return P.cloneElement(n,{href:r,routeOptions:s,onClick:a=>this.onTabButtonClick(a,n.props.onClick)})}return null}}render(){const{activeTab:t}=this.state;return P.createElement(YI,Object.assign({},this.props,{selectedTab:t}),P.Children.map(this.props.children,this.renderTabButton(t)))}static get contextType(){return An}}const lO=P.memo(e=>{var{forwardedRef:t}=e,n=Ke(e,["forwardedRef"]);const i=X.useContext(An);return P.createElement(aO,Object.assign({ref:t},n,{routeInfo:n.routeInfo||i.routeInfo||{pathname:window.location.pathname},onSetCurrentTab:i.setCurrentTab}),n.children)});Hi(lO,"IonTabBar");class cO extends iO{constructor(){super()}}typeof window<"u"&&window.customElements&&(window.customElements.get("ion-tabs")||window.customElements.define("ion-tabs",cO));class dO extends P.PureComponent{constructor(t){super(t),this.props.name&&console.warn('In Ionic React, you import icons from "ionicons/icons" and set the icon you imported to the "icon" property. Setting the "name" property has no effect.')}render(){var t,n;const i=this.props,{icon:o,ios:r,md:s,mode:a}=i,l=Ke(i,["icon","ios","md","mode"]);let c;const d=Ff(),u=a||(d==null?void 0:d.get("mode"));return r||s?u==="ios"?c=(t=r??s)!==null&&t!==void 0?t:o:c=(n=s??r)!==null&&n!==void 0?n:o:c=o,P.createElement(GI,Object.assign({ref:this.props.forwardedRef,icon:c},l),this.props.children)}static get contextType(){return An}}const uO=Hi(dO,"IonIcon");class Nf extends P.PureComponent{render(){const t=this.context.getIonRoute();return!this.context.hasIonicRouter()||!Nf?(console.error("You either do not have an Ionic Router package, or your router does not support using "),null):P.createElement(t,Object.assign({},this.props))}static get contextType(){return An}}class Ew extends P.PureComponent{render(){const t=this.context.getIonRedirect();return!this.context.hasIonicRouter()||!Ew?(console.error("You either do not have an Ionic Router package, or your router does not support using "),null):P.createElement(t,Object.assign({},this.props))}static get contextType(){return An}}const hO=P.createContext({routeInfo:void 0,push:()=>{throw new Error("An Ionic Router is required for IonRouterContext")},back:()=>{throw new Error("An Ionic Router is required for IonRouterContext")},canGoBack:()=>{throw new Error("An Ionic Router is required for IonRouterContext")},nativeBack:()=>{throw new Error("An Ionic Router is required for IonRouterContext")}});class B8 extends P.PureComponent{constructor(t){super(t),this.nodes=new Map,this.animation=U(t.id)}setupAnimation(t){const n=this.animation;this.nodes.size>0&&n.addElement(Array.from(this.nodes.values())),Zg(n,t),Jg(n,t)}componentDidMount(){const t=this.props;this.setupAnimation(t)}componentDidUpdate(t){const n=this.animation,i=this.props;Zg(n,i,t),fO(n,i,t),Jg(n,i,t)}render(){const{children:t}=this.props;return P.createElement(P.Fragment,null,P.Children.map(t,(n,i)=>P.cloneElement(n,{ref:o=>this.nodes.set(i,o)})))}}const Zg=(e,t={},n={})=>{const i=["children","progressStart","progressStep","progressEnd","pause","stop","destroy","play","from","to","fromTo","onFinish"];for(const l in t)t.hasOwnProperty(l)&&!i.includes(l)&&t[l]!==n[l]&&e[l](t[l]);const o=t.from;o&&o!==n.from&&(Array.isArray(o)?o:[o]).forEach(c=>e.from(c.property,c.value));const r=t.to;r&&r!==n.to&&(Array.isArray(r)?r:[r]).forEach(c=>e.to(c.property,c.value));const s=t.fromTo;s&&s!==n.fromTo&&(Array.isArray(s)?s:[s]).forEach(c=>e.fromTo(c.property,c.fromValue,c.toValue));const a=t.onFinish;a&&a!==n.onFinish&&(Array.isArray(a)?a:[a]).forEach(c=>e.onFinish(c.callback,c.opts))},fO=(e,t={},n={})=>{var i,o,r,s,a;const{progressStart:l,progressStep:c,progressEnd:d}=t;l&&(((i=n.progressStart)===null||i===void 0?void 0:i.forceLinearEasing)!==(l==null?void 0:l.forceLinearEasing)||((o=n.progressStart)===null||o===void 0?void 0:o.step)!==(l==null?void 0:l.step))&&e.progressStart(l.forceLinearEasing,l.step),c&&((r=n.progressStep)===null||r===void 0?void 0:r.step)!==(c==null?void 0:c.step)&&e.progressStep(c.step),d&&(((s=n.progressEnd)===null||s===void 0?void 0:s.playTo)!==(d==null?void 0:d.playTo)||((a=n.progressEnd)===null||a===void 0?void 0:a.step)!==(d==null?void 0:d.step)||(n==null?void 0:n.dur)!==(d==null?void 0:d.dur))&&e.progressEnd(d.playTo,d.step,d.dur)},Jg=(e,t={},n={})=>{!n.play&&t.play&&e.play(),!n.pause&&t.pause&&e.pause(),!n.stop&&t.stop&&e.stop(),!n.destroy&&t.destroy&&e.destroy()},pO=(e={})=>{typeof document<"u"&&document.documentElement.classList.add("ion-ce"),$T(Object.assign({},e))},Tw=P.createContext({addViewItem:()=>{},canGoBack:()=>{},clearOutlet:()=>{},createViewItem:()=>{},findViewItemByPathname:()=>{},findLeavingViewItemByRouteInfo:()=>{},findViewItemByRouteInfo:()=>{},getChildrenToRender:()=>{},goBack:()=>{},unMountViewItem:()=>{}});class eb extends P.Component{constructor(t){super(t),this.ionLifeCycleContext=new CI,this._isMounted=!1,this.ionLifeCycleContext.onComponentCanBeDestroyed(()=>{this.props.mount||this._isMounted&&this.setState({show:!1},()=>this.props.removeView())}),this.state={show:!0}}componentDidMount(){this._isMounted=!0}componentWillUnmount(){this._isMounted=!1}render(){const{show:t}=this.state;return P.createElement(zf.Provider,{value:this.ionLifeCycleContext},t&&this.props.children)}}class mO{constructor(){this.locationHistory=[],this.tabHistory={}}add(t){t.routeAction==="push"||t.routeAction==null?this._add(t):t.routeAction==="pop"?this._pop(t):t.routeAction==="replace"&&this._replace(t),t.routeDirection==="root"&&(this._clear(),this._add(t))}clearTabStack(t){const n=this._getRouteInfosByKey(t);n&&(n.forEach(i=>{this.locationHistory=this.locationHistory.filter(o=>o.id!==i.id)}),this.tabHistory[t]=[])}update(t){const n=this.locationHistory.findIndex(o=>o.id===t.id);n>-1&&this.locationHistory.splice(n,1,t);const i=this.tabHistory[t.tab||""];if(i){const o=i.findIndex(r=>r.id===t.id);o>-1?i.splice(o,1,t):i.push(t)}else t.tab&&(this.tabHistory[t.tab]=[t])}_add(t){const n=this._getRouteInfosByKey(t.tab);n&&(this._areRoutesEqual(n[n.length-1],t)&&n.pop(),n.push(t)),this.locationHistory.push(t)}_areRoutesEqual(t,n){return!t||!n?!1:t.pathname===n.pathname&&t.search===n.search}_pop(t){const n=this._getRouteInfosByKey(t.tab);n&&(n.pop(),n.pop(),n.push(t)),this.locationHistory.pop(),this.locationHistory.pop(),this.locationHistory.push(t)}_replace(t){const n=this._getRouteInfosByKey(t.tab);n&&n.pop(),this.locationHistory.pop(),this._add(t)}_clear(){Object.keys(this.tabHistory).forEach(n=>this.tabHistory[n]=[]),this.locationHistory=[]}_getRouteInfosByKey(t){let n;return t&&(n=this.tabHistory[t],n||(n=this.tabHistory[t]=[])),n}getFirstRouteInfoForTab(t){const n=this._getRouteInfosByKey(t);if(n)return n[0]}getCurrentRouteInfoForTab(t){const n=this._getRouteInfosByKey(t);if(n)return n[n.length-1]}findLastLocation(t){const n=this._getRouteInfosByKey(t.tab);if(n)for(let i=n.length-2;i>=0;i--){const o=n[i];if(o&&o.pathname===t.pushedByRoute)return o}for(let i=this.locationHistory.length-2;i>=0;i--){const o=this.locationHistory[i];if(o&&o.pathname===t.pushedByRoute)return o}}previous(){return this.locationHistory[this.locationHistory.length-2]||this.locationHistory[this.locationHistory.length-1]}current(){return this.locationHistory[this.locationHistory.length-1]}canGoBack(){return this.locationHistory.length>1}}class gO extends P.PureComponent{constructor(t){super(t),this.ionRouterContextValue={push:(n,i,o,r,s)=>{this.navigate(n,i,o,s,r)},back:n=>{this.goBack(void 0,n)},canGoBack:()=>this.props.locationHistory.canGoBack(),nativeBack:()=>this.props.onNativeBack(),routeInfo:this.props.routeInfo},this.state={goBack:this.goBack.bind(this),hasIonicRouter:()=>!0,navigate:this.navigate.bind(this),getIonRedirect:this.getIonRedirect.bind(this),getIonRoute:this.getIonRoute.bind(this),getStackManager:this.getStackManager.bind(this),getPageManager:this.getPageManager.bind(this),routeInfo:this.props.routeInfo,setCurrentTab:this.props.onSetCurrentTab,changeTab:this.props.onChangeTab,resetTab:this.props.onResetTab}}componentDidMount(){typeof document<"u"&&(this.handleHardwareBackButton=this.handleHardwareBackButton.bind(this),document.addEventListener("ionBackButton",this.handleHardwareBackButton))}componentWillUnmount(){typeof document<"u"&&document.removeEventListener("ionBackButton",this.handleHardwareBackButton)}handleHardwareBackButton(t){t.detail.register(0,n=>{this.nativeGoBack(),n()})}goBack(t,n){this.props.onNavigateBack(t,n)}nativeGoBack(){this.props.onNativeBack()}navigate(t,n="forward",i="push",o,r,s){this.props.onNavigate(t,i,n,o,r,s)}getPageManager(){return Sw}getIonRedirect(){return this.props.ionRedirect}getIonRoute(){return this.props.ionRoute}getStackManager(){return this.props.stackManager}render(){return P.createElement(An.Provider,{value:Object.assign(Object.assign({},this.state),{routeInfo:this.props.routeInfo})},P.createElement(hO.Provider,{value:Object.assign(Object.assign({},this.ionRouterContextValue),{routeInfo:this.props.routeInfo})},this.props.children))}}class bO{constructor(){this.viewStacks={},this.add=this.add.bind(this),this.clear=this.clear.bind(this),this.getViewItemsForOutlet=this.getViewItemsForOutlet.bind(this),this.remove=this.remove.bind(this)}add(t){const{outletId:n}=t;this.viewStacks[n]?this.viewStacks[n].push(t):this.viewStacks[n]=[t]}clear(t){return setTimeout(()=>{delete this.viewStacks[t]},500)}getViewItemsForOutlet(t){return this.viewStacks[t]||[]}remove(t){const{outletId:n}=t,i=this.viewStacks[n];if(i){const o=i.find(r=>r.id===t.id);o&&(o.mount=!1,this.viewStacks[n]=i.filter(r=>r.id!==o.id))}}getStackIds(){return Object.keys(this.viewStacks)}getAllViewItems(){const t=this.getStackIds(),n=[];return t.forEach(i=>{n.push(...this.viewStacks[i])}),n}}function pt(){return pt=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0;d--){var u=i[d];u==="."?pd(i,d):u===".."?(pd(i,d),c++):c&&(pd(i,d),c--)}if(!s)for(;c--;c)i.unshift("..");s&&i[0]!==""&&(!i[0]||!Js(i[0]))&&i.unshift("");var h=i.join("/");return a&&h.substr(-1)!=="/"&&(h+="/"),h}function tb(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}function ya(e,t){if(e===t)return!0;if(e==null||t==null)return!1;if(Array.isArray(e))return Array.isArray(t)&&e.length===t.length&&e.every(function(o,r){return ya(o,t[r])});if(typeof e=="object"||typeof t=="object"){var n=tb(e),i=tb(t);return n!==e||i!==t?ya(n,i):Object.keys(Object.assign({},e,t)).every(function(o){return ya(e[o],t[o])})}return!1}var yO="Invariant failed";function Ni(e,t){if(!e)throw new Error(yO)}function Lr(e){return e.charAt(0)==="/"?e:"/"+e}function nb(e){return e.charAt(0)==="/"?e.substr(1):e}function xO(e,t){return e.toLowerCase().indexOf(t.toLowerCase())===0&&"/?#".indexOf(e.charAt(t.length))!==-1}function Pw(e,t){return xO(e,t)?e.substr(t.length):e}function Aw(e){return e.charAt(e.length-1)==="/"?e.slice(0,-1):e}function wO(e){var t=e||"/",n="",i="",o=t.indexOf("#");o!==-1&&(i=t.substr(o),t=t.substr(0,o));var r=t.indexOf("?");return r!==-1&&(n=t.substr(r),t=t.substr(0,r)),{pathname:t,search:n==="?"?"":n,hash:i==="#"?"":i}}function Ot(e){var t=e.pathname,n=e.search,i=e.hash,o=t||"/";return n&&n!=="?"&&(o+=n.charAt(0)==="?"?n:"?"+n),i&&i!=="#"&&(o+=i.charAt(0)==="#"?i:"#"+i),o}function ct(e,t,n,i){var o;typeof e=="string"?(o=wO(e),o.state=t):(o=pt({},e),o.pathname===void 0&&(o.pathname=""),o.search?o.search.charAt(0)!=="?"&&(o.search="?"+o.search):o.search="",o.hash?o.hash.charAt(0)!=="#"&&(o.hash="#"+o.hash):o.hash="",t!==void 0&&o.state===void 0&&(o.state=t));try{o.pathname=decodeURI(o.pathname)}catch(r){throw r instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):r}return n&&(o.key=n),i?o.pathname?o.pathname.charAt(0)!=="/"&&(o.pathname=vO(o.pathname,i.pathname)):o.pathname=i.pathname:o.pathname||(o.pathname="/"),o}function kO(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&ya(e.state,t.state)}function Uf(){var e=null;function t(s){return e=s,function(){e===s&&(e=null)}}function n(s,a,l,c){if(e!=null){var d=typeof e=="function"?e(s,a):e;typeof d=="string"?typeof l=="function"?l(d,c):c(!0):c(d!==!1)}else c(!0)}var i=[];function o(s){var a=!0;function l(){a&&s.apply(void 0,arguments)}return i.push(l),function(){a=!1,i=i.filter(function(c){return c!==l})}}function r(){for(var s=arguments.length,a=new Array(s),l=0;lY?G.splice(Y,G.length-Y,R):G.push(R),d({action:D,location:R,index:Y,entries:G})}})}function x(C,A){var D="REPLACE",R=ct(C,A,u(),k.location);c.confirmTransitionTo(R,D,n,function(V){V&&(k.entries[k.index]=R,d({action:D,location:R}))})}function b(C){var A=ab(k.index+C,0,k.entries.length-1),D="POP",R=k.entries[A];c.confirmTransitionTo(R,D,n,function(V){V?d({action:D,location:R,index:A}):d()})}function g(){b(-1)}function v(){b(1)}function w(C){var A=k.index+C;return A>=0&&A=0)&&(n[o]=e[o]);return n}var Fw={exports:{}},de={};/** @license React v16.13.1 * react-is.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 We=typeof Symbol=="function"&&Symbol.for,Qf=We?Symbol.for("react.element"):60103,Zf=We?Symbol.for("react.portal"):60106,oc=We?Symbol.for("react.fragment"):60107,rc=We?Symbol.for("react.strict_mode"):60108,sc=We?Symbol.for("react.profiler"):60114,ac=We?Symbol.for("react.provider"):60109,lc=We?Symbol.for("react.context"):60110,Jf=We?Symbol.for("react.async_mode"):60111,cc=We?Symbol.for("react.concurrent_mode"):60111,dc=We?Symbol.for("react.forward_ref"):60112,uc=We?Symbol.for("react.suspense"):60113,ZO=We?Symbol.for("react.suspense_list"):60120,hc=We?Symbol.for("react.memo"):60115,fc=We?Symbol.for("react.lazy"):60116,JO=We?Symbol.for("react.block"):60121,e6=We?Symbol.for("react.fundamental"):60117,t6=We?Symbol.for("react.responder"):60118,n6=We?Symbol.for("react.scope"):60119;function Et(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Qf:switch(e=e.type,e){case Jf:case cc:case oc:case sc:case rc:case uc:return e;default:switch(e=e&&e.$$typeof,e){case lc:case dc:case fc:case hc:case ac:return e;default:return t}}case Zf:return t}}}function Hw(e){return Et(e)===cc}de.AsyncMode=Jf;de.ConcurrentMode=cc;de.ContextConsumer=lc;de.ContextProvider=ac;de.Element=Qf;de.ForwardRef=dc;de.Fragment=oc;de.Lazy=fc;de.Memo=hc;de.Portal=Zf;de.Profiler=sc;de.StrictMode=rc;de.Suspense=uc;de.isAsyncMode=function(e){return Hw(e)||Et(e)===Jf};de.isConcurrentMode=Hw;de.isContextConsumer=function(e){return Et(e)===lc};de.isContextProvider=function(e){return Et(e)===ac};de.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Qf};de.isForwardRef=function(e){return Et(e)===dc};de.isFragment=function(e){return Et(e)===oc};de.isLazy=function(e){return Et(e)===fc};de.isMemo=function(e){return Et(e)===hc};de.isPortal=function(e){return Et(e)===Zf};de.isProfiler=function(e){return Et(e)===sc};de.isStrictMode=function(e){return Et(e)===rc};de.isSuspense=function(e){return Et(e)===uc};de.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===oc||e===cc||e===sc||e===rc||e===uc||e===ZO||typeof e=="object"&&e!==null&&(e.$$typeof===fc||e.$$typeof===hc||e.$$typeof===ac||e.$$typeof===lc||e.$$typeof===dc||e.$$typeof===e6||e.$$typeof===t6||e.$$typeof===n6||e.$$typeof===JO)};de.typeOf=Et;Fw.exports=de;var i6=Fw.exports,ep=i6,o6={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},r6={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s6={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Nw={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},tp={};tp[ep.ForwardRef]=s6;tp[ep.Memo]=Nw;function cb(e){return ep.isMemo(e)?Nw:tp[e.$$typeof]||o6}var a6=Object.defineProperty,l6=Object.getOwnPropertyNames,db=Object.getOwnPropertySymbols,c6=Object.getOwnPropertyDescriptor,d6=Object.getPrototypeOf,ub=Object.prototype;function Uw(e,t,n){if(typeof t!="string"){if(ub){var i=d6(t);i&&i!==ub&&Uw(e,i,n)}var o=l6(t);db&&(o=o.concat(db(t)));for(var r=cb(e),s=cb(t),a=0;a{const{exact:n,component:i}=t,o=t.path||t.from,s=np(e,{exact:n,path:o,component:i});return s||!1};class D6 extends bO{constructor(){super(),this.createViewItem=this.createViewItem.bind(this),this.findViewItemByRouteInfo=this.findViewItemByRouteInfo.bind(this),this.findLeavingViewItemByRouteInfo=this.findLeavingViewItemByRouteInfo.bind(this),this.getChildrenToRender=this.getChildrenToRender.bind(this),this.findViewItemByPathname=this.findViewItemByPathname.bind(this)}createViewItem(t,n,i,o){const r={id:os("viewItem"),outletId:t,ionPageElement:o,reactElement:n,mount:!0,ionRoute:!1};return n.type===Nf&&(r.ionRoute=!0,r.disableIonPageManagement=n.props.disableIonPageManagement),r.routeData={match:rs({pathname:i.pathname,componentProps:n.props}),childProps:n.props},r}getChildrenToRender(t,n,i){const o=this.getViewItemsForOutlet(t);return P.Children.forEach(n.props.children,s=>{const a=o.find(l=>yb(s,l.routeData.childProps.path||l.routeData.childProps.from));a&&(a.reactElement=s)}),o.map(s=>{let a;if(s.ionRoute&&!s.disableIonPageManagement)a=P.createElement(eb,{key:`view-${s.id}`,mount:s.mount,removeView:()=>this.remove(s)},P.cloneElement(s.reactElement,{computedMatch:s.routeData.match}));else{const l=yb(s.reactElement,i.pathname);a=P.createElement(eb,{key:`view-${s.id}`,mount:s.mount,removeView:()=>this.remove(s)},P.cloneElement(s.reactElement,{computedMatch:s.routeData.match})),!l&&s.routeData.match&&(s.routeData.match=void 0,s.mount=!1)}return a})}findViewItemByRouteInfo(t,n,i){const{viewItem:o,match:r}=this.findViewItemByPath(t.pathname,n);return(i===void 0||i===!0)&&o&&r&&(o.routeData.match=r),o}findLeavingViewItemByRouteInfo(t,n,i=!0){const{viewItem:o}=this.findViewItemByPath(t.lastPathname,n,i);return o}findViewItemByPathname(t,n){const{viewItem:i}=this.findViewItemByPath(t,n);return i}findViewItemByPath(t,n,i){let o,r,s;if(n)s=this.getViewItemsForOutlet(n),s.some(a),o||s.some(l);else{const c=this.getAllViewItems();c.some(a),o||c.some(l)}return{viewItem:o,match:r};function a(c){var d,u;if(i&&!c.ionRoute)return!1;if(r=rs({pathname:t,componentProps:c.routeData.childProps}),r){const h=r.path.includes(":");if(!h||h&&r.url===((u=(d=c.routeData)===null||d===void 0?void 0:d.match)===null||u===void 0?void 0:u.url))return o=c,!0}return!1}function l(c){return!c.routeData.childProps.path&&!c.routeData.childProps.from?(r={path:t,url:t,isExact:!0,params:{}},o=c,!0):!1}}}function yb(e,t){return rs({pathname:t,componentProps:e.props})}function $6(e){let t;if(typeof e=="string"?t=e:t=e.outerHTML,document){const n=document.createElement("div");n.innerHTML=t,n.style.zIndex="";const i=n.getElementsByTagName("ion-back-button");return i[0]&&i[0].remove(),n.firstChild}}const xb=e=>!e.classList.contains("ion-page-invisible")&&!e.classList.contains("ion-page-hidden");class _6 extends P.PureComponent{constructor(t){super(t),this.stackContextValue={registerIonPage:this.registerIonPage.bind(this),isInOutlet:()=>!0},this.pendingPageTransition=!1,this.registerIonPage=this.registerIonPage.bind(this),this.transitionPage=this.transitionPage.bind(this),this.handlePageTransition=this.handlePageTransition.bind(this),this.id=os("routerOutlet"),this.prevProps=void 0,this.skipTransition=!1}componentDidMount(){this.clearOutletTimeout&&clearTimeout(this.clearOutletTimeout),this.routerOutletElement&&(this.setupRouterOutlet(this.routerOutletElement),this.handlePageTransition(this.props.routeInfo))}componentDidUpdate(t){const{pathname:n}=this.props.routeInfo,{pathname:i}=t.routeInfo;n!==i?(this.prevProps=t,this.handlePageTransition(this.props.routeInfo)):this.pendingPageTransition&&(this.handlePageTransition(this.props.routeInfo),this.pendingPageTransition=!1)}componentWillUnmount(){this.clearOutletTimeout=this.context.clearOutlet(this.id)}async handlePageTransition(t){var n,i;if(!this.routerOutletElement||!this.routerOutletElement.commit)this.pendingPageTransition=!0;else{let o=this.context.findViewItemByRouteInfo(t,this.id),r=this.context.findLeavingViewItemByRouteInfo(t,this.id);!r&&t.prevRouteLastPathname&&(r=this.context.findViewItemByPathname(t.prevRouteLastPathname,this.id)),r&&(t.routeAction==="replace"?r.mount=!1:t.routeAction==="push"&&t.routeDirection==="forward"?!((n=t.routeOptions)===null||n===void 0)&&n.unmount&&(r.mount=!1):t.routeDirection!=="none"&&o!==r&&(r.mount=!1));const s=z6((i=this.ionRouterOutlet)===null||i===void 0?void 0:i.props.children,t);if(o?o.reactElement=s:s&&(o=this.context.createViewItem(this.id,s,t),this.context.addViewItem(o)),o&&o.ionPageElement){if(o===r&&o.routeData.match.url!==t.pathname||(!r&&this.props.routeInfo.prevRouteLastPathname&&(r=this.context.findViewItemByPathname(this.props.routeInfo.prevRouteLastPathname,this.id)),xb(o.ionPageElement)&&r!==void 0&&!xb(r.ionPageElement)))return;this.transitionPage(t,o,r)}else r&&!s&&!o&&r.ionPageElement&&(r.ionPageElement.classList.add("ion-page-hidden"),r.ionPageElement.setAttribute("aria-hidden","true"));this.forceUpdate()}}registerIonPage(t,n){const i=this.context.findViewItemByRouteInfo(n,this.id);if(i){const o=i.ionPageElement;if(i.ionPageElement=t,i.ionRoute=!0,o===t)return}this.handlePageTransition(n)}async setupRouterOutlet(t){const n=()=>{const r=Ff();if(!(r&&r.get("swipeBackEnabled",t.mode==="ios")))return!1;const{routeInfo:a}=this.props,l=this.prevProps&&this.prevProps.routeInfo.pathname===a.pushedByRoute?this.prevProps.routeInfo:{pathname:a.pushedByRoute||""},c=this.context.findViewItemByRouteInfo(l,this.id,!1);return!!c&&c.mount&&c.routeData.match.path!==a.pathname},i=async()=>{const{routeInfo:r}=this.props,s=this.prevProps&&this.prevProps.routeInfo.pathname===r.pushedByRoute?this.prevProps.routeInfo:{pathname:r.pushedByRoute||""},a=this.context.findViewItemByRouteInfo(s,this.id,!1),l=this.context.findViewItemByRouteInfo(r,this.id,!1);return a&&l&&await this.transitionPage(r,a,l,"back",!0),Promise.resolve()},o=r=>{if(r)this.skipTransition=!0,this.context.goBack();else{const{routeInfo:s}=this.props,a=this.prevProps&&this.prevProps.routeInfo.pathname===s.pushedByRoute?this.prevProps.routeInfo:{pathname:s.pushedByRoute||""},l=this.context.findViewItemByRouteInfo(a,this.id,!1),c=this.context.findViewItemByRouteInfo(s,this.id,!1);if(l!==c&&(l==null?void 0:l.ionPageElement)!==void 0){const{ionPageElement:d}=l;d.setAttribute("aria-hidden","true"),d.classList.add("ion-page-hidden")}}};t.swipeHandler={canStart:n,onStart:i,onEnd:o}}async transitionPage(t,n,i,o,r=!1){const s=async(d,u)=>{const h=this.skipTransition;h?this.skipTransition=!1:(d.classList.add("ion-page"),d.classList.add("ion-page-invisible")),await a.commit(d,u,{duration:h||c===void 0?0:void 0,direction:c,showGoBack:!!t.pushedByRoute,progressAnimation:r,animationBuilder:t.routeAnimation})},a=this.routerOutletElement,l=t.routeDirection==="none"||t.routeDirection==="root"?void 0:t.routeDirection,c=o??l;if(n&&n.ionPageElement&&this.routerOutletElement)if(i&&i.ionPageElement&&n===i)if(M6(i.reactElement,t.pathname,!0)){const u=$6(i.ionPageElement.outerHTML);u&&(this.routerOutletElement.appendChild(u),await s(n.ionPageElement,u),this.routerOutletElement.removeChild(u))}else await s(n.ionPageElement,void 0);else await s(n.ionPageElement,i==null?void 0:i.ionPageElement),i&&i.ionPageElement&&!r&&(i.ionPageElement.classList.add("ion-page-hidden"),i.ionPageElement.setAttribute("aria-hidden","true"))}render(){const{children:t}=this.props,n=P.Children.only(t);this.ionRouterOutlet=n;const i=this.context.getChildrenToRender(this.id,this.ionRouterOutlet,this.props.routeInfo,()=>{this.forceUpdate()});return P.createElement(Hf.Provider,{value:this.stackContextValue},P.cloneElement(n,{ref:o=>{n.props.setRef&&n.props.setRef(o),n.props.forwardedRef&&(n.props.forwardedRef.current=o),this.routerOutletElement=o;const{ref:r}=n;typeof r=="function"&&r(o)}},i))}static get contextType(){return Tw}}function z6(e,t){let n;return P.Children.forEach(e,i=>{rs({pathname:t.pathname,componentProps:i.props})&&(n=i)}),n||(P.Children.forEach(e,i=>{i.props.path||i.props.from||(n=i)}),n)}function M6(e,t,n){return rs({pathname:t,componentProps:Object.assign(Object.assign({},e.props),{exact:n})})}class B6 extends P.PureComponent{constructor(t){super(t),this.exitViewFromOtherOutletHandlers=[],this.locationHistory=new mO,this.viewStack=new D6,this.routeMangerContextState={canGoBack:()=>this.locationHistory.canGoBack(),clearOutlet:this.viewStack.clear,findViewItemByPathname:this.viewStack.findViewItemByPathname,getChildrenToRender:this.viewStack.getChildrenToRender,goBack:()=>this.handleNavigateBack(),createViewItem:this.viewStack.createViewItem,findViewItemByRouteInfo:this.viewStack.findViewItemByRouteInfo,findLeavingViewItemByRouteInfo:this.viewStack.findLeavingViewItemByRouteInfo,addViewItem:this.viewStack.add,unMountViewItem:this.viewStack.remove};const n={id:os("routeInfo"),pathname:this.props.location.pathname,search:this.props.location.search};this.locationHistory.add(n),this.handleChangeTab=this.handleChangeTab.bind(this),this.handleResetTab=this.handleResetTab.bind(this),this.handleNativeBack=this.handleNativeBack.bind(this),this.handleNavigate=this.handleNavigate.bind(this),this.handleNavigateBack=this.handleNavigateBack.bind(this),this.props.registerHistoryListener(this.handleHistoryChange.bind(this)),this.handleSetCurrentTab=this.handleSetCurrentTab.bind(this),this.state={routeInfo:n}}handleChangeTab(t,n,i){if(!n)return;const o=this.locationHistory.getCurrentRouteInfoForTab(t),[r,s]=n.split("?");o?(this.incomingRouteParams=Object.assign(Object.assign({},o),{routeAction:"push",routeDirection:"none"}),o.pathname===r?(this.incomingRouteParams.routeOptions=i,this.props.history.push(o.pathname+(o.search||""))):(this.incomingRouteParams.pathname=r,this.incomingRouteParams.search=s?"?"+s:void 0,this.incomingRouteParams.routeOptions=i,this.props.history.push(r+(s?"?"+s:"")))):this.handleNavigate(r,"push","none",void 0,i,t)}handleHistoryChange(t,n){var i,o,r;let s;if(this.incomingRouteParams?this.incomingRouteParams.routeAction==="replace"?s=this.locationHistory.previous():s=this.locationHistory.current():s=this.locationHistory.current(),s.pathname+s.search!==t.pathname){if(!this.incomingRouteParams){if(n==="REPLACE"&&(this.incomingRouteParams={routeAction:"replace",routeDirection:"none",tab:this.currentTab}),n==="POP"){const c=this.locationHistory.current();if(c&&c.pushedByRoute){const d=this.locationHistory.findLastLocation(c);this.incomingRouteParams=Object.assign(Object.assign({},d),{routeAction:"pop",routeDirection:"back"})}else this.incomingRouteParams={routeAction:"pop",routeDirection:"none",tab:this.currentTab}}this.incomingRouteParams||(this.incomingRouteParams={routeAction:"push",routeDirection:((i=t.state)===null||i===void 0?void 0:i.direction)||"forward",routeOptions:(o=t.state)===null||o===void 0?void 0:o.routerOptions,tab:this.currentTab})}let l;if(!((r=this.incomingRouteParams)===null||r===void 0)&&r.id)l=Object.assign(Object.assign({},this.incomingRouteParams),{lastPathname:s.pathname}),this.locationHistory.add(l);else{const c=this.incomingRouteParams.routeAction==="push"&&this.incomingRouteParams.routeDirection==="forward";if(l=Object.assign(Object.assign({id:os("routeInfo")},this.incomingRouteParams),{lastPathname:s.pathname,pathname:t.pathname,search:t.search,params:this.props.match.params,prevRouteLastPathname:s.lastPathname}),c)l.tab=s.tab,l.pushedByRoute=s.pathname;else if(l.routeAction==="pop"){const d=this.locationHistory.findLastLocation(l);l.pushedByRoute=d==null?void 0:d.pushedByRoute}else if(l.routeAction==="push"&&l.tab!==s.tab){const d=this.locationHistory.getCurrentRouteInfoForTab(l.tab);l.pushedByRoute=d==null?void 0:d.pushedByRoute}else if(l.routeAction==="replace"){const d=this.locationHistory.current(),u=d==null?void 0:d.pushedByRoute,h=u!==void 0&&u!==l.pathname?u:l.pushedByRoute;l.lastPathname=(d==null?void 0:d.pathname)||l.lastPathname,l.prevRouteLastPathname=d==null?void 0:d.lastPathname,l.pushedByRoute=h,l.routeDirection=l.routeDirection||(d==null?void 0:d.routeDirection),l.routeAnimation=l.routeAnimation||(d==null?void 0:d.routeAnimation)}this.locationHistory.add(l)}this.setState({routeInfo:l})}this.incomingRouteParams=void 0}handleNativeBack(){const t=this.props.history;(t.goBack||t.back)()}handleNavigate(t,n,i,o,r,s){this.incomingRouteParams=Object.assign(this.incomingRouteParams||{},{routeAction:n,routeDirection:i,routeOptions:r,routeAnimation:o,tab:s}),n==="push"?this.props.history.push(t):this.props.history.replace(t)}handleNavigateBack(t="/",n){const i=Ff();t=t||i&&i.get("backButtonDefaultHref");const o=this.locationHistory.current();if(o&&o.pushedByRoute){const r=this.locationHistory.findLastLocation(o);if(r){const s=n||o.routeAnimation;if(this.incomingRouteParams=Object.assign(Object.assign({},r),{routeAction:"pop",routeDirection:"back",routeAnimation:s}),o.lastPathname===o.pushedByRoute||r.pathname===o.pushedByRoute&&o.tab===""&&r.tab===""){const a=this.props.history;(a.goBack||a.back)()}else this.handleNavigate(r.pathname+(r.search||""),"pop","back",s)}else this.handleNavigate(t,"pop","back",n)}else this.handleNavigate(t,"pop","back",n)}handleResetTab(t,n,i){const o=this.locationHistory.getFirstRouteInfoForTab(t);if(o){const r=Object.assign({},o);r.pathname=n,r.routeOptions=i,this.incomingRouteParams=Object.assign(Object.assign({},r),{routeAction:"pop",routeDirection:"back"}),this.props.history.push(r.pathname+(r.search||""))}}handleSetCurrentTab(t){this.currentTab=t;const n=Object.assign({},this.locationHistory.current());n.tab!==t&&(n.tab=t,this.locationHistory.update(n))}render(){return P.createElement(Tw.Provider,{value:this.routeMangerContextState},P.createElement(gO,{ionRoute:R6,ionRedirect:{},stackManager:_6,routeInfo:this.state.routeInfo,onNativeBack:this.handleNativeBack,onNavigateBack:this.handleNavigateBack,onNavigate:this.handleNavigate,onSetCurrentTab:this.handleSetCurrentTab,onChangeTab:this.handleChangeTab,onResetTab:this.handleResetTab,locationHistory:this.locationHistory},this.props.children))}}const pc=L6(B6);pc.displayName="IonRouter";class j6 extends P.Component{constructor(t){super(t);const{history:n}=t,i=Ke(t,["history"]);this.history=n||PO(i),this.history.listen(this.handleHistoryChange.bind(this)),this.registerHistoryListener=this.registerHistoryListener.bind(this)}handleHistoryChange(t,n){const i=t.location||t,o=t.action||n;this.historyListenHandler&&this.historyListenHandler(i,o)}registerHistoryListener(t){this.historyListenHandler=t}render(){const t=this.props,{children:n}=t,i=Ke(t,["children"]);return P.createElement(ws,Object.assign({history:this.history},i),P.createElement(pc,{registerHistoryListener:this.registerHistoryListener},n))}}class j8 extends P.Component{constructor(t){super(t),this.history=t.history,this.history.listen(this.handleHistoryChange.bind(this)),this.registerHistoryListener=this.registerHistoryListener.bind(this)}handleHistoryChange(t,n){const i=t.location||t,o=t.action||n;this.historyListenHandler&&this.historyListenHandler(i,o)}registerHistoryListener(t){this.historyListenHandler=t}render(){const t=this.props,{children:n}=t,i=Ke(t,["children"]);return P.createElement(ws,Object.assign({},i),P.createElement(pc,{registerHistoryListener:this.registerHistoryListener},n))}}class V8 extends P.Component{constructor(t){super(t);const{history:n}=t,i=Ke(t,["history"]);this.history=n||IO(i),this.history.listen(this.handleHistoryChange.bind(this)),this.registerHistoryListener=this.registerHistoryListener.bind(this)}handleHistoryChange(t,n){const i=t.location||t,o=t.action||n;this.historyListenHandler&&this.historyListenHandler(i,o)}registerHistoryListener(t){this.historyListenHandler=t}render(){const t=this.props,{children:n}=t,i=Ke(t,["children"]);return P.createElement(ws,Object.assign({history:this.history},i),P.createElement(pc,{registerHistoryListener:this.registerHistoryListener},n))}}const V6="data:image/svg+xml;utf8,",F6="data:image/svg+xml;utf8,";function H6(){return["CartPole-v1","LunarLander-v2","ConnectFour"]}function N6(e){return e.map(t=>({title:t,url:"/folder/"+t,iosIcon:V6,mdIcon:F6}))}const U6=()=>{const e=I6(),t=H6(),n=N6(t);return j.jsx(DI,{type:"overlay",id:"ion-menu",children:j.jsx(ww,{children:j.jsxs(Ku,{id:"inbox-list",children:[j.jsx(RI,{children:"LitRL Demo"}),j.jsx(zI,{children:j.jsx("a",{href:"https://github.com/c-gohlke/LightningRL",children:"Github"})}),n.map((i,o)=>j.jsx(_I,{autoHide:!1,children:j.jsxs(va,{className:e.pathname===i.url?"selected":"",routerLink:i.url,routerDirection:"none",lines:"none",detail:!1,children:[j.jsx(uO,{"aria-hidden":"true",slot:"start",ios:i.iosIcon,md:i.mdIcon}),j.jsx(OI,{children:i.title})]})},o))]})})})};function qw(e,t){return function(){return e.apply(t,arguments)}}const{toString:W6}=Object.prototype,{getPrototypeOf:op}=Object,mc=(e=>t=>{const n=W6.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),sn=e=>(e=e.toLowerCase(),t=>mc(t)===e),gc=e=>t=>typeof t===e,{isArray:Yo}=Array,ss=gc("undefined");function X6(e){return e!==null&&!ss(e)&&e.constructor!==null&&!ss(e.constructor)&&Bt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Yw=sn("ArrayBuffer");function q6(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Yw(e.buffer),t}const Y6=gc("string"),Bt=gc("function"),Kw=gc("number"),bc=e=>e!==null&&typeof e=="object",K6=e=>e===!0||e===!1,wa=e=>{if(mc(e)!=="object")return!1;const t=op(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},G6=sn("Date"),Q6=sn("File"),Z6=sn("Blob"),J6=sn("FileList"),e4=e=>bc(e)&&Bt(e.pipe),t4=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Bt(e.append)&&((t=mc(e))==="formdata"||t==="object"&&Bt(e.toString)&&e.toString()==="[object FormData]"))},n4=sn("URLSearchParams"),i4=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ks(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let i,o;if(typeof e!="object"&&(e=[e]),Yo(e))for(i=0,o=e.length;i0;)if(o=n[i],t===o.toLowerCase())return o;return null}const Qw=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Zw=e=>!ss(e)&&e!==Qw;function eh(){const{caseless:e}=Zw(this)&&this||{},t={},n=(i,o)=>{const r=e&&Gw(t,o)||o;wa(t[r])&&wa(i)?t[r]=eh(t[r],i):wa(i)?t[r]=eh({},i):Yo(i)?t[r]=i.slice():t[r]=i};for(let i=0,o=arguments.length;i(ks(t,(o,r)=>{n&&Bt(o)?e[r]=qw(o,n):e[r]=o},{allOwnKeys:i}),e),r4=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),s4=(e,t,n,i)=>{e.prototype=Object.create(t.prototype,i),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},a4=(e,t,n,i)=>{let o,r,s;const a={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),r=o.length;r-- >0;)s=o[r],(!i||i(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=n!==!1&&op(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},l4=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const i=e.indexOf(t,n);return i!==-1&&i===n},c4=e=>{if(!e)return null;if(Yo(e))return e;let t=e.length;if(!Kw(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},d4=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&op(Uint8Array)),u4=(e,t)=>{const i=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=i.next())&&!o.done;){const r=o.value;t.call(e,r[0],r[1])}},h4=(e,t)=>{let n;const i=[];for(;(n=e.exec(t))!==null;)i.push(n);return i},f4=sn("HTMLFormElement"),p4=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,i,o){return i.toUpperCase()+o}),wb=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),m4=sn("RegExp"),Jw=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),i={};ks(n,(o,r)=>{let s;(s=t(o,r,e))!==!1&&(i[r]=s||o)}),Object.defineProperties(e,i)},g4=e=>{Jw(e,(t,n)=>{if(Bt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const i=e[n];if(Bt(i)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},b4=(e,t)=>{const n={},i=o=>{o.forEach(r=>{n[r]=!0})};return Yo(e)?i(e):i(String(e).split(t)),n},v4=()=>{},y4=(e,t)=>(e=+e,Number.isFinite(e)?e:t),yd="abcdefghijklmnopqrstuvwxyz",kb="0123456789",ek={DIGIT:kb,ALPHA:yd,ALPHA_DIGIT:yd+yd.toUpperCase()+kb},x4=(e=16,t=ek.ALPHA_DIGIT)=>{let n="";const{length:i}=t;for(;e--;)n+=t[Math.random()*i|0];return n};function w4(e){return!!(e&&Bt(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const k4=e=>{const t=new Array(10),n=(i,o)=>{if(bc(i)){if(t.indexOf(i)>=0)return;if(!("toJSON"in i)){t[o]=i;const r=Yo(i)?[]:{};return ks(i,(s,a)=>{const l=n(s,o+1);!ss(l)&&(r[a]=l)}),t[o]=void 0,r}}return i};return n(e,0)},C4=sn("AsyncFunction"),S4=e=>e&&(bc(e)||Bt(e))&&Bt(e.then)&&Bt(e.catch),L={isArray:Yo,isArrayBuffer:Yw,isBuffer:X6,isFormData:t4,isArrayBufferView:q6,isString:Y6,isNumber:Kw,isBoolean:K6,isObject:bc,isPlainObject:wa,isUndefined:ss,isDate:G6,isFile:Q6,isBlob:Z6,isRegExp:m4,isFunction:Bt,isStream:e4,isURLSearchParams:n4,isTypedArray:d4,isFileList:J6,forEach:ks,merge:eh,extend:o4,trim:i4,stripBOM:r4,inherits:s4,toFlatObject:a4,kindOf:mc,kindOfTest:sn,endsWith:l4,toArray:c4,forEachEntry:u4,matchAll:h4,isHTMLForm:f4,hasOwnProperty:wb,hasOwnProp:wb,reduceDescriptors:Jw,freezeMethods:g4,toObjectSet:b4,toCamelCase:p4,noop:v4,toFiniteNumber:y4,findKey:Gw,global:Qw,isContextDefined:Zw,ALPHABET:ek,generateString:x4,isSpecCompliantForm:w4,toJSONObject:k4,isAsyncFn:C4,isThenable:S4};function se(e,t,n,i,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),i&&(this.request=i),o&&(this.response=o)}L.inherits(se,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:L.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const tk=se.prototype,nk={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{nk[e]={value:e}});Object.defineProperties(se,nk);Object.defineProperty(tk,"isAxiosError",{value:!0});se.from=(e,t,n,i,o,r)=>{const s=Object.create(tk);return L.toFlatObject(e,s,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),se.call(s,e.message,t,n,i,o),s.cause=e,s.name=e.name,r&&Object.assign(s,r),s};const E4=null;function th(e){return L.isPlainObject(e)||L.isArray(e)}function ik(e){return L.endsWith(e,"[]")?e.slice(0,-2):e}function Cb(e,t,n){return e?e.concat(t).map(function(o,r){return o=ik(o),!n&&r?"["+o+"]":o}).join(n?".":""):t}function T4(e){return L.isArray(e)&&!e.some(th)}const P4=L.toFlatObject(L,{},null,function(t){return/^is[A-Z]/.test(t)});function vc(e,t,n){if(!L.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=L.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,x){return!L.isUndefined(x[m])});const i=n.metaTokens,o=n.visitor||d,r=n.dots,s=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&L.isSpecCompliantForm(t);if(!L.isFunction(o))throw new TypeError("visitor must be a function");function c(p){if(p===null)return"";if(L.isDate(p))return p.toISOString();if(!l&&L.isBlob(p))throw new se("Blob is not supported. Use a Buffer instead.");return L.isArrayBuffer(p)||L.isTypedArray(p)?l&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function d(p,m,x){let b=p;if(p&&!x&&typeof p=="object"){if(L.endsWith(m,"{}"))m=i?m:m.slice(0,-2),p=JSON.stringify(p);else if(L.isArray(p)&&T4(p)||(L.isFileList(p)||L.endsWith(m,"[]"))&&(b=L.toArray(p)))return m=ik(m),b.forEach(function(v,w){!(L.isUndefined(v)||v===null)&&t.append(s===!0?Cb([m],w,r):s===null?m:m+"[]",c(v))}),!1}return th(p)?!0:(t.append(Cb(x,m,r),c(p)),!1)}const u=[],h=Object.assign(P4,{defaultVisitor:d,convertValue:c,isVisitable:th});function f(p,m){if(!L.isUndefined(p)){if(u.indexOf(p)!==-1)throw Error("Circular reference detected in "+m.join("."));u.push(p),L.forEach(p,function(b,g){(!(L.isUndefined(b)||b===null)&&o.call(t,b,L.isString(g)?g.trim():g,m,h))===!0&&f(b,m?m.concat(g):[g])}),u.pop()}}if(!L.isObject(e))throw new TypeError("data must be an object");return f(e),t}function Sb(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(i){return t[i]})}function rp(e,t){this._pairs=[],e&&vc(e,this,t)}const ok=rp.prototype;ok.append=function(t,n){this._pairs.push([t,n])};ok.toString=function(t){const n=t?function(i){return t.call(this,i,Sb)}:Sb;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function A4(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function rk(e,t,n){if(!t)return e;const i=n&&n.encode||A4,o=n&&n.serialize;let r;if(o?r=o(t,n):r=L.isURLSearchParams(t)?t.toString():new rp(t,n).toString(i),r){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+r}return e}class Eb{constructor(){this.handlers=[]}use(t,n,i){return this.handlers.push({fulfilled:t,rejected:n,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){L.forEach(this.handlers,function(i){i!==null&&t(i)})}}const sk={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},L4=typeof URLSearchParams<"u"?URLSearchParams:rp,I4=typeof FormData<"u"?FormData:null,O4=typeof Blob<"u"?Blob:null,R4={isBrowser:!0,classes:{URLSearchParams:L4,FormData:I4,Blob:O4},protocols:["http","https","file","blob","url","data"]},ak=typeof window<"u"&&typeof document<"u",D4=(e=>ak&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),$4=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",_4=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ak,hasStandardBrowserEnv:D4,hasStandardBrowserWebWorkerEnv:$4},Symbol.toStringTag,{value:"Module"})),tn={..._4,...R4};function z4(e,t){return vc(e,new tn.classes.URLSearchParams,Object.assign({visitor:function(n,i,o,r){return tn.isNode&&L.isBuffer(n)?(this.append(i,n.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}function M4(e){return L.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function B4(e){const t={},n=Object.keys(e);let i;const o=n.length;let r;for(i=0;i=n.length;return s=!s&&L.isArray(o)?o.length:s,l?(L.hasOwnProp(o,s)?o[s]=[o[s],i]:o[s]=i,!a):((!o[s]||!L.isObject(o[s]))&&(o[s]=[]),t(n,i,o[s],r)&&L.isArray(o[s])&&(o[s]=B4(o[s])),!a)}if(L.isFormData(e)&&L.isFunction(e.entries)){const n={};return L.forEachEntry(e,(i,o)=>{t(M4(i),o,n,0)}),n}return null}function j4(e,t,n){if(L.isString(e))try{return(t||JSON.parse)(e),L.trim(e)}catch(i){if(i.name!=="SyntaxError")throw i}return(n||JSON.stringify)(e)}const sp={transitional:sk,adapter:["xhr","http"],transformRequest:[function(t,n){const i=n.getContentType()||"",o=i.indexOf("application/json")>-1,r=L.isObject(t);if(r&&L.isHTMLForm(t)&&(t=new FormData(t)),L.isFormData(t))return o&&o?JSON.stringify(lk(t)):t;if(L.isArrayBuffer(t)||L.isBuffer(t)||L.isStream(t)||L.isFile(t)||L.isBlob(t))return t;if(L.isArrayBufferView(t))return t.buffer;if(L.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(r){if(i.indexOf("application/x-www-form-urlencoded")>-1)return z4(t,this.formSerializer).toString();if((a=L.isFileList(t))||i.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return vc(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return r||o?(n.setContentType("application/json",!1),j4(t)):t}],transformResponse:[function(t){const n=this.transitional||sp.transitional,i=n&&n.forcedJSONParsing,o=this.responseType==="json";if(t&&L.isString(t)&&(i&&!this.responseType||o)){const s=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(a){if(s)throw a.name==="SyntaxError"?se.from(a,se.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:tn.classes.FormData,Blob:tn.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};L.forEach(["delete","get","head","post","put","patch"],e=>{sp.headers[e]={}});const ap=sp,V4=L.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),F4=e=>{const t={};let n,i,o;return e&&e.split(` `).forEach(function(s){o=s.indexOf(":"),n=s.substring(0,o).trim().toLowerCase(),i=s.substring(o+1).trim(),!(!n||t[n]&&V4[n])&&(n==="set-cookie"?t[n]?t[n].push(i):t[n]=[i]:t[n]=t[n]?t[n]+", "+i:i)}),t},Tb=Symbol("internals");function lr(e){return e&&String(e).trim().toLowerCase()}function ka(e){return e===!1||e==null?e:L.isArray(e)?e.map(ka):String(e)}function H4(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=n.exec(e);)t[i[1]]=i[2];return t}const N4=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function xd(e,t,n,i,o){if(L.isFunction(i))return i.call(this,t,n);if(o&&(t=n),!!L.isString(t)){if(L.isString(i))return t.indexOf(i)!==-1;if(L.isRegExp(i))return i.test(t)}}function U4(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,i)=>n.toUpperCase()+i)}function W4(e,t){const n=L.toCamelCase(" "+t);["get","set","has"].forEach(i=>{Object.defineProperty(e,i+n,{value:function(o,r,s){return this[i].call(this,t,o,r,s)},configurable:!0})})}class yc{constructor(t){t&&this.set(t)}set(t,n,i){const o=this;function r(a,l,c){const d=lr(l);if(!d)throw new Error("header name must be a non-empty string");const u=L.findKey(o,d);(!u||o[u]===void 0||c===!0||c===void 0&&o[u]!==!1)&&(o[u||l]=ka(a))}const s=(a,l)=>L.forEach(a,(c,d)=>r(c,d,l));return L.isPlainObject(t)||t instanceof this.constructor?s(t,n):L.isString(t)&&(t=t.trim())&&!N4(t)?s(F4(t),n):t!=null&&r(n,t,i),this}get(t,n){if(t=lr(t),t){const i=L.findKey(this,t);if(i){const o=this[i];if(!n)return o;if(n===!0)return H4(o);if(L.isFunction(n))return n.call(this,o,i);if(L.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=lr(t),t){const i=L.findKey(this,t);return!!(i&&this[i]!==void 0&&(!n||xd(this,this[i],i,n)))}return!1}delete(t,n){const i=this;let o=!1;function r(s){if(s=lr(s),s){const a=L.findKey(i,s);a&&(!n||xd(i,i[a],a,n))&&(delete i[a],o=!0)}}return L.isArray(t)?t.forEach(r):r(t),o}clear(t){const n=Object.keys(this);let i=n.length,o=!1;for(;i--;){const r=n[i];(!t||xd(this,this[r],r,t,!0))&&(delete this[r],o=!0)}return o}normalize(t){const n=this,i={};return L.forEach(this,(o,r)=>{const s=L.findKey(i,r);if(s){n[s]=ka(o),delete n[r];return}const a=t?U4(r):String(r).trim();a!==r&&delete n[r],n[a]=ka(o),i[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return L.forEach(this,(i,o)=>{i!=null&&i!==!1&&(n[o]=t&&L.isArray(i)?i.join(", "):i)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const i=new this(t);return n.forEach(o=>i.set(o)),i}static accessor(t){const i=(this[Tb]=this[Tb]={accessors:{}}).accessors,o=this.prototype;function r(s){const a=lr(s);i[a]||(W4(o,s),i[a]=!0)}return L.isArray(t)?t.forEach(r):r(t),this}}yc.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);L.reduceDescriptors(yc.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(i){this[n]=i}}});L.freezeMethods(yc);const vn=yc;function wd(e,t){const n=this||ap,i=t||n,o=vn.from(i.headers);let r=i.data;return L.forEach(e,function(a){r=a.call(n,r,o.normalize(),t?t.status:void 0)}),o.normalize(),r}function ck(e){return!!(e&&e.__CANCEL__)}function Cs(e,t,n){se.call(this,e??"canceled",se.ERR_CANCELED,t,n),this.name="CanceledError"}L.inherits(Cs,se,{__CANCEL__:!0});function X4(e,t,n){const i=n.config.validateStatus;!n.status||!i||i(n.status)?e(n):t(new se("Request failed with status code "+n.status,[se.ERR_BAD_REQUEST,se.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const q4=tn.hasStandardBrowserEnv?{write(e,t,n,i,o,r){const s=[e+"="+encodeURIComponent(t)];L.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),L.isString(i)&&s.push("path="+i),L.isString(o)&&s.push("domain="+o),r===!0&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Y4(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function K4(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function dk(e,t){return e&&!Y4(t)?K4(e,t):t}const G4=tn.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let i;function o(r){let s=r;return t&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return i=o(window.location.href),function(s){const a=L.isString(s)?o(s):s;return a.protocol===i.protocol&&a.host===i.host}}():function(){return function(){return!0}}();function Q4(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Z4(e,t){e=e||10;const n=new Array(e),i=new Array(e);let o=0,r=0,s;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),d=i[r];s||(s=c),n[o]=l,i[o]=c;let u=r,h=0;for(;u!==o;)h+=n[u++],u=u%e;if(o=(o+1)%e,o===r&&(r=(r+1)%e),c-s{const r=o.loaded,s=o.lengthComputable?o.total:void 0,a=r-n,l=i(a),c=r<=s;n=r;const d={loaded:r,total:s,progress:s?r/s:void 0,bytes:a,rate:l||void 0,estimated:l&&s&&c?(s-r)/l:void 0,event:o};d[t?"download":"upload"]=!0,e(d)}}const J4=typeof XMLHttpRequest<"u",eR=J4&&function(e){return new Promise(function(n,i){let o=e.data;const r=vn.from(e.headers).normalize();let{responseType:s,withXSRFToken:a}=e,l;function c(){e.cancelToken&&e.cancelToken.unsubscribe(l),e.signal&&e.signal.removeEventListener("abort",l)}let d;if(L.isFormData(o)){if(tn.hasStandardBrowserEnv||tn.hasStandardBrowserWebWorkerEnv)r.setContentType(!1);else if((d=r.getContentType())!==!1){const[m,...x]=d?d.split(";").map(b=>b.trim()).filter(Boolean):[];r.setContentType([m||"multipart/form-data",...x].join("; "))}}let u=new XMLHttpRequest;if(e.auth){const m=e.auth.username||"",x=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";r.set("Authorization","Basic "+btoa(m+":"+x))}const h=dk(e.baseURL,e.url);u.open(e.method.toUpperCase(),rk(h,e.params,e.paramsSerializer),!0),u.timeout=e.timeout;function f(){if(!u)return;const m=vn.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),b={data:!s||s==="text"||s==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:m,config:e,request:u};X4(function(v){n(v),c()},function(v){i(v),c()},b),u=null}if("onloadend"in u?u.onloadend=f:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(f)},u.onabort=function(){u&&(i(new se("Request aborted",se.ECONNABORTED,e,u)),u=null)},u.onerror=function(){i(new se("Network Error",se.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){let x=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const b=e.transitional||sk;e.timeoutErrorMessage&&(x=e.timeoutErrorMessage),i(new se(x,b.clarifyTimeoutError?se.ETIMEDOUT:se.ECONNABORTED,e,u)),u=null},tn.hasStandardBrowserEnv&&(a&&L.isFunction(a)&&(a=a(e)),a||a!==!1&&G4(h))){const m=e.xsrfHeaderName&&e.xsrfCookieName&&q4.read(e.xsrfCookieName);m&&r.set(e.xsrfHeaderName,m)}o===void 0&&r.setContentType(null),"setRequestHeader"in u&&L.forEach(r.toJSON(),function(x,b){u.setRequestHeader(b,x)}),L.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),s&&s!=="json"&&(u.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&u.addEventListener("progress",Pb(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",Pb(e.onUploadProgress)),(e.cancelToken||e.signal)&&(l=m=>{u&&(i(!m||m.type?new Cs(null,e,u):m),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(l),e.signal&&(e.signal.aborted?l():e.signal.addEventListener("abort",l)));const p=Q4(h);if(p&&tn.protocols.indexOf(p)===-1){i(new se("Unsupported protocol "+p+":",se.ERR_BAD_REQUEST,e));return}u.send(o||null)})},nh={http:E4,xhr:eR};L.forEach(nh,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Ab=e=>`- ${e}`,tR=e=>L.isFunction(e)||e===null||e===!1,uk={getAdapter:e=>{e=L.isArray(e)?e:[e];const{length:t}=e;let n,i;const o={};for(let r=0;r`adapter ${a} `+(l===!1?"is not supported by the environment":"is not available in the build"));let s=t?r.length>1?`since : `+r.map(Ab).join(` `):" "+Ab(r[0]):"as no adapter specified";throw new se("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return i},adapters:nh};function kd(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Cs(null,e)}function Lb(e){return kd(e),e.headers=vn.from(e.headers),e.data=wd.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),uk.getAdapter(e.adapter||ap.adapter)(e).then(function(i){return kd(e),i.data=wd.call(e,e.transformResponse,i),i.headers=vn.from(i.headers),i},function(i){return ck(i)||(kd(e),i&&i.response&&(i.response.data=wd.call(e,e.transformResponse,i.response),i.response.headers=vn.from(i.response.headers))),Promise.reject(i)})}const Ib=e=>e instanceof vn?e.toJSON():e;function Mo(e,t){t=t||{};const n={};function i(c,d,u){return L.isPlainObject(c)&&L.isPlainObject(d)?L.merge.call({caseless:u},c,d):L.isPlainObject(d)?L.merge({},d):L.isArray(d)?d.slice():d}function o(c,d,u){if(L.isUndefined(d)){if(!L.isUndefined(c))return i(void 0,c,u)}else return i(c,d,u)}function r(c,d){if(!L.isUndefined(d))return i(void 0,d)}function s(c,d){if(L.isUndefined(d)){if(!L.isUndefined(c))return i(void 0,c)}else return i(void 0,d)}function a(c,d,u){if(u in t)return i(c,d);if(u in e)return i(void 0,c)}const l={url:r,method:r,data:r,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(c,d)=>o(Ib(c),Ib(d),!0)};return L.forEach(Object.keys(Object.assign({},e,t)),function(d){const u=l[d]||o,h=u(e[d],t[d],d);L.isUndefined(h)&&u!==a||(n[d]=h)}),n}const hk="1.6.5",lp={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{lp[e]=function(i){return typeof i===e||"a"+(t<1?"n ":" ")+e}});const Ob={};lp.transitional=function(t,n,i){function o(r,s){return"[Axios v"+hk+"] Transitional option '"+r+"'"+s+(i?". "+i:"")}return(r,s,a)=>{if(t===!1)throw new se(o(s," has been removed"+(n?" in "+n:"")),se.ERR_DEPRECATED);return n&&!Ob[s]&&(Ob[s]=!0,console.warn(o(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(r,s,a):!0}};function nR(e,t,n){if(typeof e!="object")throw new se("options must be an object",se.ERR_BAD_OPTION_VALUE);const i=Object.keys(e);let o=i.length;for(;o-- >0;){const r=i[o],s=t[r];if(s){const a=e[r],l=a===void 0||s(a,r,e);if(l!==!0)throw new se("option "+r+" must be "+l,se.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new se("Unknown option "+r,se.ERR_BAD_OPTION)}}const ih={assertOptions:nR,validators:lp},Rn=ih.validators;class cl{constructor(t){this.defaults=t,this.interceptors={request:new Eb,response:new Eb}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Mo(this.defaults,n);const{transitional:i,paramsSerializer:o,headers:r}=n;i!==void 0&&ih.assertOptions(i,{silentJSONParsing:Rn.transitional(Rn.boolean),forcedJSONParsing:Rn.transitional(Rn.boolean),clarifyTimeoutError:Rn.transitional(Rn.boolean)},!1),o!=null&&(L.isFunction(o)?n.paramsSerializer={serialize:o}:ih.assertOptions(o,{encode:Rn.function,serialize:Rn.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=r&&L.merge(r.common,r[n.method]);r&&L.forEach(["delete","get","head","post","put","patch","common"],p=>{delete r[p]}),n.headers=vn.concat(s,r);const a=[];let l=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(n)===!1||(l=l&&m.synchronous,a.unshift(m.fulfilled,m.rejected))});const c=[];this.interceptors.response.forEach(function(m){c.push(m.fulfilled,m.rejected)});let d,u=0,h;if(!l){const p=[Lb.bind(this),void 0];for(p.unshift.apply(p,a),p.push.apply(p,c),h=p.length,d=Promise.resolve(n);u{if(!i._listeners)return;let r=i._listeners.length;for(;r-- >0;)i._listeners[r](o);i._listeners=null}),this.promise.then=o=>{let r;const s=new Promise(a=>{i.subscribe(a),r=a}).then(o);return s.cancel=function(){i.unsubscribe(r)},s},t(function(r,s,a){i.reason||(i.reason=new Cs(r,s,a),n(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new cp(function(o){t=o}),cancel:t}}}const iR=cp;function oR(e){return function(n){return e.apply(null,n)}}function rR(e){return L.isObject(e)&&e.isAxiosError===!0}const oh={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(oh).forEach(([e,t])=>{oh[t]=e});const sR=oh;function fk(e){const t=new Ca(e),n=qw(Ca.prototype.request,t);return L.extend(n,Ca.prototype,t,{allOwnKeys:!0}),L.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return fk(Mo(e,o))},n}const ye=fk(ap);ye.Axios=Ca;ye.CanceledError=Cs;ye.CancelToken=iR;ye.isCancel=ck;ye.VERSION=hk;ye.toFormData=vc;ye.AxiosError=se;ye.Cancel=ye.CanceledError;ye.all=function(t){return Promise.all(t)};ye.spread=oR;ye.isAxiosError=rR;ye.mergeConfig=Mo;ye.AxiosHeaders=vn;ye.formToJSON=e=>lk(L.isHTMLForm(e)?new FormData(e):e);ye.getAdapter=uk.getAdapter;ye.HttpStatusCode=sR;ye.default=ye;const aR="https://c-gohlke-litrl-api.hf.space";async function lR(e){try{return(await ye.get(e,{responseType:"blob",headers:{"Content-Type":"application/json","Access-Control-Allow-Origin":"*"}})).data}catch(t){throw console.error("Error fetching blob:",t),t}}const cR=({name:e})=>{const t=X.useRef(null);return X.useEffect(()=>{(async()=>{const i=aR+"/get_huggingface_video?env_id="+e;console.log("getting blob from",i);const o=await lR(i),r=URL.createObjectURL(o);t.current.src=r})()},[]),j.jsx("div",{children:j.jsx("video",{ref:t,controls:!0,autoPlay:!0,loop:!0,muted:!0})})},dR="data:image/svg+xml,%3csvg%20width='70%20'%20height='70%20'%20viewBox='0%200%20126%20126'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='63'%20cy='63'%20r='61'%20fill='black'%20fill-opacity='0.6'/%3e%3ccircle%20cx='63'%20cy='63'%20r='61'%20fill='%23FD6687'%20fill-opacity='0.5'/%3e%3ccircle%20cx='63'%20cy='63'%20r='61'%20stroke='black'%20stroke-width='6'/%3e%3cpath%20d='M122%2064C122%2093.5472%2095.4529%20122%2062.592%20122C29.731%20122%204%2093.5472%204%2064C4%2034.4528%2029.731%2015%2062.592%2015C95.4529%2015%20122%2034.4528%20122%2064Z'%20fill='%23FD6687'/%3e%3c/svg%3e",uR="data:image/svg+xml,%3csvg%20width='70'%20height='70'%20viewBox='0%200%20126%20126'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='63'%20cy='63'%20r='61'%20fill='black'%20fill-opacity='0.6'/%3e%3ccircle%20cx='63'%20cy='63'%20r='61'%20fill='%23FFCE67'%20fill-opacity='0.5'/%3e%3ccircle%20cx='63'%20cy='63'%20r='61'%20stroke='black'%20stroke-width='6'/%3e%3cpath%20d='M122%2064C122%2093.5472%2095.4529%20122%2062.592%20122C29.731%20122%204%2093.5472%204%2064C4%2034.4528%2029.731%2015%2062.592%2015C95.4529%2015%20122%2034.4528%20122%2064Z'%20fill='%23FFCE67'/%3e%3c/svg%3e",hR="data:image/svg+xml,%3csvg%20width='37'%20height='36'%20viewBox='0%200%2037%2036'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0.999998%2015.9476L0.999999%205C0.999999%202.79086%202.79086%201%205%201L32%201C34.2091%201%2036%202.79086%2036%205L36%2015.9704C36%2017.2427%2035.3947%2018.4392%2034.3696%2019.1929L20.9877%2029.0328C19.5866%2030.0631%2017.6804%2030.07%2016.2719%2029.0499L2.65376%2019.1872C1.61501%2018.4349%200.999997%2017.2302%200.999998%2015.9476Z'%20fill='black'%20stroke='black'%20stroke-width='3'/%3e%3cpath%20d='M0.999998%2019.9476L0.999999%209C0.999999%206.79086%202.79086%205%205%205L32%205C34.2091%205%2036%206.79086%2036%209L36%2019.9704C36%2021.2427%2035.3947%2022.4392%2034.3696%2023.1929L20.9877%2033.0328C19.5866%2034.0631%2017.6804%2034.07%2016.2719%2033.0499L2.65376%2023.1872C1.61501%2022.4349%200.999997%2021.2302%200.999998%2019.9476Z'%20fill='%23FD6687'%20stroke='black'%20stroke-width='3'/%3e%3c/svg%3e",fR="data:image/svg+xml,%3csvg%20width='37'%20height='36'%20viewBox='0%200%2037%2036'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0.999998%2015.9476L0.999999%205C0.999999%202.79086%202.79086%201%205%201L32%201C34.2091%201%2036%202.79086%2036%205L36%2015.9704C36%2017.2427%2035.3947%2018.4392%2034.3696%2019.1929L20.9877%2029.0328C19.5866%2030.0631%2017.6804%2030.07%2016.2719%2029.0499L2.65376%2019.1872C1.61501%2018.4349%200.999997%2017.2302%200.999998%2015.9476Z'%20fill='black'%20stroke='black'%20stroke-width='3'/%3e%3cpath%20d='M0.999998%2019.9476L0.999999%209C0.999999%206.79086%202.79086%205%205%205L32%205C34.2091%205%2036%206.79086%2036%209L36%2019.9704C36%2021.2427%2035.3947%2022.4392%2034.3696%2023.1929L20.9877%2033.0328C19.5866%2034.0631%2017.6804%2034.07%2016.2719%2033.0499L2.65376%2023.1872C1.61501%2022.4349%200.999997%2021.2302%200.999998%2019.9476Z'%20fill='%23FFCE67'%20stroke='black'%20stroke-width='3'/%3e%3c/svg%3e",pk=X.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),xc=X.createContext({}),dp=X.createContext(null),wc=typeof document<"u",pR=wc?X.useLayoutEffect:X.useEffect,mk=X.createContext({strict:!1}),up=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),mR="framerAppearId",gk="data-"+up(mR);function gR(e,t,n,i){const{visualElement:o}=X.useContext(xc),r=X.useContext(mk),s=X.useContext(dp),a=X.useContext(pk).reducedMotion,l=X.useRef();i=i||r.renderer,!l.current&&i&&(l.current=i(e,{visualState:t,parent:o,props:n,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:a}));const c=l.current;X.useInsertionEffect(()=>{c&&c.update(n,s)});const d=X.useRef(!!(n[gk]&&!window.HandoffComplete));return pR(()=>{c&&(c.render(),d.current&&c.animationState&&c.animationState.animateChanges())}),X.useEffect(()=>{c&&(c.updateFeatures(),!d.current&&c.animationState&&c.animationState.animateChanges(),d.current&&(d.current=!1,window.HandoffComplete=!0))}),c}function po(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function bR(e,t,n){return X.useCallback(i=>{i&&e.mount&&e.mount(i),t&&(i?t.mount(i):t.unmount()),n&&(typeof n=="function"?n(i):po(n)&&(n.current=i))},[t])}function as(e){return typeof e=="string"||Array.isArray(e)}function kc(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const hp=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],fp=["initial",...hp];function Cc(e){return kc(e.animate)||fp.some(t=>as(e[t]))}function bk(e){return!!(Cc(e)||e.variants)}function vR(e,t){if(Cc(e)){const{initial:n,animate:i}=e;return{initial:n===!1||as(n)?n:void 0,animate:as(i)?i:void 0}}return e.inherit!==!1?t:{}}function yR(e){const{initial:t,animate:n}=vR(e,X.useContext(xc));return X.useMemo(()=>({initial:t,animate:n}),[Rb(t),Rb(n)])}function Rb(e){return Array.isArray(e)?e.join(" "):e}const Db={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},ls={};for(const e in Db)ls[e]={isEnabled:t=>Db[e].some(n=>!!t[n])};function xR(e){for(const t in e)ls[t]={...ls[t],...e[t]}}const vk=X.createContext({}),yk=X.createContext({}),wR=Symbol.for("motionComponentSymbol");function kR({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:i,Component:o}){e&&xR(e);function r(a,l){let c;const d={...X.useContext(pk),...a,layoutId:CR(a)},{isStatic:u}=d,h=yR(a),f=i(a,u);if(!u&&wc){h.visualElement=gR(o,f,d,t);const p=X.useContext(yk),m=X.useContext(mk).strict;h.visualElement&&(c=h.visualElement.loadFeatures(d,m,e,p))}return X.createElement(xc.Provider,{value:h},c&&h.visualElement?X.createElement(c,{visualElement:h.visualElement,...d}):null,n(o,a,bR(f,h.visualElement,l),f,u,h.visualElement))}const s=X.forwardRef(r);return s[wR]=o,s}function CR({layoutId:e}){const t=X.useContext(vk).id;return t&&e!==void 0?t+"-"+e:e}function SR(e){function t(i,o={}){return kR(e(i,o))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(i,o)=>(n.has(o)||n.set(o,t(o)),n.get(o))})}const ER=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function pp(e){return typeof e!="string"||e.includes("-")?!1:!!(ER.indexOf(e)>-1||/[A-Z]/.test(e))}const dl={};function TR(e){Object.assign(dl,e)}const Ss=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ui=new Set(Ss);function xk(e,{layout:t,layoutId:n}){return Ui.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!dl[e]||e==="opacity")}const mt=e=>!!(e&&e.getVelocity),PR={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},AR=Ss.length;function LR(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},i,o){let r="";for(let s=0;st=>typeof t=="string"&&t.startsWith(e),kk=wk("--"),rh=wk("var(--"),IR=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,OR=(e,t)=>t&&typeof e=="number"?t.transform(e):e,oi=(e,t,n)=>Math.min(Math.max(n,e),t),Wi={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Ir={...Wi,transform:e=>oi(0,1,e)},ea={...Wi,default:1},Or=e=>Math.round(e*1e5)/1e5,Sc=/(-)?([\d]*\.?[\d])+/g,Ck=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,RR=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Es(e){return typeof e=="string"}const Ts=e=>({test:t=>Es(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Dn=Ts("deg"),rn=Ts("%"),K=Ts("px"),DR=Ts("vh"),$R=Ts("vw"),$b={...rn,parse:e=>rn.parse(e)/100,transform:e=>rn.transform(e*100)},_b={...Wi,transform:Math.round},Sk={borderWidth:K,borderTopWidth:K,borderRightWidth:K,borderBottomWidth:K,borderLeftWidth:K,borderRadius:K,radius:K,borderTopLeftRadius:K,borderTopRightRadius:K,borderBottomRightRadius:K,borderBottomLeftRadius:K,width:K,maxWidth:K,height:K,maxHeight:K,size:K,top:K,right:K,bottom:K,left:K,padding:K,paddingTop:K,paddingRight:K,paddingBottom:K,paddingLeft:K,margin:K,marginTop:K,marginRight:K,marginBottom:K,marginLeft:K,rotate:Dn,rotateX:Dn,rotateY:Dn,rotateZ:Dn,scale:ea,scaleX:ea,scaleY:ea,scaleZ:ea,skew:Dn,skewX:Dn,skewY:Dn,distance:K,translateX:K,translateY:K,translateZ:K,x:K,y:K,z:K,perspective:K,transformPerspective:K,opacity:Ir,originX:$b,originY:$b,originZ:K,zIndex:_b,fillOpacity:Ir,strokeOpacity:Ir,numOctaves:_b};function mp(e,t,n,i){const{style:o,vars:r,transform:s,transformOrigin:a}=e;let l=!1,c=!1,d=!0;for(const u in t){const h=t[u];if(kk(u)){r[u]=h;continue}const f=Sk[u],p=OR(h,f);if(Ui.has(u)){if(l=!0,s[u]=p,!d)continue;h!==(f.default||0)&&(d=!1)}else u.startsWith("origin")?(c=!0,a[u]=p):o[u]=p}if(t.transform||(l||i?o.transform=LR(e.transform,n,d,i):o.transform&&(o.transform="none")),c){const{originX:u="50%",originY:h="50%",originZ:f=0}=a;o.transformOrigin=`${u} ${h} ${f}`}}const gp=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Ek(e,t,n){for(const i in t)!mt(t[i])&&!xk(i,n)&&(e[i]=t[i])}function _R({transformTemplate:e},t,n){return X.useMemo(()=>{const i=gp();return mp(i,t,{enableHardwareAcceleration:!n},e),Object.assign({},i.vars,i.style)},[t])}function zR(e,t,n){const i=e.style||{},o={};return Ek(o,i,e),Object.assign(o,_R(e,t,n)),e.transformValues?e.transformValues(o):o}function MR(e,t,n){const i={},o=zR(e,t,n);return e.drag&&e.dragListener!==!1&&(i.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(i.tabIndex=0),i.style=o,i}const BR=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function ul(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||BR.has(e)}let Tk=e=>!ul(e);function jR(e){e&&(Tk=t=>t.startsWith("on")?!ul(t):e(t))}try{jR(require("@emotion/is-prop-valid").default)}catch{}function VR(e,t,n){const i={};for(const o in e)o==="values"&&typeof e.values=="object"||(Tk(o)||n===!0&&ul(o)||!t&&!ul(o)||e.draggable&&o.startsWith("onDrag"))&&(i[o]=e[o]);return i}function zb(e,t,n){return typeof e=="string"?e:K.transform(t+n*e)}function FR(e,t,n){const i=zb(t,e.x,e.width),o=zb(n,e.y,e.height);return`${i} ${o}`}const HR={offset:"stroke-dashoffset",array:"stroke-dasharray"},NR={offset:"strokeDashoffset",array:"strokeDasharray"};function UR(e,t,n=1,i=0,o=!0){e.pathLength=1;const r=o?HR:NR;e[r.offset]=K.transform(-i);const s=K.transform(t),a=K.transform(n);e[r.array]=`${s} ${a}`}function bp(e,{attrX:t,attrY:n,attrScale:i,originX:o,originY:r,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...c},d,u,h){if(mp(e,c,d,h),u){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:p,dimensions:m}=e;f.transform&&(m&&(p.transform=f.transform),delete f.transform),m&&(o!==void 0||r!==void 0||p.transform)&&(p.transformOrigin=FR(m,o!==void 0?o:.5,r!==void 0?r:.5)),t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),i!==void 0&&(f.scale=i),s!==void 0&&UR(f,s,a,l,!1)}const Pk=()=>({...gp(),attrs:{}}),vp=e=>typeof e=="string"&&e.toLowerCase()==="svg";function WR(e,t,n,i){const o=X.useMemo(()=>{const r=Pk();return bp(r,t,{enableHardwareAcceleration:!1},vp(i),e.transformTemplate),{...r.attrs,style:{...r.style}}},[t]);if(e.style){const r={};Ek(r,e.style,e),o.style={...r,...o.style}}return o}function XR(e=!1){return(n,i,o,{latestValues:r},s)=>{const l=(pp(n)?WR:MR)(i,r,s,n),d={...VR(i,typeof n=="string",e),...l,ref:o},{children:u}=i,h=X.useMemo(()=>mt(u)?u.get():u,[u]);return X.createElement(n,{...d,children:h})}}function Ak(e,{style:t,vars:n},i,o){Object.assign(e.style,t,o&&o.getProjectionStyles(i));for(const r in n)e.style.setProperty(r,n[r])}const Lk=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Ik(e,t,n,i){Ak(e,t,void 0,i);for(const o in t.attrs)e.setAttribute(Lk.has(o)?o:up(o),t.attrs[o])}function yp(e,t){const{style:n}=e,i={};for(const o in n)(mt(n[o])||t.style&&mt(t.style[o])||xk(o,e))&&(i[o]=n[o]);return i}function Ok(e,t){const n=yp(e,t);for(const i in e)if(mt(e[i])||mt(t[i])){const o=Ss.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;n[o]=e[i]}return n}function xp(e,t,n,i={},o={}){return typeof t=="function"&&(t=t(n!==void 0?n:e.custom,i,o)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(n!==void 0?n:e.custom,i,o)),t}function qR(e){const t=X.useRef(null);return t.current===null&&(t.current=e()),t.current}const hl=e=>Array.isArray(e),YR=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),KR=e=>hl(e)?e[e.length-1]||0:e;function Sa(e){const t=mt(e)?e.get():e;return YR(t)?t.toValue():t}function GR({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},i,o,r){const s={latestValues:QR(i,o,r,e),renderState:t()};return n&&(s.mount=a=>n(i,a,s)),s}const Rk=e=>(t,n)=>{const i=X.useContext(xc),o=X.useContext(dp),r=()=>GR(e,t,i,o);return n?r():qR(r)};function QR(e,t,n,i){const o={},r=i(e,{});for(const h in r)o[h]=Sa(r[h]);let{initial:s,animate:a}=e;const l=Cc(e),c=bk(e);t&&c&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),a===void 0&&(a=t.animate));let d=n?n.initial===!1:!1;d=d||s===!1;const u=d?a:s;return u&&typeof u!="boolean"&&!kc(u)&&(Array.isArray(u)?u:[u]).forEach(f=>{const p=xp(e,f);if(!p)return;const{transitionEnd:m,transition:x,...b}=p;for(const g in b){let v=b[g];if(Array.isArray(v)){const w=d?v.length-1:0;v=v[w]}v!==null&&(o[g]=v)}for(const g in m)o[g]=m[g]}),o}const Re=e=>e;class Mb{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const n=this.order.indexOf(t);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function ZR(e){let t=new Mb,n=new Mb,i=0,o=!1,r=!1;const s=new WeakSet,a={schedule:(l,c=!1,d=!1)=>{const u=d&&o,h=u?t:n;return c&&s.add(l),h.add(l)&&u&&o&&(i=t.order.length),l},cancel:l=>{n.remove(l),s.delete(l)},process:l=>{if(o){r=!0;return}if(o=!0,[t,n]=[n,t],n.clear(),i=t.order.length,i)for(let c=0;c(u[h]=ZR(()=>n=!0),u),{}),s=u=>r[u].process(o),a=()=>{const u=performance.now();n=!1,o.delta=i?1e3/60:Math.max(Math.min(u-o.timestamp,JR),1),o.timestamp=u,o.isProcessing=!0,ta.forEach(s),o.isProcessing=!1,n&&t&&(i=!1,e(a))},l=()=>{n=!0,i=!0,o.isProcessing||e(a)};return{schedule:ta.reduce((u,h)=>{const f=r[h];return u[h]=(p,m=!1,x=!1)=>(n||l(),f.schedule(p,m,x)),u},{}),cancel:u=>ta.forEach(h=>r[h].cancel(u)),state:o,steps:r}}const{schedule:ve,cancel:Tn,state:Ze,steps:Cd}=eD(typeof requestAnimationFrame<"u"?requestAnimationFrame:Re,!0),tD={useVisualState:Rk({scrapeMotionValuesFromProps:Ok,createRenderState:Pk,onMount:(e,t,{renderState:n,latestValues:i})=>{ve.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),ve.render(()=>{bp(n,i,{enableHardwareAcceleration:!1},vp(t.tagName),e.transformTemplate),Ik(t,n)})}})},nD={useVisualState:Rk({scrapeMotionValuesFromProps:yp,createRenderState:gp})};function iD(e,{forwardMotionProps:t=!1},n,i){return{...pp(e)?tD:nD,preloadedFeatures:n,useRender:XR(t),createVisualElement:i,Component:e}}function mn(e,t,n,i={passive:!0}){return e.addEventListener(t,n,i),()=>e.removeEventListener(t,n)}const Dk=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Ec(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const oD=e=>t=>Dk(t)&&e(t,Ec(t));function yn(e,t,n,i){return mn(e,t,oD(n),i)}const rD=(e,t)=>n=>t(e(n)),Qn=(...e)=>e.reduce(rD);function $k(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const Bb=$k("dragHorizontal"),jb=$k("dragVertical");function _k(e){let t=!1;if(e==="y")t=jb();else if(e==="x")t=Bb();else{const n=Bb(),i=jb();n&&i?t=()=>{n(),i()}:(n&&n(),i&&i())}return t}function zk(){const e=_k(!0);return e?(e(),!1):!0}class ci{constructor(t){this.isMounted=!1,this.node=t}update(){}}function Vb(e,t){const n="pointer"+(t?"enter":"leave"),i="onHover"+(t?"Start":"End"),o=(r,s)=>{if(r.pointerType==="touch"||zk())return;const a=e.getProps();e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",t),a[i]&&ve.update(()=>a[i](r,s))};return yn(e.current,n,o,{passive:!e.getProps()[i]})}class sD extends ci{mount(){this.unmount=Qn(Vb(this.node,!0),Vb(this.node,!1))}unmount(){}}class aD extends ci{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Qn(mn(this.node.current,"focus",()=>this.onFocus()),mn(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const Mk=(e,t)=>t?e===t?!0:Mk(e,t.parentElement):!1;function Sd(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,Ec(n))}class lD extends ci{constructor(){super(...arguments),this.removeStartListeners=Re,this.removeEndListeners=Re,this.removeAccessibleListeners=Re,this.startPointerPress=(t,n)=>{if(this.removeEndListeners(),this.isPressing)return;const i=this.node.getProps(),r=yn(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:c,onTapCancel:d}=this.node.getProps();ve.update(()=>{Mk(this.node.current,a.target)?c&&c(a,l):d&&d(a,l)})},{passive:!(i.onTap||i.onPointerUp)}),s=yn(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(i.onTapCancel||i.onPointerCancel)});this.removeEndListeners=Qn(r,s),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=r=>{if(r.key!=="Enter"||this.isPressing)return;const s=a=>{a.key!=="Enter"||!this.checkPressEnd()||Sd("up",(l,c)=>{const{onTap:d}=this.node.getProps();d&&ve.update(()=>d(l,c))})};this.removeEndListeners(),this.removeEndListeners=mn(this.node.current,"keyup",s),Sd("down",(a,l)=>{this.startPress(a,l)})},n=mn(this.node.current,"keydown",t),i=()=>{this.isPressing&&Sd("cancel",(r,s)=>this.cancelPress(r,s))},o=mn(this.node.current,"blur",i);this.removeAccessibleListeners=Qn(n,o)}}startPress(t,n){this.isPressing=!0;const{onTapStart:i,whileTap:o}=this.node.getProps();o&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),i&&ve.update(()=>i(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!zk()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:i}=this.node.getProps();i&&ve.update(()=>i(t,n))}mount(){const t=this.node.getProps(),n=yn(this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),i=mn(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Qn(n,i)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const sh=new WeakMap,Ed=new WeakMap,cD=e=>{const t=sh.get(e.target);t&&t(e)},dD=e=>{e.forEach(cD)};function uD({root:e,...t}){const n=e||document;Ed.has(n)||Ed.set(n,{});const i=Ed.get(n),o=JSON.stringify(t);return i[o]||(i[o]=new IntersectionObserver(dD,{root:e,...t})),i[o]}function hD(e,t,n){const i=uD(t);return sh.set(e,n),i.observe(e),()=>{sh.delete(e),i.unobserve(e)}}const fD={some:0,all:1};class pD extends ci{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:i,amount:o="some",once:r}=t,s={root:n?n.current:void 0,rootMargin:i,threshold:typeof o=="number"?o:fD[o]},a=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,r&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:d,onViewportLeave:u}=this.node.getProps(),h=c?d:u;h&&h(l)};return hD(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(mD(t,n))&&this.startObserver()}unmount(){}}function mD({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const gD={inView:{Feature:pD},tap:{Feature:lD},focus:{Feature:aD},hover:{Feature:sD}};function Bk(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let i=0;it[i]=n.get()),t}function vD(e){const t={};return e.values.forEach((n,i)=>t[i]=n.getVelocity()),t}function Tc(e,t,n){const i=e.getProps();return xp(i,t,n!==void 0?n:i.custom,bD(e),vD(e))}let wp=Re;const Ti=e=>e*1e3,xn=e=>e/1e3,yD={current:!1},jk=e=>Array.isArray(e)&&typeof e[0]=="number";function Vk(e){return!!(!e||typeof e=="string"&&Fk[e]||jk(e)||Array.isArray(e)&&e.every(Vk))}const gr=([e,t,n,i])=>`cubic-bezier(${e}, ${t}, ${n}, ${i})`,Fk={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:gr([0,.65,.55,1]),circOut:gr([.55,0,1,.45]),backIn:gr([.31,.01,.66,-.59]),backOut:gr([.33,1.53,.69,.99])};function Hk(e){if(e)return jk(e)?gr(e):Array.isArray(e)?e.map(Hk):Fk[e]}function xD(e,t,n,{delay:i=0,duration:o,repeat:r=0,repeatType:s="loop",ease:a,times:l}={}){const c={[t]:n};l&&(c.offset=l);const d=Hk(a);return Array.isArray(d)&&(c.easing=d),e.animate(c,{delay:i,duration:o,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:r+1,direction:s==="reverse"?"alternate":"normal"})}function wD(e,{repeat:t,repeatType:n="loop"}){const i=t&&n!=="loop"&&t%2===1?0:e.length-1;return e[i]}const Nk=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,kD=1e-7,CD=12;function SD(e,t,n,i,o){let r,s,a=0;do s=t+(n-t)/2,r=Nk(s,i,o)-e,r>0?n=s:t=s;while(Math.abs(r)>kD&&++aSD(r,0,1,e,n);return r=>r===0||r===1?r:Nk(o(r),t,i)}const ED=Ps(.42,0,1,1),TD=Ps(0,0,.58,1),Uk=Ps(.42,0,.58,1),PD=e=>Array.isArray(e)&&typeof e[0]!="number",Wk=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Xk=e=>t=>1-e(1-t),kp=e=>1-Math.sin(Math.acos(e)),qk=Xk(kp),AD=Wk(kp),Yk=Ps(.33,1.53,.69,.99),Cp=Xk(Yk),LD=Wk(Cp),ID=e=>(e*=2)<1?.5*Cp(e):.5*(2-Math.pow(2,-10*(e-1))),OD={linear:Re,easeIn:ED,easeInOut:Uk,easeOut:TD,circIn:kp,circInOut:AD,circOut:qk,backIn:Cp,backInOut:LD,backOut:Yk,anticipate:ID},Fb=e=>{if(Array.isArray(e)){wp(e.length===4);const[t,n,i,o]=e;return Ps(t,n,i,o)}else if(typeof e=="string")return OD[e];return e},Sp=(e,t)=>n=>!!(Es(n)&&RR.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),Kk=(e,t,n)=>i=>{if(!Es(i))return i;const[o,r,s,a]=i.match(Sc);return{[e]:parseFloat(o),[t]:parseFloat(r),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},RD=e=>oi(0,255,e),Td={...Wi,transform:e=>Math.round(RD(e))},Ci={test:Sp("rgb","red"),parse:Kk("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:i=1})=>"rgba("+Td.transform(e)+", "+Td.transform(t)+", "+Td.transform(n)+", "+Or(Ir.transform(i))+")"};function DD(e){let t="",n="",i="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),i=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),i=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,i+=i,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:o?parseInt(o,16)/255:1}}const ah={test:Sp("#"),parse:DD,transform:Ci.transform},mo={test:Sp("hsl","hue"),parse:Kk("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:i=1})=>"hsla("+Math.round(e)+", "+rn.transform(Or(t))+", "+rn.transform(Or(n))+", "+Or(Ir.transform(i))+")"},nt={test:e=>Ci.test(e)||ah.test(e)||mo.test(e),parse:e=>Ci.test(e)?Ci.parse(e):mo.test(e)?mo.parse(e):ah.parse(e),transform:e=>Es(e)?e:e.hasOwnProperty("red")?Ci.transform(e):mo.transform(e)},Se=(e,t,n)=>-n*e+n*t+e;function Pd(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function $D({hue:e,saturation:t,lightness:n,alpha:i}){e/=360,t/=100,n/=100;let o=0,r=0,s=0;if(!t)o=r=s=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;o=Pd(l,a,e+1/3),r=Pd(l,a,e),s=Pd(l,a,e-1/3)}return{red:Math.round(o*255),green:Math.round(r*255),blue:Math.round(s*255),alpha:i}}const Ad=(e,t,n)=>{const i=e*e;return Math.sqrt(Math.max(0,n*(t*t-i)+i))},_D=[ah,Ci,mo],zD=e=>_D.find(t=>t.test(e));function Hb(e){const t=zD(e);let n=t.parse(e);return t===mo&&(n=$D(n)),n}const Gk=(e,t)=>{const n=Hb(e),i=Hb(t),o={...n};return r=>(o.red=Ad(n.red,i.red,r),o.green=Ad(n.green,i.green,r),o.blue=Ad(n.blue,i.blue,r),o.alpha=Se(n.alpha,i.alpha,r),Ci.transform(o))};function MD(e){var t,n;return isNaN(e)&&Es(e)&&(((t=e.match(Sc))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(Ck))===null||n===void 0?void 0:n.length)||0)>0}const Qk={regex:IR,countKey:"Vars",token:"${v}",parse:Re},Zk={regex:Ck,countKey:"Colors",token:"${c}",parse:nt.parse},Jk={regex:Sc,countKey:"Numbers",token:"${n}",parse:Wi.parse};function Ld(e,{regex:t,countKey:n,token:i,parse:o}){const r=e.tokenised.match(t);r&&(e["num"+n]=r.length,e.tokenised=e.tokenised.replace(t,i),e.values.push(...r.map(o)))}function fl(e){const t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&Ld(n,Qk),Ld(n,Zk),Ld(n,Jk),n}function e1(e){return fl(e).values}function t1(e){const{values:t,numColors:n,numVars:i,tokenised:o}=fl(e),r=t.length;return s=>{let a=o;for(let l=0;ltypeof e=="number"?0:e;function jD(e){const t=e1(e);return t1(e)(t.map(BD))}const ri={test:MD,parse:e1,createTransformer:t1,getAnimatableNone:jD},n1=(e,t)=>n=>`${n>0?t:e}`;function i1(e,t){return typeof e=="number"?n=>Se(e,t,n):nt.test(e)?Gk(e,t):e.startsWith("var(")?n1(e,t):r1(e,t)}const o1=(e,t)=>{const n=[...e],i=n.length,o=e.map((r,s)=>i1(r,t[s]));return r=>{for(let s=0;s{const n={...e,...t},i={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(i[o]=i1(e[o],t[o]));return o=>{for(const r in i)n[r]=i[r](o);return n}},r1=(e,t)=>{const n=ri.createTransformer(t),i=fl(e),o=fl(t);return i.numVars===o.numVars&&i.numColors===o.numColors&&i.numNumbers>=o.numNumbers?Qn(o1(i.values,o.values),n):n1(e,t)},cs=(e,t,n)=>{const i=t-e;return i===0?1:(n-e)/i},Nb=(e,t)=>n=>Se(e,t,n);function FD(e){return typeof e=="number"?Nb:typeof e=="string"?nt.test(e)?Gk:r1:Array.isArray(e)?o1:typeof e=="object"?VD:Nb}function HD(e,t,n){const i=[],o=n||FD(e[0]),r=e.length-1;for(let s=0;st[0];e[0]>e[r-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=HD(t,i,o),a=s.length,l=c=>{let d=0;if(a>1)for(;dl(oi(e[0],e[r-1],c)):l}function ND(e,t){const n=e[e.length-1];for(let i=1;i<=t;i++){const o=cs(0,t,i);e.push(Se(n,1,o))}}function UD(e){const t=[0];return ND(t,e.length-1),t}function WD(e,t){return e.map(n=>n*t)}function XD(e,t){return e.map(()=>t||Uk).splice(0,e.length-1)}function pl({duration:e=300,keyframes:t,times:n,ease:i="easeInOut"}){const o=PD(i)?i.map(Fb):Fb(i),r={done:!1,value:t[0]},s=WD(n&&n.length===t.length?n:UD(t),e),a=s1(s,t,{ease:Array.isArray(o)?o:XD(t,o)});return{calculatedDuration:e,next:l=>(r.value=a(l),r.done=l>=e,r)}}function a1(e,t){return t?e*(1e3/t):0}const qD=5;function l1(e,t,n){const i=Math.max(t-qD,0);return a1(n-e(i),t-i)}const Id=.001,YD=.01,KD=10,GD=.05,QD=1;function ZD({duration:e=800,bounce:t=.25,velocity:n=0,mass:i=1}){let o,r,s=1-t;s=oi(GD,QD,s),e=oi(YD,KD,xn(e)),s<1?(o=c=>{const d=c*s,u=d*e,h=d-n,f=lh(c,s),p=Math.exp(-u);return Id-h/f*p},r=c=>{const u=c*s*e,h=u*n+n,f=Math.pow(s,2)*Math.pow(c,2)*e,p=Math.exp(-u),m=lh(Math.pow(c,2),s);return(-o(c)+Id>0?-1:1)*((h-f)*p)/m}):(o=c=>{const d=Math.exp(-c*e),u=(c-n)*e+1;return-Id+d*u},r=c=>{const d=Math.exp(-c*e),u=(n-c)*(e*e);return d*u});const a=5/e,l=e$(o,r,a);if(e=Ti(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{const c=Math.pow(l,2)*i;return{stiffness:c,damping:s*2*Math.sqrt(i*c),duration:e}}}const JD=12;function e$(e,t,n){let i=n;for(let o=1;oe[n]!==void 0)}function i$(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Ub(e,n$)&&Ub(e,t$)){const n=ZD(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function c1({keyframes:e,restDelta:t,restSpeed:n,...i}){const o=e[0],r=e[e.length-1],s={done:!1,value:o},{stiffness:a,damping:l,mass:c,duration:d,velocity:u,isResolvedFromDuration:h}=i$({...i,velocity:-xn(i.velocity||0)}),f=u||0,p=l/(2*Math.sqrt(a*c)),m=r-o,x=xn(Math.sqrt(a/c)),b=Math.abs(m)<5;n||(n=b?.01:2),t||(t=b?.005:.5);let g;if(p<1){const v=lh(x,p);g=w=>{const E=Math.exp(-p*x*w);return r-E*((f+p*x*m)/v*Math.sin(v*w)+m*Math.cos(v*w))}}else if(p===1)g=v=>r-Math.exp(-x*v)*(m+(f+x*m)*v);else{const v=x*Math.sqrt(p*p-1);g=w=>{const E=Math.exp(-p*x*w),S=Math.min(v*w,300);return r-E*((f+p*x*m)*Math.sinh(S)+v*m*Math.cosh(S))/v}}return{calculatedDuration:h&&d||null,next:v=>{const w=g(v);if(h)s.done=v>=d;else{let E=f;v!==0&&(p<1?E=l1(g,v,w):E=0);const S=Math.abs(E)<=n,k=Math.abs(r-w)<=t;s.done=S&&k}return s.value=s.done?r:w,s}}}function Wb({keyframes:e,velocity:t=0,power:n=.8,timeConstant:i=325,bounceDamping:o=10,bounceStiffness:r=500,modifyTarget:s,min:a,max:l,restDelta:c=.5,restSpeed:d}){const u=e[0],h={done:!1,value:u},f=C=>a!==void 0&&Cl,p=C=>a===void 0?l:l===void 0||Math.abs(a-C)-m*Math.exp(-C/i),v=C=>b+g(C),w=C=>{const A=g(C),D=v(C);h.done=Math.abs(A)<=c,h.value=h.done?b:D};let E,S;const k=C=>{f(h.value)&&(E=C,S=c1({keyframes:[h.value,p(h.value)],velocity:l1(v,C,h.value),damping:o,stiffness:r,restDelta:c,restSpeed:d}))};return k(0),{calculatedDuration:null,next:C=>{let A=!1;return!S&&E===void 0&&(A=!0,w(C),k(C)),E!==void 0&&C>E?S.next(C-E):(!A&&w(C),h)}}}const o$=e=>{const t=({timestamp:n})=>e(n);return{start:()=>ve.update(t,!0),stop:()=>Tn(t),now:()=>Ze.isProcessing?Ze.timestamp:performance.now()}},Xb=2e4;function qb(e){let t=0;const n=50;let i=e.next(t);for(;!i.done&&t=Xb?1/0:t}const r$={decay:Wb,inertia:Wb,tween:pl,keyframes:pl,spring:c1};function ml({autoplay:e=!0,delay:t=0,driver:n=o$,keyframes:i,type:o="keyframes",repeat:r=0,repeatDelay:s=0,repeatType:a="loop",onPlay:l,onStop:c,onComplete:d,onUpdate:u,...h}){let f=1,p=!1,m,x;const b=()=>{x=new Promise(_=>{m=_})};b();let g;const v=r$[o]||pl;let w;v!==pl&&typeof i[0]!="number"&&(w=s1([0,100],i,{clamp:!1}),i=[0,100]);const E=v({...h,keyframes:i});let S;a==="mirror"&&(S=v({...h,keyframes:[...i].reverse(),velocity:-(h.velocity||0)}));let k="idle",C=null,A=null,D=null;E.calculatedDuration===null&&r&&(E.calculatedDuration=qb(E));const{calculatedDuration:R}=E;let V=1/0,q=1/0;R!==null&&(V=R+s,q=V*(r+1)-s);let Y=0;const G=_=>{if(A===null)return;f>0&&(A=Math.min(A,_)),f<0&&(A=Math.min(_-q/f,A)),C!==null?Y=C:Y=Math.round(_-A)*f;const F=Y-t*(f>=0?1:-1),te=f>=0?F<0:F>q;Y=Math.max(F,0),k==="finished"&&C===null&&(Y=q);let J=Y,xe=E;if(r){const Ln=Math.min(Y,q)/V;let Xi=Math.floor(Ln),an=Ln%1;!an&&Ln>=1&&(an=1),an===1&&Xi--,Xi=Math.min(Xi,r+1),!!(Xi%2)&&(a==="reverse"?(an=1-an,s&&(an-=s/V)):a==="mirror"&&(xe=S)),J=oi(0,1,an)*V}const oe=te?{done:!1,value:i[0]}:xe.next(J);w&&(oe.value=w(oe.value));let{done:Pe}=oe;!te&&R!==null&&(Pe=f>=0?Y>=q:Y<=0);const Tt=C===null&&(k==="finished"||k==="running"&&Pe);return u&&u(oe.value),Tt&&I(),oe},Z=()=>{g&&g.stop(),g=void 0},Q=()=>{k="idle",Z(),m(),b(),A=D=null},I=()=>{k="finished",d&&d(),Z(),m()},$=()=>{if(p)return;g||(g=n(G));const _=g.now();l&&l(),C!==null?A=_-C:(!A||k==="finished")&&(A=_),k==="finished"&&b(),D=A,C=null,k="running",g.start()};e&&$();const O={then(_,F){return x.then(_,F)},get time(){return xn(Y)},set time(_){_=Ti(_),Y=_,C!==null||!g||f===0?C=_:A=g.now()-_/f},get duration(){const _=E.calculatedDuration===null?qb(E):E.calculatedDuration;return xn(_)},get speed(){return f},set speed(_){_===f||!g||(f=_,O.time=xn(Y))},get state(){return k},play:$,pause:()=>{k="paused",C=Y},stop:()=>{p=!0,k!=="idle"&&(k="idle",c&&c(),Q())},cancel:()=>{D!==null&&G(D),Q()},complete:()=>{k="finished"},sample:_=>(A=0,G(_))};return O}function s$(e){let t;return()=>(t===void 0&&(t=e()),t)}const a$=s$(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),l$=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),na=10,c$=2e4,d$=(e,t)=>t.type==="spring"||e==="backgroundColor"||!Vk(t.ease);function u$(e,t,{onUpdate:n,onComplete:i,...o}){if(!(a$()&&l$.has(t)&&!o.repeatDelay&&o.repeatType!=="mirror"&&o.damping!==0&&o.type!=="inertia"))return!1;let s=!1,a,l,c=!1;const d=()=>{l=new Promise(v=>{a=v})};d();let{keyframes:u,duration:h=300,ease:f,times:p}=o;if(d$(t,o)){const v=ml({...o,repeat:0,delay:0});let w={done:!1,value:u[0]};const E=[];let S=0;for(;!w.done&&S{c=!1,m.cancel()},b=()=>{c=!0,ve.update(x),a(),d()};return m.onfinish=()=>{c||(e.set(wD(u,o)),i&&i(),b())},{then(v,w){return l.then(v,w)},attachTimeline(v){return m.timeline=v,m.onfinish=null,Re},get time(){return xn(m.currentTime||0)},set time(v){m.currentTime=Ti(v)},get speed(){return m.playbackRate},set speed(v){m.playbackRate=v},get duration(){return xn(h)},play:()=>{s||(m.play(),Tn(x))},pause:()=>m.pause(),stop:()=>{if(s=!0,m.playState==="idle")return;const{currentTime:v}=m;if(v){const w=ml({...o,autoplay:!1});e.setWithVelocity(w.sample(v-na).value,w.sample(v).value,na)}b()},complete:()=>{c||m.finish()},cancel:b}}function h$({keyframes:e,delay:t,onUpdate:n,onComplete:i}){const o=()=>(n&&n(e[e.length-1]),i&&i(),{time:0,speed:1,duration:0,play:Re,pause:Re,stop:Re,then:r=>(r(),Promise.resolve()),cancel:Re,complete:Re});return t?ml({keyframes:[0,1],duration:0,delay:t,onComplete:o}):o()}const f$={type:"spring",stiffness:500,damping:25,restSpeed:10},p$=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),m$={type:"keyframes",duration:.8},g$={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},b$=(e,{keyframes:t})=>t.length>2?m$:Ui.has(e)?e.startsWith("scale")?p$(t[1]):f$:g$,ch=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(ri.test(t)||t==="0")&&!t.startsWith("url(")),v$=new Set(["brightness","contrast","saturate","opacity"]);function y$(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[i]=n.match(Sc)||[];if(!i)return e;const o=n.replace(i,"");let r=v$.has(t)?1:0;return i!==n&&(r*=100),t+"("+r+o+")"}const x$=/([a-z-]*)\(.*?\)/g,dh={...ri,getAnimatableNone:e=>{const t=e.match(x$);return t?t.map(y$).join(" "):e}},w$={...Sk,color:nt,backgroundColor:nt,outlineColor:nt,fill:nt,stroke:nt,borderColor:nt,borderTopColor:nt,borderRightColor:nt,borderBottomColor:nt,borderLeftColor:nt,filter:dh,WebkitFilter:dh},Ep=e=>w$[e];function d1(e,t){let n=Ep(e);return n!==dh&&(n=ri),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const u1=e=>/^0[^.\s]+$/.test(e);function k$(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||u1(e)}function C$(e,t,n,i){const o=ch(t,n);let r;Array.isArray(n)?r=[...n]:r=[null,n];const s=i.from!==void 0?i.from:e.get();let a;const l=[];for(let c=0;co=>{const r=Tp(i,e)||{},s=r.delay||i.delay||0;let{elapsed:a=0}=i;a=a-Ti(s);const l=C$(t,e,n,r),c=l[0],d=l[l.length-1],u=ch(e,c),h=ch(e,d);let f={keyframes:l,velocity:t.getVelocity(),ease:"easeOut",...r,delay:-a,onUpdate:p=>{t.set(p),r.onUpdate&&r.onUpdate(p)},onComplete:()=>{o(),r.onComplete&&r.onComplete()}};if(S$(r)||(f={...f,...b$(e,f)}),f.duration&&(f.duration=Ti(f.duration)),f.repeatDelay&&(f.repeatDelay=Ti(f.repeatDelay)),!u||!h||yD.current||r.type===!1||E$.skipAnimations)return h$(f);if(!i.isHandoff&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const p=u$(t,e,f);if(p)return p}return ml(f)};function gl(e){return!!(mt(e)&&e.add)}const h1=e=>/^\-?\d*\.?\d+$/.test(e);function Ap(e,t){e.indexOf(t)===-1&&e.push(t)}function Lp(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Ip{constructor(){this.subscriptions=[]}add(t){return Ap(this.subscriptions,t),()=>Lp(this.subscriptions,t)}notify(t,n,i){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,i);else for(let r=0;r!isNaN(parseFloat(e));class P${constructor(t,n={}){this.version="10.17.12",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(i,o=!0)=>{this.prev=this.current,this.current=i;const{delta:r,timestamp:s}=Ze;this.lastUpdated!==s&&(this.timeDelta=r,this.lastUpdated=s,ve.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),o&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>ve.postRender(this.velocityCheck),this.velocityCheck=({timestamp:i})=>{i!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=T$(this.current),this.owner=n.owner}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Ip);const i=this.events[t].add(n);return t==="change"?()=>{i(),ve.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,i){this.set(n),this.prev=t,this.timeDelta=i}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?a1(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Bo(e,t){return new P$(e,t)}const f1=e=>t=>t.test(e),A$={test:e=>e==="auto",parse:e=>e},p1=[Wi,K,rn,Dn,$R,DR,A$],cr=e=>p1.find(f1(e)),L$=[...p1,nt,ri],I$=e=>L$.find(f1(e));function O$(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Bo(n))}function R$(e,t){const n=Tc(e,t);let{transitionEnd:i={},transition:o={},...r}=n?e.makeTargetAnimatable(n,!1):{};r={...r,...i};for(const s in r){const a=KR(r[s]);O$(e,s,a)}}function D$(e,t,n){var i,o;const r=Object.keys(t).filter(a=>!e.hasValue(a)),s=r.length;if(s)for(let a=0;al.remove(u))),c.push(x)}return s&&Promise.all(c).then(()=>{s&&R$(e,s)}),c}function uh(e,t,n={}){const i=Tc(e,t,n.custom);let{transition:o=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const r=i?()=>Promise.all(m1(e,i,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:c=0,staggerChildren:d,staggerDirection:u}=o;return B$(e,t,c+l,d,u,n)}:()=>Promise.resolve(),{when:a}=o;if(a){const[l,c]=a==="beforeChildren"?[r,s]:[s,r];return l().then(()=>c())}else return Promise.all([r(),s(n.delay)])}function B$(e,t,n=0,i=0,o=1,r){const s=[],a=(e.variantChildren.size-1)*i,l=o===1?(c=0)=>c*i:(c=0)=>a-c*i;return Array.from(e.variantChildren).sort(j$).forEach((c,d)=>{c.notify("AnimationStart",t),s.push(uh(c,t,{...r,delay:n+l(d)}).then(()=>c.notify("AnimationComplete",t)))}),Promise.all(s)}function j$(e,t){return e.sortNodePosition(t)}function V$(e,t,n={}){e.notify("AnimationStart",t);let i;if(Array.isArray(t)){const o=t.map(r=>uh(e,r,n));i=Promise.all(o)}else if(typeof t=="string")i=uh(e,t,n);else{const o=typeof t=="function"?Tc(e,t,n.custom):t;i=Promise.all(m1(e,o,n))}return i.then(()=>e.notify("AnimationComplete",t))}const F$=[...hp].reverse(),H$=hp.length;function N$(e){return t=>Promise.all(t.map(({animation:n,options:i})=>V$(e,n,i)))}function U$(e){let t=N$(e);const n=X$();let i=!0;const o=(l,c)=>{const d=Tc(e,c);if(d){const{transition:u,transitionEnd:h,...f}=d;l={...l,...f,...h}}return l};function r(l){t=l(e)}function s(l,c){const d=e.getProps(),u=e.getVariantContext(!0)||{},h=[],f=new Set;let p={},m=1/0;for(let b=0;bm&&E,D=!1;const R=Array.isArray(w)?w:[w];let V=R.reduce(o,{});S===!1&&(V={});const{prevResolvedValues:q={}}=v,Y={...q,...V},G=Z=>{A=!0,f.has(Z)&&(D=!0,f.delete(Z)),v.needsAnimating[Z]=!0};for(const Z in Y){const Q=V[Z],I=q[Z];if(p.hasOwnProperty(Z))continue;let $=!1;hl(Q)&&hl(I)?$=!Bk(Q,I):$=Q!==I,$?Q!==void 0?G(Z):f.add(Z):Q!==void 0&&f.has(Z)?G(Z):v.protectedKeys[Z]=!0}v.prevProp=w,v.prevResolvedValues=V,v.isActive&&(p={...p,...V}),i&&e.blockInitialAnimation&&(A=!1),A&&(!k||D)&&h.push(...R.map(Z=>({animation:Z,options:{type:g,...l}})))}if(f.size){const b={};f.forEach(g=>{const v=e.getBaseTarget(g);v!==void 0&&(b[g]=v)}),h.push({animation:b})}let x=!!h.length;return i&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(x=!1),i=!1,x?t(h):Promise.resolve()}function a(l,c,d){var u;if(n[l].isActive===c)return Promise.resolve();(u=e.variantChildren)===null||u===void 0||u.forEach(f=>{var p;return(p=f.animationState)===null||p===void 0?void 0:p.setActive(l,c)}),n[l].isActive=c;const h=s(d,l);for(const f in n)n[f].protectedKeys={};return h}return{animateChanges:s,setActive:a,setAnimateFunction:r,getState:()=>n}}function W$(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Bk(t,e):!1}function hi(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function X$(){return{animate:hi(!0),whileInView:hi(),whileHover:hi(),whileTap:hi(),whileDrag:hi(),whileFocus:hi(),exit:hi()}}class q$ extends ci{constructor(t){super(t),t.animationState||(t.animationState=U$(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),kc(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let Y$=0;class K$ extends ci{constructor(){super(...arguments),this.id=Y$++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n,custom:i}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===o)return;const r=this.node.animationState.setActive("exit",!t,{custom:i??this.node.getProps().custom});n&&!t&&r.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const G$={animation:{Feature:q$},exit:{Feature:K$}},Yb=(e,t)=>Math.abs(e-t);function Q$(e,t){const n=Yb(e.x,t.x),i=Yb(e.y,t.y);return Math.sqrt(n**2+i**2)}class g1{constructor(t,n,{transformPagePoint:i,contextWindow:o,dragSnapToOrigin:r=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const u=Rd(this.lastMoveEventInfo,this.history),h=this.startEvent!==null,f=Q$(u.offset,{x:0,y:0})>=3;if(!h&&!f)return;const{point:p}=u,{timestamp:m}=Ze;this.history.push({...p,timestamp:m});const{onStart:x,onMove:b}=this.handlers;h||(x&&x(this.lastMoveEvent,u),this.startEvent=this.lastMoveEvent),b&&b(this.lastMoveEvent,u)},this.handlePointerMove=(u,h)=>{this.lastMoveEvent=u,this.lastMoveEventInfo=Od(h,this.transformPagePoint),ve.update(this.updatePoint,!0)},this.handlePointerUp=(u,h)=>{this.end();const{onEnd:f,onSessionEnd:p,resumeAnimation:m}=this.handlers;if(this.dragSnapToOrigin&&m&&m(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const x=Rd(u.type==="pointercancel"?this.lastMoveEventInfo:Od(h,this.transformPagePoint),this.history);this.startEvent&&f&&f(u,x),p&&p(u,x)},!Dk(t))return;this.dragSnapToOrigin=r,this.handlers=n,this.transformPagePoint=i,this.contextWindow=o||window;const s=Ec(t),a=Od(s,this.transformPagePoint),{point:l}=a,{timestamp:c}=Ze;this.history=[{...l,timestamp:c}];const{onSessionStart:d}=n;d&&d(t,Rd(a,this.history)),this.removeListeners=Qn(yn(this.contextWindow,"pointermove",this.handlePointerMove),yn(this.contextWindow,"pointerup",this.handlePointerUp),yn(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Tn(this.updatePoint)}}function Od(e,t){return t?{point:t(e.point)}:e}function Kb(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Rd({point:e},t){return{point:e,delta:Kb(e,b1(t)),offset:Kb(e,Z$(t)),velocity:J$(t,.1)}}function Z$(e){return e[0]}function b1(e){return e[e.length-1]}function J$(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,i=null;const o=b1(e);for(;n>=0&&(i=e[n],!(o.timestamp-i.timestamp>Ti(t)));)n--;if(!i)return{x:0,y:0};const r=xn(o.timestamp-i.timestamp);if(r===0)return{x:0,y:0};const s={x:(o.x-i.x)/r,y:(o.y-i.y)/r};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function wt(e){return e.max-e.min}function hh(e,t=0,n=.01){return Math.abs(e-t)<=n}function Gb(e,t,n,i=.5){e.origin=i,e.originPoint=Se(t.min,t.max,e.origin),e.scale=wt(n)/wt(t),(hh(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=Se(n.min,n.max,e.origin)-e.originPoint,(hh(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Rr(e,t,n,i){Gb(e.x,t.x,n.x,i?i.originX:void 0),Gb(e.y,t.y,n.y,i?i.originY:void 0)}function Qb(e,t,n){e.min=n.min+t.min,e.max=e.min+wt(t)}function e_(e,t,n){Qb(e.x,t.x,n.x),Qb(e.y,t.y,n.y)}function Zb(e,t,n){e.min=t.min-n.min,e.max=e.min+wt(t)}function Dr(e,t,n){Zb(e.x,t.x,n.x),Zb(e.y,t.y,n.y)}function t_(e,{min:t,max:n},i){return t!==void 0&&en&&(e=i?Se(n,e,i.max):Math.min(e,n)),e}function Jb(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function n_(e,{top:t,left:n,bottom:i,right:o}){return{x:Jb(e.x,n,o),y:Jb(e.y,t,i)}}function e0(e,t){let n=t.min-e.min,i=t.max-e.max;return t.max-t.mini?n=cs(t.min,t.max-i,e.min):i>o&&(n=cs(e.min,e.max-o,t.min)),oi(0,1,n)}function r_(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const fh=.35;function s_(e=fh){return e===!1?e=0:e===!0&&(e=fh),{x:t0(e,"left","right"),y:t0(e,"top","bottom")}}function t0(e,t,n){return{min:n0(e,t),max:n0(e,n)}}function n0(e,t){return typeof e=="number"?e:e[t]||0}const i0=()=>({translate:0,scale:1,origin:0,originPoint:0}),go=()=>({x:i0(),y:i0()}),o0=()=>({min:0,max:0}),$e=()=>({x:o0(),y:o0()});function It(e){return[e("x"),e("y")]}function v1({top:e,left:t,right:n,bottom:i}){return{x:{min:t,max:n},y:{min:e,max:i}}}function a_({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function l_(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),i=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}function Dd(e){return e===void 0||e===1}function ph({scale:e,scaleX:t,scaleY:n}){return!Dd(e)||!Dd(t)||!Dd(n)}function mi(e){return ph(e)||y1(e)||e.z||e.rotate||e.rotateX||e.rotateY}function y1(e){return r0(e.x)||r0(e.y)}function r0(e){return e&&e!=="0%"}function bl(e,t,n){const i=e-n,o=t*i;return n+o}function s0(e,t,n,i,o){return o!==void 0&&(e=bl(e,o,i)),bl(e,n,i)+t}function mh(e,t=0,n=1,i,o){e.min=s0(e.min,t,n,i,o),e.max=s0(e.max,t,n,i,o)}function x1(e,{x:t,y:n}){mh(e.x,t.translate,t.scale,t.originPoint),mh(e.y,n.translate,n.scale,n.originPoint)}function c_(e,t,n,i=!1){const o=n.length;if(!o)return;t.x=t.y=1;let r,s;for(let a=0;a1.0000000000001||e<.999999999999?e:1}function zn(e,t){e.min=e.min+t,e.max=e.max+t}function l0(e,t,[n,i,o]){const r=t[o]!==void 0?t[o]:.5,s=Se(e.min,e.max,r);mh(e,t[n],t[i],s,t.scale)}const d_=["x","scaleX","originX"],u_=["y","scaleY","originY"];function bo(e,t){l0(e.x,t,d_),l0(e.y,t,u_)}function w1(e,t){return v1(l_(e.getBoundingClientRect(),t))}function h_(e,t,n){const i=w1(e,n),{scroll:o}=t;return o&&(zn(i.x,o.offset.x),zn(i.y,o.offset.y)),i}const k1=({current:e})=>e?e.ownerDocument.defaultView:null,f_=new WeakMap;class p_{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=$e(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const o=d=>{const{dragSnapToOrigin:u}=this.getProps();u?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Ec(d,"page").point)},r=(d,u)=>{const{drag:h,dragPropagation:f,onDragStart:p}=this.getProps();if(h&&!f&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=_k(h),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),It(x=>{let b=this.getAxisMotionValue(x).get()||0;if(rn.test(b)){const{projection:g}=this.visualElement;if(g&&g.layout){const v=g.layout.layoutBox[x];v&&(b=wt(v)*(parseFloat(b)/100))}}this.originPoint[x]=b}),p&&ve.update(()=>p(d,u),!1,!0);const{animationState:m}=this.visualElement;m&&m.setActive("whileDrag",!0)},s=(d,u)=>{const{dragPropagation:h,dragDirectionLock:f,onDirectionLock:p,onDrag:m}=this.getProps();if(!h&&!this.openGlobalLock)return;const{offset:x}=u;if(f&&this.currentDirection===null){this.currentDirection=m_(x),this.currentDirection!==null&&p&&p(this.currentDirection);return}this.updateAxis("x",u.point,x),this.updateAxis("y",u.point,x),this.visualElement.render(),m&&m(d,u)},a=(d,u)=>this.stop(d,u),l=()=>It(d=>{var u;return this.getAnimationState(d)==="paused"&&((u=this.getAxisMotionValue(d).animation)===null||u===void 0?void 0:u.play())}),{dragSnapToOrigin:c}=this.getProps();this.panSession=new g1(t,{onSessionStart:o,onStart:r,onMove:s,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,contextWindow:k1(this.visualElement)})}stop(t,n){const i=this.isDragging;if(this.cancel(),!i)return;const{velocity:o}=n;this.startAnimation(o);const{onDragEnd:r}=this.getProps();r&&ve.update(()=>r(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:i}=this.getProps();!i&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,i){const{drag:o}=this.getProps();if(!i||!ia(t,o,this.currentDirection))return;const r=this.getAxisMotionValue(t);let s=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(s=t_(s,this.constraints[t],this.elastic[t])),r.set(s)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:i}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,r=this.constraints;n&&po(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&o?this.constraints=n_(o.layoutBox,n):this.constraints=!1,this.elastic=s_(i),r!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&It(s=>{this.getAxisMotionValue(s)&&(this.constraints[s]=r_(o.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!po(t))return!1;const i=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const r=h_(i,o.root,this.visualElement.getTransformPagePoint());let s=i_(o.layout.layoutBox,r);if(n){const a=n(a_(s));this.hasMutatedConstraints=!!a,a&&(s=v1(a))}return s}startAnimation(t){const{drag:n,dragMomentum:i,dragElastic:o,dragTransition:r,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=It(d=>{if(!ia(d,n,this.currentDirection))return;let u=l&&l[d]||{};s&&(u={min:0,max:0});const h=o?200:1e6,f=o?40:1e7,p={type:"inertia",velocity:i?t[d]:0,bounceStiffness:h,bounceDamping:f,timeConstant:750,restDelta:1,restSpeed:10,...r,...u};return this.startAxisValueAnimation(d,p)});return Promise.all(c).then(a)}startAxisValueAnimation(t,n){const i=this.getAxisMotionValue(t);return i.start(Pp(t,i,0,n))}stopAnimation(){It(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){It(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n="_drag"+t.toUpperCase(),i=this.visualElement.getProps(),o=i[n];return o||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){It(n=>{const{drag:i}=this.getProps();if(!ia(n,i,this.currentDirection))return;const{projection:o}=this.visualElement,r=this.getAxisMotionValue(n);if(o&&o.layout){const{min:s,max:a}=o.layout.layoutBox[n];r.set(t[n]-Se(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:i}=this.visualElement;if(!po(n)||!i||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};It(s=>{const a=this.getAxisMotionValue(s);if(a){const l=a.get();o[s]=o_({min:l,max:l},this.constraints[s])}});const{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),It(s=>{if(!ia(s,t,null))return;const a=this.getAxisMotionValue(s),{min:l,max:c}=this.constraints[s];a.set(Se(l,c,o[s]))})}addListeners(){if(!this.visualElement.current)return;f_.set(this.visualElement,this);const t=this.visualElement.current,n=yn(t,"pointerdown",l=>{const{drag:c,dragListener:d=!0}=this.getProps();c&&d&&this.start(l)}),i=()=>{const{dragConstraints:l}=this.getProps();po(l)&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,r=o.addEventListener("measure",i);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),i();const s=mn(window,"resize",()=>this.scalePositionWithinConstraints()),a=o.addEventListener("didUpdate",({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(It(d=>{const u=this.getAxisMotionValue(d);u&&(this.originPoint[d]+=l[d].translate,u.set(u.get()+l[d].translate))}),this.visualElement.render())});return()=>{s(),n(),r(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:i=!1,dragPropagation:o=!1,dragConstraints:r=!1,dragElastic:s=fh,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:i,dragPropagation:o,dragConstraints:r,dragElastic:s,dragMomentum:a}}}function ia(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function m_(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class g_ extends ci{constructor(t){super(t),this.removeGroupControls=Re,this.removeListeners=Re,this.controls=new p_(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Re}unmount(){this.removeGroupControls(),this.removeListeners()}}const c0=e=>(t,n)=>{e&&ve.update(()=>e(t,n))};class b_ extends ci{constructor(){super(...arguments),this.removePointerDownListener=Re}onPointerDown(t){this.session=new g1(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:k1(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:i,onPanEnd:o}=this.node.getProps();return{onSessionStart:c0(t),onStart:c0(n),onMove:i,onEnd:(r,s)=>{delete this.session,o&&ve.update(()=>o(r,s))}}}mount(){this.removePointerDownListener=yn(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function v_(){const e=X.useContext(dp);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:i}=e,o=X.useId();return X.useEffect(()=>i(o),[]),!t&&n?[!1,()=>n&&n(o)]:[!0]}const Ea={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function d0(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const dr={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(K.test(e))e=parseFloat(e);else return e;const n=d0(e,t.target.x),i=d0(e,t.target.y);return`${n}% ${i}%`}},y_={correct:(e,{treeScale:t,projectionDelta:n})=>{const i=e,o=ri.parse(e);if(o.length>5)return i;const r=ri.createTransformer(e),s=typeof o[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;o[0+s]/=a,o[1+s]/=l;const c=Se(a,l,.5);return typeof o[2+s]=="number"&&(o[2+s]/=c),typeof o[3+s]=="number"&&(o[3+s]/=c),r(o)}};class x_ extends P.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:i,layoutId:o}=this.props,{projection:r}=t;TR(w_),r&&(n.group&&n.group.add(r),i&&i.register&&o&&i.register(r),r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,onExitComplete:()=>this.safeToRemove()})),Ea.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:i,drag:o,isPresent:r}=this.props,s=i.projection;return s&&(s.isPresent=r,o||t.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==r&&(r?s.promote():s.relegate()||ve.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),queueMicrotask(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:i}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),i&&i.deregister&&i.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function C1(e){const[t,n]=v_(),i=X.useContext(vk);return P.createElement(x_,{...e,layoutGroup:i,switchLayoutGroup:X.useContext(yk),isPresent:t,safeToRemove:n})}const w_={borderRadius:{...dr,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:dr,borderTopRightRadius:dr,borderBottomLeftRadius:dr,borderBottomRightRadius:dr,boxShadow:y_},S1=["TopLeft","TopRight","BottomLeft","BottomRight"],k_=S1.length,u0=e=>typeof e=="string"?parseFloat(e):e,h0=e=>typeof e=="number"||K.test(e);function C_(e,t,n,i,o,r){o?(e.opacity=Se(0,n.opacity!==void 0?n.opacity:1,S_(i)),e.opacityExit=Se(t.opacity!==void 0?t.opacity:1,0,E_(i))):r&&(e.opacity=Se(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,i));for(let s=0;sit?1:n(cs(e,t,i))}function p0(e,t){e.min=t.min,e.max=t.max}function Lt(e,t){p0(e.x,t.x),p0(e.y,t.y)}function m0(e,t,n,i,o){return e-=t,e=bl(e,1/n,i),o!==void 0&&(e=bl(e,1/o,i)),e}function T_(e,t=0,n=1,i=.5,o,r=e,s=e){if(rn.test(t)&&(t=parseFloat(t),t=Se(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=Se(r.min,r.max,i);e===r&&(a-=t),e.min=m0(e.min,t,n,a,o),e.max=m0(e.max,t,n,a,o)}function g0(e,t,[n,i,o],r,s){T_(e,t[n],t[i],t[o],t.scale,r,s)}const P_=["x","scaleX","originX"],A_=["y","scaleY","originY"];function b0(e,t,n,i){g0(e.x,t,P_,n?n.x:void 0,i?i.x:void 0),g0(e.y,t,A_,n?n.y:void 0,i?i.y:void 0)}function v0(e){return e.translate===0&&e.scale===1}function T1(e){return v0(e.x)&&v0(e.y)}function L_(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function P1(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function y0(e){return wt(e.x)/wt(e.y)}class I_{constructor(){this.members=[]}add(t){Ap(this.members,t),t.scheduleRender()}remove(t){if(Lp(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(o=>t===o);if(n===0)return!1;let i;for(let o=n;o>=0;o--){const r=this.members[o];if(r.isPresent!==!1){i=r;break}}return i?(this.promote(i),!0):!1}promote(t,n){const i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,n&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:i}=t;n.onExitComplete&&n.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function x0(e,t,n){let i="";const o=e.x.translate/t.x,r=e.y.translate/t.y;if((o||r)&&(i=`translate3d(${o}px, ${r}px, 0) `),(t.x!==1||t.y!==1)&&(i+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:l,rotateX:c,rotateY:d}=n;l&&(i+=`rotate(${l}deg) `),c&&(i+=`rotateX(${c}deg) `),d&&(i+=`rotateY(${d}deg) `)}const s=e.x.scale*t.x,a=e.y.scale*t.y;return(s!==1||a!==1)&&(i+=`scale(${s}, ${a})`),i||"none"}const O_=(e,t)=>e.depth-t.depth;class R_{constructor(){this.children=[],this.isDirty=!1}add(t){Ap(this.children,t),this.isDirty=!0}remove(t){Lp(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(O_),this.isDirty=!1,this.children.forEach(t)}}function D_(e,t){const n=performance.now(),i=({timestamp:o})=>{const r=o-n;r>=t&&(Tn(i),e(r-t))};return ve.read(i,!0),()=>Tn(i)}function $_(e){window.MotionDebug&&window.MotionDebug.record(e)}function __(e){return e instanceof SVGElement&&e.tagName!=="svg"}function z_(e,t,n){const i=mt(e)?e:Bo(e);return i.start(Pp("",i,t,n)),i.animation}const w0=["","X","Y","Z"],M_={visibility:"hidden"},k0=1e3;let B_=0;const gi={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function A1({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:i,resetTransform:o}){return class{constructor(s={},a=t==null?void 0:t()){this.id=B_++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,gi.totalNodes=gi.resolvedTargetDeltas=gi.recalculatedProjection=0,this.nodes.forEach(F_),this.nodes.forEach(X_),this.nodes.forEach(q_),this.nodes.forEach(H_),$_(gi)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;lthis.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,u&&u(),u=D_(h,250),Ea.hasAnimatedSinceResize&&(Ea.hasAnimatedSinceResize=!1,this.nodes.forEach(S0))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&d&&(l||c)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:h,hasRelativeTargetChanged:f,layout:p})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const m=this.options.transition||d.getDefaultTransition()||Z_,{onLayoutAnimationStart:x,onLayoutAnimationComplete:b}=d.getProps(),g=!this.targetLayout||!P1(this.targetLayout,p)||f,v=!h&&f;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||v||h&&(g||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(u,v);const w={...Tp(m,"layout"),onPlay:x,onComplete:b};(d.shouldReduceMotion||this.options.layoutRoot)&&(w.delay=0,w.type=!1),this.startAnimation(w)}else h||S0(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=p})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Tn(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Y_),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;dthis.update()))}clearAllSnapshots(){this.nodes.forEach(N_),this.sharedNodes.forEach(K_)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,ve.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){ve.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l{const E=w/1e3;E0(u.x,s.x,E),E0(u.y,s.y,E),this.setTargetDelta(u),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Dr(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),G_(this.relativeTarget,this.relativeTargetOrigin,h,E),v&&L_(this.relativeTarget,v)&&(this.isProjectionDirty=!1),v||(v=$e()),Lt(v,this.relativeTarget)),m&&(this.animationValues=d,C_(d,c,this.latestValues,E,g,b)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=E},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Tn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ve.update(()=>{Ea.hasAnimatedSinceResize=!0,this.currentAnimation=z_(0,k0,{...s,onUpdate:a=>{this.mixTargetDelta(a),s.onUpdate&&s.onUpdate(a)},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(k0),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:l,layout:c,latestValues:d}=s;if(!(!a||!l||!c)){if(this!==s&&this.layout&&c&&L1(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||$e();const u=wt(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+u;const h=wt(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+h}Lt(a,l),bo(a,d),Rr(this.projectionDeltaWithTransform,this.layoutCorrected,a,d)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new I_),this.sharedNodes.get(s).add(a);const c=a.options.initialPromotionConfig;a.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(a):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:a}=this.options;return a?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:a}=this.options;return a?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetRotation(){const{visualElement:s}=this.options;if(!s)return;let a=!1;const{latestValues:l}=s;if((l.rotate||l.rotateX||l.rotateY||l.rotateZ)&&(a=!0),!a)return;const c={};for(let d=0;d{var a;return(a=s.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(C0),this.root.sharedNodes.clear()}}}function j_(e){e.updateLayout()}function V_(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:i,measuredBox:o}=e.layout,{animationType:r}=e.options,s=n.source!==e.layout.source;r==="size"?It(u=>{const h=s?n.measuredBox[u]:n.layoutBox[u],f=wt(h);h.min=i[u].min,h.max=h.min+f}):L1(r,n.layoutBox,i)&&It(u=>{const h=s?n.measuredBox[u]:n.layoutBox[u],f=wt(i[u]);h.max=h.min+f,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[u].max=e.relativeTarget[u].min+f)});const a=go();Rr(a,i,n.layoutBox);const l=go();s?Rr(l,e.applyTransform(o,!0),n.measuredBox):Rr(l,i,n.layoutBox);const c=!T1(a);let d=!1;if(!e.resumeFrom){const u=e.getClosestProjectingParent();if(u&&!u.resumeFrom){const{snapshot:h,layout:f}=u;if(h&&f){const p=$e();Dr(p,n.layoutBox,h.layoutBox);const m=$e();Dr(m,i,f.layoutBox),P1(p,m)||(d=!0),u.options.layoutRoot&&(e.relativeTarget=m,e.relativeTargetOrigin=p,e.relativeParent=u)}}}e.notifyListeners("didUpdate",{layout:i,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:c,hasRelativeTargetChanged:d})}else if(e.isLead()){const{onExitComplete:i}=e.options;i&&i()}e.options.transition=void 0}function F_(e){gi.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function H_(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function N_(e){e.clearSnapshot()}function C0(e){e.clearMeasurements()}function U_(e){e.isLayoutDirty=!1}function W_(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function S0(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function X_(e){e.resolveTargetDelta()}function q_(e){e.calcProjection()}function Y_(e){e.resetRotation()}function K_(e){e.removeLeadSnapshot()}function E0(e,t,n){e.translate=Se(t.translate,0,n),e.scale=Se(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function T0(e,t,n,i){e.min=Se(t.min,n.min,i),e.max=Se(t.max,n.max,i)}function G_(e,t,n,i){T0(e.x,t.x,n.x,i),T0(e.y,t.y,n.y,i)}function Q_(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Z_={duration:.45,ease:[.4,0,.1,1]},P0=e=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(e),A0=P0("applewebkit/")&&!P0("chrome/")?Math.round:Re;function L0(e){e.min=A0(e.min),e.max=A0(e.max)}function J_(e){L0(e.x),L0(e.y)}function L1(e,t,n){return e==="position"||e==="preserve-aspect"&&!hh(y0(t),y0(n),.2)}const ez=A1({attachResizeListener:(e,t)=>mn(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),$d={current:void 0},I1=A1({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!$d.current){const e=new ez({});e.mount(window),e.setOptions({layoutScroll:!0}),$d.current=e}return $d.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),tz={pan:{Feature:b_},drag:{Feature:g_,ProjectionNode:I1,MeasureLayout:C1}},nz=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function iz(e){const t=nz.exec(e);if(!t)return[,];const[,n,i]=t;return[n,i]}function gh(e,t,n=1){const[i,o]=iz(e);if(!i)return;const r=window.getComputedStyle(t).getPropertyValue(i);if(r){const s=r.trim();return h1(s)?parseFloat(s):s}else return rh(o)?gh(o,t,n+1):o}function oz(e,{...t},n){const i=e.current;if(!(i instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.values.forEach(o=>{const r=o.get();if(!rh(r))return;const s=gh(r,i);s&&o.set(s)});for(const o in t){const r=t[o];if(!rh(r))continue;const s=gh(r,i);s&&(t[o]=s,n||(n={}),n[o]===void 0&&(n[o]=r))}return{target:t,transitionEnd:n}}const rz=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),O1=e=>rz.has(e),sz=e=>Object.keys(e).some(O1),I0=e=>e===Wi||e===K,O0=(e,t)=>parseFloat(e.split(", ")[t]),R0=(e,t)=>(n,{transform:i})=>{if(i==="none"||!i)return 0;const o=i.match(/^matrix3d\((.+)\)$/);if(o)return O0(o[1],t);{const r=i.match(/^matrix\((.+)\)$/);return r?O0(r[1],e):0}},az=new Set(["x","y","z"]),lz=Ss.filter(e=>!az.has(e));function cz(e){const t=[];return lz.forEach(n=>{const i=e.getValue(n);i!==void 0&&(t.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))}),t.length&&e.render(),t}const jo={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:R0(4,13),y:R0(5,14)};jo.translateX=jo.x;jo.translateY=jo.y;const dz=(e,t,n)=>{const i=t.measureViewportBox(),o=t.current,r=getComputedStyle(o),{display:s}=r,a={};s==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(c=>{a[c]=jo[c](i,r)}),t.render();const l=t.measureViewportBox();return n.forEach(c=>{const d=t.getValue(c);d&&d.jump(a[c]),e[c]=jo[c](l,r)}),e},uz=(e,t,n={},i={})=>{t={...t},i={...i};const o=Object.keys(t).filter(O1);let r=[],s=!1;const a=[];if(o.forEach(l=>{const c=e.getValue(l);if(!e.hasValue(l))return;let d=n[l],u=cr(d);const h=t[l];let f;if(hl(h)){const p=h.length,m=h[0]===null?1:0;d=h[m],u=cr(d);for(let x=m;x=0?window.pageYOffset:null,c=dz(t,e,a);return r.length&&r.forEach(([d,u])=>{e.getValue(d).set(u)}),e.render(),wc&&l!==null&&window.scrollTo({top:l}),{target:c,transitionEnd:i}}else return{target:t,transitionEnd:i}};function hz(e,t,n,i){return sz(t)?uz(e,t,n,i):{target:t,transitionEnd:i}}const fz=(e,t,n,i)=>{const o=oz(e,t,i);return t=o.target,i=o.transitionEnd,hz(e,t,n,i)},bh={current:null},R1={current:!1};function pz(){if(R1.current=!0,!!wc)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>bh.current=e.matches;e.addListener(t),t()}else bh.current=!1}function mz(e,t,n){const{willChange:i}=t;for(const o in t){const r=t[o],s=n[o];if(mt(r))e.addValue(o,r),gl(i)&&i.add(o);else if(mt(s))e.addValue(o,Bo(r,{owner:e})),gl(i)&&i.remove(o);else if(s!==r)if(e.hasValue(o)){const a=e.getValue(o);!a.hasAnimated&&a.set(r)}else{const a=e.getStaticValue(o);e.addValue(o,Bo(a!==void 0?a:r,{owner:e}))}}for(const o in n)t[o]===void 0&&e.removeValue(o);return t}const D0=new WeakMap,D1=Object.keys(ls),gz=D1.length,$0=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],bz=fp.length;class vz{constructor({parent:t,props:n,presenceContext:i,reducedMotionConfig:o,visualState:r},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>ve.render(this.render,!1,!0);const{latestValues:a,renderState:l}=r;this.latestValues=a,this.baseTarget={...a},this.initialValues=n.initial?{...a}:{},this.renderState=l,this.parent=t,this.props=n,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=s,this.isControllingVariants=Cc(n),this.isVariantNode=bk(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:c,...d}=this.scrapeMotionValuesFromProps(n,{});for(const u in d){const h=d[u];a[u]!==void 0&&mt(h)&&(h.set(a[u],!1),gl(c)&&c.add(u))}}scrapeMotionValuesFromProps(t,n){return{}}mount(t){this.current=t,D0.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,i)=>this.bindToMotionValue(i,n)),R1.current||pz(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:bh.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){D0.delete(this.current),this.projection&&this.projection.unmount(),Tn(this.notifyUpdate),Tn(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,n){const i=Ui.has(t),o=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&ve.update(this.notifyUpdate,!1,!0),i&&this.projection&&(this.projection.isTransformDirty=!0)}),r=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{o(),r()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...n},i,o,r){let s,a;for(let l=0;lthis.scheduleRender(),animationType:typeof c=="string"?c:"both",initialPromotionConfig:r,layoutScroll:h,layoutRoot:f})}return a}updateFeatures(){for(const t in this.features){const n=this.features[t];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):$e()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}makeTargetAnimatable(t,n=!0){return this.makeTargetAnimatableFromInstance(t,this.props,n)}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let i=0;i<$0.length;i++){const o=$0[i];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const r=t["on"+o];r&&(this.propEventSubscriptions[o]=this.on(o,r))}this.prevMotionValues=mz(this,this.scrapeMotionValuesFromProps(t,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(t=!1){if(t)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const i=this.parent?this.parent.getVariantContext()||{}:{};return this.props.initial!==void 0&&(i.initial=this.props.initial),i}const n={};for(let i=0;in.variantChildren.delete(t)}addValue(t,n){n!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,n)),this.values.set(t,n),this.latestValues[t]=n.get()}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return i===void 0&&n!==void 0&&(i=Bo(n,{owner:this}),this.addValue(t,i)),i}readValue(t){var n;return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(n=this.getBaseTargetFromProps(this.props,t))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:i}=this.props,o=typeof i=="string"||typeof i=="object"?(n=xp(this.props,i))===null||n===void 0?void 0:n[t]:void 0;if(i&&o!==void 0)return o;const r=this.getBaseTargetFromProps(this.props,t);return r!==void 0&&!mt(r)?r:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Ip),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class $1 extends vz{sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:i}){delete n[t],delete i[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:n,...i},{transformValues:o},r){let s=_$(i,t||{},this);if(o&&(n&&(n=o(n)),i&&(i=o(i)),s&&(s=o(s))),r){D$(this,i,s);const a=fz(this,i,s,n);n=a.transitionEnd,i=a.target}return{transition:t,transitionEnd:n,...i}}}function yz(e){return window.getComputedStyle(e)}class xz extends $1{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,n){if(Ui.has(n)){const i=Ep(n);return i&&i.default||0}else{const i=yz(t),o=(kk(n)?i.getPropertyValue(n):i[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return w1(t,n)}build(t,n,i,o){mp(t,n,i,o.transformTemplate)}scrapeMotionValuesFromProps(t,n){return yp(t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;mt(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,i,o){Ak(t,n,i,o)}}class wz extends $1{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Ui.has(n)){const i=Ep(n);return i&&i.default||0}return n=Lk.has(n)?n:up(n),t.getAttribute(n)}measureInstanceViewportBox(){return $e()}scrapeMotionValuesFromProps(t,n){return Ok(t,n)}build(t,n,i,o){bp(t,n,i,this.isSVGTag,o.transformTemplate)}renderInstance(t,n,i,o){Ik(t,n,i,o)}mount(t){this.isSVGTag=vp(t.tagName),super.mount(t)}}const kz=(e,t)=>pp(e)?new wz(t,{enableHardwareAcceleration:!1}):new xz(t,{enableHardwareAcceleration:!0}),Cz={layout:{ProjectionNode:I1,MeasureLayout:C1}},Sz={...G$,...gD,...tz,...Cz},Ez=SR((e,t)=>iD(e,t,Sz,kz));function Tz(e,t,n,i){t(e.detail.value),n(o=>({...o,agentType:e.detail.value})),e.detail.value==="mcts"?i(!0):i(!1)}function Pz(e,t,n){t(e.detail.value),n(i=>({...i,rolloutPolicy:e.detail.value}))}function Az({setCpuConfig:e}){var h;const[t,n]=P.useState("random"),[i,o]=P.useState(!1),[r,s]=P.useState("random"),[a,l]=P.useState(500),c=X.useRef(null);function d(){var f;(f=c.current)==null||f.dismiss()}function u(){return j.jsx(j.Fragment,{children:j.jsxs(Ku,{children:[j.jsx(va,{children:j.jsx(BI,{"aria-label":"Custom range",min:50,max:5e3,value:a,pin:!0,ticks:!0,snaps:!0,label:"Amount of simulations",onIonChange:f=>{l(Number(f.detail.value)),e(p=>({...p,simulations:Number(f.detail.value)}))}})}),j.jsx(va,{children:j.jsxs(Kg,{value:r,placeholder:"Select rollout policy",interface:"popover",onIonChange:f=>{Pz(f,s,e)},children:[j.jsx(sr,{value:"random",children:"Random"}),j.jsx(sr,{value:"sac",children:"SAC"})]})})]})})}return j.jsx(j.Fragment,{children:j.jsx(UI,{className:"custom-modal-class",id:"example-modal",ref:c,trigger:"open-modal",style:{left:(h=document.getElementById("ion-menu"))==null?void 0:h.clientWidth},children:j.jsxs("div",{className:"wrapper",children:[j.jsxs(Vf,{children:[j.jsx(jf,{children:"Modal"}),j.jsx(xw,{slot:"end",children:j.jsx(Gu,{color:"light",onClick:()=>d(),children:"Close"})})]}),j.jsxs(Ku,{children:[j.jsx(va,{children:j.jsxs(Kg,{value:t,interface:"popover",onIonChange:f=>{Tz(f,n,e,o)},children:[j.jsx(sr,{value:"random",children:"Random"}),j.jsx(sr,{value:"mcts",children:"MCTS"}),j.jsx(sr,{value:"sac",children:"SAC"})]})}),i?j.jsx(u,{}):null]})]})})})}const Lz="/assets/board-white-zmHgxZbl.svg",Iz="/assets/board-black-W3529IXs.svg",Op=2.5,Rp=13.9,Oz=4,_1=14.8,vo=1,Rz=2,$r="https://c-gohlke-litrl-api.hf.space";async function Dz(e,t,n){let i=await ye.get($r+"/connect_four/reset");console.log("response post action is",i),e(i.data.grid),t(i.data.done),n(vo)}async function $z(e,t,n,i,o,r,s){o(Rz);let a={headers:{"Content-Type":"application/json","Access-Control-Allow-Origin":"*"},params:{action:e}},l=await ye.post($r+"/connect_four/play","",a);if(console.log("response post action is",l),t(l.data.grid),n(l.data.done),!l.data.done){let c={headers:{"Content-Type":"application/json","Access-Control-Allow-Origin":"*"}};s(0);let d=!1;ye.post($r+"/connect_four/bot_play",{agent_type:i.agentType,rollout_policy:i.rolloutPolicy,simulations:i.simulations},c).then(h=>{s(1),t(h.data.grid),n(h.data.done),o(vo),d=!0});const u=1;for(;!d;)l=await ye.get($r+"/connect_four/bot_progress"),s(l.data),await new Promise(h=>setTimeout(h,u));s(1)}}function _z(e,t){if(t===null)return null;let n;if(e===1)n=hR;else if(e===2)n=fR;else return null;return j.jsx("div",{className:"marker",style:{left:Op+t*Rp+"%",top:"0%"},children:j.jsx(Yu,{src:n})})}function zz(e,t,n){let i;if(n==1)i=dR;else if(n==2)i=uR;else return null;const o=11.5,r=11.5,s=Oz+t*_1+"%";return j.jsx(Ez.img,{src:i,className:"disk",animate:{top:["0%",s],transition:{duration:.5}},style:{left:Op+e*Rp+"%",width:o+"%",height:r+"%",position:"absolute"}},e+"|"+t)}function Mz(e){return e===null?null:e.map((t,n)=>t.map((i,o)=>{let r;if(i[0]===1)r=2;else if(i[1]===1)r=1;else return null;return j.jsx("div",{children:zz(o,n,r)})}))}const Bz=()=>{const[e,t]=X.useState(null),[n,i]=X.useState(null),[o,r]=X.useState(null),[s,a]=X.useState(1),[l,c]=X.useState(0),[d,u]=P.useState({agentType:"random"});return X.useEffect(()=>{ye.get($r+"/connect_four/observe").then(h=>{console.log("observation response is",h),i(h.data.grid),r(h.data.done)})},[]),j.jsxs(j.Fragment,{children:[j.jsx(II,{children:j.jsxs(jI,{children:[j.jsx(Yg,{children:j.jsx(Gu,{id:"open-modal",expand:"block",style:{maxWidth:"80%",margin:"auto"},children:"Config"})}),j.jsx(Yg,{children:j.jsx(Gu,{id:"restart-game",expand:"block",style:{maxWidth:"80%",margin:"auto"},onClick:()=>{Dz(i,r,a)},children:"Restart"})})]})}),j.jsxs("div",{className:"grid-stack",children:[j.jsx(MI,{value:l}),j.jsx(Yu,{src:Lz,className:"board white-board"}),j.jsx(Yu,{src:Iz,className:"board black-board"}),Array.from({length:7}).map((h,f)=>j.jsx("svg",{className:"column",style:{left:Op+f*Rp+"%",width:_1+"%"},onMouseLeave:()=>t(null),onMouseOver:()=>s===vo&&t(f),onClick:()=>{o?console.log("Game is done"):s!==vo?console.log("Opponent's turn to play"):$z(f,i,r,d,a,l,c)}},f)),!o&&s===vo&&_z(vo,e),j.jsx(j.Fragment,{children:Mz(n)}),j.jsx(Az,{setCpuConfig:u})]})]})},jz=({name:e})=>j.jsx(kw,{children:j.jsxs(Vf,{children:[j.jsx(xw,{slot:"start",children:j.jsx($I,{})}),j.jsx(jf,{children:e})]})}),Vz=({name:e})=>j.jsx(kw,{collapse:"condense",children:j.jsx(Vf,{children:j.jsx(jf,{size:"large",children:e})})}),_0=({name:e,Container:t})=>j.jsxs(JI,{children:[j.jsx(jz,{name:e}),j.jsxs(ww,{fullscreen:!0,children:[j.jsx(Vz,{name:e}),j.jsx(t,{name:e})]})]}),Fz=()=>{const{name:e}=O6();if(["CartPole-v1","LunarLander-v2"].includes(e))return j.jsx(_0,{name:e,Container:cR});if(e=="ConnectFour")return j.jsx(_0,{name:e,Container:Bz});throw Error("Page not found")};pO();const Hz=()=>j.jsx(QI,{children:j.jsx(j6,{children:j.jsxs(VI,{contentId:"main",children:[j.jsx(U6,{}),j.jsxs(sO,{id:"main",children:[j.jsx(Ju,{path:"/",exact:!0,children:j.jsx(C6,{to:"/folder/ConnectFour"})}),j.jsx(Ju,{path:"/folder/:name",exact:!0,children:j.jsx(Fz,{})})]})]})})}),Nz=document.getElementById("root"),Uz=Ky(Nz);Uz.render(j.jsx(P.StrictMode,{children:j.jsx(Hz,{})}));export{tw as K,et as a,ei as b,zl as c,Gn as d,vf as e,Jx as f,fx as g,Fu as h,Ar as i,Ae as j,Ie as k,Eg as l,c8 as m,qz as n,U as o,Yz as p,Kz as q,$o as r,l8 as s,Ft as w}; function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { __vite__mapDeps.viteFileDeps = [] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) }