text: /*! Built with http://stenciljs.com */
  const{h:t}=window.App;import{e,f as i,g as n,d as s,h as a}from"./chunk-c6be03a7.js";import{b as o,c as r}from"./chunk-12dfa9dd.js";import{a as l,b as h}from"./chunk-d3672675.js";class d{constructor(){this._isOpen=!1,this.lastOnEnd=0,this.isAnimating=!1,this.isPaneVisible=!1,this.isEndSide=!1,this.disabled=!1,this.side="start",this.swipeEnabled=!0,this.maxEdgeStart=50}typeChanged(t,e){const i=this.contentEl;i&&e&&(i.classList.remove(`menu-content-${e}`),i.classList.add(`menu-content-${t}`),i.removeAttribute("style")),this.menuInnerEl&&this.menuInnerEl.removeAttribute("style"),this.animation=void 0}disabledChanged(t){this.updateState(),this.ionMenuChange.emit({disabled:t,open:this._isOpen})}sideChanged(){this.isEndSide=i(this.win,this.side)}swipeEnabledChanged(){this.updateState()}async componentWillLoad(){null==this.type&&(this.type="ios"===this.mode?"reveal":"overlay"),this.isServer?this.disabled=!0:this.menuCtrl=await this.lazyMenuCtrl.componentOnReady()}componentDidLoad(){if(this.isServer)return;const t=this.el.parentNode,e=this.contentId?document.getElementById(this.contentId):t&&t.querySelector&&t.querySelector("[main]");if(!e||!e.tagName)return void console.error('Menu: must have a "content" element to listen for drag events on.');this.contentEl=e,e.classList.add("menu-content"),this.typeChanged(this.type,null),this.sideChanged();let i=!this.disabled;!0!==i&&void 0!==i||(i=!this.menuCtrl.getMenus().some(t=>t.side===this.side&&!t.disabled)),this.menuCtrl._register(this),this.ionMenuChange.emit({disabled:!i,open:this._isOpen}),this.disabled=!i}componentDidUnload(){this.menuCtrl._unregister(this),this.animation&&this.animation.destroy(),this.animation=void 0,this.contentEl=this.backdropEl=this.menuInnerEl=void 0}onSplitPaneChanged(t){this.isPaneVisible=t.target.isPane(this.el),this.updateState()}onBackdropClick(t){const e=t.path;e&&!e.includes(this.menuInnerEl)&&this.lastOnEnd<t.timeStamp-100&&(t.preventDefault(),t.stopPropagation(),this.close())}isOpen(){return this._isOpen}open(t=!0){return this.setOpen(!0,t)}close(t=!0){return this.setOpen(!1,t)}toggle(t=!0){return this.setOpen(!this._isOpen,t)}setOpen(t,e=!0){return this.menuCtrl._setOpen(this,t,e)}async _setOpen(t,e=!0){return!this.isActive()||this.isAnimating||t===this._isOpen?this._isOpen:(this.beforeAnimation(),await this.loadAnimation(),await this.startAnimation(t,e),this.afterAnimation(t),t)}isActive(){return!this.disabled&&!this.isPaneVisible}getWidth(){return this.width}async loadAnimation(){const t=this.menuInnerEl.offsetWidth;t===this.width&&void 0!==this.animation||(this.width=t,this.animation&&(this.animation.destroy(),this.animation=void 0),this.animation=await this.menuCtrl.createAnimation(this.type,this))}async startAnimation(t,e){const i=this.animation.reverse(!t);e?await i.playAsync():i.playSync()}canSwipe(){return this.swipeEnabled&&!this.isAnimating&&this.isActive()}canStart(t){return!!this.canSwipe()&&(!!this._isOpen||!this.menuCtrl.getOpen()&&(e=this.win,i=t.currentX,n=this.isEndSide,s=this.maxEdgeStart,n?i>=e.innerWidth-s:i<=s));var e,i,n,s}onWillStart(){return this.beforeAnimation(),this.loadAnimation()}onDragStart(){this.isAnimating&&this.animation&&this.animation.reverse(this._isOpen).progressStart()}onDragMove(t){if(!this.isAnimating||!this.animation)return;const e=c(t.deltaX,this._isOpen,this.isEndSide)/this.width;this.animation.progressStep(e)}onDragEnd(t){if(!this.isAnimating||!this.animation)return;const e=this._isOpen,i=this.isEndSide,n=c(t.deltaX,e,i),s=this.width,a=n/s,o=t.velocityX,r=s/2,l=o>=0&&(o>.2||t.deltaX>r),h=o<=0&&(o<-.2||t.deltaX<-r),d=e?i?l:h:i?h:l;let m=!e&&d;e&&!d&&(m=!0);const u=(d?1-a:a)*s;let p=0;if(u>5){const t=u/Math.abs(o);p=Math.min(t,300)}this.lastOnEnd=t.timeStamp,this.animation.onFinish(()=>this.afterAnimation(m),{clearExistingCallacks:!0}).progressEnd(d,a,p)}beforeAnimation(){this.isAnimating,this.el.classList.add(m),this.backdropEl&&this.backdropEl.classList.add(u),this.isAnimating=!0}afterAnimation(t){this.isAnimating,this._isOpen=t,this.isAnimating=!1,this.enableListener(this,"body:click",t),t?(this.contentEl&&this.contentEl.classList.add(p),this.ionOpen.emit()):(this.el.classList.remove(m),this.contentEl&&this.contentEl.classList.remove(p),this.backdropEl&&this.backdropEl.classList.remove(u),this.ionClose.emit())}updateState(){!this.isActive()&&this._isOpen&&this.forceClosing(),!this.disabled&&this.menuCtrl&&this.menuCtrl._setActiveMenu(this),this.isAnimating}forceClosing(){this._isOpen,this.isAnimating=!0,this.startAnimation(!1,!1),this.afterAnimation(!1)}hostData(){const{isEndSide:t,type:e,disabled:i,isPaneVisible:n}=this;return{role:"complementary",class:{[`menu-type-${e}`]:!0,"menu-enabled":!i,"menu-side-end":t,"menu-side-start":!t,"menu-pane-visible":n}}}render(){return[t("div",{class:"menu-inner",ref:t=>this.menuInnerEl=t,onClick:this.onBackdropClick.bind(this)},t("slot",null)),t("ion-backdrop",{ref:t=>this.backdropEl=t,class:"menu-backdrop",tappable:!1,stopPropagation:!1}),t("ion-gesture",{canStart:this.canStart.bind(this),onWillStart:this.onWillStart.bind(this),onStart:this.onDragStart.bind(this),onMove:this.onDragMove.bind(this),onEnd:this.onDragEnd.bind(this),disabled:!this.isActive()||!this.swipeEnabled,gestureName:"menu-swipe",gesturePriority:10,direction:"x",threshold:10,attachTo:"window",disableScroll:!0})]}static get is(){return"ion-menu"}static get encapsulation(){return"shadow"}static get properties(){return{close:{method:!0},config:{context:"config"},contentId:{type:String,attr:"content-id"},disabled:{type:Boolean,attr:"disabled",mutable:!0,watchCallbacks:["disabledChanged"]},el:{elementRef:!0},enableListener:{context:"enableListener"},getWidth:{method:!0},isActive:{method:!0},isEndSide:{state:!0},isOpen:{method:!0},isPaneVisible:{state:!0},isServer:{context:"isServer"},lazyMenuCtrl:{connect:"ion-menu-controller"},maxEdgeStart:{type:Number,attr:"max-edge-start"},menuId:{type:String,attr:"menu-id"},open:{method:!0},setOpen:{method:!0},side:{type:String,attr:"side",watchCallbacks:["sideChanged"]},swipeEnabled:{type:Boolean,attr:"swipe-enabled",watchCallbacks:["swipeEnabledChanged"]},toggle:{method:!0},type:{type:String,attr:"type",mutable:!0,watchCallbacks:["typeChanged"]},win:{context:"window"}}}static get events(){return[{name:"ionOpen",method:"ionOpen",bubbles:!0,cancelable:!0,composed:!0},{name:"ionClose",method:"ionClose",bubbles:!0,cancelable:!0,composed:!0},{name:"ionMenuChange",method:"ionMenuChange",bubbles:!0,cancelable:!0,composed:!0}]}static get listeners(){return[{name:"body:ionSplitPaneVisible",method:"onSplitPaneChanged"},{name:"body:click",method:"onBackdropClick",capture:!0,disabled:!0}]}static get style(){return"[data-ion-menu-md-host]{left:0;right:0;top:0;bottom:0;display:none;position:absolute;contain:strict}.show-menu[data-ion-menu-md-host]{display:block}.menu-inner[data-ion-menu-md]{left:0;right:auto;top:0;bottom:0;-webkit-transform:translate3d(-9999px,0,0);transform:translate3d(-9999px,0,0);display:-webkit-box;display:-ms-flexbox;display:flex;position:absolute;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;width:304px;height:100%;contain:strict;background:var(--ion-background-color,#fff)}.menu-side-start[data-ion-menu-md-host]   .menu-inner[data-ion-menu-md]{right:auto;left:0}.menu-side-end[data-ion-menu-md-host]   .menu-inner[data-ion-menu-md]{right:0;left:auto}ion-backdrop[data-ion-menu-md]{display:none;opacity:.01;z-index:-1}.menu-content[data-ion-menu-md]{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}.menu-content-open[data-ion-menu-md]{cursor:pointer;-ms-touch-action:manipulation;touch-action:manipulation}.menu-content-open[data-ion-menu-md]   .ion-pane[data-ion-menu-md], .menu-content-open[data-ion-menu-md]   .toolbar[data-ion-menu-md], .menu-content-open[data-ion-menu-md]   ion-content[data-ion-menu-md], .menu-content-open[data-ion-menu-md]   ion-pane[data-ion-menu-md]{pointer-events:none}\@media (max-width:340px){.menu-inner[data-ion-menu-md]{width:264px}}.menu-type-reveal[data-ion-menu-md-host]{z-index:0}.menu-type-reveal.show-menu[data-ion-menu-md-host]   .menu-inner[data-ion-menu-md]{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}.menu-type-overlay[data-ion-menu-md-host]{z-index:80}.menu-type-overlay[data-ion-menu-md-host]   .show-backdrop[data-ion-menu-md]{display:block;cursor:pointer}.menu-pane-visible[data-ion-menu-md-host]   .menu-inner[data-ion-menu-md]{left:0;right:0;width:auto;-webkit-transform:none!important;transform:none!important;-webkit-box-shadow:none!important;box-shadow:none!important}.menu-pane-visible[data-ion-menu-md-host]   ion-backdrop[data-ion-menu-md]{display:hidden!important}.menu-type-overlay[data-ion-menu-md-host]   .menu-inner[data-ion-menu-md]{-webkit-box-shadow:0 0 10px rgba(0,0,0,.25);box-shadow:0 0 10px rgba(0,0,0,.25)}.app-md[data-ion-menu-md]   .menu-content-push[data-ion-menu-md], .app-md[data-ion-menu-md]   .menu-content-reveal[data-ion-menu-md]{-webkit-box-shadow:0 0 10px rgba(0,0,0,.25);box-shadow:0 0 10px rgba(0,0,0,.25)}"}static get styleMode(){return"md"}}function c(t,e,i){return Math.max(0,e!==i?-t:t)}const m="show-menu",u="show-backdrop",p="menu-content-open";class g{hostData(){return{class:Object.assign({},o(this.color))}}render(){return t("slot",null)}static get is(){return"ion-note"}static get encapsulation(){return"shadow"}static get properties(){return{color:{type:String,attr:"color"},mode:{type:String,attr:"mode"}}}static get style(){return"[data-ion-note-md-host]{color:var(--ion-color-base);--ion-color-base:var(--ion-text-color-step-800, #cccccc);font-family:var(--ion-font-family,inherit)}"}static get styleMode(){return"md"}}class b{constructor(){this.noUpdate=!1,this.hasFocus=!1,this.ratioA=0,this.ratioB=0,this.debounce=0,this.name="",this.dualKnobs=!1,this.min=0,this.max=100,this.pin=!1,this.snaps=!1,this.step=1,this.disabled=!1,this.value=0}debounceChanged(){this.ionChange=s(this.ionChange,this.debounce)}disabledChanged(){this.emitStyle()}valueChanged(t){this.noUpdate||this.updateRatio(),this.ionChange.emit({value:t})}componentWillLoad(){this.ionStyle=a(this.ionStyle),this.updateRatio(),this.debounceChanged(),this.emitStyle()}keyChng(t){let e=this.step;e=e>0?e:1,e/=this.max-this.min,t.detail.isIncrease||(e*=-1),"A"===t.detail.knob?this.ratioA+=e:this.ratioB+=e}getValue(){const t=this.value||0;return this.dualKnobs?"object"==typeof t?t:{lower:0,upper:t}:"object"==typeof t?t.upper:t}emitStyle(){this.ionStyle.emit({"interactive-disabled":this.disabled})}fireBlur(){this.hasFocus&&(this.hasFocus=!1,this.ionBlur.emit(),this.emitStyle())}fireFocus(){this.hasFocus||(this.hasFocus=!0,this.ionFocus.emit(),this.emitStyle())}onDragStart(t){this.fireFocus();const e=this.rect=this.rangeSlider.getBoundingClientRect(),i=t.currentX,s=n(0,(i-e.left)/e.width,1);this.pressedKnob=!this.dualKnobs||Math.abs(this.ratioA-s)<Math.abs(this.ratioB-s)?"A":"B",this.update(i)}onDragMove(t){this.update(t.currentX)}onDragEnd(t){this.update(t.currentX),this.pressedKnob=void 0,this.fireBlur()}update(t){const e=this.rect;let i=n(0,(t-e.left)/e.width,1);this.snaps&&(i=y(v(i,this.min,this.max,this.step),this.min,this.max)),"A"===this.pressedKnob?this.ratioA=i:this.ratioB=i,this.updateValue()}get valA(){return v(this.ratioA,this.min,this.max,this.step)}get valB(){return v(this.ratioB,this.min,this.max,this.step)}get ratioLower(){return this.dualKnobs?Math.min(this.ratioA,this.ratioB):0}get ratioUpper(){return this.dualKnobs?Math.max(this.ratioA,this.ratioB):this.ratioA}updateRatio(){const t=this.getValue(),{min:e,max:i}=this;this.dualKnobs?(this.ratioA=y(t.lower,e,i),this.ratioB=y(t.upper,e,i)):this.ratioA=y(t,e,i)}updateValue(){this.noUpdate=!0;const{valA:t,valB:e}=this;this.value=this.dualKnobs?{lower:Math.min(t,e),upper:Math.max(t,e)}:t,this.noUpdate=!1}hostData(){return{class:Object.assign({},o(this.color),{"in-item":r(".item",this.el),"range-disabled":this.disabled,"range-pressed":void 0!==this.pressedKnob,"range-has-pin":this.pin})}}render(){const{min:e,max:i,step:n,ratioLower:s,ratioUpper:a}=this,o=`${100*s}%`,r=`${100-100*a}%`,l=[];if(this.snaps)for(let t=e;t<=i;t+=n){const n=y(t,e,i);l.push({ratio:n,active:n>=s&&n<=a,left:`${100*n}%`})}return[t("slot",{name:"start"}),t("ion-gesture",{disableScroll:!0,onStart:this.onDragStart.bind(this),onMove:this.onDragMove.bind(this),onEnd:this.onDragEnd.bind(this),disabled:this.disabled,gestureName:"range",gesturePriority:30,direction:"x",threshold:0},t("div",{class:"range-slider",ref:t=>this.rangeSlider=t},l.map(e=>t("div",{style:{left:e.left},role:"presentation",class:{"range-tick":!0,"range-tick-active":e.active}})),t("div",{class:"range-bar",role:"presentation"}),t("div",{class:"range-bar range-bar-active",role:"presentation",style:{left:o,right:r}}),t("ion-range-knob",{knob:"A",pressed:"A"===this.pressedKnob,value:this.valA,ratio:this.ratioA,pin:this.pin,min:e,max:i}),this.dualKnobs&&t("ion-range-knob",{knob:"B",pressed:"B"===this.pressedKnob,value:this.valB,ratio:this.ratioB,pin:this.pin,min:e,max:i}))),t("slot",{name:"end"})]}static get is(){return"ion-range"}static get encapsulation(){return"shadow"}static get properties(){return{color:{type:String,attr:"color"},debounce:{type:Number,attr:"debounce",watchCallbacks:["debounceChanged"]},disabled:{type:Boolean,attr:"disabled",watchCallbacks:["disabledChanged"]},dualKnobs:{type:Boolean,attr:"dual-knobs"},el:{elementRef:!0},max:{type:Number,attr:"max"},min:{type:Number,attr:"min"},mode:{type:String,attr:"mode"},name:{type:String,attr:"name"},pin:{type:Boolean,attr:"pin"},pressedKnob:{state:!0},ratioA:{state:!0},ratioB:{state:!0},snaps:{type:Boolean,attr:"snaps"},step:{type:Number,attr:"step"},value:{type:"Any",attr:"value",mutable:!0,watchCallbacks:["valueChanged"]}}}static get events(){return[{name:"ionChange",method:"ionChange",bubbles:!0,cancelable:!0,composed:!0},{name:"ionStyle",method:"ionStyle",bubbles:!0,cancelable:!0,composed:!0},{name:"ionFocus",method:"ionFocus",bubbles:!0,cancelable:!0,composed:!0},{name:"ionBlur",method:"ionBlur",bubbles:!0,cancelable:!0,composed:!0}]}static get listeners(){return[{name:"ionIncrease",method:"keyChng"},{name:"ionDecrease",method:"keyChng"}]}static get style(){return"[data-ion-range-md-host]{--ion-color-base:var(--ion-color-primary, #3880ff);--ion-color-contrast:var(--ion-color-primary-contrast, #fff);display:-webkit-box;display:-ms-flexbox;display:flex;position:relative;-webkit-box-flex:1;-ms-flex:1;flex:1;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:8px;font-family:var(--ion-font-family,inherit)}[data-ion-range-md-slot] > ion-label{-webkit-box-flex:initial;-ms-flex:initial;flex:initial}[data-ion-range-md-slot] > ion-icon[slot]{font-size:24px}.range-slider[data-ion-range-md], ion-gesture[data-ion-range-md]{position:relative;-webkit-box-flex:1;-ms-flex:1;flex:1;cursor:pointer}.range-knob-handle[data-ion-range-md]:active, .range-knob-handle[data-ion-range-md]:focus{outline:0}.in-item[data-ion-range-md-host]{width:100%}[data-ion-range-md-host].in-item [data-ion-range-md-slot] > ion-label{-ms-flex-item-align:center;align-self:center}.range-has-pin[data-ion-range-md-host]{padding-top:28px}.range-slider[data-ion-range-md]{height:42px}.range-bar[data-ion-range-md]{left:0;top:21px;position:absolute;width:100%;height:2px;background:var(--ion-background-color-step-250,#bfbfbf);pointer-events:none}.range-pressed[data-ion-range-md-host]   .range-bar-active[data-ion-range-md]{will-change:left,right}.range-pressed[data-ion-range-md-host]   .range-knob-handle[data-ion-range-md]{will-change:left}.range-bar-active[data-ion-range-md]{bottom:0;width:auto;background:var(--ion-color-base)}.range-knob-handle[data-ion-range-md]{left:0;top:21px;margin-left:-21px;margin-top:-21px;position:absolute;width:42px;height:42px;text-align:center}.range-knob[data-ion-range-md]{left:12px;top:13px;border-radius:50%;position:absolute;width:18px;height:18px;-webkit-transform:scale(.67);transform:scale(.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;background:var(--ion-color-base);z-index:2;pointer-events:none}.range-tick[data-ion-range-md]{margin-left:-1px;border-radius:50%;position:absolute;top:21px;width:2px;height:2px;background:var(--ion-background-color,#fff);z-index:1;pointer-events:none}.range-tick-active[data-ion-range-md]{background:var(--ion-background-color,#fff)}.range-pin[data-ion-range-md]{-webkit-box-sizing:border-box;box-sizing:border-box;padding:8px 0;border-radius:50%;-webkit-transform:translate3d(0,28px,0) scale(.01);transform:translate3d(0,28px,0) scale(.01);display:inline-block;position:relative;top:-20px;min-width:28px;height:28px;-webkit-transition:background-color 120ms ease,-webkit-transform 120ms ease;transition:background-color 120ms ease,-webkit-transform 120ms ease;transition:transform 120ms ease,background-color 120ms ease;transition:transform 120ms ease,background-color 120ms ease,-webkit-transform 120ms ease;background:var(--ion-color-base);color:var(--ion-color-primary-contrast,#fff);font-size:12px;text-align:center}.range-pin[data-ion-range-md]::before{left:50%;top:3px;margin-left:-13px;position:absolute;width:26px;height:26px;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);-webkit-transition:background-color 120ms ease;transition:background-color 120ms ease;background:var(--ion-color-base);content:\"\";z-index:-1;border-radius:50% 50% 50% 0}.range-knob-pressed[data-ion-range-md]   .range-pin[data-ion-range-md]{-webkit-transform:translate3d(0,0,0) scale(1);transform:translate3d(0,0,0) scale(1)}[data-ion-range-md-host]:not(.range-has-pin)   .range-knob-pressed[data-ion-range-md]   .range-knob[data-ion-range-md]{-webkit-transform:scale(1);transform:scale(1)}.range-knob-min.range-knob-min[data-ion-range-md]   .range-knob[data-ion-range-md]{border:2px solid var(--ion-background-color-step-250,#bfbfbf);background:var(--ion-background-color,#fff)}.range-knob-min.range-knob-min[data-ion-range-md]   .range-pin[data-ion-range-md], .range-knob-min.range-knob-min[data-ion-range-md]   .range-pin[data-ion-range-md]::before{background:var(--ion-background-color-step-250,#bfbfbf);color:var(--ion-color-primary-contrast,#fff)}.range-disabled[data-ion-range-md-host]   .range-bar-active[data-ion-range-md]{background-color:var(--ion-background-color-step-250,#bfbfbf)}.range-disabled[data-ion-range-md-host]   .range-knob[data-ion-range-md]{-webkit-transform:scale(.55);transform:scale(.55);outline:#fff solid 5px;background-color:var(--ion-background-color-step-250,#bfbfbf)}"}static get styleMode(){return"md"}}function v(t,e,i,s){let a=(i-e)*t;return s>0&&(a=Math.round(a/s)*s+e),n(e,a,i)}function y(t,e,i){return n(0,(t-e)/(i-e),1)}const w=()=>import("./ios.transition.js"),C=()=>import("./md.transition.js");function f(t,e){e?(t.setAttribute("aria-hidden","true"),t.classList.add("ion-page-hidden")):(t.hidden=!1,t.removeAttribute("aria-hidden"),t.classList.remove("ion-page-hidden"))}async function E(t,e){const i=(null!=t.deepWait?t.deepWait:e)?[B(t.enteringEl),B(t.leavingEl)]:[O(t.enteringEl),O(t.leavingEl)];await Promise.all(i),await async function(t,e){t&&await t(e)}(t.viewIsReady,t.enteringEl)}function S(t,e,i){k(t,i,"ionViewWillLeave"),k(t,e,"ionViewWillEnter")}function A(t,e,i){k(t,e,"ionViewDidEnter"),k(t,i,"ionViewDidLeave")}function k(t,e,i){if(e){const n=new(0,t.CustomEvent)(i,{bubbles:!1,cancelable:!1});e.dispatchEvent(n)}}function O(t){return t&&t.componentOnReady?t.componentOnReady():Promise.resolve()}async function B(t){const e=t;if(e){if(e.componentOnReady&&await e.componentOnReady())return;await Promise.all(Array.from(e.children).map(B))}}class x{constructor(){this.isTransitioning=!1}componentWillLoad(){void 0===this.animated&&(this.animated=this.config.getBoolean("animate",!0)),this.ionNavWillLoad.emit()}componentDidUnload(){this.activeEl=this.activeComponent=void 0}async setRoot(t,e,i){if(this.isTransitioning||this.activeComponent===t)return!1;this.activeComponent=t;const n=await l(this.delegate,this.el,t,["ion-page","ion-page-invisible"],e),s=this.activeEl;return await this.commit(n,s,i),this.activeEl=n,h(this.delegate,s),!0}async commit(t,e,i){if(this.isTransitioning||e===t)return!1;this.isTransitioning=!0,this.ionNavWillChange.emit(),i=i||{};const{mode:n,queue:s,animated:a,animationCtrl:o,win:r,el:l}=this;return await function(t){return new Promise(e=>{t.queue.write(async()=>{!function(t){const e=t.enteringEl,i=t.leavingEl;(function(t,e,i){t&&(t.style.zIndex="back"===i?"99":"101"),e&&(e.style.zIndex="100")})(e,i,t.direction),t.showGoBack?e.classList.add("can-go-back"):e.classList.remove("can-go-back"),f(e,!1),i&&f(i,!1)}(t);const i=await async function(t){if(t.leavingEl&&!1!==t.animated&&0!==t.duration)return t.animationBuilder?t.animationBuilder:"ios"===t.mode?(await w()).iosTransitionAnimation:(await C()).mdTransitionAnimation}(t),n=i?async function(t,e){await E(e,!0);const i=await e.animationCtrl.create(t,e.baseEl,e);return S(e.window,e.enteringEl,e.leavingEl),await function(t,e){const i=e.progressCallback,n=new Promise(e=>t.onFinish(e));return i?(t.progressStart(),i(t)):t.play(),n}(i,e),i.hasCompleted&&A(e.window,e.enteringEl,e.leavingEl),i}(i,t):async function(t){const e=t.enteringEl,i=t.leavingEl;return e&&e.classList.remove("ion-page-invisible"),i&&i.classList.remove("ion-page-invisible"),await E(t,!1),S(t.window,e,i),A(t.window,e,i),null}(t);e(n)})})}(Object.assign({mode:n,queue:s,animated:a,animationCtrl:o,window:r,enteringEl:t,leavingEl:e,baseEl:l},i)),this.isTransitioning=!1,this.ionNavDidChange.emit(),!0}async setRouteId(t,e,i){return{changed:await this.setRoot(t,e,{duration:0===i?0:void 0,direction:-1===i?"back":"forward"}),element:this.activeEl}}getRouteId(){const t=this.activeEl;return t?{id:t.tagName,element:t}:void 0}render(){return["ios"===this.mode&&t("div",{class:"nav-decor"}),t("slot",null)]}static get is(){return"ion-router-outlet"}static get encapsulation(){return"shadow"}static get properties(){return{animated:{type:Boolean,attr:"animated",mutable:!0},animationBuilder:{type:"Any",attr:"animation-builder"},animationCtrl:{connect:"ion-animation-controller"},commit:{method:!0},config:{context:"config"},delegate:{type:"Any",attr:"delegate"},el:{elementRef:!0},getRouteId:{method:!0},queue:{context:"queue"},setRoot:{method:!0},setRouteId:{method:!0},win:{context:"window"}}}static get events(){return[{name:"ionNavWillLoad",method:"ionNavWillLoad",bubbles:!0,cancelable:!0,composed:!0},{name:"ionNavWillChange",method:"ionNavWillChange",bubbles:!0,cancelable:!0,composed:!0},{name:"ionNavDidChange",method:"ionNavDidChange",bubbles:!0,cancelable:!0,composed:!0}]}static get style(){return".nav-decor[data-ion-router-outlet]{display:none}.show-decor[data-ion-router-outlet-host]   .nav-decor[data-ion-router-outlet]{left:0;right:0;top:0;bottom:0;display:block;position:absolute;background:#000;z-index:0;pointer-events:none}"}}export{d as IonMenu,g as IonNote,b as IonRange,x as IonRouterOutlet};