!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="2e995622-b580-46af-99e0-6341305b0d0b",e._sentryDebugIdIdentifier="sentry-dbid-2e995622-b580-46af-99e0-6341305b0d0b")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[575],{68318:function(e,t,n){"use strict";n.d(t,{g:function(){return r}});var i=n(2979);let r=(0,i.fo)("App",{web:()=>n.e(7962).then(n.bind(n,7962)).then(e=>new e.AppWeb)})},2979:function(e,t,n){"use strict";var i,r,o,a;n.d(t,{Sd:function(){return y},Uw:function(){return h},dV:function(){return d},fo:function(){return u}});let s=(r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:{}).CapacitorPlatforms=(e=>{let t=new Map;t.set("web",{name:"web"});let n=e.CapacitorPlatforms||{currentPlatform:{name:"web"},platforms:t};return n.addPlatform=(e,t)=>{n.platforms.set(e,t)},n.setPlatform=e=>{n.platforms.has(e)&&(n.currentPlatform=n.platforms.get(e))},n})(r);s.addPlatform,s.setPlatform,(o=i||(i={})).Unimplemented="UNIMPLEMENTED",o.Unavailable="UNAVAILABLE";class l extends Error{constructor(e,t,n){super(e),this.message=e,this.code=t,this.data=n}}let c=e=>{var t,n;return(null==e?void 0:e.androidBridge)?"android":(null===(n=null===(t=null==e?void 0:e.webkit)||void 0===t?void 0:t.messageHandlers)||void 0===n?void 0:n.bridge)?"ios":"web"},d=(a="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:{}).Capacitor=(e=>{var t,n,r,o,a;let s=e.CapacitorCustomPlatform||null,d=e.Capacitor||{},u=d.Plugins=d.Plugins||{},h=e.CapacitorPlatforms,p=(null===(t=null==h?void 0:h.currentPlatform)||void 0===t?void 0:t.getPlatform)||(()=>null!==s?s.name:c(e)),f=(null===(n=null==h?void 0:h.currentPlatform)||void 0===n?void 0:n.isNativePlatform)||(()=>"web"!==p()),m=(null===(r=null==h?void 0:h.currentPlatform)||void 0===r?void 0:r.isPluginAvailable)||(e=>{let t=b.get(e);return!!((null==t?void 0:t.platforms.has(p()))||g(e))}),g=(null===(o=null==h?void 0:h.currentPlatform)||void 0===o?void 0:o.getPluginHeader)||(e=>{var t;return null===(t=d.PluginHeaders)||void 0===t?void 0:t.find(t=>t.name===e)}),b=new Map,v=(null===(a=null==h?void 0:h.currentPlatform)||void 0===a?void 0:a.registerPlugin)||((e,t={})=>{let n;let r=b.get(e);if(r)return console.warn(`Capacitor plugin "${e}" already registered. Cannot register plugins twice.`),r.proxy;let o=p(),a=g(e),c=async()=>(!n&&o in t?n=n="function"==typeof t[o]?await t[o]():t[o]:null!==s&&!n&&"web"in t&&(n=n="function"==typeof t.web?await t.web():t.web),n),h=(t,n)=>{var r,s;if(a){let i=null==a?void 0:a.methods.find(e=>n===e.name);if(i)return"promise"===i.rtype?t=>d.nativePromise(e,n.toString(),t):(t,i)=>d.nativeCallback(e,n.toString(),t,i);if(t)return null===(r=t[n])||void 0===r?void 0:r.bind(t)}else if(t)return null===(s=t[n])||void 0===s?void 0:s.bind(t);else throw new l(`"${e}" plugin is not implemented on ${o}`,i.Unimplemented)},f=t=>{let n;let r=(...r)=>{let a=c().then(a=>{let s=h(a,t);if(s){let e=s(...r);return n=null==e?void 0:e.remove,e}throw new l(`"${e}.${t}()" is not implemented on ${o}`,i.Unimplemented)});return"addListener"===t&&(a.remove=async()=>n()),a};return r.toString=()=>`${t.toString()}() { [capacitor code] }`,Object.defineProperty(r,"name",{value:t,writable:!1,configurable:!1}),r},m=f("addListener"),v=f("removeListener"),y=(e,t)=>{let n=m({eventName:e},t),i=async()=>{let i=await n;v({eventName:e,callbackId:i},t)},r=new Promise(e=>n.then(()=>e({remove:i})));return r.remove=async()=>{console.warn("Using addListener() without 'await' is deprecated."),await i()},r},x=new Proxy({},{get(e,t){switch(t){case"$$typeof":return;case"toJSON":return()=>({});case"addListener":return a?y:m;case"removeListener":return v;default:return f(t)}}});return u[e]=x,b.set(e,{name:e,proxy:x,platforms:new Set([...Object.keys(t),...a?[o]:[]])}),x});return d.convertFileSrc||(d.convertFileSrc=e=>e),d.getPlatform=p,d.handleError=t=>e.console.error(t),d.isNativePlatform=f,d.isPluginAvailable=m,d.pluginMethodNoop=(e,t,n)=>Promise.reject(`${n} does not have an implementation of "${t}".`),d.registerPlugin=v,d.Exception=l,d.DEBUG=!!d.DEBUG,d.isLoggingEnabled=!!d.isLoggingEnabled,d.platform=d.getPlatform(),d.isNative=d.isNativePlatform(),d})(a),u=d.registerPlugin;d.Plugins;class h{constructor(e){this.listeners={},this.windowListeners={},e&&(console.warn(`Capacitor WebPlugin "${e.name}" config object was deprecated in v3 and will be removed in v4.`),this.config=e)}addListener(e,t){let n=this.listeners[e];n||(this.listeners[e]=[]),this.listeners[e].push(t);let i=this.windowListeners[e];i&&!i.registered&&this.addWindowListener(i);let r=async()=>this.removeListener(e,t),o=Promise.resolve({remove:r});return Object.defineProperty(o,"remove",{value:async()=>{console.warn("Using addListener() without 'await' is deprecated."),await r()}}),o}async removeAllListeners(){for(let e in this.listeners={},this.windowListeners)this.removeWindowListener(this.windowListeners[e]);this.windowListeners={}}notifyListeners(e,t){let n=this.listeners[e];n&&n.forEach(e=>e(t))}hasListeners(e){return!!this.listeners[e].length}registerWindowListener(e,t){this.windowListeners[t]={registered:!1,windowEventName:e,pluginEventName:t,handler:e=>{this.notifyListeners(t,e)}}}unimplemented(e="not implemented"){return new d.Exception(e,i.Unimplemented)}unavailable(e="not available"){return new d.Exception(e,i.Unavailable)}async removeListener(e,t){let n=this.listeners[e];if(!n)return;let i=n.indexOf(t);this.listeners[e].splice(i,1),this.listeners[e].length||this.removeWindowListener(this.windowListeners[e])}addWindowListener(e){window.addEventListener(e.windowEventName,e.handler),e.registered=!0}removeWindowListener(e){e&&(window.removeEventListener(e.windowEventName,e.handler),e.registered=!1)}}let p=e=>encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape),f=e=>e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent);class m extends h{async getCookies(){let e=document.cookie,t={};return e.split(";").forEach(e=>{if(e.length<=0)return;let[n,i]=e.replace(/=/,"CAP_COOKIE").split("CAP_COOKIE");n=f(n).trim(),i=f(i).trim(),t[n]=i}),t}async setCookie(e){try{let t=p(e.key),n=p(e.value),i=`; expires=${(e.expires||"").replace("expires=","")}`,r=(e.path||"/").replace("path=",""),o=null!=e.url&&e.url.length>0?`domain=${e.url}`:"";document.cookie=`${t}=${n||""}${i}; path=${r}; ${o};`}catch(e){return Promise.reject(e)}}async deleteCookie(e){try{document.cookie=`${e.key}=; Max-Age=0`}catch(e){return Promise.reject(e)}}async clearCookies(){try{let e=document.cookie.split(";")||[];for(let t of e)document.cookie=t.replace(/^ +/,"").replace(/=.*/,`=;expires=${new Date().toUTCString()};path=/`)}catch(e){return Promise.reject(e)}}async clearAllCookies(){try{await this.clearCookies()}catch(e){return Promise.reject(e)}}}u("CapacitorCookies",{web:()=>new m});let g=async e=>new Promise((t,n)=>{let i=new FileReader;i.onload=()=>{let e=i.result;t(e.indexOf(",")>=0?e.split(",")[1]:e)},i.onerror=e=>n(e),i.readAsDataURL(e)}),b=(e={})=>{let t=Object.keys(e),n=Object.keys(e).map(e=>e.toLocaleLowerCase()),i=n.reduce((n,i,r)=>(n[i]=e[t[r]],n),{});return i},v=(e,t=!0)=>{if(!e)return null;let n=Object.entries(e).reduce((e,n)=>{let i,r;let[o,a]=n;return Array.isArray(a)?(r="",a.forEach(e=>{i=t?encodeURIComponent(e):e,r+=`${o}=${i}&`}),r.slice(0,-1)):(i=t?encodeURIComponent(a):a,r=`${o}=${i}`),`${e}&${r}`},"");return n.substr(1)},y=(e,t={})=>{let n=Object.assign({method:e.method||"GET",headers:e.headers},t),i=b(e.headers),r=i["content-type"]||"";if("string"==typeof e.data)n.body=e.data;else if(r.includes("application/x-www-form-urlencoded")){let t=new URLSearchParams;for(let[n,i]of Object.entries(e.data||{}))t.set(n,i);n.body=t.toString()}else if(r.includes("multipart/form-data")){let t=new FormData;if(e.data instanceof FormData)e.data.forEach((e,n)=>{t.append(n,e)});else for(let n of Object.keys(e.data))t.append(n,e.data[n]);n.body=t;let i=new Headers(n.headers);i.delete("content-type"),n.headers=i}else(r.includes("application/json")||"object"==typeof e.data)&&(n.body=JSON.stringify(e.data));return n};class x extends h{async request(e){let t,n;let i=y(e,e.webFetchExtra),r=v(e.params,e.shouldEncodeUrlParams),o=r?`${e.url}?${r}`:e.url,a=await fetch(o,i),s=a.headers.get("content-type")||"",{responseType:l="text"}=a.ok?e:{};switch(s.includes("application/json")&&(l="json"),l){case"arraybuffer":case"blob":n=await a.blob(),t=await g(n);break;case"json":t=await a.json();break;default:t=await a.text()}let c={};return a.headers.forEach((e,t)=>{c[t]=e}),{data:t,headers:c,status:a.status,url:a.url}}async get(e){return this.request(Object.assign(Object.assign({},e),{method:"GET"}))}async post(e){return this.request(Object.assign(Object.assign({},e),{method:"POST"}))}async put(e){return this.request(Object.assign(Object.assign({},e),{method:"PUT"}))}async patch(e){return this.request(Object.assign(Object.assign({},e),{method:"PATCH"}))}async delete(e){return this.request(Object.assign(Object.assign({},e),{method:"DELETE"}))}}u("CapacitorHttp",{web:()=>new x})},47570:function(e,t,n){"use strict";n.d(t,{A:function(){return r}});var i=n(2979);let r=(0,i.fo)("Device",{web:()=>n.e(1853).then(n.bind(n,1853)).then(e=>new e.DeviceWeb)})},77244:function(e,t,n){"use strict";n.d(t,{N1:function(){return l}});var i,r,o,a,s=n(2979);(i=o||(o={})).Dark="DARK",i.Light="LIGHT",i.Default="DEFAULT",(r=a||(a={})).Body="body",r.Ionic="ionic",r.Native="native",r.None="none";let l=(0,s.fo)("Keyboard")},7896:function(e,t,n){"use strict";n.d(t,{u:function(){return r}});var i=n(2979);let r=(0,i.fo)("Preferences",{web:()=>n.e(6189).then(n.bind(n,26189)).then(e=>new e.PreferencesWeb)})},74354:function(e,t,n){"use strict";n.d(t,{A_:function(){return a},bg:function(){return r}});var i,Animation,r,Animation,o=n(2979);(i=r||(r={})).Dark="DARK",i.Light="LIGHT",i.Default="DEFAULT",(Animation=Animation||(Animation={})).None="NONE",Animation.Slide="SLIDE",Animation.Fade="FADE";let a=(0,o.fo)("StatusBar")},93430:function(e,t,n){"use strict";let i;n.d(t,{c:function(){return l}});var r=n(64924);let o=e=>{if(void 0===i){let t=void 0!==e.style.animationName,n=void 0!==e.style.webkitAnimationName;i=!t&&n?"-webkit-":""}return i},a=(e,t,n)=>{let i=t.startsWith("animation")?o(e):"";e.style.setProperty(i+t,n)},s=(e=[],t)=>{if(void 0!==t){let n=Array.isArray(t)?t:[t];return[...e,...n]}return e},l=e=>{let t,n,i,o,l,c,d,u,h,p,f;let m=[],g=[],b=[],v=!1,y={},x=[],w=[],k={},_=0,E=!1,S=!1,C=!0,P=!1,T=!0,O=!1,A=[],I=[],R=[],$=[],L=[],M=[],j=[],D=[],N=[],F=[],z=[],B="function"==typeof AnimationEffect||void 0!==r.w&&"function"==typeof r.w.AnimationEffect,H="function"==typeof Element&&"function"==typeof Element.prototype.animate&&B,U=()=>z,V=e=>{K(),e&&J()},W=()=>{E=!1,S=!1,T=!0,u=void 0,h=void 0,p=void 0,_=0,P=!1,C=!0,O=!1},q=(e,t)=>{let n=t.findIndex(t=>t.c===e);n>-1&&t.splice(n,1)},G=(e,t)=>(R.push({c:e,o:t}),f),X=(e,t)=>{let n=(null==t?void 0:t.oneTimeCallback)?I:A;return n.push({c:e,o:t}),f},Y=()=>(A.length=0,I.length=0,f),K=()=>{H&&(z.forEach(e=>{e.cancel()}),z.length=0)},J=()=>{M.forEach(e=>{(null==e?void 0:e.parentNode)&&e.parentNode.removeChild(e)}),M.length=0},Z=()=>void 0!==l?l:d?d.getFill():"both",Q=()=>void 0!==u?u:void 0!==c?c:d?d.getDirection():"normal",ee=()=>E?"linear":void 0!==i?i:d?d.getEasing():"linear",et=()=>S?0:void 0!==h?h:void 0!==n?n:d?d.getDuration():0,en=()=>void 0!==o?o:d?d.getIterations():1,ei=()=>void 0!==p?p:void 0!==t?t:d?d.getDelay():0,er=e=>{H&&U().forEach(t=>{let n=t.effect;if(n.setKeyframes)n.setKeyframes(e);else{let i=new KeyframeEffect(n.target,e,n.getTiming());t.effect=i}})},eo=()=>{j.forEach(e=>e()),D.forEach(e=>e());let e=g,t=b,n=y;$.forEach(i=>{let r=i.classList;for(let o in e.forEach(e=>r.add(e)),t.forEach(e=>r.remove(e)),n)n.hasOwnProperty(o)&&a(i,o,n[o])})},ea=()=>{N.forEach(e=>e()),F.forEach(e=>e());let e=C?1:0,t=x,n=w,i=k;$.forEach(e=>{let r=e.classList;for(let o in t.forEach(e=>r.add(e)),n.forEach(e=>r.remove(e)),i)i.hasOwnProperty(o)&&a(e,o,i[o])}),h=void 0,u=void 0,p=void 0,A.forEach(t=>t.c(e,f)),I.forEach(t=>t.c(e,f)),I.length=0,T=!0,C&&(P=!0),C=!0},es=()=>{0!==_&&0==--_&&(ea(),d&&d.animationFinish())},el=()=>{$.forEach(t=>{let n=t.animate(m,{id:e,delay:ei(),duration:et(),easing:ee(),iterations:en(),fill:Z(),direction:Q()});n.pause(),z.push(n)}),z.length>0&&(z[0].onfinish=()=>{es()})},ec=()=>{eo(),m.length>0&&H&&el(),v=!0},ed=e=>{e=Math.min(Math.max(e,0),.9999),H&&z.forEach(t=>{t.currentTime=t.effect.getComputedTiming().delay+et()*e,t.pause()})},eu=e=>{z.forEach(e=>{e.effect.updateTiming({delay:ei(),duration:et(),easing:ee(),iterations:en(),fill:Z(),direction:Q()})}),void 0!==e&&ed(e)},eh=(e=!1,t=!0,n)=>(e&&L.forEach(i=>{i.update(e,t,n)}),H&&eu(n),f),ep=()=>{v&&(H?z.forEach(e=>{e.pause()}):$.forEach(e=>{a(e,"animation-play-state","paused")}),O=!0)},ef=()=>{es()},em=()=>{z.forEach(e=>{e.play()}),(0===m.length||0===$.length)&&es()},eg=()=>{H&&(ed(0),eu())},eb=e=>new Promise(t=>{(null==e?void 0:e.sync)&&(S=!0,X(()=>S=!1,{oneTimeCallback:!0})),v||ec(),P&&(eg(),P=!1),T&&(_=L.length+1,T=!1);let n=()=>{q(i,I),t()},i=()=>{q(n,R),t()};X(i,{oneTimeCallback:!0}),G(n,{oneTimeCallback:!0}),L.forEach(e=>{e.play()}),H?em():ef(),O=!1}),ev=(e,t)=>{let n=m[0];return void 0!==n&&(void 0===n.offset||0===n.offset)?n[e]=t:m=[{offset:0,[e]:t},...m],f};return f={parentAnimation:d,elements:$,childAnimations:L,id:e,animationFinish:es,from:ev,to:(e,t)=>{let n=m[m.length-1];return void 0!==n&&(void 0===n.offset||1===n.offset)?n[e]=t:m=[...m,{offset:1,[e]:t}],f},fromTo:(e,t,n)=>ev(e,t).to(e,n),parent:e=>(d=e,f),play:eb,pause:()=>(L.forEach(e=>{e.pause()}),ep(),f),stop:()=>{L.forEach(e=>{e.stop()}),v&&(K(),v=!1),W(),R.forEach(e=>e.c(0,f)),R.length=0},destroy:e=>(L.forEach(t=>{t.destroy(e)}),V(e),$.length=0,L.length=0,m.length=0,Y(),v=!1,T=!0,f),keyframes:e=>{let t=m!==e;return m=e,t&&er(m),f},addAnimation:e=>{if(null!=e){if(Array.isArray(e))for(let t of e)t.parent(f),L.push(t);else e.parent(f),L.push(e)}return f},addElement:e=>{if(null!=e){if(1===e.nodeType)$.push(e);else if(e.length>=0)for(let t=0;t<e.length;t++)$.push(e[t]);else console.error("Invalid addElement value")}return f},update:eh,fill:e=>(l=e,eh(!0),f),direction:e=>(c=e,eh(!0),f),iterations:e=>(o=e,eh(!0),f),duration:e=>(H||0!==e||(e=1),n=e,eh(!0),f),easing:e=>(i=e,eh(!0),f),delay:e=>(t=e,eh(!0),f),getWebAnimations:U,getKeyframes:()=>m,getFill:Z,getDirection:Q,getDelay:ei,getIterations:en,getEasing:ee,getDuration:et,afterAddRead:e=>(N.push(e),f),afterAddWrite:e=>(F.push(e),f),afterClearStyles:(e=[])=>{for(let t of e)k[t]="";return f},afterStyles:(e={})=>(k=e,f),afterRemoveClass:e=>(w=s(w,e),f),afterAddClass:e=>(x=s(x,e),f),beforeAddRead:e=>(j.push(e),f),beforeAddWrite:e=>(D.push(e),f),beforeClearStyles:(e=[])=>{for(let t of e)y[t]="";return f},beforeStyles:(e={})=>(y=e,f),beforeRemoveClass:e=>(b=s(b,e),f),beforeAddClass:e=>(g=s(g,e),f),onFinish:X,isRunning:()=>0!==_&&!O,progressStart:(e=!1,t)=>(L.forEach(n=>{n.progressStart(e,t)}),ep(),E=e,v||ec(),eh(!1,!0,t),f),progressStep:e=>(L.forEach(t=>{t.progressStep(e)}),ed(e),f),progressEnd:(e,t,n)=>(E=!1,L.forEach(i=>{i.progressEnd(e,t,n)}),void 0!==n&&(h=n),P=!1,C=!0,0===e?("reverse"==(u="reverse"===Q()?"normal":"reverse")&&(C=!1),H?(eh(),ed(1-t)):(p=-((1-t)*et()*1),eh(!1,!1))):1===e&&(H?(eh(),ed(t)):(p=-(t*et()*1),eh(!1,!1))),void 0===e||d||eb(),f)}}},60169:function(e,t,n){"use strict";n.d(t,{g:function(){return r}});var i=n(64924);/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */let r=()=>{if(void 0!==i.w)return i.w.Capacitor}},73124:function(e,t,n){"use strict";n.d(t,{i:function(){return i}});/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */let i=e=>e&&""!==e.dir?"rtl"===e.dir.toLowerCase():(null==document?void 0:document.dir.toLowerCase())==="rtl"},80846:function(e,t,n){"use strict";n.r(t),n.d(t,{startFocusVisible:function(){return o}});/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */let i="ion-focused",r=["Tab","ArrowDown","Space","Escape"," ","Shift","Enter","ArrowLeft","ArrowRight","ArrowUp","Home","End"],o=e=>{let t=[],n=!0,o=e?e.shadowRoot:document,a=e||document.body,s=e=>{t.forEach(e=>e.classList.remove(i)),e.forEach(e=>e.classList.add(i)),t=e},l=()=>{n=!1,s([])},c=e=>{(n=r.includes(e.key))||s([])},d=e=>{if(n&&void 0!==e.composedPath){let t=e.composedPath().filter(e=>!!e.classList&&e.classList.contains("ion-focusable"));s(t)}},u=()=>{o.activeElement===a&&s([])};return o.addEventListener("keydown",c),o.addEventListener("focusin",d),o.addEventListener("focusout",u),o.addEventListener("touchstart",l,{passive:!0}),o.addEventListener("mousedown",l),{destroy:()=>{o.removeEventListener("keydown",c),o.removeEventListener("focusin",d),o.removeEventListener("focusout",u),o.removeEventListener("touchstart",l),o.removeEventListener("mousedown",l)},setFocus:s}}},16137:function(e,t,n){"use strict";n.d(t,{B:function(){return a},G:function(){return s}});/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */class i{constructor(){this.gestureId=0,this.requestedStart=new Map,this.disabledGestures=new Map,this.disabledScroll=new Set}createGesture(e){var t;return new r(this,this.newID(),e.name,null!==(t=e.priority)&&void 0!==t?t:0,!!e.disableScroll)}createBlocker(e={}){return new o(this,this.newID(),e.disable,!!e.disableScroll)}start(e,t,n){return this.canStart(e)?(this.requestedStart.set(t,n),!0):(this.requestedStart.delete(t),!1)}capture(e,t,n){if(!this.start(e,t,n))return!1;let i=this.requestedStart,r=-1e4;if(i.forEach(e=>{r=Math.max(r,e)}),r===n){this.capturedId=t,i.clear();let n=new CustomEvent("ionGestureCaptured",{detail:{gestureName:e}});return document.dispatchEvent(n),!0}return i.delete(t),!1}release(e){this.requestedStart.delete(e),this.capturedId===e&&(this.capturedId=void 0)}disableGesture(e,t){let n=this.disabledGestures.get(e);void 0===n&&(n=new Set,this.disabledGestures.set(e,n)),n.add(t)}enableGesture(e,t){let n=this.disabledGestures.get(e);void 0!==n&&n.delete(t)}disableScroll(e){this.disabledScroll.add(e),1===this.disabledScroll.size&&document.body.classList.add(a)}enableScroll(e){this.disabledScroll.delete(e),0===this.disabledScroll.size&&document.body.classList.remove(a)}canStart(e){return!(void 0!==this.capturedId||this.isDisabled(e))}isCaptured(){return void 0!==this.capturedId}isScrollDisabled(){return this.disabledScroll.size>0}isDisabled(e){let t=this.disabledGestures.get(e);return!!t&&t.size>0}newID(){return this.gestureId++,this.gestureId}}class r{constructor(e,t,n,i,r){this.id=t,this.name=n,this.disableScroll=r,this.priority=1e6*i+t,this.ctrl=e}canStart(){return!!this.ctrl&&this.ctrl.canStart(this.name)}start(){return!!this.ctrl&&this.ctrl.start(this.name,this.id,this.priority)}capture(){if(!this.ctrl)return!1;let e=this.ctrl.capture(this.name,this.id,this.priority);return e&&this.disableScroll&&this.ctrl.disableScroll(this.id),e}release(){this.ctrl&&(this.ctrl.release(this.id),this.disableScroll&&this.ctrl.enableScroll(this.id))}destroy(){this.release(),this.ctrl=void 0}}class o{constructor(e,t,n,i){this.id=t,this.disable=n,this.disableScroll=i,this.ctrl=e}block(){if(this.ctrl){if(this.disable)for(let e of this.disable)this.ctrl.disableGesture(e,this.id);this.disableScroll&&this.ctrl.disableScroll(this.id)}}unblock(){if(this.ctrl){if(this.disable)for(let e of this.disable)this.ctrl.enableGesture(e,this.id);this.disableScroll&&this.ctrl.enableScroll(this.id)}}destroy(){this.unblock(),this.ctrl=void 0}}let a="backdrop-no-scroll",s=new i},43804:function(e,t,n){"use strict";n.r(t),n.d(t,{MENU_BACK_BUTTON_PRIORITY:function(){return c},OVERLAY_BACK_BUTTON_PRIORITY:function(){return l},blockHardwareBackButton:function(){return a},shouldUseCloseWatcher:function(){return o},startHardwareBackButton:function(){return s}});var i=n(64924),r=n(98127);/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */let o=()=>r.c.get("experimentalCloseWatcher",!1)&&void 0!==i.w&&"CloseWatcher"in i.w,a=()=>{document.addEventListener("backbutton",()=>{})},s=()=>{let e=document,t=!1,n=()=>{if(t)return;let n=0,i=[],r=new CustomEvent("ionBackButton",{bubbles:!1,detail:{register(e,t){i.push({priority:e,handler:t,id:n++})}}});e.dispatchEvent(r);let o=async e=>{try{if(null==e?void 0:e.handler){let t=e.handler(a);null!=t&&await t}}catch(e){console.error(e)}},a=()=>{if(i.length>0){let e={priority:Number.MIN_SAFE_INTEGER,handler:()=>void 0,id:-1};i.forEach(t=>{t.priority>=e.priority&&(e=t)}),t=!0,i=i.filter(t=>t.id!==e.id),o(e).then(()=>t=!1)}};a()};if(o()){let e;let t=()=>{null==e||e.destroy(),(e=new i.w.CloseWatcher).onclose=()=>{n(),t()}};t()}else e.addEventListener("backbutton",n)},l=100,c=99},10738:function(e,t,n){"use strict";n.d(t,{a:function(){return d},b:function(){return u},c:function(){return o},d:function(){return s},e:function(){return g},f:function(){return m},g:function(){return h},h:function(){return f},i:function(){return c},j:function(){return a},k:function(){return b},l:function(){return w},m:function(){return x},n:function(){return v},p:function(){return y},r:function(){return p},s:function(){return _},t:function(){return i}});/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */let i=(e,t=0)=>new Promise(n=>{r(e,t,n)}),r=(e,t=0,n)=>{let i,r;let o={passive:!0},a=()=>{i&&i()},s=t=>{(void 0===t||e===t.target)&&(a(),n(t))};return e&&(e.addEventListener("webkitTransitionEnd",s,o),e.addEventListener("transitionend",s,o),r=setTimeout(s,t+500),i=()=>{void 0!==r&&(clearTimeout(r),r=void 0),e.removeEventListener("webkitTransitionEnd",s,o),e.removeEventListener("transitionend",s,o)}),a},o=(e,t)=>{e.componentOnReady?e.componentOnReady().then(e=>t(e)):p(()=>t(e))},a=e=>void 0!==e.componentOnReady,s=(e,t=[])=>{let n={};return t.forEach(t=>{if(e.hasAttribute(t)){let i=e.getAttribute(t);null!==i&&(n[t]=e.getAttribute(t)),e.removeAttribute(t)}}),n},l=["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"],c=(e,t)=>{let n=l;return t&&t.length>0&&(n=n.filter(e=>!t.includes(e))),s(e,n)},d=(e,t,n,i)=>{var r;if("undefined"!=typeof window){let o=window,a=null===(r=null==o?void 0:o.Ionic)||void 0===r?void 0:r.config;if(a){let r=a.get("_ael");if(r)return r(e,t,n,i);if(a._ael)return a._ael(e,t,n,i)}}return e.addEventListener(t,n,i)},u=(e,t,n,i)=>{var r;if("undefined"!=typeof window){let o=window,a=null===(r=null==o?void 0:o.Ionic)||void 0===r?void 0:r.config;if(a){let r=a.get("_rel");if(r)return r(e,t,n,i);if(a._rel)return a._rel(e,t,n,i)}}return e.removeEventListener(t,n,i)},h=(e,t=e)=>e.shadowRoot||t,p=e=>"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(e):"function"==typeof requestAnimationFrame?requestAnimationFrame(e):setTimeout(e),f=e=>!!e.shadowRoot&&!!e.attachShadow,m=e=>{if(e.focus(),e.classList.contains("ion-focusable")){let t=e.closest("ion-app");t&&t.setFocus([e])}},g=(e,t,n,i,r)=>{if(e||f(t)){let e=t.querySelector("input.aux-input");e||((e=t.ownerDocument.createElement("input")).type="hidden",e.classList.add("aux-input"),t.appendChild(e)),e.disabled=r,e.name=n,e.value=i||""}},b=(e,t,n)=>Math.max(e,Math.min(t,n)),v=(e,t)=>{if(!e){let e="ASSERT: "+t;throw console.error(e),Error(e)}},y=e=>{if(e){let t=e.changedTouches;if(t&&t.length>0){let e=t[0];return{x:e.clientX,y:e.clientY}}if(void 0!==e.pageX)return{x:e.pageX,y:e.pageY}}return{x:0,y:0}},x=e=>{let t="rtl"===document.dir;switch(e){case"start":return t;case"end":return!t;default:throw Error(`"${e}" is not a valid value for [side]. Use "start" or "end" instead.`)}},w=(e,t)=>{let n=e._original||e;return{_original:e,emit:k(n.emit.bind(n),t)}},k=(e,t=0)=>{let n;return(...i)=>{clearTimeout(n),n=setTimeout(e,t,...i)}},_=(e,t)=>{if(null!=e||(e={}),null!=t||(t={}),e===t)return!0;let n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let i of n)if(!(i in t)||e[i]!==t[i])return!1;return!0}},12873:function(e,t,n){"use strict";n.d(t,{b:function(){return s},c:function(){return l},d:function(){return c},e:function(){return A},g:function(){return $},l:function(){return T},s:function(){return I},t:function(){return g},w:function(){return O}});var i=n(98127),r=n(28307),o=n(87691),a=n(10738);let s="ionViewWillLeave",l="ionViewDidLeave",c="ionViewWillUnload",d=e=>{e.tabIndex=-1,e.focus()},u=e=>null!==e.offsetParent,h="ion-last-focus",p=()=>Promise.resolve().then(n.bind(n,30518)),f=()=>Promise.resolve().then(n.bind(n,84061)),m={saveViewFocus:e=>{let t=i.c.get("focusManagerPriority",!1);if(t){let t=document.activeElement;null!==t&&(null==e?void 0:e.contains(t))&&t.setAttribute(h,"true")}},setViewFocus:e=>{let t=i.c.get("focusManagerPriority",!1);if(Array.isArray(t)&&!e.contains(document.activeElement)){let n=e.querySelector(`[${h}]`);if(n&&u(n)){d(n);return}for(let n of t)switch(n){case"content":let t=e.querySelector('main, [role="main"]');if(t&&u(t)){d(t);return}break;case"heading":let i=e.querySelector('h1, [role="heading"][aria-level="1"]');if(i&&u(i)){d(i);return}break;case"banner":let r=e.querySelector('header, [role="banner"]');if(r&&u(r)){d(r);return}break;default:(0,o.p)(`Unrecognized focus manager priority value ${n}`)}d(e)}}},g=e=>new Promise((t,n)=>{(0,r.Iu)(()=>{b(e),v(e).then(n=>{n.animation&&n.animation.destroy(),y(e),t(n)},t=>{y(e),n(t)})})}),b=e=>{let t=e.enteringEl,n=e.leavingEl;m.saveViewFocus(n),R(t,n,e.direction),e.showGoBack?t.classList.add("can-go-back"):t.classList.remove("can-go-back"),I(t,!1),t.style.setProperty("pointer-events","none"),n&&(I(n,!1),n.style.setProperty("pointer-events","none"))},v=async e=>{let t=await x(e),n=t&&r.Z5.isBrowser?w(t,e):k(e);return n},y=e=>{let t=e.enteringEl,n=e.leavingEl;t.classList.remove("ion-page-invisible"),t.style.removeProperty("pointer-events"),void 0!==n&&(n.classList.remove("ion-page-invisible"),n.style.removeProperty("pointer-events")),m.setViewFocus(t)},x=async e=>{if(!e.leavingEl||!e.animated||0===e.duration)return;if(e.animationBuilder)return e.animationBuilder;let t="ios"===e.mode?(await p()).iosTransitionAnimation:(await f()).mdTransitionAnimation;return t},w=async(e,t)=>{await _(t,!0);let n=e(t.baseEl,t);C(t.enteringEl,t.leavingEl);let i=await S(n,t);return t.progressCallback&&t.progressCallback(void 0),i&&P(t.enteringEl,t.leavingEl),{hasCompleted:i,animation:n}},k=async e=>{let t=e.enteringEl,n=e.leavingEl,r=i.c.get("focusManagerPriority",!1);return await _(e,r),C(t,n),P(t,n),{hasCompleted:!0}},_=async(e,t)=>{let n=void 0!==e.deepWait?e.deepWait:t;n&&await Promise.all([A(e.enteringEl),A(e.leavingEl)]),await E(e.viewIsReady,e.enteringEl)},E=async(e,t)=>{e&&await e(t)},S=(e,t)=>{let n=t.progressCallback,i=new Promise(t=>{e.onFinish(e=>t(1===e))});return n?(e.progressStart(!0),n(e)):e.play(),i},C=(e,t)=>{T(t,s),T(e,"ionViewWillEnter")},P=(e,t)=>{T(e,"ionViewDidEnter"),T(t,l)},T=(e,t)=>{if(e){let n=new CustomEvent(t,{bubbles:!1,cancelable:!1});e.dispatchEvent(n)}},O=()=>new Promise(e=>(0,a.r)(()=>(0,a.r)(()=>e()))),A=async e=>{if(e){if(null!=e.componentOnReady){let t=await e.componentOnReady();if(null!=t)return}else if(null!=e.__registerHost){let e=new Promise(e=>(0,a.r)(e));await e;return}await Promise.all(Array.from(e.children).map(A))}},I=(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"))},R=(e,t,n)=>{void 0!==e&&(e.style.zIndex="back"===n?"99":"101"),void 0!==t&&(t.style.zIndex="100")},$=e=>{if(e.classList.contains("ion-page"))return e;let t=e.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs");return t||e}},19341:function(e,t,n){"use strict";let i;n.r(t),n.d(t,{GESTURE_CONTROLLER:function(){return r.G},createGesture:function(){return d}});var r=n(16137);/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */let o=(e,t,n,i)=>{let r,o;let s=a(e)?{capture:!!i.capture,passive:!!i.passive}:!!i.capture;return e.__zone_symbol__addEventListener?(r="__zone_symbol__addEventListener",o="__zone_symbol__removeEventListener"):(r="addEventListener",o="removeEventListener"),e[r](t,n,s),()=>{e[o](t,n,s)}},a=e=>{if(void 0===i)try{let t=Object.defineProperty({},"passive",{get:()=>{i=!0}});e.addEventListener("optsTest",()=>{},t)}catch(e){i=!1}return!!i},s=(e,t,n,i,r)=>{let a,s,c,d,u,h,p;let f=0,m=i=>{f=Date.now()+2e3,t(i)&&(!s&&n&&(s=o(e,"touchmove",n,r)),c||(c=o(i.target,"touchend",b,r)),d||(d=o(i.target,"touchcancel",b,r)))},g=i=>{!(f>Date.now())&&t(i)&&(!h&&n&&(h=o(l(e),"mousemove",n,r)),p||(p=o(l(e),"mouseup",v,r)))},b=e=>{y(),i&&i(e)},v=e=>{x(),i&&i(e)},y=()=>{s&&s(),c&&c(),d&&d(),s=c=d=void 0},x=()=>{h&&h(),p&&p(),h=p=void 0},w=()=>{y(),x()},k=(t=!0)=>{t?(a||(a=o(e,"touchstart",m,r)),u||(u=o(e,"mousedown",g,r))):(a&&a(),u&&u(),a=u=void 0,w())};return{enable:k,stop:w,destroy:()=>{k(!1),i=n=t=void 0}}},l=e=>e instanceof Document?e:e.ownerDocument,c=(e,t,n)=>{let i=n*(Math.PI/180),r="x"===e,o=Math.cos(i),a=t*t,s=0,l=0,c=!1,d=0;return{start(e,t){s=e,l=t,d=0,c=!0},detect(e,t){if(!c)return!1;let n=e-s,i=t-l,u=n*n+i*i;if(u<a)return!1;let h=Math.sqrt(u),p=(r?n:i)/h;return d=p>o?1:p<-o?-1:0,c=!1,!0},isGesture:()=>0!==d,getDirection:()=>d}},d=e=>{let t=!1,n=!1,i=!0,o=!1,a=Object.assign({disableScroll:!1,direction:"x",gesturePriority:0,passive:!0,maxAngle:40,threshold:10},e),l=a.canStart,d=a.onWillStart,f=a.onStart,m=a.onEnd,g=a.notCaptured,b=a.onMove,v=a.threshold,y=a.passive,x=a.blurOnStart,w={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},k=c(a.direction,a.threshold,a.maxAngle),_=r.G.createGesture({name:e.gestureName,priority:e.gesturePriority,disableScroll:e.disableScroll}),E=()=>{t&&(o=!1,b&&b(w))},S=()=>!!_.capture()&&(t=!0,i=!1,w.startX=w.currentX,w.startY=w.currentY,w.startTime=w.currentTime,d?d(w).then(P):P(),!0),C=()=>{if("undefined"!=typeof document){let e=document.activeElement;(null==e?void 0:e.blur)&&e.blur()}},P=()=>{x&&C(),f&&f(w),i=!0},T=()=>{t=!1,n=!1,o=!1,i=!0,_.release()},O=e=>{let n=t,r=i;if(T(),r){if(u(w,e),n){m&&m(w);return}g&&g(w)}},A=s(a.el,e=>{let t=p(e);return!n&&!!i&&(h(e,w),w.startX=w.currentX,w.startY=w.currentY,w.startTime=w.currentTime=t,w.velocityX=w.velocityY=w.deltaX=w.deltaY=0,w.event=e,(!l||!1!==l(w))&&(_.release(),!!_.start()&&((n=!0,0===v)?S():(k.start(w.startX,w.startY),!0))))},e=>{if(t){!o&&i&&(o=!0,u(w,e),requestAnimationFrame(E));return}u(w,e),!k.detect(w.currentX,w.currentY)||k.isGesture()&&S()||I()},O,{capture:!1,passive:y}),I=()=>{T(),A.stop(),g&&g(w)};return{enable(e=!0){e||(t&&O(void 0),T()),A.enable(e)},destroy(){_.destroy(),A.destroy()}}},u=(e,t)=>{if(!t)return;let n=e.currentX,i=e.currentY,r=e.currentTime;h(t,e);let o=e.currentX,a=e.currentY,s=e.currentTime=p(t),l=s-r;l>0&&l<100&&(e.velocityX=.7*((o-n)/l)+.3*e.velocityX,e.velocityY=.7*((a-i)/l)+.3*e.velocityY),e.deltaX=o-e.startX,e.deltaY=a-e.startY,e.event=t},h=(e,t)=>{let n=0,i=0;if(e){let t=e.changedTouches;if(t&&t.length>0){let e=t[0];n=e.clientX,i=e.clientY}else void 0!==e.pageX&&(n=e.pageX,i=e.pageY)}t.currentX=n,t.currentY=i},p=e=>e.timeStamp||Date.now()},64924:function(e,t,n){"use strict";n.d(t,{d:function(){return r},w:function(){return i}});/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */let i="undefined"!=typeof window?window:void 0,r="undefined"!=typeof document?document:void 0},87691:function(e,t,n){"use strict";n.d(t,{a:function(){return r},b:function(){return o},p:function(){return i}});/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */let i=(e,...t)=>console.warn(`[Ionic Warning]: ${e}`,...t),r=(e,...t)=>console.error(`[Ionic Error]: ${e}`,...t),o=(e,...t)=>console.error(`<${e.tagName.toLowerCase()}> must be used inside ${t.join(" or ")}.`)},11396:function(e,t,n){"use strict";n.d(t,{I:function(){return a},a:function(){return u},b:function(){return o},c:function(){return p},d:function(){return m},f:function(){return d},g:function(){return c},i:function(){return l},p:function(){return f},r:function(){return g},s:function(){return h}});var i=n(10738),r=n(87691);let o="ion-content",a=".ion-content-scroll-host",s=`${o}, ${a}`,l=e=>"ION-CONTENT"===e.tagName,c=async e=>l(e)?(await new Promise(t=>(0,i.c)(e,t)),e.getScrollElement()):e,d=e=>{let t=e.querySelector(a);return t||e.querySelector(s)},u=e=>e.closest(s),h=(e,t)=>l(e)?e.scrollToTop(t):Promise.resolve(e.scrollTo({top:0,left:0,behavior:t>0?"smooth":"auto"})),p=(e,t,n,i)=>l(e)?e.scrollByPoint(t,n,i):Promise.resolve(e.scrollBy({top:n,left:t,behavior:i>0?"smooth":"auto"})),f=e=>(0,r.b)(e,o),m=e=>{if(!l(e))return e.style.setProperty("overflow","hidden"),!0;{let t=e.scrollY;return e.scrollY=!1,t}},g=(e,t)=>{l(e)?e.scrollY=t:e.style.removeProperty("overflow")}},98127:function(e,t,n){"use strict";let i;n.d(t,{a:function(){return f},b:function(){return P},c:function(){return a},g:function(){return p},i:function(){return T}});var r=n(28307);/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */class o{constructor(){this.m=new Map}reset(e){this.m=new Map(Object.entries(e))}get(e,t){let n=this.m.get(e);return void 0!==n?n:t}getBoolean(e,t=!1){let n=this.m.get(e);return void 0===n?t:"string"==typeof n?"true"===n:!!n}getNumber(e,t){let n=parseFloat(this.m.get(e));return isNaN(n)?void 0!==t?t:NaN:n}set(e,t){this.m.set(e,t)}}let a=new o,s=e=>{try{let t=e.sessionStorage.getItem(h);return null!==t?JSON.parse(t):{}}catch(e){return{}}},l=(e,t)=>{try{e.sessionStorage.setItem(h,JSON.stringify(t))}catch(e){return}},c=e=>{let t={};return e.location.search.slice(1).split("&").map(e=>e.split("=")).map(([e,t])=>{try{return[decodeURIComponent(e),decodeURIComponent(t)]}catch(e){return["",""]}}).filter(([e])=>d(e,u)).map(([e,t])=>[e.slice(u.length),t]).forEach(([e,n])=>{t[e]=n}),t},d=(e,t)=>e.substr(0,t.length)===t,u="ionic:",h="ionic-persist-config",p=e=>m(e),f=(e,t)=>("string"==typeof e&&(t=e,e=void 0),p(e).includes(t)),m=(e=window)=>{if(void 0===e)return[];e.Ionic=e.Ionic||{};let t=e.Ionic.platforms;return null==t&&(t=e.Ionic.platforms=g(e)).forEach(t=>e.document.documentElement.classList.add(`plt-${t}`)),t},g=e=>{let t=a.get("platform");return Object.keys(C).filter(n=>{let i=null==t?void 0:t[n];return"function"==typeof i?i(e):C[n](e)})},b=e=>!!(E(e,/iPad/i)||E(e,/Macintosh/i)&&x(e)),v=e=>E(e,/android|sink/i),y=e=>v(e)&&!E(e,/mobile/i),x=e=>S(e,"(any-pointer:coarse)"),w=e=>k(e)||_(e),k=e=>!!(e.cordova||e.phonegap||e.PhoneGap),_=e=>{let t=e.Capacitor;return!!(null==t?void 0:t.isNative)},E=(e,t)=>t.test(e.navigator.userAgent),S=(e,t)=>{var n;return null===(n=e.matchMedia)||void 0===n?void 0:n.call(e,t).matches},C={ipad:b,iphone:e=>E(e,/iPhone/i),ios:e=>E(e,/iPhone|iPod/i)||b(e),android:v,phablet:e=>{let t=e.innerWidth,n=e.innerHeight,i=Math.min(t,n),r=Math.max(t,n);return i>390&&i<520&&r>620&&r<800},tablet:e=>{let t=e.innerWidth,n=e.innerHeight,i=Math.min(t,n),r=Math.max(t,n);return b(e)||y(e)||i>460&&i<820&&r>780&&r<1400},cordova:k,capacitor:_,electron:e=>E(e,/electron/i),pwa:e=>{var t;return!!((null===(t=e.matchMedia)||void 0===t?void 0:t.call(e,"(display-mode: standalone)").matches)||e.navigator.standalone)},mobile:x,mobileweb:e=>x(e)&&!w(e),desktop:e=>!x(e),hybrid:w},P=e=>e&&(0,r.iJ)(e)||i,T=(e={})=>{if("undefined"==typeof window)return;let t=window.document,n=window,o=n.Ionic=n.Ionic||{},d={};e._ael&&(d.ael=e._ael),e._rel&&(d.rel=e._rel),e._ce&&(d.ce=e._ce),(0,r.TX)(d);let u=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},s(n)),{persistConfig:!1}),o.config),c(n)),e);a.reset(u),a.getBoolean("persistConfig")&&l(n,u),m(n),o.config=a,o.mode=i=a.get("mode",t.documentElement.getAttribute("mode")||(f(n,"ios")?"ios":"md")),a.set("mode",i),t.documentElement.setAttribute("mode",i),t.documentElement.classList.add(i),a.getBoolean("_testing")&&a.set("animated",!1);let h=e=>{var t;return null===(t=e.tagName)||void 0===t?void 0:t.startsWith("ION-")},p=e=>["ios","md"].includes(e);(0,r.PM)(e=>{for(;e;){let t=e.mode||e.getAttribute("mode");if(t){if(p(t))return t;h(e)&&console.warn('Invalid ionic mode: "'+t+'", expected: "ios" or "md"')}e=e.parentElement}return i})}},30518:function(e,t,n){"use strict";n.r(t),n.d(t,{iosTransitionAnimation:function(){return h},shadow:function(){return a}});var i=n(93430),r=n(12873);let o=e=>document.querySelector(`${e}.ion-cloned-element`),a=e=>e.shadowRoot||e,s=e=>{let t="ION-TABS"===e.tagName?e:e.querySelector("ion-tabs"),n="ion-content ion-header:not(.header-collapse-condense-inactive) ion-title.title-large";if(null!=t){let e=t.querySelector("ion-tab:not(.tab-hidden), .ion-page:not(.ion-page-hidden)");return null!=e?e.querySelector(n):null}return e.querySelector(n)},l=(e,t)=>{let n="ION-TABS"===e.tagName?e:e.querySelector("ion-tabs"),i=[];if(null!=n){let e=n.querySelector("ion-tab:not(.tab-hidden), .ion-page:not(.ion-page-hidden)");null!=e&&(i=e.querySelectorAll("ion-buttons"))}else i=e.querySelectorAll("ion-buttons");for(let e of i){let n=e.closest("ion-header"),i=n&&!n.classList.contains("header-collapse-condense-inactive"),r=e.querySelector("ion-back-button"),o=e.classList.contains("buttons-collapse"),a="start"===e.slot||""===e.slot;if(null!==r&&a&&(o&&i&&t||!o))return r}return null},c=(e,t,n,i,r)=>{let o=l(i,n),c=s(r),h=s(i),p=l(r,n),f=null!==o&&null!==c&&!n,m=null!==h&&null!==p&&n;if(f){let i=c.getBoundingClientRect(),r=o.getBoundingClientRect(),s=a(o).querySelector(".button-text"),l=null==s?void 0:s.getBoundingClientRect(),h=a(c).querySelector(".toolbar-title"),p=h.getBoundingClientRect();u(e,t,n,c,i,p,r,s,l),d(e,t,n,o,r,s,l,c,p)}else if(m){let i=h.getBoundingClientRect(),r=p.getBoundingClientRect(),o=a(p).querySelector(".button-text"),s=null==o?void 0:o.getBoundingClientRect(),l=a(h).querySelector(".toolbar-title"),c=l.getBoundingClientRect();u(e,t,n,h,i,c,r,o,s),d(e,t,n,p,r,o,s,h,c)}return{forward:f,backward:m}},d=(e,t,n,r,s,l,c,d,u)=>{var h,f;let m=t?`calc(100% - ${s.right+4}px)`:`${s.left-4}px`,g=t?"right":"left",b=1,v=1,y=`scale(${v})`,x="scale(1)";if(l&&c){let e=(null===(h=l.textContent)||void 0===h?void 0:h.trim())===(null===(f=d.textContent)||void 0===f?void 0:f.trim());b=u.width/c.width,v=(u.height-p)/c.height,y=e?`scale(${b}, ${v})`:`scale(${v})`}let w=a(r).querySelector("ion-icon"),k=w.getBoundingClientRect(),_=t?`${k.width/2-(k.right-s.right)}px`:`${s.left-k.width/2}px`,E=t?`-${window.innerWidth-s.right}px`:`${s.left}px`,S=`${u.top}px`,C=`${s.top}px`,P=[{offset:0,transform:`translate3d(${_}, ${S}, 0)`},{offset:1,transform:`translate3d(${E}, ${C}, 0)`}],T=[{offset:0,transform:`translate3d(${E}, ${C}, 0)`},{offset:1,transform:`translate3d(${_}, ${S}, 0)`}],O=[{offset:0,opacity:0,transform:y},{offset:1,opacity:1,transform:x}],A=[{offset:0,opacity:1,transform:x},{offset:1,opacity:0,transform:y}],I=(0,i.c)(),R=(0,i.c)(),$=(0,i.c)(),L=o("ion-back-button"),M=a(L).querySelector(".button-text"),j=a(L).querySelector("ion-icon");L.text=r.text,L.mode=r.mode,L.icon=r.icon,L.color=r.color,L.disabled=r.disabled,L.style.setProperty("display","block"),L.style.setProperty("position","fixed"),R.addElement(j),I.addElement(M),$.addElement(L),$.beforeStyles({position:"absolute",top:"0px",[t?"right":"left"]:"0px"}).beforeAddWrite(()=>{r.style.setProperty("display","none"),L.style.setProperty(g,m)}).afterAddWrite(()=>{r.style.setProperty("display",""),L.style.setProperty("display","none"),L.style.removeProperty(g)}).keyframes(n?T:P),I.beforeStyles({"transform-origin":`${g} top`}).keyframes(n?A:O),R.beforeStyles({"transform-origin":`${t?"left":"right"} center`}).keyframes(n?[{offset:0,opacity:1,transform:"scale(1)"},{offset:.2,opacity:0,transform:"scale(0.6)"},{offset:1,opacity:0,transform:"scale(0.6)"}]:[{offset:0,opacity:0,transform:"scale(0.6)"},{offset:.6,opacity:0,transform:"scale(0.6)"},{offset:1,opacity:1,transform:"scale(1)"}]),e.addAnimation([I,R,$])},u=(e,t,n,r,a,s,l,c,d)=>{var u,h;let f=t?"right":"left",m=t?`calc(100% - ${a.right}px)`:`${a.left}px`,g=`${a.top}px`,b=t?`-${window.innerWidth-l.right-8}px`:`${l.x+8}px`,v=.5,y="scale(1)",x=`scale(${v})`;if(c&&d){b=t?`-${window.innerWidth-d.right-8}px`:`${d.x-8}px`;let e=(null===(u=c.textContent)||void 0===u?void 0:u.trim())===(null===(h=r.textContent)||void 0===h?void 0:h.trim()),n=d.width/s.width;v=d.height/(s.height-p),x=e?`scale(${n}, ${v})`:`scale(${v})`}let w=l.top+l.height/2,k=a.height*v/2,_=`${w-k}px`,E=[{offset:0,opacity:0,transform:`translate3d(${b}, ${_}, 0) ${x}`},{offset:.1,opacity:0},{offset:1,opacity:1,transform:`translate3d(0px, ${g}, 0) ${y}`}],S=[{offset:0,opacity:.99,transform:`translate3d(0px, ${g}, 0) ${y}`},{offset:.6,opacity:0},{offset:1,opacity:0,transform:`translate3d(${b}, ${_}, 0) ${x}`}],C=o("ion-title"),P=(0,i.c)();C.innerText=r.innerText,C.size=r.size,C.color=r.color,P.addElement(C),P.beforeStyles({"transform-origin":`${f} top`,height:`${a.height}px`,display:"",position:"relative",[f]:m}).beforeAddWrite(()=>{r.style.setProperty("opacity","0")}).afterAddWrite(()=>{r.style.setProperty("opacity",""),C.style.setProperty("display","none")}).keyframes(n?E:S),e.addAnimation(P)},h=(e,t)=>{var n;try{let o="opacity",s="transform",l="rtl"===e.ownerDocument.dir,d=l?"-99.5%":"99.5%",u=l?"33%":"-33%",h=t.enteringEl,p=t.leavingEl,f="back"===t.direction,m=h.querySelector(":scope > ion-content"),g=h.querySelectorAll(":scope > ion-header > *:not(ion-toolbar), :scope > ion-footer > *"),b=h.querySelectorAll(":scope > ion-header > ion-toolbar"),v=(0,i.c)(),y=(0,i.c)();if(v.addElement(h).duration((null!==(n=t.duration)&&void 0!==n?n:0)||540).easing(t.easing||"cubic-bezier(0.32,0.72,0,1)").fill("both").beforeRemoveClass("ion-page-invisible"),p&&null!=e){let t=(0,i.c)();t.addElement(e),v.addAnimation(t)}if(m||0!==b.length||0!==g.length?(y.addElement(m),y.addElement(g)):y.addElement(h.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")),v.addAnimation(y),f?y.beforeClearStyles([o]).fromTo("transform",`translateX(${u})`,"translateX(0%)").fromTo(o,.8,1):y.beforeClearStyles([o]).fromTo("transform",`translateX(${d})`,"translateX(0%)"),m){let e=a(m).querySelector(".transition-effect");if(e){let t=e.querySelector(".transition-cover"),n=e.querySelector(".transition-shadow"),r=(0,i.c)(),a=(0,i.c)(),s=(0,i.c)();r.addElement(e).beforeStyles({opacity:"1",display:"block"}).afterStyles({opacity:"",display:""}),a.addElement(t).beforeClearStyles([o]).fromTo(o,0,.1),s.addElement(n).beforeClearStyles([o]).fromTo(o,.03,.7),r.addAnimation([a,s]),y.addAnimation([r])}}let x=h.querySelector("ion-header.header-collapse-condense"),{forward:w,backward:k}=c(v,l,f,h,p);if(b.forEach(e=>{let t;let n=(0,i.c)();n.addElement(e),v.addAnimation(n);let r=(0,i.c)();r.addElement(e.querySelector("ion-title"));let s=(0,i.c)(),c=Array.from(e.querySelectorAll("ion-buttons,[menuToggle]")),h=e.closest("ion-header"),p=null==h?void 0:h.classList.contains("header-collapse-condense-inactive");t=f?c.filter(e=>{let t=e.classList.contains("buttons-collapse");return t&&!p||!t}):c.filter(e=>!e.classList.contains("buttons-collapse")),s.addElement(t);let m=(0,i.c)();m.addElement(e.querySelectorAll(":scope > *:not(ion-title):not(ion-buttons):not([menuToggle])"));let g=(0,i.c)();g.addElement(a(e).querySelector(".toolbar-background"));let b=(0,i.c)(),y=e.querySelector("ion-back-button");if(y&&b.addElement(y),n.addAnimation([r,s,m,g,b]),s.fromTo(o,.01,1),m.fromTo(o,.01,1),f)p||r.fromTo("transform",`translateX(${u})`,"translateX(0%)").fromTo(o,.01,1),m.fromTo("transform",`translateX(${u})`,"translateX(0%)"),b.fromTo(o,.01,1);else{x||r.fromTo("transform",`translateX(${d})`,"translateX(0%)").fromTo(o,.01,1),m.fromTo("transform",`translateX(${d})`,"translateX(0%)"),g.beforeClearStyles([o,"transform"]);let e=null==h?void 0:h.translucent;if(e?g.fromTo("transform",l?"translateX(-100%)":"translateX(100%)","translateX(0px)"):g.fromTo(o,.01,"var(--opacity)"),w||b.fromTo(o,.01,1),y&&!w){let e=(0,i.c)();e.addElement(a(y).querySelector(".button-text")).fromTo("transform",l?"translateX(-100px)":"translateX(100px)","translateX(0px)"),n.addAnimation(e)}}}),p){let e=(0,i.c)(),t=p.querySelector(":scope > ion-content"),n=p.querySelectorAll(":scope > ion-header > ion-toolbar"),c=p.querySelectorAll(":scope > ion-header > *:not(ion-toolbar), :scope > ion-footer > *");if(t||0!==n.length||0!==c.length?(e.addElement(t),e.addElement(c)):e.addElement(p.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")),v.addAnimation(e),f){e.beforeClearStyles([o]).fromTo("transform","translateX(0%)",l?"translateX(-100%)":"translateX(100%)");let t=(0,r.g)(p);v.afterAddWrite(()=>{"normal"===v.getDirection()&&t.style.setProperty("display","none")})}else e.fromTo("transform","translateX(0%)",`translateX(${u})`).fromTo(o,1,.8);if(t){let n=a(t).querySelector(".transition-effect");if(n){let t=n.querySelector(".transition-cover"),r=n.querySelector(".transition-shadow"),a=(0,i.c)(),s=(0,i.c)(),l=(0,i.c)();a.addElement(n).beforeStyles({opacity:"1",display:"block"}).afterStyles({opacity:"",display:""}),s.addElement(t).beforeClearStyles([o]).fromTo(o,.1,0),l.addElement(r).beforeClearStyles([o]).fromTo(o,.7,.03),a.addAnimation([s,l]),e.addAnimation([a])}}n.forEach(e=>{let t=(0,i.c)();t.addElement(e);let n=(0,i.c)();n.addElement(e.querySelector("ion-title"));let r=(0,i.c)(),c=e.querySelectorAll("ion-buttons,[menuToggle]"),d=e.closest("ion-header"),h=null==d?void 0:d.classList.contains("header-collapse-condense-inactive"),p=Array.from(c).filter(e=>{let t=e.classList.contains("buttons-collapse");return t&&!h||!t});r.addElement(p);let m=(0,i.c)(),g=e.querySelectorAll(":scope > *:not(ion-title):not(ion-buttons):not([menuToggle])");g.length>0&&m.addElement(g);let b=(0,i.c)();b.addElement(a(e).querySelector(".toolbar-background"));let y=(0,i.c)(),x=e.querySelector("ion-back-button");if(x&&y.addElement(x),t.addAnimation([n,r,m,y,b]),v.addAnimation(t),y.fromTo(o,.99,0),r.fromTo(o,.99,0),m.fromTo(o,.99,0),f){h||n.fromTo("transform","translateX(0%)",l?"translateX(-100%)":"translateX(100%)").fromTo(o,.99,0),m.fromTo("transform","translateX(0%)",l?"translateX(-100%)":"translateX(100%)"),b.beforeClearStyles([o,"transform"]);let e=null==d?void 0:d.translucent;if(e?b.fromTo("transform","translateX(0px)",l?"translateX(-100%)":"translateX(100%)"):b.fromTo(o,"var(--opacity)",0),x&&!k){let e=(0,i.c)();e.addElement(a(x).querySelector(".button-text")).fromTo("transform","translateX(0%)",`translateX(${(l?-124:124)+"px"})`),t.addAnimation(e)}}else h||n.fromTo("transform","translateX(0%)",`translateX(${u})`).fromTo(o,.99,0).afterClearStyles([s,o]),m.fromTo("transform","translateX(0%)",`translateX(${u})`).afterClearStyles([s,o]),y.afterClearStyles([o]),n.afterClearStyles([o]),r.afterClearStyles([o])})}return v}catch(e){throw e}},p=10},99234:function(e,t,n){"use strict";n.d(t,{K:function(){return l},a:function(){return a}});var i,r,o,a,s=n(60169);(i=o||(o={})).Unimplemented="UNIMPLEMENTED",i.Unavailable="UNAVAILABLE",(r=a||(a={})).Body="body",r.Ionic="ionic",r.Native="native",r.None="none";let l={getEngine(){let e=(0,s.g)();if(null==e?void 0:e.isPluginAvailable("Keyboard"))return e.Plugins.Keyboard},getResizeMode(){let e=this.getEngine();return(null==e?void 0:e.getResizeMode)?e.getResizeMode().catch(e=>{if(e.code!==o.Unimplemented)throw e}):Promise.resolve(void 0)}}},75781:function(e,t,n){"use strict";n.r(t),n.d(t,{KEYBOARD_DID_CLOSE:function(){return o},KEYBOARD_DID_OPEN:function(){return r},copyVisualViewport:function(){return x},keyboardDidClose:function(){return g},keyboardDidOpen:function(){return f},keyboardDidResize:function(){return m},resetKeyboardAssist:function(){return c},setKeyboardClose:function(){return p},setKeyboardOpen:function(){return h},startKeyboardAssist:function(){return d},trackViewportChanges:function(){return y}});var i=n(99234);/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */let r="ionKeyboardDidShow",o="ionKeyboardDidHide",a={},s={},l=!1,c=()=>{a={},s={},l=!1},d=e=>{let t=i.K.getEngine();if(t)u(e);else{if(!e.visualViewport)return;s=x(e.visualViewport),e.visualViewport.onresize=()=>{y(e),f()||m(e)?h(e):g(e)&&p(e)}}},u=e=>{e.addEventListener("keyboardDidShow",t=>h(e,t)),e.addEventListener("keyboardDidHide",()=>p(e))},h=(e,t)=>{b(e,t),l=!0},p=e=>{v(e),l=!1},f=()=>{let e=(a.height-s.height)*s.scale;return!l&&a.width===s.width&&e>150},m=e=>l&&!g(e),g=e=>l&&s.height===e.innerHeight,b=(e,t)=>{let n=t?t.keyboardHeight:e.innerHeight-s.height,i=new CustomEvent(r,{detail:{keyboardHeight:n}});e.dispatchEvent(i)},v=e=>{let t=new CustomEvent(o);e.dispatchEvent(t)},y=e=>{a=Object.assign({},s),s=x(e.visualViewport)},x=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})},84061:function(e,t,n){"use strict";n.r(t),n.d(t,{mdTransitionAnimation:function(){return o}});var i=n(93430),r=n(12873);/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */let o=(e,t)=>{var n,o,a;let s="40px",l="back"===t.direction,c=t.enteringEl,d=t.leavingEl,u=(0,r.g)(c),h=u.querySelector("ion-toolbar"),p=(0,i.c)();if(p.addElement(u).fill("both").beforeRemoveClass("ion-page-invisible"),l?p.duration((null!==(n=t.duration)&&void 0!==n?n:0)||200).easing("cubic-bezier(0.47,0,0.745,0.715)"):p.duration((null!==(o=t.duration)&&void 0!==o?o:0)||280).easing("cubic-bezier(0.36,0.66,0.04,1)").fromTo("transform",`translateY(${s})`,"translateY(0px)").fromTo("opacity",.01,1),h){let e=(0,i.c)();e.addElement(h),p.addAnimation(e)}if(d&&l){p.duration((null!==(a=t.duration)&&void 0!==a?a:0)||200).easing("cubic-bezier(0.47,0,0.745,0.715)");let e=(0,i.c)();e.addElement((0,r.g)(d)).onFinish(t=>{1===t&&e.elements.length>0&&e.elements[0].style.setProperty("display","none")}).fromTo("transform","translateY(0px)",`translateY(${s})`).fromTo("opacity",1,0),p.addAnimation(e)}return p}},39906:function(e,t,n){"use strict";let i,r,o;n.r(t),n.d(t,{CreateAnimation:function(){return cF},DefaultIonLifeCycleContext:function(){return sy},IonAccordion:function(){return sF},IonAccordionGroup:function(){return sz},IonActionSheet:function(){return l9},IonAlert:function(){return l3},IonApp:function(){return cc},IonAvatar:function(){return sB},IonBackButton:function(){return cR},IonBackdrop:function(){return sH},IonBadge:function(){return sU},IonBreadcrumb:function(){return lQ},IonBreadcrumbs:function(){return sV},IonButton:function(){return lX},IonButtons:function(){return sW},IonCard:function(){return lY},IonCardContent:function(){return sq},IonCardHeader:function(){return sG},IonCardSubtitle:function(){return sX},IonCardTitle:function(){return sY},IonCheckbox:function(){return sK},IonChip:function(){return sJ},IonCol:function(){return sZ},IonContent:function(){return sQ},IonDatetime:function(){return s0},IonDatetimeButton:function(){return s1},IonFab:function(){return s2},IonFabButton:function(){return lK},IonFabList:function(){return s5},IonFooter:function(){return s3},IonGrid:function(){return s4},IonHeader:function(){return s6},IonIcon:function(){return cL},IonImg:function(){return s8},IonInfiniteScroll:function(){return s9},IonInfiniteScrollContent:function(){return s7},IonInput:function(){return le},IonInputPasswordToggle:function(){return lt},IonItem:function(){return lJ},IonItemDivider:function(){return ln},IonItemGroup:function(){return li},IonItemOption:function(){return lZ},IonItemOptions:function(){return lr},IonItemSliding:function(){return lo},IonLabel:function(){return la},IonLifeCycleContext:function(){return sv},IonList:function(){return ls},IonListHeader:function(){return ll},IonLoading:function(){return l4},IonMenu:function(){return lc},IonMenuButton:function(){return ld},IonMenuToggle:function(){return lu},IonModal:function(){return l7},IonNav:function(){return cv},IonNavLink:function(){return lh},IonNote:function(){return lp},IonPage:function(){return cp},IonPicker:function(){return lf},IonPickerColumn:function(){return lm},IonPickerColumnOption:function(){return lg},IonPickerLegacy:function(){return l8},IonPopover:function(){return ce},IonProgressBar:function(){return lb},IonRadio:function(){return lv},IonRadioGroup:function(){return ly},IonRange:function(){return lx},IonRedirect:function(){return cj},IonRefresher:function(){return lw},IonRefresherContent:function(){return lk},IonReorder:function(){return l_},IonReorderGroup:function(){return lE},IonRippleEffect:function(){return lS},IonRoute:function(){return cM},IonRouterContext:function(){return cD},IonRouterLink:function(){return lG},IonRouterOutlet:function(){return c_},IonRow:function(){return lC},IonSearchbar:function(){return lP},IonSegment:function(){return lT},IonSegmentButton:function(){return lO},IonSelect:function(){return lA},IonSelectOption:function(){return lI},IonSkeletonText:function(){return lR},IonSpinner:function(){return l$},IonSplitPane:function(){return lL},IonTab:function(){return lM},IonTabBar:function(){return cP},IonTabButton:function(){return cE},IonTabs:function(){return cI},IonTabsContext:function(){return cy},IonText:function(){return lj},IonTextarea:function(){return lD},IonThumbnail:function(){return lN},IonTitle:function(){return lF},IonToast:function(){return l6},IonToggle:function(){return lz},IonToolbar:function(){return lB},IonicSafeString:function(){return ex},IonicSlides:function(){return ep},LocationHistory:function(){return c1},NavContext:function(){return sS},NavManager:function(){return c2},RouteManagerContext:function(){return cQ},StackContext:function(){return cd},ViewLifeCycleManager:function(){return c0},ViewStacks:function(){return c5},createAnimation:function(){return m.c},createGesture:function(){return eR.createGesture},generateId:function(){return cm},getConfig:function(){return lW},getIonPageElement:function(){return e$.g},getPlatforms:function(){return lV},getTimeGivenProgression:function(){return ew},iosTransitionAnimation:function(){return eL.iosTransitionAnimation},isPlatform:function(){return lU},mdTransitionAnimation:function(){return eM.mdTransitionAnimation},openURL:function(){return eI},setupIonicReact:function(){return cZ},useIonActionSheet:function(){return cV},useIonAlert:function(){return cW},useIonLoading:function(){return cJ},useIonModal:function(){return cX},useIonPicker:function(){return cK},useIonPopover:function(){return cY},useIonRouter:function(){return cN},useIonToast:function(){return cq},useIonViewDidEnter:function(){return sk},useIonViewDidLeave:function(){return sE},useIonViewWillEnter:function(){return sw},useIonViewWillLeave:function(){return s_},withIonLifeCycle:function(){return sx}});var a,s,l,c,d,u,h=n(7653),p=n(98127),f=n(10738),m=n(93430),g=n(64924),b=n(43804);/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */let v=async(e,t,n,i,r,o)=>{var a;if(e)return e.attachViewToDom(t,n,r,i);if(!o&&"string"!=typeof n&&!(n instanceof HTMLElement))throw Error("framework delegate is missing");let s="string"==typeof n?null===(a=t.ownerDocument)||void 0===a?void 0:a.createElement(n):n;return i&&i.forEach(e=>s.classList.add(e)),r&&Object.assign(s,r),t.appendChild(s),await new Promise(e=>(0,f.c)(s,e)),s},y=(e,t)=>{if(t){if(e){let n=t.parentElement;return e.removeViewFromDom(n,t)}t.remove()}return Promise.resolve()},x=()=>{let e,t;let n=async(n,i,r={},o=[])=>{var a,s;let l;if(e=n,i){let t="string"==typeof i?null===(a=e.ownerDocument)||void 0===a?void 0:a.createElement(i):i;o.forEach(e=>t.classList.add(e)),Object.assign(t,r),e.appendChild(t),l=t,await new Promise(e=>(0,f.c)(t,e))}else if(e.children.length>0&&("ION-MODAL"===e.tagName||"ION-POPOVER"===e.tagName)){let t=l=e.children[0];if(!t.classList.contains("ion-delegate-host")){let t=null===(s=e.ownerDocument)||void 0===s?void 0:s.createElement("div");t.classList.add("ion-delegate-host"),o.forEach(e=>t.classList.add(e)),t.append(...e.children),e.appendChild(t),l=t}}let c=document.querySelector("ion-app")||document.body;return t=document.createComment("ionic teleport"),e.parentNode.insertBefore(t,e),c.appendChild(e),null!=l?l:e};return{attachViewToDom:n,removeViewFromDom:()=>(e&&t&&(t.parentNode.insertBefore(e,t),t.remove()),Promise.resolve())}};var w=n(16137),k=n(87691);/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */let _='[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])',E=(e,t)=>{let n=e.querySelector(_);C(n,null!=t?t:e)},S=(e,t)=>{let n=Array.from(e.querySelectorAll(_)),i=n.length>0?n[n.length-1]:null;C(i,null!=t?t:e)},C=(e,t)=>{let n=e,i=null==e?void 0:e.shadowRoot;i&&(n=i.querySelector(_)||e),n?(0,f.f)(n):t.focus()},P=0,T=0,O=new WeakMap,A=e=>({create:t=>z(e,t),dismiss:(t,n,i)=>W(document,t,n,e,i),getTop:async()=>X(document,e)}),I=A("ion-alert"),R=A("ion-action-sheet"),$=A("ion-loading"),L=A("ion-modal"),M=A("ion-picker-legacy"),j=A("ion-popover"),D=A("ion-toast"),N=e=>{"undefined"!=typeof document&&V(document);let t=P++;e.overlayIndex=t},F=e=>(e.hasAttribute("id")||(e.id=`ion-overlay-${++T}`),e.id),z=(e,t)=>"undefined"!=typeof window&&void 0!==window.customElements?window.customElements.whenDefined(e).then(()=>{let n=document.createElement(e);return n.classList.add("overlay-hidden"),Object.assign(n,Object.assign(Object.assign({},t),{hasController:!0})),Q(document).appendChild(n),new Promise(e=>(0,f.c)(n,e))}):Promise.resolve(),B=e=>e.classList.contains("overlay-hidden"),H=(e,t)=>{let n=e,i=null==e?void 0:e.shadowRoot;i&&(n=i.querySelector(_)||e),n?(0,f.f)(n):t.focus()},U=(e,t)=>{let n=X(t,"ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker-legacy,ion-popover"),i=e.target;!n||!i||n.classList.contains(eh)||(n.shadowRoot?(()=>{if(n.contains(i))n.lastFocus=i;else if("ION-TOAST"===i.tagName)H(n.lastFocus,n);else{let e=n.lastFocus;E(n),e===t.activeElement&&S(n),n.lastFocus=t.activeElement}})():(()=>{if(n===i)n.lastFocus=void 0;else if("ION-TOAST"===i.tagName)H(n.lastFocus,n);else{let e=(0,f.g)(n);if(!e.contains(i))return;let r=e.querySelector(".ion-overlay-wrapper");if(!r)return;if(r.contains(i)||i===e.querySelector("ion-backdrop"))n.lastFocus=i;else{let e=n.lastFocus;E(r,n),e===t.activeElement&&S(r,n),n.lastFocus=t.activeElement}}})())},V=e=>{0!==P||(P=1,e.addEventListener("focus",t=>{U(t,e)},!0),e.addEventListener("ionBackButton",t=>{let n=X(e);(null==n?void 0:n.backdropDismiss)&&t.detail.register(b.OVERLAY_BACK_BUTTON_PRIORITY,()=>{n.dismiss(void 0,ea)})}),(0,b.shouldUseCloseWatcher)()||e.addEventListener("keydown",t=>{if("Escape"===t.key){let t=X(e);(null==t?void 0:t.backdropDismiss)&&t.dismiss(void 0,ea)}}))},W=(e,t,n,i,r)=>{let o=X(e,i,r);return o?o.dismiss(t,n):Promise.reject("overlay does not exist")},q=(e,t)=>(void 0===t&&(t="ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker-legacy,ion-popover,ion-toast"),Array.from(e.querySelectorAll(t)).filter(e=>e.overlayIndex>0)),G=(e,t)=>q(e,t).filter(e=>!B(e)),X=(e,t,n)=>{let i=G(e,t);return void 0===n?i[i.length-1]:i.find(e=>e.id===n)},Y=(e=!1)=>{let t=Q(document),n=t.querySelector("ion-router-outlet, ion-nav, #ion-view-container-root");n&&(e?n.setAttribute("aria-hidden","true"):n.removeAttribute("aria-hidden"))},K=async(e,t,n,i,r)=>{var o,a;if(e.presented)return;Y(!0),document.body.classList.add(w.B),ed(e.el),e.presented=!0,e.willPresent.emit(),null===(o=e.willPresentShorthand)||void 0===o||o.emit();let s=(0,p.b)(e),l=e.enterAnimation?e.enterAnimation:p.c.get(t,"ios"===s?n:i),c=await ee(e,l,e.el,r);c&&(e.didPresent.emit(),null===(a=e.didPresentShorthand)||void 0===a||a.emit()),"ION-TOAST"!==e.el.tagName&&J(e.el),e.keyboardClose&&(null===document.activeElement||!e.el.contains(document.activeElement))&&e.el.focus(),e.el.removeAttribute("aria-hidden")},J=async e=>{let t=document.activeElement;if(!t)return;let n=null==t?void 0:t.shadowRoot;n&&(t=n.querySelector(_)||t),await e.onDidDismiss(),(null===document.activeElement||document.activeElement===document.body)&&t.focus()},Z=async(e,t,n,i,r,o,a)=>{var s,l;if(!e.presented)return!1;let c=void 0!==g.d&&1===G(g.d).length;c&&(Y(!1),document.body.classList.remove(w.B)),e.presented=!1;try{e.el.style.setProperty("pointer-events","none"),e.willDismiss.emit({data:t,role:n}),null===(s=e.willDismissShorthand)||void 0===s||s.emit({data:t,role:n});let c=(0,p.b)(e),d=e.leaveAnimation?e.leaveAnimation:p.c.get(i,"ios"===c?r:o);n!==es&&await ee(e,d,e.el,a),e.didDismiss.emit({data:t,role:n}),null===(l=e.didDismissShorthand)||void 0===l||l.emit({data:t,role:n});let u=O.get(e)||[];u.forEach(e=>e.destroy()),O.delete(e),e.el.classList.add("overlay-hidden"),e.el.style.removeProperty("pointer-events"),void 0!==e.el.lastFocus&&(e.el.lastFocus=void 0)}catch(e){console.error(e)}return e.el.remove(),eu(),!0},Q=e=>e.querySelector("ion-app")||e.body,ee=async(e,t,n,i)=>{n.classList.remove("overlay-hidden");let r=e.el,o=t(r,i);e.animated&&p.c.getBoolean("animated",!0)||o.duration(0),e.keyboardClose&&o.beforeAddWrite(()=>{let e=n.ownerDocument.activeElement;(null==e?void 0:e.matches("input,ion-input, ion-textarea"))&&e.blur()});let a=O.get(e)||[];return O.set(e,[...a,o]),await o.play(),!0},et=(e,t)=>{let n;let i=new Promise(e=>n=e);return en(e,t,e=>{n(e.detail)}),i},en=(e,t,n)=>{let i=r=>{(0,f.b)(e,t,i),n(r)};(0,f.a)(e,t,i)},ei=e=>"cancel"===e||e===ea,er=e=>e(),eo=(e,t)=>{if("function"==typeof e){let n=p.c.get("_zoneGate",er);return n(()=>{try{return e(t)}catch(e){throw e}})}},ea="backdrop",es="gesture",el=e=>{let t,n=!1,i=x(),r=(r=!1)=>{if(t&&!r)return{delegate:t,inline:n};let{el:o,hasController:a,delegate:s}=e,l=o.parentNode;return t=(n=null!==l&&!a)?s||i:s,{inline:n,delegate:t}},o=async t=>{let{delegate:n}=r(!0);if(n)return await n.attachViewToDom(e.el,t);let{hasController:i}=e;if(i&&void 0!==t)throw Error("framework delegate is missing");return null};return{attachViewToDom:o,removeViewFromDom:()=>{let{delegate:t}=r();t&&void 0!==e.el&&t.removeViewFromDom(e.el.parentElement,e.el)}}},ec=()=>{let e;let t=()=>{e&&(e(),e=void 0)};return{addClickListener:(n,i)=>{t();let r=void 0!==i?document.getElementById(i):null;if(!r){(0,k.p)(`A trigger element with the ID "${i}" was not found in the DOM. The trigger element must be in the DOM when the "trigger" property is set on an overlay component.`,n);return}e=((e,t)=>{let n=()=>{t.present()};return e.addEventListener("click",n),()=>{e.removeEventListener("click",n)}})(r,n)},removeClickListener:t}},ed=e=>{var t;if(void 0===g.d)return;let n=G(g.d);for(let i=n.length-1;i>=0;i--){let r=n[i],o=null!==(t=n[i+1])&&void 0!==t?t:e;(o.hasAttribute("aria-hidden")||"ION-TOAST"!==o.tagName)&&r.setAttribute("aria-hidden","true")}},eu=()=>{if(void 0===g.d)return;let e=G(g.d);for(let t=e.length-1;t>=0;t--){let n=e[t];if(n.removeAttribute("aria-hidden"),"ION-TOAST"!==n.tagName)break}},eh="ion-disable-focus-trap",ep=e=>{let{swiper:t,extendParams:n}=e,i={effect:void 0,direction:"horizontal",initialSlide:0,loop:!1,parallax:!1,slidesPerView:1,spaceBetween:0,speed:300,slidesPerColumn:1,slidesPerColumnFill:"column",slidesPerGroup:1,centeredSlides:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,touchEventsTarget:"container",freeMode:!1,freeModeMomentum:!0,freeModeMomentumRatio:1,freeModeMomentumBounce:!0,freeModeMomentumBounceRatio:1,freeModeMomentumVelocityRatio:1,freeModeSticky:!1,freeModeMinimumVelocity:.02,autoHeight:!1,setWrapperSize:!1,zoom:{maxRatio:3,minRatio:1,toggle:!1},touchRatio:1,touchAngle:45,simulateTouch:!0,touchStartPreventDefault:!1,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,threshold:0,touchMoveStopPropagation:!0,touchReleaseOnEdges:!1,iOSEdgeSwipeDetection:!1,iOSEdgeSwipeThreshold:20,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,watchSlidesVisibility:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loopAdditionalSlides:0,noSwiping:!0,runCallbacksOnInit:!0,coverflowEffect:{rotate:50,stretch:0,depth:100,modifier:1,slideShadows:!0},flipEffect:{slideShadows:!0,limitRotation:!0},cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94},fadeEffect:{crossFade:!1},a11y:{prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide"}};t.pagination&&(i.pagination={type:"bullets",clickable:!1,hideOnClick:!1}),t.scrollbar&&(i.scrollbar={hide:!0}),n(i)},ef=e=>{try{if(e instanceof ex)return e.value;if(!eb()||"string"!=typeof e||""===e)return e;if(e.includes("onload="))return"";let t=document.createDocumentFragment(),n=document.createElement("div");t.appendChild(n),n.innerHTML=e,ey.forEach(e=>{let n=t.querySelectorAll(e);for(let e=n.length-1;e>=0;e--){let i=n[e];i.parentNode?i.parentNode.removeChild(i):t.removeChild(i);let r=eg(i);for(let e=0;e<r.length;e++)em(r[e])}});let i=eg(t);for(let e=0;e<i.length;e++)em(i[e]);let r=document.createElement("div");r.appendChild(t);let o=r.querySelector("div");return null!==o?o.innerHTML:r.innerHTML}catch(e){return console.error(e),""}},em=e=>{if(e.nodeType&&1!==e.nodeType)return;if("undefined"!=typeof NamedNodeMap&&!(e.attributes instanceof NamedNodeMap)){e.remove();return}for(let t=e.attributes.length-1;t>=0;t--){let n=e.attributes.item(t),i=n.name;if(!ev.includes(i.toLowerCase())){e.removeAttribute(i);continue}let r=n.value,o=e[i];(null!=r&&r.toLowerCase().includes("javascript:")||null!=o&&o.toLowerCase().includes("javascript:"))&&e.removeAttribute(i)}let t=eg(e);for(let e=0;e<t.length;e++)em(t[e])},eg=e=>null!=e.children?e.children:e.childNodes,eb=()=>{var e;let t=window,n=null===(e=null==t?void 0:t.Ionic)||void 0===e?void 0:e.config;return!n||(n.get?n.get("sanitizerEnabled",!0):!0===n.sanitizerEnabled||void 0===n.sanitizerEnabled)},ev=["class","id","href","src","name","slot"],ey=["script","style","iframe","meta","link","object","embed"];class ex{constructor(e){this.value=e}}/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */let ew=(e,t,n,i,r)=>e_(e[1],t[1],n[1],i[1],r).map(r=>ek(e[0],t[0],n[0],i[0],r)),ek=(e,t,n,i,r)=>{let o=3*t*Math.pow(r-1,2),a=e*Math.pow(r-1,3);return r*(o+r*(-3*n*r+3*n+i*r))-a},e_=(e,t,n,i,r)=>{e-=r,t-=r,n-=r,i-=r;let o=eS(i-3*n+3*t-e,3*n-6*t+3*e,3*t-3*e,e);return o.filter(e=>e>=0&&e<=1)},eE=(e,t,n)=>{let i=t*t-4*e*n;return i<0?[]:[(-t+Math.sqrt(i))/(2*e),(-t-Math.sqrt(i))/(2*e)]},eS=(e,t,n,i)=>{if(0===e)return eE(t,n,i);t/=e,n/=e,i/=e;let r=(3*n-t*t)/3,o=(2*t*t*t-9*t*n+27*i)/27;if(0===r)return[Math.pow(-o,1/3)];if(0===o)return[Math.sqrt(-r),-Math.sqrt(-r)];let a=Math.pow(o/2,2)+Math.pow(r/3,3);if(0===a)return[Math.pow(o/2,.5)-t/3];if(a>0)return[Math.pow(-(o/2)+Math.sqrt(a),1/3)-Math.pow(o/2+Math.sqrt(a),1/3)-t/3];let s=Math.sqrt(Math.pow(-(r/3),3)),l=Math.acos(-(o/(2*Math.sqrt(Math.pow(-(r/3),3))))),c=2*Math.pow(s,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]},eC=(e,t)=>null!==t.closest(e),eP=(e,t)=>"string"==typeof e&&e.length>0?Object.assign({"ion-color":!0,[`ion-color-${e}`]:!0},t):t,eT=e=>{if(void 0!==e){let t=Array.isArray(e)?e:e.split(" ");return t.filter(e=>null!=e).map(e=>e.trim()).filter(e=>""!==e)}return[]},eO=e=>{let t={};return eT(e).forEach(e=>t[e]=!0),t},eA=/^[a-z][a-z0-9+\-.]*:/,eI=async(e,t,n,i)=>{if(null!=e&&"#"!==e[0]&&!eA.test(e)){let r=document.querySelector("ion-router");if(r)return null!=t&&t.preventDefault(),r.push(e,n,i)}return!1};var eR=n(19341),e$=n(12873),eL=n(30518),eM=n(84061),ej=n(44192),eD=n(3458),eN=n(28307);/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */let eF="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path stroke-linecap='square' stroke-miterlimit='10' stroke-width='48' d='M244 400L100 256l144-144M120 256h292' class='ionicon-fill-none'/></svg>",ez="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path d='M64 144l192 224 192-224H64z'/></svg>",eB="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path stroke-linecap='round' stroke-linejoin='round' stroke-width='48' d='M328 112L184 256l144 144' class='ionicon-fill-none'/></svg>",eH="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path stroke-linecap='round' stroke-linejoin='round' stroke-width='48' d='M112 184l144 144 144-144' class='ionicon-fill-none'/></svg>",eU="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path stroke-linecap='round' stroke-linejoin='round' stroke-width='48' d='M184 112l144 144-144 144' class='ionicon-fill-none'/></svg>",eV="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path d='M256 48C141.31 48 48 141.31 48 256s93.31 208 208 208 208-93.31 208-208S370.69 48 256 48zm75.31 260.69a16 16 0 11-22.62 22.62L256 278.63l-52.69 52.68a16 16 0 01-22.62-22.62L233.37 256l-52.68-52.69a16 16 0 0122.62-22.62L256 233.37l52.69-52.68a16 16 0 0122.62 22.62L278.63 256z'/></svg>",eW="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path d='M400 145.49L366.51 112 256 222.51 145.49 112 112 145.49 222.51 256 112 366.51 145.49 400 256 289.49 366.51 400 400 366.51 289.49 256 400 145.49z'/></svg>",eq="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path stroke-linecap='round' stroke-linejoin='round' d='M400 256H112' class='ionicon-fill-none ionicon-stroke-width'/></svg>",eG=()=>{if("undefined"==typeof window)return new Map;if(!i){let e=window;e.Ionicons=e.Ionicons||{},i=e.Ionicons.map=e.Ionicons.map||new Map}return i},eX=e=>{let t=eJ(e.src);return t||((t=eK(e.name,e.icon,e.mode,e.ios,e.md))?eY(t,e):e.icon&&((t=eJ(e.icon))||(t=eJ(e.icon[e.mode])))?t:null)},eY=(e,t)=>{let n=eG().get(e);if(n)return n;try{return(0,eN.K3)(`svg/${e}.svg`)}catch(n){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)}},eK=(e,t,n,i,r)=>{if(n="ios"===(n&&e0(n))?"ios":"md",i&&"ios"===n?e=e0(i):r&&"md"===n?e=e0(r):(e||!t||eZ(t)||(e=t),eQ(e)&&(e=e0(e))),!eQ(e)||""===e.trim())return null;let o=e.replace(/[a-z]|-|\d/gi,"");return""!==o?null:e},eJ=e=>eQ(e)&&eZ(e=e.trim())?e:null,eZ=e=>e.length>0&&/(\/|\.)/.test(e),eQ=e=>"string"==typeof e,e0=e=>e.toLowerCase(),e1=(e,t=[])=>{let n={};return t.forEach(t=>{if(e.hasAttribute(t)){let i=e.getAttribute(t);null!==i&&(n[t]=e.getAttribute(t)),e.removeAttribute(t)}}),n},e2=e=>e&&""!==e.dir?"rtl"===e.dir.toLowerCase():(null==document?void 0:document.dir.toLowerCase())==="rtl",e5=e=>{let t=document.createElement("div");t.innerHTML=e;for(let e=t.childNodes.length-1;e>=0;e--)"svg"!==t.childNodes[e].nodeName.toLowerCase()&&t.removeChild(t.childNodes[e]);let n=t.firstElementChild;if(n&&"svg"===n.nodeName.toLowerCase()){let e=n.getAttribute("class")||"";if(n.setAttribute("class",(e+" s-ion-icon").trim()),e3(n))return t.innerHTML}return""},e3=e=>{if(1===e.nodeType){if("script"===e.nodeName.toLowerCase())return!1;for(let t=0;t<e.attributes.length;t++){let n=e.attributes[t].name;if(eQ(n)&&0===n.toLowerCase().indexOf("on"))return!1}for(let t=0;t<e.childNodes.length;t++)if(!e3(e.childNodes[t]))return!1}return!0},e4=e=>e.startsWith("data:image/svg+xml"),e6=e=>-1!==e.indexOf(";utf8,"),e8=new Map,e9=new Map,e7=(e,t)=>{let n=e9.get(e);if(!n){if("undefined"==typeof fetch||"undefined"==typeof document)return e8.set(e,""),Promise.resolve();if(e4(e)&&e6(e)){r||(r=new DOMParser);let t=r.parseFromString(e,"text/html"),n=t.querySelector("svg");return n&&e8.set(e,n.outerHTML),Promise.resolve()}n=fetch(e).then(n=>{if(n.ok)return n.text().then(n=>{n&&!1!==t&&(n=e5(n)),e8.set(e,n||"")});e8.set(e,"")}),e9.set(e,n)}return n},te=(0,eN.GH)(class extends eN.mv{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.iconName=null,this.inheritedAttributes={},this.didLoadIcon=!1,this.svgContent=void 0,this.isVisible=!1,this.mode=tt(),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=e1(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(e,t,n){if(eN.Z5.isBrowser&&this.lazy&&"undefined"!=typeof window&&window.IntersectionObserver){let i=this.io=new window.IntersectionObserver(e=>{e[0].isIntersecting&&(i.disconnect(),this.io=void 0,n())},{rootMargin:t});i.observe(e)}else n()}loadIcon(){if(eN.Z5.isBrowser&&this.isVisible){let e=eX(this);e&&(e8.has(e)?this.svgContent=e8.get(e):e7(e,this.sanitize).then(()=>this.svgContent=e8.get(e)),this.didLoadIcon=!0)}this.iconName=eK(this.name,this.icon,this.mode,this.ios,this.md)}render(){let{flipRtl:e,iconName:t,inheritedAttributes:n,el:i}=this,r=this.mode||"md",o=!!t&&(t.includes("arrow")||t.includes("chevron"))&&!1!==e,a=e||o;return(0,eN.h)(eN.AA,Object.assign({role:"img",class:Object.assign(Object.assign({[r]:!0},tn(this.color)),{[`icon-${this.size}`]:!!this.size,"flip-rtl":a,"icon-rtl":a&&e2(i)})},n),eN.Z5.isBrowser&&this.svgContent?(0,eN.h)("div",{class:"icon-inner",innerHTML:this.svgContent}):(0,eN.h)("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":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)}"}},[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"]}]),tt=()=>eN.Z5.isBrowser&&"undefined"!=typeof document&&document.documentElement.getAttribute("mode")||"md",tn=e=>e?{"ion-color":!0,[`ion-color-${e}`]:!0}:null;function ti(){"undefined"!=typeof customElements&&["ion-icon"].forEach(e=>{"ion-icon"===e&&(customElements.get(e)||customElements.define(e,te))})}let tr=(0,eN.GH)(class extends eN.mv{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.updateListener=()=>this.updateState(!1),this.setItemDefaults=()=>{let e=this.getSlottedHeaderIonItem();e&&(e.button=!0,e.detail=!1,void 0===e.lines&&(e.lines="full"))},this.getSlottedHeaderIonItem=()=>{let{headerEl:e}=this;if(!e)return;let t=e.querySelector("slot");if(t&&void 0!==t.assignedElements)return t.assignedElements().find(e=>"ION-ITEM"===e.tagName)},this.setAria=(e=!1)=>{let t=this.getSlottedHeaderIonItem();if(!t)return;let n=(0,f.g)(t),i=n.querySelector("button");i&&i.setAttribute("aria-expanded",`${e}`)},this.slotToggleIcon=()=>{let e=this.getSlottedHeaderIonItem();if(!e)return;let{toggleIconSlot:t,toggleIcon:n}=this,i=e.querySelector(".ion-accordion-toggle-icon");if(i)return;let r=document.createElement("ion-icon");r.slot=t,r.lazy=!1,r.classList.add("ion-accordion-toggle-icon"),r.icon=n,r.setAttribute("aria-hidden","true"),e.appendChild(r)},this.expandAccordion=(e=!1)=>{let{contentEl:t,contentElWrapper:n}=this;if(e||void 0===t||void 0===n){this.state=4;return}4!==this.state&&(void 0!==this.currentRaf&&cancelAnimationFrame(this.currentRaf),this.shouldAnimate()?(0,f.r)(()=>{this.state=8,this.currentRaf=(0,f.r)(async()=>{let e=n.offsetHeight,i=(0,f.t)(t,2e3);t.style.setProperty("max-height",`${e}px`),await i,this.state=4,t.style.removeProperty("max-height")})}):this.state=4)},this.collapseAccordion=(e=!1)=>{let{contentEl:t}=this;if(e||void 0===t){this.state=1;return}1!==this.state&&(void 0!==this.currentRaf&&cancelAnimationFrame(this.currentRaf),this.shouldAnimate()?this.currentRaf=(0,f.r)(async()=>{let e=t.offsetHeight;t.style.setProperty("max-height",`${e}px`),(0,f.r)(async()=>{let e=(0,f.t)(t,2e3);this.state=2,await e,this.state=1,t.style.removeProperty("max-height")})}):this.state=1)},this.shouldAnimate=()=>{if("undefined"==typeof window)return!1;let e=matchMedia("(prefers-reduced-motion: reduce)").matches;if(e)return!1;let t=p.c.get("animated",!0);return!!t&&(!this.accordionGroupEl||!!this.accordionGroupEl.animated)},this.updateState=async(e=!1)=>{let t=this.accordionGroupEl,n=this.value;if(!t)return;let i=t.value,r=Array.isArray(i)?i.includes(n):i===n;if(r)this.expandAccordion(e),this.isNext=this.isPrevious=!1;else{this.collapseAccordion(e);let t=this.getNextSibling(),n=null==t?void 0:t.value;void 0!==n&&(this.isPrevious=Array.isArray(i)?i.includes(n):i===n);let r=this.getPreviousSibling(),o=null==r?void 0:r.value;void 0!==o&&(this.isNext=Array.isArray(i)?i.includes(o):i===o)}},this.getNextSibling=()=>{if(!this.el)return;let e=this.el.nextElementSibling;if((null==e?void 0:e.tagName)==="ION-ACCORDION")return e},this.getPreviousSibling=()=>{if(!this.el)return;let e=this.el.previousElementSibling;if((null==e?void 0:e.tagName)==="ION-ACCORDION")return e},this.state=1,this.isNext=!1,this.isPrevious=!1,this.value=`ion-accordion-${to++}`,this.disabled=!1,this.readonly=!1,this.toggleIcon=eH,this.toggleIconSlot="end"}valueChanged(){this.updateState()}connectedCallback(){var e;let t=this.accordionGroupEl=null===(e=this.el)||void 0===e?void 0:e.closest("ion-accordion-group");t&&(this.updateState(!0),(0,f.a)(t,"ionValueChange",this.updateListener))}disconnectedCallback(){let e=this.accordionGroupEl;e&&(0,f.b)(e,"ionValueChange",this.updateListener)}componentDidLoad(){this.setItemDefaults(),this.slotToggleIcon(),(0,f.r)(()=>{let e=4===this.state||8===this.state;this.setAria(e)})}toggleExpanded(){let{accordionGroupEl:e,disabled:t,readonly:n,value:i,state:r}=this;t||n||!e||e.requestAccordionToggle(i,1===r||2===r)}render(){let{disabled:e,readonly:t}=this,n=(0,p.b)(this),i=4===this.state||8===this.state;return this.setAria(i),(0,eN.h)(eN.AA,{key:"073e1d02c18dcbc20c68648426e87c14750c031d",class:{[n]:!0,"accordion-expanding":8===this.state,"accordion-expanded":4===this.state,"accordion-collapsing":2===this.state,"accordion-collapsed":1===this.state,"accordion-next":this.isNext,"accordion-previous":this.isPrevious,"accordion-disabled":e,"accordion-readonly":t,"accordion-animated":this.shouldAnimate()}},(0,eN.h)("div",{key:"9b4cf326de8bb6b4033992903c0c1bfd7eea9bcc",onClick:()=>this.toggleExpanded(),id:"header",part:i?"header expanded":"header","aria-controls":"content",ref:e=>this.headerEl=e},(0,eN.h)("slot",{key:"464c32a37f64655eacf4218284214f5f30b14a1e",name:"header"})),(0,eN.h)("div",{key:"8bb52e6a62d7de0106b253201a89a32e79d9a594",id:"content",part:i?"content expanded":"content",role:"region","aria-labelledby":"header",ref:e=>this.contentEl=e},(0,eN.h)("div",{key:"1d9dfd952ad493754aaeea7a8f625b33c2dd90a0",id:"content-wrapper",ref:e=>this.contentElWrapper=e},(0,eN.h)("slot",{key:"970dfbc55a612d739d0ca3b7b1a08e5c96d0c479",name:"content"}))))}static get delegatesFocus(){return!0}get el(){return this}static get watchers(){return{value:["valueChanged"]}}static get style(){return{ios:":host{display:block;position:relative;width:100%;background-color:var(--ion-background-color, #ffffff);overflow:hidden;z-index:0}:host(.accordion-expanding) ::slotted(ion-item[slot=header]),:host(.accordion-expanded) ::slotted(ion-item[slot=header]){--border-width:0px}:host(.accordion-animated){-webkit-transition:all 300ms cubic-bezier(0.25, 0.8, 0.5, 1);transition:all 300ms cubic-bezier(0.25, 0.8, 0.5, 1)}:host(.accordion-animated) #content{-webkit-transition:max-height 300ms cubic-bezier(0.25, 0.8, 0.5, 1);transition:max-height 300ms cubic-bezier(0.25, 0.8, 0.5, 1)}#content{overflow:hidden;will-change:max-height}:host(.accordion-collapsing) #content{max-height:0 !important}:host(.accordion-collapsed) #content{display:none}:host(.accordion-expanding) #content{max-height:0}:host(.accordion-expanding) #content-wrapper{overflow:auto}:host(.accordion-disabled) #header,:host(.accordion-readonly) #header,:host(.accordion-disabled) #content,:host(.accordion-readonly) #content{pointer-events:none}:host(.accordion-disabled) #header,:host(.accordion-disabled) #content{opacity:0.4}@media (prefers-reduced-motion: reduce){:host,#content{-webkit-transition:none !important;transition:none !important}}:host(.accordion-next) ::slotted(ion-item[slot=header]){--border-width:0.55px 0px 0.55px 0px}",md:":host{display:block;position:relative;width:100%;background-color:var(--ion-background-color, #ffffff);overflow:hidden;z-index:0}:host(.accordion-expanding) ::slotted(ion-item[slot=header]),:host(.accordion-expanded) ::slotted(ion-item[slot=header]){--border-width:0px}:host(.accordion-animated){-webkit-transition:all 300ms cubic-bezier(0.25, 0.8, 0.5, 1);transition:all 300ms cubic-bezier(0.25, 0.8, 0.5, 1)}:host(.accordion-animated) #content{-webkit-transition:max-height 300ms cubic-bezier(0.25, 0.8, 0.5, 1);transition:max-height 300ms cubic-bezier(0.25, 0.8, 0.5, 1)}#content{overflow:hidden;will-change:max-height}:host(.accordion-collapsing) #content{max-height:0 !important}:host(.accordion-collapsed) #content{display:none}:host(.accordion-expanding) #content{max-height:0}:host(.accordion-expanding) #content-wrapper{overflow:auto}:host(.accordion-disabled) #header,:host(.accordion-readonly) #header,:host(.accordion-disabled) #content,:host(.accordion-readonly) #content{pointer-events:none}:host(.accordion-disabled) #header,:host(.accordion-disabled) #content{opacity:0.4}@media (prefers-reduced-motion: reduce){:host,#content{-webkit-transition:none !important;transition:none !important}}"}}},[49,"ion-accordion",{value:[1],disabled:[4],readonly:[4],toggleIcon:[1,"toggle-icon"],toggleIconSlot:[1,"toggle-icon-slot"],state:[32],isNext:[32],isPrevious:[32]},void 0,{value:["valueChanged"]}]),to=0,ta=(0,eN.GH)(class extends eN.mv{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionChange=(0,eN.yM)(this,"ionChange",7),this.ionValueChange=(0,eN.yM)(this,"ionValueChange",7),this.animated=!0,this.multiple=void 0,this.value=void 0,this.disabled=!1,this.readonly=!1,this.expand="compact"}valueChanged(){let{value:e,multiple:t}=this;!t&&Array.isArray(e)&&(0,k.p)(`ion-accordion-group was passed an array of values, but multiple="false". This is incorrect usage and may result in unexpected behaviors. To dismiss this warning, pass a string to the "value" property when multiple="false".

  Value Passed: [${e.map(e=>`'${e}'`).join(", ")}]
`,this.el),this.ionValueChange.emit({value:this.value})}async disabledChanged(){let{disabled:e}=this,t=await this.getAccordions();for(let n of t)n.disabled=e}async readonlyChanged(){let{readonly:e}=this,t=await this.getAccordions();for(let n of t)n.readonly=e}async onKeydown(e){let t;let n=document.activeElement;if(!n)return;let i=n.closest('ion-accordion [slot="header"]');if(!i)return;let r="ION-ACCORDION"===n.tagName?n:n.closest("ion-accordion");if(!r)return;let o=r.closest("ion-accordion-group");if(o!==this.el)return;let a=await this.getAccordions(),s=a.findIndex(e=>e===r);-1!==s&&("ArrowDown"===e.key?t=this.findNextAccordion(a,s):"ArrowUp"===e.key?t=this.findPreviousAccordion(a,s):"Home"===e.key?t=a[0]:"End"===e.key&&(t=a[a.length-1]),void 0!==t&&t!==n&&t.focus())}async componentDidLoad(){this.disabled&&this.disabledChanged(),this.readonly&&this.readonlyChanged(),this.valueChanged()}setValue(e){let t=this.value=e;this.ionChange.emit({value:t})}async requestAccordionToggle(e,t){let{multiple:n,value:i,readonly:r,disabled:o}=this;if(!r&&!o){if(t){if(n){let t=null!=i?i:[],n=Array.isArray(t)?t:[t],r=n.find(t=>t===e);void 0===r&&void 0!==e&&this.setValue([...n,e])}else this.setValue(e)}else if(n){let t=null!=i?i:[],n=Array.isArray(t)?t:[t];this.setValue(n.filter(t=>t!==e))}else this.setValue(void 0)}}findNextAccordion(e,t){let n=e[t+1];return void 0===n?e[0]:n}findPreviousAccordion(e,t){let n=e[t-1];return void 0===n?e[e.length-1]:n}async getAccordions(){return Array.from(this.el.querySelectorAll(":scope > ion-accordion"))}render(){let{disabled:e,readonly:t,expand:n}=this,i=(0,p.b)(this);return(0,eN.h)(eN.AA,{key:"82f3e77066fabb4736638ee4c487ad56efd39c63",class:{[i]:!0,"accordion-group-disabled":e,"accordion-group-readonly":t,[`accordion-group-expand-${n}`]:!0},role:"presentation"},(0,eN.h)("slot",{key:"a3c791ea887fc640b512f81d429be465ae902b3d"}))}get el(){return this}static get watchers(){return{value:["valueChanged"],disabled:["disabledChanged"],readonly:["readonlyChanged"]}}static get style(){return{ios:":host{display:block}:host(.accordion-group-expand-inset){-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:16px;margin-bottom:16px}:host(.accordion-group-expand-inset) ::slotted(ion-accordion.accordion-expanding),:host(.accordion-group-expand-inset) ::slotted(ion-accordion.accordion-expanded){border-bottom:none}",md:":host{display:block}:host(.accordion-group-expand-inset){-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:16px;margin-bottom:16px}:host(.accordion-group-expand-inset) ::slotted(ion-accordion){-webkit-box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)}:host(.accordion-group-expand-inset) ::slotted(ion-accordion.accordion-expanding),:host(.accordion-group-expand-inset) ::slotted(ion-accordion.accordion-expanded){margin-left:0;margin-right:0;margin-top:16px;margin-bottom:16px;border-radius:6px}:host(.accordion-group-expand-inset) ::slotted(ion-accordion.accordion-previous){border-end-end-radius:6px;border-end-start-radius:6px}:host(.accordion-group-expand-inset) ::slotted(ion-accordion.accordion-next){border-start-start-radius:6px;border-start-end-radius:6px}:host(.accordion-group-expand-inset) ::slotted(ion-accordion):first-of-type{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}"}}},[33,"ion-accordion-group",{animated:[4],multiple:[4],value:[1025],disabled:[4],readonly:[4],expand:[1],requestAccordionToggle:[64],getAccordions:[64]},[[0,"keydown","onKeydown"]],{value:["valueChanged"],disabled:["disabledChanged"],readonly:["readonlyChanged"]}]),ts=(0,eN.GH)(class extends eN.mv{constructor(){super(),this.__registerHost(),this.__attachShadow()}render(){return(0,eN.h)(eN.AA,{key:"dc1e3cd535e419eebe5599574fd2393ebfde8bbc",class:(0,p.b)(this)},(0,eN.h)("slot",{key:"edb8441c063ea592b41345ea97d88ecd90cb3052"}))}static get style(){return{ios:":host{border-radius:var(--border-radius);display:block}::slotted(ion-img),::slotted(img){border-radius:var(--border-radius);width:100%;height:100%;-o-object-fit:cover;object-fit:cover;overflow:hidden}:host{--border-radius:50%;width:48px;height:48px}",md:":host{border-radius:var(--border-radius);display:block}::slotted(ion-img),::slotted(img){border-radius:var(--border-radius);width:100%;height:100%;-o-object-fit:cover;object-fit:cover;overflow:hidden}:host{--border-radius:50%;width:64px;height:64px}"}}},[33,"ion-avatar"]),tl=(0,eN.GH)(class extends eN.mv{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionBackdropTap=(0,eN.yM)(this,"ionBackdropTap",7),this.visible=!0,this.tappable=!0,this.stopPropagation=!0}onMouseDown(e){this.emitTap(e)}emitTap(e){this.stopPropagation&&(e.preventDefault(),e.stopPropagation()),this.tappable&&this.ionBackdropTap.emit()}render(){let e=(0,p.b)(this);return(0,eN.h)(eN.AA,{key:"c803b4302c8e722064feb03dafe3cb6e190b4f2b",tabindex:"-1","aria-hidden":"true",class:{[e]:!0,"backdrop-hide":!this.visible,"backdrop-no-tappable":!this.tappable}})}static get style(){return{ios:":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)}",md:":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)}"}}},[33,"ion-backdrop",{visible:[4],tappable:[4],stopPropagation:[4,"stop-propagation"]},[[2,"click","onMouseDown"]]]);function tc(){"undefined"!=typeof customElements&&["ion-backdrop"].forEach(e=>{"ion-backdrop"===e&&(customElements.get(e)||customElements.define(e,tl))})}let td=(0,eN.GH)(class extends eN.mv{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.color=void 0}render(){let e=(0,p.b)(this);return(0,eN.h)(eN.AA,{key:"1253618692342bcf9487188402dc3d49ae0de480",class:eP(this.color,{[e]:!0})},(0,eN.h)("slot",{key:"71d65e203965ea37b94504a8a0a96beb52d4e356"}))}static get style(){return{ios:":host{--background:var(--ion-color-primary, #0054e9);--color:var(--ion-color-primary-contrast, #fff);--padding-top:3px;--padding-end:8px;--padding-bottom:3px;--padding-start:8px;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;-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:inline-block;min-width:10px;background:var(--background);color:var(--color);font-family:var(--ion-font-family, inherit);font-size:0.8125rem;font-weight:bold;line-height:1;text-align:center;white-space:nowrap;contain:content;vertical-align:baseline}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(:empty){display:none}:host{border-radius:10px;font-size:max(13px, 0.8125rem)}",md:":host{--background:var(--ion-color-primary, #0054e9);--color:var(--ion-color-primary-contrast, #fff);--padding-top:3px;--padding-end:8px;--padding-bottom:3px;--padding-start:8px;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;-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:inline-block;min-width:10px;background:var(--background);color:var(--color);font-family:var(--ion-font-family, inherit);font-size:0.8125rem;font-weight:bold;line-height:1;text-align:center;white-space:nowrap;contain:content;vertical-align:baseline}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(:empty){display:none}:host{--padding-top:3px;--padding-end:4px;--padding-bottom:4px;--padding-start:4px;border-radius:4px}"}}},[33,"ion-badge",{color:[513]}]),tu=(0,eN.GH)(class extends eN.mv{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionCollapsedClick=(0,eN.yM)(this,"ionCollapsedClick",7),this.breadcrumbsInit=()=>{this.setBreadcrumbSeparator(),this.setMaxItems()},this.resetActiveBreadcrumb=()=>{let e=this.getBreadcrumbs(),t=e.find(e=>e.active);t&&this.activeChanged&&(t.active=!1)},this.setMaxItems=()=>{let{itemsAfterCollapse:e,itemsBeforeCollapse:t,maxItems:n}=this,i=this.getBreadcrumbs();for(let e of i)e.showCollapsedIndicator=!1,e.collapsed=!1;let r=void 0!==n&&i.length>n&&t+e<=n;r&&i.forEach((n,r)=>{r===t&&(n.showCollapsedIndicator=!0),r>=t&&r<i.length-e&&(n.collapsed=!0)})},this.setBreadcrumbSeparator=()=>{let{itemsAfterCollapse:e,itemsBeforeCollapse:t,maxItems:n}=this,i=this.getBreadcrumbs(),r=i.find(e=>e.active);for(let o of i){let a=void 0!==n&&0===e?o===i[t]:o===i[i.length-1];o.last=a;let s=void 0!==o.separator?o.separator:!a||void 0;o.separator=s,!r&&a&&(o.active=!0,this.activeChanged=!0)}},this.getBreadcrumbs=()=>Array.from(this.el.querySelectorAll("ion-breadcrumb")),this.slotChanged=()=>{this.resetActiveBreadcrumb(),this.breadcrumbsInit()},this.collapsed=void 0,this.activeChanged=void 0,this.color=void 0,this.maxItems=void 0,this.itemsBeforeCollapse=1,this.itemsAfterCollapse=1}onCollapsedClick(e){let t=this.getBreadcrumbs(),n=t.filter(e=>e.collapsed);this.ionCollapsedClick.emit(Object.assign(Object.assign({},e.detail),{collapsedBreadcrumbs:n}))}maxItemsChanged(){this.resetActiveBreadcrumb(),this.breadcrumbsInit()}componentWillLoad(){this.breadcrumbsInit()}render(){let{color:e,collapsed:t}=this,n=(0,p.b)(this);return(0,eN.h)(eN.AA,{key:"18ffba1642f10cc2bc31440e84f23aa6f042e501",class:eP(e,{[n]:!0,"in-toolbar":eC("ion-toolbar",this.el),"in-toolbar-color":eC("ion-toolbar[color]",this.el),"breadcrumbs-collapsed":t})},(0,eN.h)("slot",{key:"3db6d31590e3047889ce554d57d155c8ea2e1455",onSlotchange:this.slotChanged}))}get el(){return this}static get watchers(){return{maxItems:["maxItemsChanged"],itemsBeforeCollapse:["maxItemsChanged"],itemsAfterCollapse:["maxItemsChanged"]}}static get style(){return{ios:":host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:center;align-items:center}:host(.in-toolbar-color),:host(.in-toolbar-color) .breadcrumbs-collapsed-indicator ion-icon{color:var(--ion-color-contrast)}:host(.in-toolbar-color) .breadcrumbs-collapsed-indicator{background:rgba(var(--ion-color-contrast-rgb), 0.11)}:host(.in-toolbar){-webkit-padding-start:20px;padding-inline-start:20px;-webkit-padding-end:20px;padding-inline-end:20px;padding-top:0;padding-bottom:0;-ms-flex-pack:center;justify-content:center}",md:":host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:center;align-items:center}:host(.in-toolbar-color),:host(.in-toolbar-color) .breadcrumbs-collapsed-indicator ion-icon{color:var(--ion-color-contrast)}:host(.in-toolbar-color) .breadcrumbs-collapsed-indicator{background:rgba(var(--ion-color-contrast-rgb), 0.11)}:host(.in-toolbar){-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px;padding-top:0;padding-bottom:0}"}}},[33,"ion-breadcrumbs",{color:[513],maxItems:[2,"max-items"],itemsBeforeCollapse:[2,"items-before-collapse"],itemsAfterCollapse:[2,"items-after-collapse"],collapsed:[32],activeChanged:[32]},[[0,"collapsedClick","onCollapsedClick"]],{maxItems:["maxItemsChanged"],itemsBeforeCollapse:["maxItemsChanged"],itemsAfterCollapse:["maxItemsChanged"]}]),th=(0,eN.GH)(class extends eN.mv{constructor(){super(),this.__registerHost(),this.collapse=!1}render(){let e=(0,p.b)(this);return(0,eN.h)(eN.AA,{key:"4e5ce9abb3f56e8c91e3eb58c2819300e61eba24",class:{[e]:!0,"buttons-collapse":this.collapse}},(0,eN.h)("slot",{key:"f2f360ec888b6e946b512fed07431fab47c61482"}))}static get style(){return{ios:".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}",md:".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}"}}},[38,"ion-buttons",{collapse:[4]}]);function tp(){"undefined"!=typeof customElements&&["ion-buttons"].forEach(e=>{"ion-buttons"===e&&(customElements.get(e)||customElements.define(e,th))})}let tf=(0,eN.GH)(class extends eN.mv{constructor(){super(),this.__registerHost()}render(){let e=(0,p.b)(this);return(0,eN.h)(eN.AA,{key:"2a2d0b48aad4b83990a1748fce60e772514eb223",class:{[e]:!0,[`card-content-${e}`]:!0}})}static get style(){return{ios:"ion-card-content{display:block;position:relative}.card-content-ios{-webkit-padding-start:20px;padding-inline-start:20px;-webkit-padding-end:20px;padding-inline-end:20px;padding-top:20px;padding-bottom:20px;font-size:1rem;line-height:1.4}.card-content-ios h1{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:1.5rem;font-weight:normal}.card-content-ios h2{margin-left:0;margin-right:0;margin-top:2px;margin-bottom:2px;font-size:1rem;font-weight:normal}.card-content-ios h3,.card-content-ios h4,.card-content-ios h5,.card-content-ios h6{margin-left:0;margin-right:0;margin-top:2px;margin-bottom:2px;font-size:0.875rem;font-weight:normal}.card-content-ios p{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:0.875rem}ion-card-header+.card-content-ios{padding-top:0}",md:"ion-card-content{display:block;position:relative}.card-content-md{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:13px;padding-bottom:13px;font-size:0.875rem;line-height:1.5}.card-content-md h1{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:1.5rem;font-weight:normal}.card-content-md h2{margin-left:0;margin-right:0;margin-top:2px;margin-bottom:2px;font-size:1rem;font-weight:normal}.card-content-md h3,.card-content-md h4,.card-content-md h5,.card-content-md h6{margin-left:0;margin-right:0;margin-top:2px;margin-bottom:2px;font-size:0.875rem;font-weight:normal}.card-content-md p{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:0.875rem;font-weight:normal;line-height:1.5}ion-card-header+.card-content-md{padding-top:0}"}}},[32,"ion-card-content"]),tm=(0,eN.GH)(class extends eN.mv{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.color=void 0,this.translucent=!1}render(){let e=(0,p.b)(this);return(0,eN.h)(eN.AA,{key:"18d12507ec6e650a72d721e9d0f4128b5e86df1d",class:eP(this.color,{"card-header-translucent":this.translucent,"ion-inherit-color":!0,[e]:!0})},(0,eN.h)("slot",{key:"3374c087d8c3f014082787e255432e7a335ef44f"}))}static get style(){return{ios:":host{--background:transparent;--color:inherit;display:-ms-flexbox;display:flex;position:relative;-ms-flex-direction:column;flex-direction:column;background:var(--background);color:var(--color)}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}:host{-webkit-padding-start:20px;padding-inline-start:20px;-webkit-padding-end:20px;padding-inline-end:20px;padding-top:20px;padding-bottom:16px;-ms-flex-direction:column-reverse;flex-direction:column-reverse}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){:host(.card-header-translucent){background-color:rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.9);-webkit-backdrop-filter:saturate(180%) blur(30px);backdrop-filter:saturate(180%) blur(30px)}}",md:":host{--background:transparent;--color:inherit;display:-ms-flexbox;display:flex;position:relative;-ms-flex-direction:column;flex-direction:column;background:var(--background);color:var(--color)}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}:host{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:16px;padding-bottom:16px}::slotted(ion-card-title:not(:first-child)),::slotted(ion-card-subtitle:not(:first-child)){margin-top:8px}"}}},[33,"ion-card-header",{color:[513],translucent:[4]}]),tg=(0,eN.GH)(class extends eN.mv{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.color=void 0}render(){let e=(0,p.b)(this);return(0,eN.h)(eN.AA,{key:"cbcb01bd01cf6de64a0b04fb626e42b07ceb8f53",role:"heading","aria-level":"3",class:eP(this.color,{"ion-inherit-color":!0,[e]:!0})},(0,eN.h)("slot",{key:"cbcaa73aa5799882c48d6c0aabfb13651bcc91c0"}))}static get style(){return{ios:":host{display:block;position:relative;color:var(--color)}:host(.ion-color){color:var(--ion-color-base)}:host{--color:var(--ion-color-step-600, var(--ion-text-color-step-400, #666666));margin-left:0;margin-right:0;margin-top:0;margin-bottom:4px;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;font-size:0.75rem;font-weight:700;letter-spacing:0.4px;text-transform:uppercase}",md:":host{display:block;position:relative;color:var(--color)}:host(.ion-color){color:var(--ion-color-base)}:host{--color:var(--ion-color-step-550, var(--ion-text-color-step-450, #737373));margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;font-size:0.875rem;font-weight:500}"}}},[33,"ion-card-subtitle",{color:[513]}]),tb=(0,eN.GH)(class extends eN.mv{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.color=void 0}render(){let e=(0,p.b)(this);return(0,eN.h)(eN.AA,{key:"f904a0ca6489f147d03c9c5f9f2c5549cdb38d1a",role:"heading","aria-level":"2",class:eP(this.color,{"ion-inherit-color":!0,[e]:!0})},(0,eN.h)("slot",{key:"effb921de4ad8dfbbe318b3f692f4005812da7b1"}))}static get style(){return{ios:":host{display:block;position:relative;color:var(--color)}:host(.ion-color){color:var(--ion-color-base)}:host{--color:var(--ion-text-color, #000);margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;font-size:1.75rem;font-weight:700;line-height:1.2}",md:":host{display:block;position:relative;color:var(--color)}:host(.ion-color){color:var(--ion-color-base)}:host{--color:var(--ion-color-step-850, var(--ion-text-color-step-150, #262626));margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;font-size:1.25rem;font-weight:500;line-height:1.2}"}}},[33,"ion-card-title",{color:[513]}]),tv=(0,eN.GH)(class extends eN.mv{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionChange=(0,eN.yM)(this,"ionChange",7),this.ionFocus=(0,eN.yM)(this,"ionFocus",7),this.ionBlur=(0,eN.yM)(this,"ionBlur",7),this.inputId=`ion-cb-${ty++}`,this.inheritedAttributes={},this.setChecked=e=>{let t=this.checked=e;this.ionChange.emit({checked:t,value:this.value})},this.toggleChecked=e=>{e.preventDefault(),this.setFocus(),this.setChecked(!this.checked),this.indeterminate=!1},this.onFocus=()=>{this.ionFocus.emit()},this.onBlur=()=>{this.ionBlur.emit()},this.onClick=e=>{this.disabled||this.toggleChecked(e)},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"}componentWillLoad(){this.inheritedAttributes=Object.assign({},(0,f.i)(this.el))}setFocus(){this.focusEl&&this.focusEl.focus()}render(){let{color:e,checked:t,disabled:n,el:i,getSVGPath:r,indeterminate:o,inheritedAttributes:a,inputId:s,justify:l,labelPlacement:c,name:d,value:u,alignment:h}=this,m=(0,p.b)(this),g=r(m,o);return(0,f.e)(!0,i,d,t?u:"",n),(0,eN.h)(eN.AA,{key:"0ac95890562c7f035704c40959c69f8c8ca4bc9f","aria-checked":o?"mixed":`${t}`,class:eP(e,{[m]:!0,"in-item":eC("ion-item",i),"checkbox-checked":t,"checkbox-disabled":n,"checkbox-indeterminate":o,interactive:!0,[`checkbox-justify-${l}`]:!0,[`checkbox-alignment-${h}`]:!0,[`checkbox-label-placement-${c}`]:!0}),onClick:this.onClick},(0,eN.h)("label",{key:"3f9f7c8383dded8f7997086b25399d052df76b5c",class:"checkbox-wrapper"},(0,eN.h)("input",Object.assign({key:"6fb11d06c424c289357d5d7c1a4d1b967be231d0",type:"checkbox",checked:!!t||void 0,disabled:n,id:s,onChange:this.toggleChecked,onFocus:()=>this.onFocus(),onBlur:()=>this.onBlur(),ref:e=>this.focusEl=e},a)),(0,eN.h)("div",{key:"f577a272e5e3f9f1852fc95e40466c80b76309c7",class:{"label-text-wrapper":!0,"label-text-wrapper-hidden":""===i.textContent},part:"label"},(0,eN.h)("slot",{key:"7c9b0b4513e797a1acdf55a5f286563e5f397e9c"})),(0,eN.h)("div",{key:"e47c50a078b8d761ddc5efcb9a9635281b5818f6",class:"native-wrapper"},(0,eN.h)("svg",{key:"4dca47179ae15e9094e01c799ef4ed25fbb0d840",class:"checkbox-icon",viewBox:"0 0 24 24",part:"container"},g))))}getSVGPath(e,t){let n=t?(0,eN.h)("path",{d:"M6 12L18 12",part:"mark"}):(0,eN.h)("path",{d:"M5.9,12.5l3.8,3.8l8.8-8.8",part:"mark"});return"md"===e&&(n=t?(0,eN.h)("path",{d:"M2 12H22",part:"mark"}):(0,eN.h)("path",{d:"M1.73,12.91 8.1,19.28 22.79,4.59",part:"mark"})),n}get el(){return this}static get style(){return{ios:":host{--checkbox-background-checked:var(--ion-color-primary, #0054e9);--border-color-checked:var(--ion-color-primary, #0054e9);--checkmark-color:var(--ion-color-primary-contrast, #fff);--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){-ms-flex:1 1 0px;flex:1 1 0;width:100%;height:100%}:host([slot=start]),:host([slot=end]){-ms-flex:initial;flex:initial;width:auto}:host(.ion-color){--checkbox-background-checked:var(--ion-color-base);--border-color-checked:var(--ion-color-base);--checkmark-color:var(--ion-color-contrast)}.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) .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;width:var(--size);height:var(--size);-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}.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.125rem;--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.375rem, 55.836px);--checkmark-width:1.5px}:host(.checkbox-disabled){opacity:0.3}",md:":host{--checkbox-background-checked:var(--ion-color-primary, #0054e9);--border-color-checked:var(--ion-color-primary, #0054e9);--checkmark-color:var(--ion-color-primary-contrast, #fff);--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){-ms-flex:1 1 0px;flex:1 1 0;width:100%;height:100%}:host([slot=start]),:host([slot=end]){-ms-flex:initial;flex:initial;width:auto}:host(.ion-color){--checkbox-background-checked:var(--ion-color-base);--border-color-checked:var(--ion-color-base);--checkmark-color:var(--ion-color-contrast)}.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) .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;width:var(--size);height:var(--size);-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}.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(.checkbox-disabled) .label-text-wrapper{opacity:0.38}:host(.checkbox-disabled) .native-wrapper{opacity:0.63}"}}},[33,"ion-checkbox",{color:[513],name:[1],checked:[1028],indeterminate:[1028],disabled:[4],value:[8],labelPlacement:[1,"label-placement"],justify:[1],alignment:[1]}]),ty=0;function tx(){"undefined"!=typeof customElements&&["ion-checkbox"].forEach(e=>{"ion-checkbox"===e&&(customElements.get(e)||customElements.define(e,tv))})}let tw=(0,eN.GH)(class extends eN.mv{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.type="bounded"}async addRipple(e,t){return new Promise(n=>{(0,eN.wj)(()=>{let i=this.el.getBoundingClientRect(),r=i.width,o=i.height,a=Math.sqrt(r*r+o*o),s=Math.max(o,r),l=this.unbounded?s:a+t_,c=Math.floor(s*tE),d=l/c,u=e-i.left,h=t-i.top;this.unbounded&&(u=.5*r,h=.5*o);let p=u-.5*c,f=h-.5*c,m=.5*r-u,g=.5*o-h;(0,eN.Iu)(()=>{let e=document.createElement("div");e.classList.add("ripple-effect");let t=e.style;t.top=f+"px",t.left=p+"px",t.width=t.height=c+"px",t.setProperty("--final-scale",`${d}`),t.setProperty("--translate-end",`${m}px, ${g}px`);let i=this.el.shadowRoot||this.el;i.appendChild(e),setTimeout(()=>{n(()=>{tk(e)})},325)})})})}get unbounded(){return"unbounded"===this.type}render(){let e=(0,p.b)(this);return(0,eN.h)(eN.AA,{key:"2302f087ab1c6755355736e4ca77309c5fdcf185",role:"presentation",class:{[e]:!0,unbounded:this.unbounded}})}get el(){return this}static get style(){return":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}}"}},[1,"ion-ripple-effect",{type:[1],addRipple:[64]}]),tk=e=>{e.classList.add("fade-out"),setTimeout(()=>{e.remove()},200)},t_=10,tE=.5;function tS(){"undefined"!=typeof customElements&&["ion-ripple-effect"].forEach(e=>{"ion-ripple-effect"===e&&(customElements.get(e)||customElements.define(e,tw))})}let tC=(0,eN.GH)(class extends eN.mv{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.color=void 0,this.outline=!1,this.disabled=!1}render(){let e=(0,p.b)(this);return(0,eN.h)(eN.AA,{key:"7dd923c1b28d1eb1efa348f66f49cec067645af9","aria-disabled":this.disabled?"true":null,class:eP(this.color,{[e]:!0,"chip-outline":this.outline,"chip-disabled":this.disabled,"ion-activatable":!0})},(0,eN.h)("slot",{key:"7ede838bf109dc27a898ee2dcdeabc3f439c8e6f"}),"md"===e&&(0,eN.h)("ion-ripple-effect",{key:"5acb073029544e73fcc0db4cc4e661ec1df4d231"}))}static get style(){return{ios:":host{--background:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.12);--color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.87);border-radius:16px;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;-webkit-margin-start:4px;margin-inline-start:4px;-webkit-margin-end:4px;margin-inline-end:4px;margin-top:4px;margin-bottom:4px;-webkit-padding-start:12px;padding-inline-start:12px;-webkit-padding-end:12px;padding-inline-end:12px;padding-top:6px;padding-bottom:6px;display:-ms-inline-flexbox;display:inline-flex;position:relative;-ms-flex-align:center;align-items:center;min-height:32px;background:var(--background);color:var(--color);font-family:var(--ion-font-family, inherit);cursor:pointer;overflow:hidden;vertical-align:middle;-webkit-box-sizing:border-box;box-sizing:border-box}:host(.chip-disabled){cursor:default;opacity:0.4;pointer-events:none}:host(.ion-color){background:rgba(var(--ion-color-base-rgb), 0.08);color:var(--ion-color-shade)}:host(.ion-color:focus){background:rgba(var(--ion-color-base-rgb), 0.12)}:host(.ion-color.ion-activated){background:rgba(var(--ion-color-base-rgb), 0.16)}:host(.chip-outline){border-width:1px;border-style:solid}:host(.chip-outline){border-color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.32);background:transparent}:host(.chip-outline.ion-color){border-color:rgba(var(--ion-color-base-rgb), 0.32)}:host(.chip-outline:not(.ion-color):focus){background:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.04)}:host(.chip-outline.ion-activated:not(.ion-color)){background:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.08)}::slotted(ion-icon){font-size:1.4285714286em}:host(:not(.ion-color)) ::slotted(ion-icon){color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.54)}::slotted(ion-icon:first-child){-webkit-margin-start:-4px;margin-inline-start:-4px;-webkit-margin-end:8px;margin-inline-end:8px;margin-top:-4px;margin-bottom:-4px}::slotted(ion-icon:last-child){-webkit-margin-start:8px;margin-inline-start:8px;-webkit-margin-end:-4px;margin-inline-end:-4px;margin-top:-4px;margin-bottom:-4px}::slotted(ion-avatar){-ms-flex-negative:0;flex-shrink:0;width:1.7142857143em;height:1.7142857143em}::slotted(ion-avatar:first-child){-webkit-margin-start:-8px;margin-inline-start:-8px;-webkit-margin-end:8px;margin-inline-end:8px;margin-top:-4px;margin-bottom:-4px}::slotted(ion-avatar:last-child){-webkit-margin-start:8px;margin-inline-start:8px;-webkit-margin-end:-8px;margin-inline-end:-8px;margin-top:-4px;margin-bottom:-4px}:host(:focus){outline:none}:host(:focus){--background:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.16)}:host(.ion-activated){--background:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.2)}@media (any-hover: hover){:host(:hover){--background:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.16)}:host(.ion-color:hover){background:rgba(var(--ion-color-base-rgb), 0.12)}:host(.chip-outline:not(.ion-color):hover){background:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.04)}}:host{font-size:clamp(13px, 0.875rem, 22px)}",md:":host{--background:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.12);--color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.87);border-radius:16px;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;-webkit-margin-start:4px;margin-inline-start:4px;-webkit-margin-end:4px;margin-inline-end:4px;margin-top:4px;margin-bottom:4px;-webkit-padding-start:12px;padding-inline-start:12px;-webkit-padding-end:12px;padding-inline-end:12px;padding-top:6px;padding-bottom:6px;display:-ms-inline-flexbox;display:inline-flex;position:relative;-ms-flex-align:center;align-items:center;min-height:32px;background:var(--background);color:var(--color);font-family:var(--ion-font-family, inherit);cursor:pointer;overflow:hidden;vertical-align:middle;-webkit-box-sizing:border-box;box-sizing:border-box}:host(.chip-disabled){cursor:default;opacity:0.4;pointer-events:none}:host(.ion-color){background:rgba(var(--ion-color-base-rgb), 0.08);color:var(--ion-color-shade)}:host(.ion-color:focus){background:rgba(var(--ion-color-base-rgb), 0.12)}:host(.ion-color.ion-activated){background:rgba(var(--ion-color-base-rgb), 0.16)}:host(.chip-outline){border-width:1px;border-style:solid}:host(.chip-outline){border-color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.32);background:transparent}:host(.chip-outline.ion-color){border-color:rgba(var(--ion-color-base-rgb), 0.32)}:host(.chip-outline:not(.ion-color):focus){background:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.04)}:host(.chip-outline.ion-activated:not(.ion-color)){background:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.08)}::slotted(ion-icon){font-size:1.4285714286em}:host(:not(.ion-color)) ::slotted(ion-icon){color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.54)}::slotted(ion-icon:first-child){-webkit-margin-start:-4px;margin-inline-start:-4px;-webkit-margin-end:8px;margin-inline-end:8px;margin-top:-4px;margin-bottom:-4px}::slotted(ion-icon:last-child){-webkit-margin-start:8px;margin-inline-start:8px;-webkit-margin-end:-4px;margin-inline-end:-4px;margin-top:-4px;margin-bottom:-4px}::slotted(ion-avatar){-ms-flex-negative:0;flex-shrink:0;width:1.7142857143em;height:1.7142857143em}::slotted(ion-avatar:first-child){-webkit-margin-start:-8px;margin-inline-start:-8px;-webkit-margin-end:8px;margin-inline-end:8px;margin-top:-4px;margin-bottom:-4px}::slotted(ion-avatar:last-child){-webkit-margin-start:8px;margin-inline-start:8px;-webkit-margin-end:-8px;margin-inline-end:-8px;margin-top:-4px;margin-bottom:-4px}:host(:focus){outline:none}:host(:focus){--background:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.16)}:host(.ion-activated){--background:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.2)}@media (any-hover: hover){:host(:hover){--background:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.16)}:host(.ion-color:hover){background:rgba(var(--ion-color-base-rgb), 0.12)}:host(.chip-outline:not(.ion-color):hover){background:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.04)}}:host{font-size:0.875rem}"}}},[33,"ion-chip",{color:[513],outline:[4],disabled:[4]}]),tP={xs:"(min-width: 0px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)"},tT=e=>{if(void 0===e||""===e)return!0;if(window.matchMedia){let t=tP[e];return window.matchMedia(t).matches}return!1},tO="undefined"!=typeof window?window:void 0,tA=tO&&!!(tO.CSS&&tO.CSS.supports&&tO.CSS.supports("--a: 0")),tI=["","xs","sm","md","lg","xl"],tR=(0,eN.GH)(class extends eN.mv{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(){(0,eN.xE)(this)}getColumns(e){let t;for(let n of tI){let i=tT(n),r=this[e+n.charAt(0).toUpperCase()+n.slice(1)];i&&void 0!==r&&(t=r)}return t}calculateSize(){let e=this.getColumns("size");if(!e||""===e)return;let t="auto"===e?"auto":tA?`calc(calc(${e} / var(--ion-grid-columns, 12)) * 100%)`:e/12*100+"%";return{flex:`0 0 ${t}`,width:`${t}`,"max-width":`${t}`}}calculatePosition(e,t){let n=this.getColumns(e);if(!n)return;let i=tA?`calc(calc(${n} / var(--ion-grid-columns, 12)) * 100%)`:n>0&&n<12?n/12*100+"%":"auto";return{[t]:i}}calculateOffset(e){return this.calculatePosition("offset",e?"margin-right":"margin-left")}calculatePull(e){return this.calculatePosition("pull",e?"left":"right")}calculatePush(e){return this.calculatePosition("push",e?"right":"left")}render(){let e="rtl"===document.dir,t=(0,p.b)(this);return(0,eN.h)(eN.AA,{key:"c37fa4c4c993385ccbb6f4e89b2f390b140507a0",class:{[t]:!0},style:Object.assign(Object.assign(Object.assign(Object.assign({},this.calculateOffset(e)),this.calculatePull(e)),this.calculatePush(e)),this.calculateSize())},(0,eN.h)("slot",{key:"6a5296ff0b9dee6600c2dafe7363a065d053bac2"}))}static get style(){return":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))}}"}},[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"]]]);var t$=n(73124);let tL=(0,eN.GH)(class extends eN.mv{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionScrollStart=(0,eN.yM)(this,"ionScrollStart",7),this.ionScroll=(0,eN.yM)(this,"ionScroll",7),this.ionScrollEnd=(0,eN.yM)(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.fixedSlotPlacement="after",this.forceOverscroll=void 0,this.scrollX=!1,this.scrollY=!0,this.scrollEvents=!1}connectedCallback(){if(this.isMainContent=null===this.el.closest("ion-menu, ion-popover, ion-modal"),(0,f.j)(this.el)){let e=this.tabsElement=this.el.closest("ion-tabs");null!==e&&(this.tabsLoadCallback=()=>this.resize(),e.addEventListener("ionTabBarLoaded",this.tabsLoadCallback))}}disconnectedCallback(){if(this.onScrollEnd(),(0,f.j)(this.el)){let{tabsElement:e,tabsLoadCallback:t}=this;null!==e&&void 0!==t&&e.removeEventListener("ionTabBarLoaded",t),this.tabsElement=null,this.tabsLoadCallback=void 0}}onResize(){this.resizeTimeout&&(clearTimeout(this.resizeTimeout),this.resizeTimeout=null),this.resizeTimeout=setTimeout(()=>{null!==this.el.offsetParent&&this.resize()},100)}shouldForceOverscroll(){let{forceOverscroll:e}=this,t=(0,p.b)(this);return void 0===e?"ios"===t&&(0,p.a)("ios"):e}resize(){eN.Z5.isBrowser&&(this.fullscreen?(0,eN.wj)(()=>this.readDimensions()):(0!==this.cTop||0!==this.cBottom)&&(this.cTop=this.cBottom=0,(0,eN.xE)(this)))}readDimensions(){let e=tj(this.el),t=Math.max(this.el.offsetTop,0),n=Math.max(e.offsetHeight-t-this.el.offsetHeight,0),i=t!==this.cTop||n!==this.cBottom;i&&(this.cTop=t,this.cBottom=n,(0,eN.xE)(this))}onScroll(e){let t=Date.now(),n=!this.isScrolling;this.lastScroll=t,n&&this.onScrollStart(),!this.queued&&this.scrollEvents&&(this.queued=!0,(0,eN.wj)(t=>{this.queued=!1,this.detail.event=e,tD(this.detail,this.scrollEl,t,n),this.ionScroll.emit(this.detail)}))}async getScrollElement(){return this.scrollEl||await new Promise(e=>(0,f.c)(this.el,e)),Promise.resolve(this.scrollEl)}async getBackgroundElement(){return this.backgroundContentEl||await new Promise(e=>(0,f.c)(this.el,e)),Promise.resolve(this.backgroundContentEl)}scrollToTop(e=0){return this.scrollToPoint(void 0,0,e)}async scrollToBottom(e=0){let t=await this.getScrollElement(),n=t.scrollHeight-t.clientHeight;return this.scrollToPoint(void 0,n,e)}async scrollByPoint(e,t,n){let i=await this.getScrollElement();return this.scrollToPoint(e+i.scrollLeft,t+i.scrollTop,n)}async scrollToPoint(e,t,n=0){let i;let r=await this.getScrollElement();if(n<32){null!=t&&(r.scrollTop=t),null!=e&&(r.scrollLeft=e);return}let o=0,a=new Promise(e=>i=e),s=r.scrollTop,l=r.scrollLeft,c=null!=t?t-s:0,d=null!=e?e-l:0,u=e=>{let t=Math.min(1,(e-o)/n)-1,a=Math.pow(t,3)+1;0!==c&&(r.scrollTop=Math.floor(a*c+s)),0!==d&&(r.scrollLeft=Math.floor(a*d+l)),a<1?requestAnimationFrame(u):i()};return requestAnimationFrame(e=>{o=e,u(e)}),a}onScrollStart(){this.isScrolling=!0,this.ionScrollStart.emit({isScrolling:!0}),this.watchDog&&clearInterval(this.watchDog),this.watchDog=setInterval(()=>{this.lastScroll<Date.now()-120&&this.onScrollEnd()},100)}onScrollEnd(){this.watchDog&&clearInterval(this.watchDog),this.watchDog=null,this.isScrolling&&(this.isScrolling=!1,this.ionScrollEnd.emit({isScrolling:!1}))}render(){let{fixedSlotPlacement:e,isMainContent:t,scrollX:n,scrollY:i,el:r}=this,o=(0,t$.i)(r)?"rtl":"ltr",a=(0,p.b)(this),s=this.shouldForceOverscroll(),l="ios"===a;return this.resize(),(0,eN.h)(eN.AA,{key:"f599a7da14969df38c20a6f650179d2a319fb58b",role:t?"main":void 0,class:eP(this.color,{[a]:!0,"content-sizing":eC("ion-popover",this.el),overscroll:s,[`content-${o}`]:!0}),style:{"--offset-top":`${this.cTop}px`,"--offset-bottom":`${this.cBottom}px`}},(0,eN.h)("div",{key:"7c545c3c95ea05abd036d0462936ac153d2a8fc6",ref:e=>this.backgroundContentEl=e,id:"background-content",part:"background"}),"before"===e?(0,eN.h)("slot",{name:"fixed"}):null,(0,eN.h)("div",{key:"a67ab7438466c99f74b7ba59964802c3ba86ac5b",class:{"inner-scroll":!0,"scroll-x":n,"scroll-y":i,overscroll:(n||i)&&s},ref:e=>this.scrollEl=e,onScroll:this.scrollEvents?e=>this.onScroll(e):void 0,part:"scroll"},(0,eN.h)("slot",{key:"6d10fcac2e40b4dd6c20d91a8957ac07251d2fa7"})),l?(0,eN.h)("div",{class:"transition-effect"},(0,eN.h)("div",{class:"transition-cover"}),(0,eN.h)("div",{class:"transition-shadow"})):null,"after"===e?(0,eN.h)("slot",{name:"fixed"}):null)}get el(){return this}static get style(){return':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)}#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)}'}},[1,"ion-content",{color:[513],fullscreen:[4],fixedSlotPlacement:[1,"fixed-slot-placement"],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"]]]),tM=e=>{var t;return e.parentElement?e.parentElement:(null===(t=e.parentNode)||void 0===t?void 0:t.host)?e.parentNode.host:null},tj=e=>{let t=e.closest("ion-tabs");if(t)return t;let n=e.closest("ion-app, ion-page, .ion-page, page-inner, .popover-content");return n||tM(e)},tD=(e,t,n,i)=>{let r=e.currentX,o=e.currentY,a=e.currentTime,s=t.scrollLeft,l=t.scrollTop,c=n-a;if(i&&(e.startTime=n,e.startX=s,e.startY=l,e.velocityX=e.velocityY=0),e.currentTime=n,e.currentX=e.scrollLeft=s,e.currentY=e.scrollTop=l,e.deltaX=s-e.startX,e.deltaY=l-e.startY,c>0&&c<100){let t=(s-r)/c,n=(l-o)/c;e.velocityX=.7*t+.3*e.velocityX,e.velocityY=.7*n+.3*e.velocityY}};var tN=n(80846);/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */let tF=(e,t)=>e.month===t.month&&e.day===t.day&&e.year===t.year,tz=(e,t)=>!!(e.year<t.year||e.year===t.year&&e.month<t.month||e.year===t.year&&e.month===t.month&&null!==e.day&&e.day<t.day),tB=(e,t)=>!!(e.year>t.year||e.year===t.year&&e.month>t.month||e.year===t.year&&e.month===t.month&&null!==e.day&&e.day>t.day),tH=(e,t,n)=>{let i=Array.isArray(e)?e:[e];for(let r of i)if(void 0!==t&&tz(r,t)||void 0!==n&&tB(r,n)){(0,k.p)(`The value provided to ion-datetime is out of bounds.

Min: ${JSON.stringify(t)}
Max: ${JSON.stringify(n)}
Value: ${JSON.stringify(e)}`);break}},tU=e=>e%4==0&&e%100!=0||e%400==0,tV=(e,t)=>{if(void 0!==t)return t;let n=new Intl.DateTimeFormat(e,{hour:"numeric"}),i=n.resolvedOptions();if(void 0!==i.hourCycle)return i.hourCycle;let r=new Date("5/18/2021 00:00"),o=n.formatToParts(r),a=o.find(e=>"hour"===e.type);if(!a)throw Error("Hour value not found from DateTimeFormat");switch(a.value){case"0":return"h11";case"12":return"h12";case"00":return"h23";case"24":return"h24";default:throw Error(`Invalid hour cycle "${t}"`)}},tW=e=>"h23"===e||"h24"===e,tq=(e,t)=>4===e||6===e||9===e||11===e?30:2===e?tU(t)?29:28:31,tG=(e,t={month:"numeric",year:"numeric"})=>{let n=new Intl.DateTimeFormat(e,t).formatToParts(new Date);return"month"===n[0].type},tX=e=>{let t=new Intl.DateTimeFormat(e,{hour:"numeric"}).formatToParts(new Date);return"dayPeriod"===t[0].type},tY=/^(\d{4}|[+\-]\d{6})(?:-(\d{2})(?:-(\d{2}))?)?(?:T(\d{2}):(\d{2})(?::(\d{2})(?:\.(\d{3}))?)?(?:(Z)|([+\-])(\d{2})(?::(\d{2}))?)?)?$/,tK=/^((\d{2}):(\d{2})(?::(\d{2})(?:\.(\d{3}))?)?(?:(Z)|([+\-])(\d{2})(?::(\d{2}))?)?)?$/,tJ=e=>{if(void 0===e)return;let t=e;return"string"==typeof e&&(t=e.replace(/\[|\]|\s/g,"").split(",")),Array.isArray(t)?t.map(e=>parseInt(e,10)).filter(isFinite):[t]},tZ=e=>({month:parseInt(e.getAttribute("data-month"),10),day:parseInt(e.getAttribute("data-day"),10),year:parseInt(e.getAttribute("data-year"),10),dayOfWeek:parseInt(e.getAttribute("data-day-of-week"),10)});function tQ(e){if(Array.isArray(e)){let t=[];for(let n of e){let e=tQ(n);if(!e)return;t.push(e)}return t}let t=null;if(null!=e&&""!==e&&((t=tK.exec(e))?(t.unshift(void 0,void 0),t[2]=t[3]=void 0):t=tY.exec(e)),null===t){(0,k.p)(`Unable to parse date string: ${e}. Please provide a valid ISO 8601 datetime string.`);return}for(let e=1;e<8;e++)t[e]=void 0!==t[e]?parseInt(t[e],10):void 0;return{year:t[1],month:t[2],day:t[3],hour:t[4],minute:t[5],ampm:t[4]<12?"am":"pm"}}let t0=(e,t,n)=>t&&tz(e,t)?t:n&&tB(e,n)?n:e,t1=e=>e>=12?"pm":"am",t2=(e,t)=>{let n=tQ(e);if(void 0===n)return;let{month:i,day:r,year:o,hour:a,minute:s}=n,l=null!=o?o:t.year,c=null!=i?i:12;return{month:c,day:null!=r?r:tq(c,l),year:l,hour:null!=a?a:23,minute:null!=s?s:59}},t5=(e,t)=>{let n=tQ(e);if(void 0===n)return;let{month:i,day:r,year:o,hour:a,minute:s}=n;return{month:null!=i?i:1,day:null!=r?r:1,year:null!=o?o:t.year,hour:null!=a?a:0,minute:null!=s?s:0}},t3=e=>("0"+(void 0!==e?Math.abs(e):"0")).slice(-2),t4=e=>("000"+(void 0!==e?Math.abs(e):"0")).slice(-4);function t6(e){if(Array.isArray(e))return e.map(e=>t6(e));let t="";return void 0!==e.year?(t=t4(e.year),void 0!==e.month&&(t+="-"+t3(e.month),void 0!==e.day&&(t+="-"+t3(e.day),void 0!==e.hour&&(t+=`T${t3(e.hour)}:${t3(e.minute)}:00`)))):void 0!==e.hour&&(t=t3(e.hour)+":"+t3(e.minute)),t}let t8=(e,t)=>void 0===t?e:"am"===t?12===e?0:e:12===e?12:e+12,t9=e=>{let{dayOfWeek:t}=e;if(null==t)throw Error("No day of week provided");return nr(e,t)},t7=e=>{let{dayOfWeek:t}=e;if(null==t)throw Error("No day of week provided");return no(e,6-t)},ne=e=>no(e,1),nt=e=>nr(e,1),nn=e=>nr(e,7),ni=e=>no(e,7),nr=(e,t)=>{let{month:n,day:i,year:r}=e;if(null===i)throw Error("No day provided");let o={month:n,day:i,year:r};if(o.day=i-t,o.day<1&&(o.month-=1),o.month<1&&(o.month=12,o.year-=1),o.day<1){let e=tq(o.month,o.year);o.day=e+o.day}return o},no=(e,t)=>{let{month:n,day:i,year:r}=e;if(null===i)throw Error("No day provided");let o={month:n,day:i,year:r},a=tq(n,r);return o.day=i+t,o.day>a&&(o.day-=a,o.month+=1),o.month>12&&(o.month=1,o.year+=1),o},na=e=>{let t=1===e.month?12:e.month-1,n=1===e.month?e.year-1:e.year,i=tq(t,n),r=i<e.day?i:e.day;return{month:t,year:n,day:r}},ns=e=>{let t=12===e.month?1:e.month+1,n=12===e.month?e.year+1:e.year,i=tq(t,n),r=i<e.day?i:e.day;return{month:t,year:n,day:r}},nl=(e,t)=>{let n=e.month,i=e.year+t,r=tq(n,i),o=r<e.day?r:e.day;return{month:n,year:i,day:o}},nc=e=>nl(e,-1),nd=e=>nl(e,1),nu=(e,t,n)=>t?e:t8(e,n),nh=(e,t)=>{let{ampm:n,hour:i}=e,r=i;return"am"===n&&"pm"===t?r=t8(r,"pm"):"pm"===n&&"am"===t&&(r=Math.abs(r-12)),r},np=(e,t,n)=>{let{month:i,day:r,year:o}=e,a=t0(Object.assign({},e),t,n),s=tq(i,o);return null!==r&&s<r&&(a.day=s),void 0!==t&&tF(a,t)&&void 0!==a.hour&&void 0!==t.hour&&(a.hour<t.hour?(a.hour=t.hour,a.minute=t.minute):a.hour===t.hour&&void 0!==a.minute&&void 0!==t.minute&&a.minute<t.minute&&(a.minute=t.minute)),void 0!==n&&tF(e,n)&&void 0!==a.hour&&void 0!==n.hour&&(a.hour>n.hour?(a.hour=n.hour,a.minute=n.minute):a.hour===n.hour&&void 0!==a.minute&&void 0!==n.minute&&a.minute>n.minute&&(a.minute=n.minute)),a},nf=({refParts:e,monthValues:t,dayValues:n,yearValues:i,hourValues:r,minuteValues:o,minParts:a,maxParts:s})=>{let{hour:l,minute:c,day:d,month:u,year:h}=e,p=Object.assign(Object.assign({},e),{dayOfWeek:void 0});if(void 0!==i){let e=i.filter(e=>(void 0===a||!(e<a.year))&&(void 0===s||!(e>s.year)));p.year=nm(h,e)}if(void 0!==t){let e=t.filter(e=>(void 0===a||p.year!==a.year||!(e<a.month))&&(void 0===s||p.year!==s.year||!(e>s.month)));p.month=nm(u,e)}if(null!==d&&void 0!==n){let e=n.filter(e=>!(void 0!==a&&tz(Object.assign(Object.assign({},p),{day:e}),a)||void 0!==s&&tB(Object.assign(Object.assign({},p),{day:e}),s)));p.day=nm(d,e)}if(void 0!==l&&void 0!==r){let e=r.filter(e=>!((null==a?void 0:a.hour)!==void 0&&tF(p,a)&&e<a.hour||(null==s?void 0:s.hour)!==void 0&&tF(p,s)&&e>s.hour));p.hour=nm(l,e),p.ampm=t1(p.hour)}if(void 0!==c&&void 0!==o){let e=o.filter(e=>!((null==a?void 0:a.minute)!==void 0&&tF(p,a)&&p.hour===a.hour&&e<a.minute||(null==s?void 0:s.minute)!==void 0&&tF(p,s)&&p.hour===s.hour&&e>s.minute));p.minute=nm(c,e)}return p},nm=(e,t)=>{let n=t[0],i=Math.abs(n-e);for(let r=1;r<t.length;r++){let o=t[r],a=Math.abs(o-e);a<i&&(n=o,i=a)}return n},ng=e=>void 0===e?"":e.toUpperCase(),nb=e=>Object.assign(Object.assign({},e),{timeZone:"UTC",timeZoneName:void 0}),nv=(e,t,n,i={hour:"numeric",minute:"numeric"})=>{let r={hour:t.hour,minute:t.minute};return void 0===r.hour||void 0===r.minute?"Invalid Time":new Intl.DateTimeFormat(e,Object.assign(Object.assign({},nb(i)),{hourCycle:n})).format(new Date(t6(Object.assign({year:2023,day:1,month:1},r))+"Z"))},ny=e=>{let t=e.toString();return t.length>1?t:`0${t}`},nx=(e,t)=>{if(0===e)switch(t){case"h11":return"0";case"h12":return"12";case"h23":return"00";case"h24":return"24";default:throw Error(`Invalid hour cycle "${t}"`)}let n=tW(t);return n?ny(e):e.toString()},nw=(e,t,n)=>{if(null===n.day)return null;let i=nS(n),r=new Intl.DateTimeFormat(e,{weekday:"long",month:"long",day:"numeric",timeZone:"UTC"}).format(i);return t?`Today, ${r}`:r},nk=(e,t)=>{let n=nS(t);return new Intl.DateTimeFormat(e,{month:"long",year:"numeric",timeZone:"UTC"}).format(n)},n_=(e,t)=>nP(e,t,{day:"numeric"}).find(e=>"day"===e.type).value,nE=(e,t)=>nC(e,t,{year:"numeric"}),nS=e=>{var t,n,i;let r=void 0!==e.hour&&void 0!==e.minute?` ${e.hour}:${e.minute}`:"";return new Date(`${null!==(t=e.month)&&void 0!==t?t:1}/${null!==(n=e.day)&&void 0!==n?n:1}/${null!==(i=e.year)&&void 0!==i?i:2023}${r} GMT+0000`)},nC=(e,t,n)=>{let i=nS(t);return nT(e,nb(n)).format(i)},nP=(e,t,n)=>{let i=nS(t);return nT(e,n).formatToParts(i)},nT=(e,t)=>new Intl.DateTimeFormat(e,Object.assign(Object.assign({},t),{timeZone:"UTC"})),nO=e=>{if(!("RelativeTimeFormat"in Intl))return"Today";{let t=new Intl.RelativeTimeFormat(e,{numeric:"auto"}).format(0,"day");return t.charAt(0).toUpperCase()+t.slice(1)}},nA=e=>{let t=e.getTimezoneOffset();return e.setMinutes(e.getMinutes()-t),e},nI=nA(new Date("2022T01:00")),nR=nA(new Date("2022T13:00")),n$=(e,t)=>{let n=new Intl.DateTimeFormat(e,{hour:"numeric",timeZone:"UTC"}).formatToParts("am"===t?nI:nR).find(e=>"dayPeriod"===e.type);return n?n.value:ng(t)},nL=e=>Array.isArray(e)?e.join(","):e,nM=()=>nA(new Date).toISOString(),nj=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59],nD=[0,1,2,3,4,5,6,7,8,9,10,11],nN=[0,1,2,3,4,5,6,7,8,9,10,11],nF=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23],nz=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,0],nB=(e,t,n=0)=>{let i=new Intl.DateTimeFormat(e,{weekday:"ios"===t?"short":"narrow"}),r=new Date("11/01/2020"),o=[];for(let e=n;e<n+7;e++){let t=new Date(r);t.setDate(t.getDate()+e),o.push(i.format(t))}return o},nH=(e,t,n)=>{let i=tq(e,t),r=new Date(`${e}/1/${t}`).getDay(),o=r>=n?r-(n+1):6-(n-r),a=[];for(let e=1;e<=i;e++)a.push({day:e,dayOfWeek:(o+e)%7});for(let e=0;e<=o;e++)a=[{day:null,dayOfWeek:null},...a];return a},nU=e=>{switch(e){case"h11":return nD;case"h12":return nN;case"h23":return nF;case"h24":return nz;default:throw Error(`Invalid hour cycle "${e}"`)}},nV=(e,t,n="h12",i,r,o,a)=>{let s=tV(e,n),l=tW(s),c=nU(s),d=nj,u=!0,h=!0;if(o&&(c=c.filter(e=>o.includes(e))),a&&(d=d.filter(e=>a.includes(e))),i){if(tF(t,i)){if(void 0!==i.hour&&(c=c.filter(e=>{let n="pm"===t.ampm?(e+12)%24:e;return(l?e:n)>=i.hour}),u=i.hour<13),void 0!==i.minute){let e=!1;void 0!==i.hour&&void 0!==t.hour&&t.hour>i.hour&&(e=!0),d=d.filter(t=>!!e||t>=i.minute)}}else tz(t,i)&&(c=[],d=[],u=h=!1)}return r&&(tF(t,r)?(void 0!==r.hour&&(c=c.filter(e=>{let n="pm"===t.ampm?(e+12)%24:e;return(l?e:n)<=r.hour}),h=r.hour>=12),void 0!==r.minute&&t.hour===r.hour&&(d=d.filter(e=>e<=r.minute))):tB(t,r)&&(c=[],d=[],u=h=!1)),{hours:c,minutes:d,am:u,pm:h}},nW=(e,t)=>{let n={month:e.month,year:e.year,day:e.day};if(void 0!==t&&(e.month!==t.month||e.year!==t.year)){let i={month:t.month,year:t.year,day:t.day},r=tz(i,n);return r?[i,n,ns(e)]:[na(e),n,i]}return[na(e),n,ns(e)]},nq=(e,t,n,i,r,o={month:"long"})=>{let{year:a}=t,s=[];if(void 0!==r){let t=r;(null==i?void 0:i.month)!==void 0&&(t=t.filter(e=>e<=i.month)),(null==n?void 0:n.month)!==void 0&&(t=t.filter(e=>e>=n.month)),t.forEach(t=>{let n=new Date(`${t}/1/${a} GMT+0000`),i=new Intl.DateTimeFormat(e,Object.assign(Object.assign({},o),{timeZone:"UTC"})).format(n);s.push({text:i,value:t})})}else{let t=i&&i.year===a?i.month:12,r=n&&n.year===a?n.month:1;for(let n=r;n<=t;n++){let t=new Date(`${n}/1/${a} GMT+0000`),i=new Intl.DateTimeFormat(e,Object.assign(Object.assign({},o),{timeZone:"UTC"})).format(t);s.push({text:i,value:n})}}return s},nG=(e,t,n,i,r,o={day:"numeric"})=>{let{month:a,year:s}=t,l=[],c=tq(a,s),d=(null==i?void 0:i.day)!==null&&(null==i?void 0:i.day)!==void 0&&i.year===s&&i.month===a?i.day:c,u=(null==n?void 0:n.day)!==null&&(null==n?void 0:n.day)!==void 0&&n.year===s&&n.month===a?n.day:1;if(void 0!==r){let t=r;(t=t.filter(e=>e>=u&&e<=d)).forEach(t=>{let n=new Date(`${a}/${t}/${s} GMT+0000`),i=new Intl.DateTimeFormat(e,Object.assign(Object.assign({},o),{timeZone:"UTC"})).format(n);l.push({text:i,value:t})})}else for(let t=u;t<=d;t++){let n=new Date(`${a}/${t}/${s} GMT+0000`),i=new Intl.DateTimeFormat(e,Object.assign(Object.assign({},o),{timeZone:"UTC"})).format(n);l.push({text:i,value:t})}return l},nX=(e,t,n,i,r)=>{var o,a;let s=[];if(void 0!==r)s=r,(null==i?void 0:i.year)!==void 0&&(s=s.filter(e=>e<=i.year)),(null==n?void 0:n.year)!==void 0&&(s=s.filter(e=>e>=n.year));else{let{year:e}=t,r=null!==(o=null==i?void 0:i.year)&&void 0!==o?o:e,l=null!==(a=null==n?void 0:n.year)&&void 0!==a?a:e-100;for(let e=l;e<=r;e++)s.push(e)}return s.map(n=>({text:nE(e,{year:n,month:t.month,day:t.day}),value:n}))},nY=(e,t)=>e.month===t.month&&e.year===t.year?[e]:[e,...nY(ns(e),t)],nK=(e,t,n,i,r,o)=>{let a=[],s=[],l=nY(n,i);return o&&(l=l.filter(({month:e})=>o.includes(e))),l.forEach(o=>{let l={month:o.month,day:null,year:o.year},c=nG(e,l,n,i,r,{month:"short",day:"numeric",weekday:"short"}),d=[],u=[];c.forEach(n=>{let i=tF(Object.assign(Object.assign({},l),{day:n.value}),t);u.push({text:i?nO(e):n.text,value:`${l.year}-${l.month}-${n.value}`}),d.push({month:l.month,year:l.year,day:n.value})}),s=[...s,...d],a=[...a,...u]}),{parts:s,items:a}},nJ=(e,t,n,i,r,o,a)=>{let s=tV(e,n),l=tW(s),{hours:c,minutes:d,am:u,pm:h}=nV(e,t,s,i,r,o,a),p=c.map(e=>({text:nx(e,s),value:nu(e,l,t.ampm)})),f=d.map(e=>({text:ny(e),value:e})),m=[];return u&&!l&&m.push({text:n$(e,"am"),value:"am"}),h&&!l&&m.push({text:n$(e,"pm"),value:"pm"}),{minutesData:f,hoursData:p,dayPeriodData:m}},nZ=(0,eN.GH)(class extends eN.mv{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionFocus=(0,eN.yM)(this,"ionFocus",7),this.ionBlur=(0,eN.yM)(this,"ionBlur",7),this.inItem=!1,this.inListHeader=!1,this.inToolbar=!1,this.formButtonEl=null,this.formEl=null,this.inheritedAttributes={},this.handleClick=e=>{let{el:t}=this;"button"===this.type?eI(this.href,e,this.routerDirection,this.routerAnimation):(0,f.h)(t)&&this.submitForm(e)},this.onFocus=()=>{this.ionFocus.emit()},this.onBlur=()=>{this.ionBlur.emit()},this.slotChanged=()=>{this.isCircle=this.hasIconOnly},this.isCircle=!1,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(){let{disabled:e}=this;this.formButtonEl&&(this.formButtonEl.disabled=e)}renderHiddenButton(){let e=this.formEl=this.findForm();if(e){let{formButtonEl:t}=this;if(null!==t&&e.contains(t))return;let n=this.formButtonEl=document.createElement("button");n.type=this.type,n.style.display="none",n.disabled=this.disabled,e.appendChild(n)}}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=(0,f.i)(this.el)}get hasIconOnly(){return!!this.el.querySelector('[slot="icon-only"]')}get rippleType(){let e=void 0===this.fill||"clear"===this.fill;return e&&this.hasIconOnly&&this.inToolbar?"unbounded":"bounded"}findForm(){let{form:e}=this;if(e instanceof HTMLFormElement)return e;if("string"==typeof e){let t=document.getElementById(e);return t?t instanceof HTMLFormElement?t:((0,k.p)(`Form with selector: "#${e}" could not be found. Verify that the id is attached to a <form> element.`,this.el),null):((0,k.p)(`Form with selector: "#${e}" could not be found. Verify that the id is correct and the form is rendered in the DOM.`,this.el),null)}return void 0!==e?((0,k.p)('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(e){this.formEl&&this.formButtonEl&&(e.preventDefault(),this.formButtonEl.click())}render(){let e=(0,p.b)(this),{buttonType:t,type:n,disabled:i,rel:r,target:o,size:a,href:s,color:l,expand:c,hasIconOnly:d,shape:u,strong:h,inheritedAttributes:f}=this,m=void 0===a&&this.inItem?"small":a,g=void 0===s?"button":"a",b="button"===g?{type:n}:{download:this.download,href:s,rel:r,target:o},v=this.fill;return null==v&&(v=this.inToolbar||this.inListHeader?"clear":"solid"),"button"!==n&&this.renderHiddenButton(),(0,eN.h)(eN.AA,{key:"8f3a0363d46ef888d22b0b0812c70cb4f79e6efa",onClick:this.handleClick,"aria-disabled":i?"true":null,class:eP(l,{[e]:!0,[t]:!0,[`${t}-${c}`]:void 0!==c,[`${t}-${m}`]:void 0!==m,[`${t}-${u}`]:void 0!==u,[`${t}-${v}`]:!0,[`${t}-strong`]:h,"in-toolbar":eC("ion-toolbar",this.el),"in-toolbar-color":eC("ion-toolbar[color]",this.el),"in-buttons":eC("ion-buttons",this.el),"button-has-icon-only":d,"button-disabled":i,"ion-activatable":!0,"ion-focusable":!0})},(0,eN.h)(g,Object.assign({key:"a517c7d06aab15ad4c2a51b8ec224c1aeb4ed565"},b,{class:"button-native",part:"native",disabled:i,onFocus:this.onFocus,onBlur:this.onBlur},f),(0,eN.h)("span",{key:"127c26dd97c0bf5097433df77df7313d59784899",class:"button-inner"},(0,eN.h)("slot",{key:"39d9a9cad8e1addbe63406062e555e05c2cb541b",name:"icon-only",onSlotchange:this.slotChanged}),(0,eN.h)("slot",{key:"cfdebdd89155c6c21eb80e51e06456a3a6d877e0",name:"start"}),(0,eN.h)("slot",{key:"eac497e0f97ab55baa834ae23155d89b0f7069c6"}),(0,eN.h)("slot",{key:"c99f7900f8856b32a0b4ac11092d461f5e9a1109",name:"end"})),"md"===e&&(0,eN.h)("ion-ripple-effect",{key:"c681edb0480879fbd801575f2233f6e118898638",type:this.rippleType})))}get el(){return this}static get watchers(){return{disabled:["disabledChanged"]}}static get style(){return{ios:':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:normal;-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, #0054e9);--color:var(--ion-color-primary-contrast, #fff)}:host(.button-outline){--border-color:var(--ion-color-primary, #0054e9);--background:transparent;--color:var(--ion-color-primary, #0054e9)}:host(.button-clear){--border-width:0;--background:transparent;--color:var(--ion-color-primary, #0054e9)}: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}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{--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, #004acd);--background-focused:var(--ion-color-primary-shade, #004acd);--background-hover:var(--ion-color-primary-tint, #1a65eb);--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, #0054e9);--background-focused:var(--ion-color-primary, #0054e9);--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, #0054e9);--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-round){--border-radius:999px;--padding-top:0;--padding-start:26px;--padding-end:26px;--padding-bottom:0}:host(.button-strong){font-weight:600}:host(.button-has-icon-only){--padding-top:0;--padding-bottom:var(--padding-top);--padding-end:var(--padding-top);--padding-start:var(--padding-end);min-width:clamp(30px, 2.125em, 60px);min-height:clamp(30px, 2.125em, 60px)}::slotted(ion-icon[slot=icon-only]){font-size:clamp(15.12px, 1.125em, 43.02px)}:host(.button-small.button-has-icon-only){min-width:clamp(23px, 2.16em, 54px);min-height:clamp(23px, 2.16em, 54px)}:host(.button-small) ::slotted(ion-icon[slot=icon-only]){font-size:clamp(12.1394px, 1.308125em, 40.1856px)}:host(.button-large.button-has-icon-only){min-width:clamp(46px, 2.5em, 78px);min-height:clamp(46px, 2.5em, 78px)}:host(.button-large) ::slotted(ion-icon[slot=icon-only]){font-size:clamp(15.12px, 0.9em, 43.056px)}: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)}: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))}',md:':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:normal;-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, #0054e9);--color:var(--ion-color-primary-contrast, #fff)}:host(.button-outline){--border-color:var(--ion-color-primary, #0054e9);--background:transparent;--color:var(--ion-color-primary, #0054e9)}:host(.button-clear){--border-width:0;--background:transparent;--color:var(--ion-color-primary, #0054e9)}: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}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{--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),\n                background-color 15ms linear,\n                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, #0054e9);--background-hover:var(--ion-color-primary, #0054e9);--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, #0054e9);--background-hover:var(--ion-color-primary, #0054e9);--background-activated-opacity:0;--background-focused-opacity:.12;--background-hover-opacity:.04}:host(.button-round){--border-radius:999px;--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-strong){font-weight:bold}:host(.button-has-icon-only){--padding-top:0;--padding-bottom:var(--padding-top);--padding-end:var(--padding-top);--padding-start:var(--padding-end);min-width:clamp(30px, 2.86em, 60px);min-height:clamp(30px, 2.86em, 60px)}::slotted(ion-icon[slot=icon-only]){font-size:clamp(15.104px, 1.6em, 43.008px)}:host(.button-small.button-has-icon-only){min-width:clamp(23px, 2.16em, 54px);min-height:clamp(23px, 2.16em, 54px)}:host(.button-small) ::slotted(ion-icon[slot=icon-only]){font-size:clamp(13.002px, 1.23125em, 40.385px)}:host(.button-large.button-has-icon-only){min-width:clamp(46px, 2.5em, 78px);min-height:clamp(46px, 2.5em, 78px)}:host(.button-large) ::slotted(ion-icon[slot=icon-only]){font-size:clamp(15.008px, 1.4em, 43.008px)}: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)}}:host(.button-outline.ion-activated.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{background:var(--ion-toolbar-background, var(--color));color:var(--ion-toolbar-color, var(--background), var(--ion-color-primary-contrast, #fff))}'}}},[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],isCircle:[32]},void 0,{disabled:["disabledChanged"]}]);function nQ(){"undefined"!=typeof customElements&&["ion-button","ion-ripple-effect"].forEach(e=>{switch(e){case"ion-button":customElements.get(e)||customElements.define(e,nZ);break;case"ion-ripple-effect":customElements.get(e)||tS()}})}let n0=(0,eN.GH)(class extends eN.mv{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionInputModeChange=(0,eN.yM)(this,"ionInputModeChange",7),this.useInputMode=!1,this.isInHighlightBounds=e=>{let{highlightEl:t}=this;if(!t)return!1;let n=t.getBoundingClientRect(),i=e.clientX<n.left||e.clientX>n.right,r=e.clientY<n.top||e.clientY>n.bottom;return!i&&!r},this.onFocusOut=e=>{let{relatedTarget:t}=e;t&&("ION-PICKER-COLUMN"===t.tagName||t===this.inputEl)||this.exitInputMode()},this.onFocusIn=e=>{let{target:t}=e;if("ION-PICKER-COLUMN"===t.tagName&&!this.actionOnClick){let e=t.numericInput;e?this.enterInputMode(t,!1):this.exitInputMode()}},this.onClick=()=>{let{actionOnClick:e}=this;e&&(e(),this.actionOnClick=void 0)},this.onPointerDown=e=>{let{useInputMode:t,inputModeColumn:n,el:i}=this;if(this.isInHighlightBounds(e)){if(t)"ION-PICKER-COLUMN"===e.target.tagName?n&&n===e.target?this.actionOnClick=()=>{this.enterInputMode()}:this.actionOnClick=()=>{this.enterInputMode(e.target)}:this.actionOnClick=()=>{this.exitInputMode()};else{let t=i.querySelectorAll("ion-picker-column.picker-column-numeric-input"),n=1===t.length?e.target:void 0;this.actionOnClick=()=>{this.enterInputMode(n)}}return}this.actionOnClick=()=>{this.exitInputMode()}},this.enterInputMode=(e,t=!0)=>{let{inputEl:n,el:i}=this;if(!n)return;let r=i.querySelector("ion-picker-column.picker-column-numeric-input");r&&(this.useInputMode=!0,this.inputModeColumn=e,t?(this.destroyKeypressListener&&(this.destroyKeypressListener(),this.destroyKeypressListener=void 0),n.focus()):(i.addEventListener("keypress",this.onKeyPress),this.destroyKeypressListener=()=>{i.removeEventListener("keypress",this.onKeyPress)}),this.emitInputModeChange())},this.onKeyPress=e=>{let{inputEl:t}=this;if(!t)return;let n=parseInt(e.key,10);Number.isNaN(n)||(t.value+=e.key,this.onInputChange())},this.selectSingleColumn=()=>{let{inputEl:e,inputModeColumn:t,singleColumnSearchTimeout:n}=this;if(!e||!t)return;let i=Array.from(t.querySelectorAll("ion-picker-column-option")).filter(e=>!0!==e.disabled);if(n&&clearTimeout(n),this.singleColumnSearchTimeout=setTimeout(()=>{e.value="",this.singleColumnSearchTimeout=void 0},1e3),e.value.length>=3){let t=e.value.length-2,n=e.value.substring(t);e.value=n,this.selectSingleColumn();return}let r=i.find(({textContent:t})=>{let n=t.replace(/^0+(?=[1-9])|0+(?=0$)/,"");return n===e.value});if(r){t.setValue(r.value);return}if(2===e.value.length){let t=e.value.substring(e.value.length-1);e.value=t,this.selectSingleColumn()}},this.searchColumn=(e,t,n="start")=>{let i="start"===n?/^0+/:/0$/,r=Array.from(e.querySelectorAll("ion-picker-column-option")).find(e=>!0!==e.disabled&&e.textContent.replace(i,"")===t);r&&e.setValue(r.value)},this.selectMultiColumn=()=>{let e;let{inputEl:t,el:n}=this;if(!t)return;let i=Array.from(n.querySelectorAll("ion-picker-column")).filter(e=>e.numericInput),r=i[0],o=i[1],a=t.value;switch(a.length){case 1:this.searchColumn(r,a);break;case 2:let s=t.value.substring(0,1);a="0"===s||"1"===s?t.value:s,this.searchColumn(r,a),1===a.length&&(e=t.value.substring(t.value.length-1),this.searchColumn(o,e,"end"));break;case 3:let l=t.value.substring(0,1);a="0"===l||"1"===l?t.value.substring(0,2):l,this.searchColumn(r,a),e=1===a.length?t.value.substring(1):t.value.substring(2),this.searchColumn(o,e,"end");break;case 4:let c=t.value.substring(0,1);a="0"===c||"1"===c?t.value.substring(0,2):c,this.searchColumn(r,a);let d=1===a.length?t.value.substring(1,t.value.length):t.value.substring(2,t.value.length);this.searchColumn(o,d,"end");break;default:let u=t.value.length-4,h=t.value.substring(u);t.value=h,this.selectMultiColumn()}},this.onInputChange=()=>{let{useInputMode:e,inputEl:t,inputModeColumn:n}=this;e&&t&&(n?this.selectSingleColumn():this.selectMultiColumn())},this.emitInputModeChange=()=>{let{useInputMode:e,inputModeColumn:t}=this;this.ionInputModeChange.emit({useInputMode:e,inputModeColumn:t})}}preventTouchStartPropagation(e){e.stopPropagation()}componentWillLoad(){(0,f.g)(this.el).addEventListener("focusin",this.onFocusIn),(0,f.g)(this.el).addEventListener("focusout",this.onFocusOut)}async exitInputMode(){let{inputEl:e,useInputMode:t}=this;t&&e&&(this.useInputMode=!1,this.inputModeColumn=void 0,e.blur(),e.value="",this.destroyKeypressListener&&(this.destroyKeypressListener(),this.destroyKeypressListener=void 0),this.emitInputModeChange())}render(){return(0,eN.h)(eN.AA,{key:"02b0687b1f80ba295a965dfba76dd59e2d1de5d3",onPointerDown:e=>this.onPointerDown(e),onClick:()=>this.onClick()},(0,eN.h)("input",{key:"f83ed84bcf9e02539c00d8a4e63e6a0d7fc4ac71","aria-hidden":"true",tabindex:-1,inputmode:"numeric",type:"number",onKeyDown:e=>{var t;"Enter"===e.key&&(null===(t=this.inputEl)||void 0===t||t.blur())},ref:e=>this.inputEl=e,onInput:()=>this.onInputChange(),onBlur:()=>this.exitInputMode()}),(0,eN.h)("div",{key:"45b07fb0617d8e006712776bf78302288edb3ff4",class:"picker-before"}),(0,eN.h)("div",{key:"73009229368e0d62b09c913aacade26f068a7aa9",class:"picker-after"}),(0,eN.h)("div",{key:"b73da00e446cd1cfd511c39212e14a00d355752e",class:"picker-highlight",ref:e=>this.highlightEl=e}),(0,eN.h)("slot",{key:"d969f5efc5ddb9eda6c4828702efd1ceeb69f767"}))}get el(){return this}static get style(){return{ios:":host{display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:200px;direction:ltr;z-index:0}:host .picker-before,:host .picker-after{position:absolute;width:100%;-webkit-transform:translateZ(0);transform:translateZ(0);z-index:1;pointer-events:none}:host .picker-before{top:0;height:83px}:host .picker-before{inset-inline-start:0}:host .picker-after{top:116px;height:84px}:host .picker-after{inset-inline-start:0}:host .picker-highlight{border-radius:var(--highlight-border-radius, 8px);left:0;right:0;top:50%;bottom:0;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:0;margin-bottom:0;position:absolute;width:calc(100% - 16px);height:34px;-webkit-transform:translateY(-50%);transform:translateY(-50%);background:var(--highlight-background);z-index:-1}:host 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 ::slotted(ion-picker-column:first-of-type){text-align:start}:host ::slotted(ion-picker-column:last-of-type){text-align:end}:host ::slotted(ion-picker-column:only-child){text-align:center}:host .picker-before{background:-webkit-gradient(linear, left top, left bottom, color-stop(20%, rgba(var(--fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 1)), to(rgba(var(--fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 0.8)));background:linear-gradient(to bottom, rgba(var(--fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 1) 20%, rgba(var(--fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 0.8) 100%)}:host .picker-after{background:-webkit-gradient(linear, left bottom, left top, color-stop(20%, rgba(var(--fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 1)), to(rgba(var(--fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 0.8)));background:linear-gradient(to top, rgba(var(--fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 1) 20%, rgba(var(--fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 0.8) 100%)}:host .picker-highlight{background:var(--highlight-background, var(--ion-color-step-150, var(--ion-background-color-step-150, #eeeeef)))}",md:":host{display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:200px;direction:ltr;z-index:0}:host .picker-before,:host .picker-after{position:absolute;width:100%;-webkit-transform:translateZ(0);transform:translateZ(0);z-index:1;pointer-events:none}:host .picker-before{top:0;height:83px}:host .picker-before{inset-inline-start:0}:host .picker-after{top:116px;height:84px}:host .picker-after{inset-inline-start:0}:host .picker-highlight{border-radius:var(--highlight-border-radius, 8px);left:0;right:0;top:50%;bottom:0;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:0;margin-bottom:0;position:absolute;width:calc(100% - 16px);height:34px;-webkit-transform:translateY(-50%);transform:translateY(-50%);background:var(--highlight-background);z-index:-1}:host 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 ::slotted(ion-picker-column:first-of-type){text-align:start}:host ::slotted(ion-picker-column:last-of-type){text-align:end}:host ::slotted(ion-picker-column:only-child){text-align:center}:host .picker-before{background:-webkit-gradient(linear, left top, left bottom, color-stop(20%, rgba(var(--fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 1)), color-stop(90%, rgba(var(--fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 0)));background:linear-gradient(to bottom, rgba(var(--fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 1) 20%, rgba(var(--fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 0) 90%)}:host .picker-after{background:-webkit-gradient(linear, left bottom, left top, color-stop(30%, rgba(var(--fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 1)), color-stop(90%, rgba(var(--fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 0)));background:linear-gradient(to top, rgba(var(--fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 1) 30%, rgba(var(--fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 0) 90%)}"}}},[33,"ion-picker",{exitInputMode:[64]},[[1,"touchstart","preventTouchStartPropagation"]]]);function n1(){"undefined"!=typeof customElements&&["ion-picker"].forEach(e=>{"ion-picker"===e&&(customElements.get(e)||customElements.define(e,n0))})}var n2=n(60169);(a=c||(c={})).Heavy="HEAVY",a.Medium="MEDIUM",a.Light="LIGHT",(s=d||(d={})).Success="SUCCESS",s.Warning="WARNING",s.Error="ERROR";let n5={getEngine(){let e=(0,n2.g)();if(null==e?void 0:e.isPluginAvailable("Haptics"))return e.Plugins.Haptics},available(){let e=this.getEngine();if(!e)return!1;let t=(0,n2.g)();return(null==t?void 0:t.getPlatform())!=="web"||"undefined"!=typeof navigator&&void 0!==navigator.vibrate},impact(e){let t=this.getEngine();t&&t.impact({style:e.style})},notification(e){let t=this.getEngine();t&&t.notification({type:e.type})},selection(){this.impact({style:c.Light})},selectionStart(){let e=this.getEngine();e&&e.selectionStart()},selectionChanged(){let e=this.getEngine();e&&e.selectionChanged()},selectionEnd(){let e=this.getEngine();e&&e.selectionEnd()}},n3=()=>n5.available(),n4=()=>{n3()&&n5.selection()},n6=()=>{n3()&&n5.selectionStart()},n8=()=>{n3()&&n5.selectionChanged()},n9=()=>{n3()&&n5.selectionEnd()},n7=e=>{n3()&&n5.impact(e)},ie=(0,eN.GH)(class extends eN.mv{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionChange=(0,eN.yM)(this,"ionChange",7),this.isScrolling=!1,this.isColumnVisible=!1,this.canExitInputMode=!0,this.updateValueTextOnScroll=!1,this.centerPickerItemInView=(e,t=!0,n=!0)=>{let{isColumnVisible:i,scrollEl:r}=this;if(i&&r){let i=e.offsetTop-3*e.clientHeight+e.clientHeight/2;r.scrollTop!==i&&(this.canExitInputMode=n,this.updateValueTextOnScroll=!1,r.scroll({top:i,left:0,behavior:t?"smooth":void 0}))}},this.setPickerItemActiveState=(e,t)=>{t?e.classList.add(it):e.classList.remove(it)},this.inputModeChange=e=>{if(!this.numericInput)return;let{useInputMode:t,inputModeColumn:n}=e.detail,i=void 0===n||n===this.el;if(!t||!i){this.setInputModeActive(!1);return}this.setInputModeActive(!0)},this.setInputModeActive=e=>{if(this.isScrolling){this.scrollEndCallback=()=>{this.isActive=e};return}this.isActive=e},this.initializeScrollListener=()=>{let e;let t=(0,p.a)("ios"),{el:n,scrollEl:i}=this,r=this.activeItem,o=()=>{(0,f.r)(()=>{var o;if(!i)return;e&&(clearTimeout(e),e=void 0),this.isScrolling||(t&&n6(),this.isScrolling=!0);let a=i.getBoundingClientRect(),s=a.x+a.width/2,l=a.y+a.height/2,c=n.getRootNode(),d=c instanceof ShadowRoot,u=d?c:g.d;if(void 0===u)return;let h=u.elementsFromPoint(s,l),p=h.find(e=>"ION-PICKER-COLUMN-OPTION"===e.tagName);void 0!==r&&this.setPickerItemActiveState(r,!1),void 0===p||p.disabled||(p!==r&&(t&&n8(),this.canExitInputMode&&this.exitInputMode()),r=p,this.setPickerItemActiveState(p,!0),this.updateValueTextOnScroll&&(null===(o=this.assistiveFocusable)||void 0===o||o.setAttribute("aria-valuetext",this.getOptionValueText(p))),e=setTimeout(()=>{this.isScrolling=!1,this.updateValueTextOnScroll=!0,t&&n9();let{scrollEndCallback:e}=this;e&&(e(),this.scrollEndCallback=void 0),this.canExitInputMode=!0,this.setValue(p.value)},250))})};(0,f.r)(()=>{i&&(i.addEventListener("scroll",o),this.destroyScrollListener=()=>{i.removeEventListener("scroll",o)})})},this.exitInputMode=()=>{let{parentEl:e}=this;null!=e&&(e.exitInputMode(),this.el.classList.remove("picker-column-active"))},this.findNextOption=(e=1)=>{let{activeItem:t}=this;if(!t)return null;let n=t,i=t.nextElementSibling;for(;null!=i;){if(e>0&&e--,"ION-PICKER-COLUMN-OPTION"===i.tagName&&!i.disabled&&0===e)return i;n=i,i=i.nextElementSibling}return n},this.findPreviousOption=(e=1)=>{let{activeItem:t}=this;if(!t)return null;let n=t,i=t.previousElementSibling;for(;null!=i;){if(e>0&&e--,"ION-PICKER-COLUMN-OPTION"===i.tagName&&!i.disabled&&0===e)return i;n=i,i=i.previousElementSibling}return n},this.onKeyDown=e=>{let t=(0,p.a)("mobile"),n=null;switch(e.key){case"ArrowDown":n=t?this.findPreviousOption():this.findNextOption();break;case"ArrowUp":n=t?this.findNextOption():this.findPreviousOption();break;case"PageUp":n=t?this.findNextOption(5):this.findPreviousOption(5);break;case"PageDown":n=t?this.findPreviousOption(5):this.findNextOption(5);break;case"Home":n=this.el.querySelector("ion-picker-column-option:first-of-type");break;case"End":n=this.el.querySelector("ion-picker-column-option:last-of-type")}null!==n&&(this.setValue(n.value),e.preventDefault())},this.getOptionValueText=e=>{var t;return e?null!==(t=e.getAttribute("aria-label"))&&void 0!==t?t:e.innerText:""},this.renderAssistiveFocusable=()=>{let{activeItem:e}=this,t=this.getOptionValueText(e);return(0,eN.h)("div",{ref:e=>this.assistiveFocusable=e,class:"assistive-focusable",role:"slider",tabindex:this.disabled?void 0:0,"aria-label":this.ariaLabel,"aria-valuemin":0,"aria-valuemax":0,"aria-valuenow":0,"aria-valuetext":t,"aria-orientation":"vertical",onKeyDown:e=>this.onKeyDown(e)})},this.ariaLabel=null,this.isActive=!1,this.disabled=!1,this.value=void 0,this.color="primary",this.numericInput=!1}ariaLabelChanged(e){this.ariaLabel=e}valueChange(){this.isColumnVisible&&this.scrollActiveItemIntoView(!0)}componentWillLoad(){let e=this.parentEl=this.el.closest("ion-picker");new IntersectionObserver(e=>{let t=e[e.length-1];if(t.isIntersecting){let{activeItem:e,el:t}=this;this.isColumnVisible=!0;let n=(0,f.g)(t).querySelector(`.${it}`);n&&this.setPickerItemActiveState(n,!1),this.scrollActiveItemIntoView(),e&&this.setPickerItemActiveState(e,!0),this.initializeScrollListener()}else this.isColumnVisible=!1,this.destroyScrollListener&&(this.destroyScrollListener(),this.destroyScrollListener=void 0)},{threshold:.001,root:this.parentEl}).observe(this.el),null!==e&&e.addEventListener("ionInputModeChange",e=>this.inputModeChange(e))}componentDidRender(){let{el:e,activeItem:t,isColumnVisible:n,value:i}=this;if(n&&!t){let t=e.querySelector("ion-picker-column-option");null!==t&&t.value!==i&&this.setValue(t.value)}}async scrollActiveItemIntoView(e=!1){let t=this.activeItem;t&&this.centerPickerItemInView(t,e,!1)}async setValue(e){!0!==this.disabled&&this.value!==e&&(this.value=e,this.ionChange.emit({value:e}))}async setFocus(){this.assistiveFocusable&&this.assistiveFocusable.focus()}connectedCallback(){var e;this.ariaLabel=null!==(e=this.el.getAttribute("aria-label"))&&void 0!==e?e:"Select a value"}get activeItem(){let{value:e}=this,t=Array.from(this.el.querySelectorAll("ion-picker-column-option"));return t.find(t=>(!!this.disabled||!t.disabled)&&t.value===e)}render(){let{color:e,disabled:t,isActive:n,numericInput:i}=this,r=(0,p.b)(this);return(0,eN.h)(eN.AA,{key:"d60736ce74c0e8c774a163272b78fbad32993ec2",class:eP(e,{[r]:!0,"picker-column-active":n,"picker-column-numeric-input":i,"picker-column-disabled":t})},this.renderAssistiveFocusable(),(0,eN.h)("slot",{key:"74611112ef154b343ae29a773f8cd8a01cc1447d",name:"prefix"}),(0,eN.h)("div",{key:"af772d2b61b7eb41a567593d290b80a50b7caa72","aria-hidden":"true",class:"picker-opts",ref:e=>{this.scrollEl=e},tabIndex:-1},(0,eN.h)("div",{key:"4b646ee97bcf8ed541b9798c91dff189eec41dd1",class:"picker-item-empty","aria-hidden":"true"},"\xa0"),(0,eN.h)("div",{key:"a44d1a10d20a13aeb47f9871b09e291aa7f216bd",class:"picker-item-empty","aria-hidden":"true"},"\xa0"),(0,eN.h)("div",{key:"6a481715bd68fa68dc2a76c2e867ce771ea680b0",class:"picker-item-empty","aria-hidden":"true"},"\xa0"),(0,eN.h)("slot",{key:"23236e731b1ad432c104761ebeec91697a6b7643"}),(0,eN.h)("div",{key:"58a6c1f35a3ff0b26acaceebfd477d74b6dcfd6d",class:"picker-item-empty","aria-hidden":"true"},"\xa0"),(0,eN.h)("div",{key:"ea864872dec6dc363406d1bd9101b1bf21944db6",class:"picker-item-empty","aria-hidden":"true"},"\xa0"),(0,eN.h)("div",{key:"28cc4c570d0dd59f491eef2b15a5ed706d28b7bb",class:"picker-item-empty","aria-hidden":"true"},"\xa0")),(0,eN.h)("slot",{key:"cff1cc0bea732a5ce22bb451c5ea404a84af1993",name:"suffix"}))}get el(){return this}static get watchers(){return{"aria-label":["ariaLabelChanged"],value:["valueChange"]}}static get style(){return":host{display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;max-width:100%;height:200px;font-size:22px;text-align:center}.assistive-focusable{left:0;right:0;top:0;bottom:0;position:absolute;z-index:1;pointer-events:none}.assistive-focusable:focus{outline:none}.picker-opts{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:0px;padding-bottom:0px;min-width:26px;max-height:200px;outline:none;text-align:inherit;-webkit-scroll-snap-type:y mandatory;-ms-scroll-snap-type:y mandatory;scroll-snap-type:y mandatory;overflow-x:hidden;overflow-y:scroll;scrollbar-width:none}.picker-item-empty{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:block;width:100%;height:34px;border:0px;outline:none;background:transparent;color:inherit;font-family:var(--ion-font-family, inherit);font-size:inherit;line-height:34px;text-align:inherit;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.picker-opts::-webkit-scrollbar{display:none}::slotted(ion-picker-column-option){display:block;scroll-snap-align:center}.picker-item-empty,:host(:not([disabled])) ::slotted(ion-picker-column-option.option-disabled){scroll-snap-align:none}::slotted([slot=prefix]),::slotted([slot=suffix]){max-width:200px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}::slotted([slot=prefix]){-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:0;padding-bottom:0;-ms-flex-pack:end;justify-content:end}::slotted([slot=suffix]){-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:0;padding-bottom:0;-ms-flex-pack:start;justify-content:start}:host(.picker-column-disabled) .picker-opts{overflow-y:hidden}:host(.picker-column-disabled) ::slotted(ion-picker-column-option){cursor:default;opacity:0.4;pointer-events:none}@media (any-hover: hover){:host(:focus) .picker-opts{outline:none;background:rgba(var(--ion-color-base-rgb), 0.2)}}"}},[1,"ion-picker-column",{disabled:[4],value:[1032],color:[513],numericInput:[4,"numeric-input"],ariaLabel:[32],isActive:[32],scrollActiveItemIntoView:[64],setValue:[64],setFocus:[64]},void 0,{"aria-label":["ariaLabelChanged"],value:["valueChange"]}]),it="option-active";function ii(){"undefined"!=typeof customElements&&["ion-picker-column"].forEach(e=>{"ion-picker-column"===e&&(customElements.get(e)||customElements.define(e,ie))})}let ir=(0,eN.GH)(class extends eN.mv{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.pickerColumn=null,this.ariaLabel=null,this.disabled=!1,this.value=void 0,this.color="primary"}onAriaLabelChange(e){this.ariaLabel=e}componentWillLoad(){let e=(0,f.d)(this.el,["aria-label"]);this.ariaLabel=e["aria-label"]||null}connectedCallback(){this.pickerColumn=this.el.closest("ion-picker-column")}disconnectedCallback(){this.pickerColumn=null}componentDidLoad(){let{pickerColumn:e}=this;null!==e&&e.scrollActiveItemIntoView()}onClick(){let{pickerColumn:e}=this;null!==e&&e.setValue(this.value)}render(){let{color:e,disabled:t,ariaLabel:n}=this,i=(0,p.b)(this);return(0,eN.h)(eN.AA,{key:"cc4435a0ce0e55be1321bcabaf342ed68cf5ba1e",class:eP(e,{[i]:!0,"option-disabled":t})},(0,eN.h)("button",{key:"0187fb967771e0787807a8538dce4e59f6a98565",tabindex:"-1","aria-label":n,disabled:t,onClick:()=>this.onClick()},(0,eN.h)("slot",{key:"dbe52552f3f27332816748c12d929cc81060841d"})))}get el(){return this}static get watchers(){return{"aria-label":["onAriaLabelChange"]}}static get style(){return{ios:"button{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;width:100%;height:34px;border:0px;outline:none;background:transparent;color:inherit;font-family:var(--ion-font-family, inherit);font-size:inherit;line-height:34px;text-align:inherit;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;overflow:hidden}:host(.option-disabled){opacity:0.4}:host(.option-disabled) button{cursor:default}",md:"button{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;width:100%;height:34px;border:0px;outline:none;background:transparent;color:inherit;font-family:var(--ion-font-family, inherit);font-size:inherit;line-height:34px;text-align:inherit;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;overflow:hidden}:host(.option-disabled){opacity:0.4}:host(.option-disabled) button{cursor:default}:host(.option-active){color:var(--ion-color-base)}"}}},[33,"ion-picker-column-option",{disabled:[4],value:[8],color:[513],ariaLabel:[32]},void 0,{"aria-label":["onAriaLabelChange"]}]);function io(){"undefined"!=typeof customElements&&["ion-picker-column-option"].forEach(e=>{"ion-picker-column-option"===e&&(customElements.get(e)||customElements.define(e,ir))})}/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */let ia=()=>{let e;let t=async()=>{let t;let n=e;return e=new Promise(e=>t=e),void 0!==n&&await n,t};return{lock:t}},is=e=>{if(!e)return{arrowWidth:0,arrowHeight:0};let{width:t,height:n}=e.getBoundingClientRect();return{arrowWidth:t,arrowHeight:n}},il=(e,t,n)=>{let i=t.getBoundingClientRect(),r=i.height,o=i.width;if("cover"===e&&n){let e=n.getBoundingClientRect();o=e.width}return{contentWidth:o,contentHeight:r}},ic=(e,t,n,i)=>{let r=[],o=(0,f.g)(i),a=o.querySelector(".popover-content");return(r="hover"===t?[{eventName:"mouseenter",callback:t=>{let i=document.elementFromPoint(t.clientX,t.clientY);i!==e&&n.dismiss(void 0,void 0,!1)}}]:[{eventName:"click",callback:t=>{let i=t.target,r=i.closest("[data-ion-popover-trigger]");if(r===e){t.stopPropagation();return}n.dismiss(void 0,void 0,!1)}}]).forEach(({eventName:e,callback:t})=>a.addEventListener(e,t)),()=>{r.forEach(({eventName:e,callback:t})=>a.removeEventListener(e,t))}},id=(e,t,n)=>{let i=[];switch(t){case"hover":let r;i=[{eventName:"mouseenter",callback:async e=>{e.stopPropagation(),r&&clearTimeout(r),r=setTimeout(()=>{(0,f.r)(()=>{n.presentFromTrigger(e),r=void 0})},100)}},{eventName:"mouseleave",callback:e=>{r&&clearTimeout(r);let t=e.relatedTarget;t&&t.closest("ion-popover")!==n&&n.dismiss(void 0,void 0,!1)}},{eventName:"click",callback:e=>e.stopPropagation()},{eventName:"ionPopoverActivateTrigger",callback:e=>n.presentFromTrigger(e,!0)}];break;case"context-menu":i=[{eventName:"contextmenu",callback:e=>{e.preventDefault(),n.presentFromTrigger(e)}},{eventName:"click",callback:e=>e.stopPropagation()},{eventName:"ionPopoverActivateTrigger",callback:e=>n.presentFromTrigger(e,!0)}];break;default:i=[{eventName:"click",callback:e=>n.presentFromTrigger(e)},{eventName:"ionPopoverActivateTrigger",callback:e=>n.presentFromTrigger(e,!0)}]}return i.forEach(({eventName:t,callback:n})=>e.addEventListener(t,n)),e.setAttribute("data-ion-popover-trigger","true"),()=>{i.forEach(({eventName:t,callback:n})=>e.removeEventListener(t,n)),e.removeAttribute("data-ion-popover-trigger")}},iu=(e,t)=>t&&"ION-ITEM"===t.tagName?e.findIndex(e=>e===t):-1,ih=(e,t)=>{let n=iu(e,t);return e[n+1]},ip=(e,t)=>{let n=iu(e,t);return e[n-1]},im=e=>{let t=(0,f.g)(e),n=t.querySelector("button");n&&(0,f.r)(()=>n.focus())},ig=e=>e.hasAttribute("data-ion-popover-trigger"),ib=e=>{let t=async t=>{var n;let i=document.activeElement,r=[],o=null===(n=t.target)||void 0===n?void 0:n.tagName;if("ION-POPOVER"===o||"ION-ITEM"===o){try{r=Array.from(e.querySelectorAll("ion-item:not(ion-popover ion-popover *):not([disabled])"))}catch(e){}switch(t.key){case"ArrowLeft":let n=await e.getParentPopover();n&&e.dismiss(void 0,void 0,!1);break;case"ArrowDown":t.preventDefault();let o=ih(r,i);void 0!==o&&im(o);break;case"ArrowUp":t.preventDefault();let a=ip(r,i);void 0!==a&&im(a);break;case"Home":t.preventDefault();let s=r[0];void 0!==s&&im(s);break;case"End":t.preventDefault();let l=r[r.length-1];void 0!==l&&im(l);break;case"ArrowRight":case" ":case"Enter":if(i&&ig(i)){let e=new CustomEvent("ionPopoverActivateTrigger");i.dispatchEvent(e)}}}};return e.addEventListener("keydown",t),()=>e.removeEventListener("keydown",t)},iv=(e,t,n,i,r,o,a,s,l,c,d)=>{var u;let h={top:0,left:0,width:0,height:0};if("event"===o){if(!d)return l;h={top:d.clientY,left:d.clientX,width:1,height:1}}else{let e=c||(null===(u=null==d?void 0:d.detail)||void 0===u?void 0:u.ionShadowTarget)||(null==d?void 0:d.target);if(!e)return l;let t=e.getBoundingClientRect();h={top:t.top,left:t.left,width:t.width,height:t.height}}let p=i_(a,h,t,n,i,r,e),f=iE(s,a,h,t,n),m=p.top+f.top,g=p.left+f.left,{arrowTop:b,arrowLeft:v}=ik(a,i,r,m,g,t,n,e),{originX:y,originY:x}=iy(a,s,e);return{top:m,left:g,referenceCoordinates:h,arrowTop:b,arrowLeft:v,originX:y,originY:x}},iy=(e,t,n)=>{switch(e){case"top":return{originX:ix(t),originY:"bottom"};case"bottom":return{originX:ix(t),originY:"top"};case"left":return{originX:"right",originY:iw(t)};case"right":return{originX:"left",originY:iw(t)};case"start":return{originX:n?"left":"right",originY:iw(t)};case"end":return{originX:n?"right":"left",originY:iw(t)}}},ix=e=>{switch(e){case"start":return"left";case"center":return"center";case"end":return"right"}},iw=e=>{switch(e){case"start":return"top";case"center":return"center";case"end":return"bottom"}},ik=(e,t,n,i,r,o,a,s)=>{let l={arrowTop:i+a/2-t/2,arrowLeft:r+o-t/2},c={arrowTop:i+a/2-t/2,arrowLeft:r-1.5*t};switch(e){case"top":return{arrowTop:i+a,arrowLeft:r+o/2-t/2};case"bottom":return{arrowTop:i-n,arrowLeft:r+o/2-t/2};case"left":return l;case"right":return c;case"start":return s?c:l;case"end":return s?l:c;default:return{arrowTop:0,arrowLeft:0}}},i_=(e,t,n,i,r,o,a)=>{let s={top:t.top,left:t.left-n-r},l={top:t.top,left:t.left+t.width+r};switch(e){case"top":return{top:t.top-i-o,left:t.left};case"right":return l;case"bottom":return{top:t.top+t.height+o,left:t.left};case"left":return s;case"start":return a?l:s;case"end":return a?s:l}},iE=(e,t,n,i,r)=>{switch(e){case"center":return iC(t,n,i,r);case"end":return iS(t,n,i,r);default:return{top:0,left:0}}},iS=(e,t,n,i)=>{switch(e){case"start":case"end":case"left":case"right":return{top:-(i-t.height),left:0};default:return{top:0,left:-(n-t.width)}}},iC=(e,t,n,i)=>{switch(e){case"start":case"end":case"left":case"right":return{top:-(i/2-t.height/2),left:0};default:return{top:0,left:-(n/2-t.width/2)}}},iP=(e,t,n,i,r,o,a,s,l,c,d,u,h=0,p=0,f=0)=>{let m,g=h,b=n,v=t,y=c,x=d,w=!1,k=!1,_=u?u.top+u.height:o/2-s/2,E=u?u.height:0,S=!1;return b<i+l?(b=i,w=!0,y="left"):a+i+b+l>r&&(k=!0,b=r-a-i,y="right"),_+E+s>o&&("top"===e||"bottom"===e)&&(_-s>0?(g=(v=Math.max(12,_-s-E-(f-1)))+s,x="bottom",S=!0):m=i),{top:v,left:b,bottom:m,originX:y,originY:x,checkSafeAreaLeft:w,checkSafeAreaRight:k,arrowTop:g,arrowLeft:p,addPopoverBottomClass:S}},iT=(e,t=!1,n,i)=>(!!n||!!i)&&("top"===e||"bottom"===e||!t),iO=(e,t)=>{var n;let{event:i,size:r,trigger:o,reference:a,side:s,align:l}=t,c=e.ownerDocument,d="rtl"===c.dir,u=c.defaultView.innerWidth,h=c.defaultView.innerHeight,p=(0,f.g)(e),g=p.querySelector(".popover-content"),b=p.querySelector(".popover-arrow"),v=o||(null===(n=null==i?void 0:i.detail)||void 0===n?void 0:n.ionShadowTarget)||(null==i?void 0:i.target),{contentWidth:y,contentHeight:x}=il(r,g,v),{arrowWidth:w,arrowHeight:k}=is(b),_=iv(d,y,x,w,k,a,s,l,{top:h/2-x/2,left:u/2-y/2,originX:d?"right":"left",originY:"top"},o,i),{originX:E,originY:S,top:C,left:P,bottom:T,checkSafeAreaLeft:O,checkSafeAreaRight:A,arrowTop:I,arrowLeft:R,addPopoverBottomClass:$}=iP(s,_.top,_.left,"cover"===r?0:5,u,h,y,x,"cover"===r?0:25,_.originX,_.originY,_.referenceCoordinates,_.arrowTop,_.arrowLeft,k),L=(0,m.c)(),M=(0,m.c)(),j=(0,m.c)();return M.addElement(p.querySelector("ion-backdrop")).fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),j.addElement(p.querySelector(".popover-arrow")).addElement(p.querySelector(".popover-content")).fromTo("opacity",.01,1),L.easing("ease").duration(100).beforeAddWrite(()=>{"cover"===r&&e.style.setProperty("--width",`${y}px`),$&&e.classList.add("popover-bottom"),void 0!==T&&g.style.setProperty("bottom",`${T}px`);let t=`${P}px`;if(O&&(t=`${P}px + var(--ion-safe-area-left, 0)`),A&&(t=`${P}px - var(--ion-safe-area-right, 0)`),g.style.setProperty("top",`calc(${C}px + var(--offset-y, 0))`),g.style.setProperty("left",`calc(${t} + var(--offset-x, 0))`),g.style.setProperty("transform-origin",`${S} ${E}`),null!==b){let e=_.top!==C||_.left!==P,t=iT(s,e,i,o);t?(b.style.setProperty("top",`calc(${I}px + var(--offset-y, 0))`),b.style.setProperty("left",`calc(${R}px + var(--offset-x, 0))`)):b.style.setProperty("display","none")}}).addAnimation([M,j])},iA=e=>{let t=(0,f.g)(e),n=t.querySelector(".popover-content"),i=t.querySelector(".popover-arrow"),r=(0,m.c)(),o=(0,m.c)(),a=(0,m.c)();return o.addElement(t.querySelector("ion-backdrop")).fromTo("opacity","var(--backdrop-opacity)",0),a.addElement(t.querySelector(".popover-arrow")).addElement(t.querySelector(".popover-content")).fromTo("opacity",.99,0),r.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([o,a])},iI=(e,t)=>{var n;let{event:i,size:r,trigger:o,reference:a,side:s,align:l}=t,c=e.ownerDocument,d="rtl"===c.dir,u=c.defaultView.innerWidth,h=c.defaultView.innerHeight,p=(0,f.g)(e),g=p.querySelector(".popover-content"),b=o||(null===(n=null==i?void 0:i.detail)||void 0===n?void 0:n.ionShadowTarget)||(null==i?void 0:i.target),{contentWidth:v,contentHeight:y}=il(r,g,b),x=iv(d,v,y,0,0,a,s,l,{top:h/2-y/2,left:u/2-v/2,originX:d?"right":"left",originY:"top"},o,i),{originX:w,originY:k,top:_,left:E,bottom:S}=iP(s,x.top,x.left,"cover"===r?0:12,u,h,v,y,0,x.originX,x.originY,x.referenceCoordinates),C=(0,m.c)(),P=(0,m.c)(),T=(0,m.c)(),O=(0,m.c)(),A=(0,m.c)();return P.addElement(p.querySelector("ion-backdrop")).fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),T.addElement(p.querySelector(".popover-wrapper")).duration(150).fromTo("opacity",.01,1),O.addElement(g).beforeStyles({top:`calc(${_}px + var(--offset-y, 0px))`,left:`calc(${E}px + var(--offset-x, 0px))`,"transform-origin":`${k} ${w}`}).beforeAddWrite(()=>{void 0!==S&&g.style.setProperty("bottom",`${S}px`)}).fromTo("transform","scale(0.8)","scale(1)"),A.addElement(p.querySelector(".popover-viewport")).fromTo("opacity",.01,1),C.easing("cubic-bezier(0.36,0.66,0.04,1)").duration(300).beforeAddWrite(()=>{"cover"===r&&e.style.setProperty("--width",`${v}px`),"bottom"===k&&e.classList.add("popover-bottom")}).addAnimation([P,T,O,A])},iR=e=>{let t=(0,f.g)(e),n=t.querySelector(".popover-content"),i=(0,m.c)(),r=(0,m.c)(),o=(0,m.c)();return r.addElement(t.querySelector("ion-backdrop")).fromTo("opacity","var(--backdrop-opacity)",0),o.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([r,o])},i$=(0,eN.GH)(class extends eN.mv{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.didPresent=(0,eN.yM)(this,"ionPopoverDidPresent",7),this.willPresent=(0,eN.yM)(this,"ionPopoverWillPresent",7),this.willDismiss=(0,eN.yM)(this,"ionPopoverWillDismiss",7),this.didDismiss=(0,eN.yM)(this,"ionPopoverDidDismiss",7),this.didPresentShorthand=(0,eN.yM)(this,"didPresent",7),this.willPresentShorthand=(0,eN.yM)(this,"willPresent",7),this.willDismissShorthand=(0,eN.yM)(this,"willDismiss",7),this.didDismissShorthand=(0,eN.yM)(this,"didDismiss",7),this.ionMount=(0,eN.yM)(this,"ionMount",7),this.parentPopover=null,this.coreDelegate=x(),this.lockController=ia(),this.inline=!1,this.focusDescendantOnPresent=!1,this.onBackdropTap=()=>{this.dismiss(void 0,ea)},this.onLifecycle=e=>{let t=this.usersElement,n=iL[e.type];if(t&&n){let i=new CustomEvent(n,{bubbles:!1,cancelable:!1,detail:e.detail});t.dispatchEvent(i)}},this.configureTriggerInteraction=()=>{let{trigger:e,triggerAction:t,el:n,destroyTriggerInteraction:i}=this;if(i&&i(),void 0===e)return;let r=this.triggerEl=void 0!==e?document.getElementById(e):null;if(!r){(0,k.p)(`A trigger element with the ID "${e}" 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=id(r,t,n)},this.configureKeyboardInteraction=()=>{let{destroyKeyboardInteraction:e,el:t}=this;e&&e(),this.destroyKeyboardInteraction=ib(t)},this.configureDismissInteraction=()=>{let{destroyDismissInteraction:e,parentPopover:t,triggerAction:n,triggerEl:i,el:r}=this;t&&i&&(e&&e(),this.destroyDismissInteraction=ic(i,n,r,t))},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.focusTrap=!0,this.keepContentsMounted=!1}onTriggerChange(){this.configureTriggerInteraction()}onIsOpenChange(e,t){!0===e&&!1===t?this.present():!1===e&&!0===t&&this.dismiss()}connectedCallback(){let{configureTriggerInteraction:e,el:t}=this;N(t),e()}disconnectedCallback(){let{destroyTriggerInteraction:e}=this;e&&e()}componentWillLoad(){var e,t;let{el:n}=this,i=null!==(t=null===(e=this.htmlAttributes)||void 0===e?void 0:e.id)&&void 0!==t?t:F(n);this.parentPopover=n.closest(`ion-popover:not(#${i})`),void 0===this.alignment&&(this.alignment="ios"===(0,p.b)(this)?"center":"start")}componentDidLoad(){let{parentPopover:e,isOpen:t}=this;!0===t&&(0,f.r)(()=>this.present()),e&&(0,f.a)(e,"ionPopoverWillDismiss",()=>{this.dismiss(void 0,void 0,!1)}),this.configureTriggerInteraction()}async presentFromTrigger(e,t=!1){this.focusDescendantOnPresent=t,await this.present(e),this.focusDescendantOnPresent=!1}getDelegate(e=!1){if(this.workingDelegate&&!e)return{delegate:this.workingDelegate,inline:this.inline};let t=this.el.parentNode,n=this.inline=null!==t&&!this.hasController,i=this.workingDelegate=n?this.delegate||this.coreDelegate:this.delegate;return{inline:n,delegate:i}}async present(e){let t=await this.lockController.lock();if(this.presented){t();return}let{el:n}=this,{inline:i,delegate:r}=this.getDelegate(!0);this.ionMount.emit(),this.usersElement=await v(r,n,this.component,["popover-viewport"],this.componentProps,i),this.keyboardEvents||this.configureKeyboardInteraction(),this.configureDismissInteraction(),(0,f.j)(n)?await (0,e$.e)(this.usersElement):this.keepContentsMounted||await (0,e$.w)(),await K(this,"popoverEnter",iO,iI,{event:e||this.event,size:this.size,trigger:this.triggerEl,reference:this.reference,side:this.side,align:this.alignment}),this.focusDescendantOnPresent&&E(n),t()}async dismiss(e,t,n=!0){let i=await this.lockController.lock(),{destroyKeyboardInteraction:r,destroyDismissInteraction:o}=this;n&&this.parentPopover&&this.parentPopover.dismiss(e,t,n);let a=await Z(this,e,t,"popoverLeave",iA,iR,this.event);if(a){r&&(r(),this.destroyKeyboardInteraction=void 0),o&&(o(),this.destroyDismissInteraction=void 0);let{delegate:e}=this.getDelegate();await y(e,this.usersElement)}return i(),a}async getParentPopover(){return this.parentPopover}onDidDismiss(){return et(this.el,"ionPopoverDidDismiss")}onWillDismiss(){return et(this.el,"ionPopoverWillDismiss")}render(){let e=(0,p.b)(this),{onLifecycle:t,parentPopover:n,dismissOnSelect:i,side:r,arrow:o,htmlAttributes:a,focusTrap:s}=this,l=(0,p.a)("desktop");return(0,eN.h)(eN.AA,Object.assign({key:"3a7c4c39384bab1447c4bd6b9b06d7837a09353b","aria-modal":"true","no-router":!0,tabindex:"-1"},a,{style:{zIndex:`${2e4+this.overlayIndex}`},class:Object.assign(Object.assign({},eO(this.cssClass)),{[e]:!0,"popover-translucent":this.translucent,"overlay-hidden":!0,"popover-desktop":l,[`popover-side-${r}`]:!0,[eh]:!1===s,"popover-nested":!!n}),onIonPopoverDidPresent:t,onIonPopoverWillPresent:t,onIonPopoverWillDismiss:t,onIonPopoverDidDismiss:t,onIonBackdropTap:this.onBackdropTap}),!n&&(0,eN.h)("ion-backdrop",{key:"38a1c4ad29238d1e81cab407f099121fa4947cce",tappable:this.backdropDismiss,visible:this.showBackdrop,part:"backdrop"}),(0,eN.h)("div",{key:"f825494c5e3be89d7fcf0229e29b405bccb13edb",class:"popover-wrapper ion-overlay-wrapper",onClick:i?()=>this.dismiss():void 0},o&&!n&&(0,eN.h)("div",{key:"3acae5a0106389c776c8ffe5bf10f3ff006e0346",class:"popover-arrow",part:"arrow"}),(0,eN.h)("div",{key:"2aa73e9f06b1d2ac4c0d36c23186b9164f395079",class:"popover-content",part:"content"},(0,eN.h)("slot",{key:"62f5713414aae47dde6a8aef1f9b69af287534ae"}))))}get el(){return this}static get watchers(){return{trigger:["onTriggerChange"],triggerAction:["onTriggerChange"],isOpen:["onIsOpenChange"]}}static get style(){return{ios:':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}::slotted(.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}: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, var(--ion-background-color-step-100, #e6e6e6))}.popover-arrow{display:block;position:absolute;width:20px;height:10px;overflow:hidden;z-index:11}.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}.popover-arrow::after{inset-inline-start: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)}}',md:":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}::slotted(.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}: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}"}}},[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"],focusTrap:[4,"focus-trap"],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"]}]),iL={ionPopoverDidPresent:"ionViewDidEnter",ionPopoverWillPresent:"ionViewWillEnter",ionPopoverWillDismiss:"ionViewWillLeave",ionPopoverDidDismiss:"ionViewDidLeave"};function iM(){"undefined"!=typeof customElements&&["ion-popover","ion-backdrop"].forEach(e=>{switch(e){case"ion-popover":customElements.get(e)||customElements.define(e,i$);break;case"ion-backdrop":customElements.get(e)||tc()}})}/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */let ij=(e,t,n)=>!!t&&t.year>e||!!n&&n.year<e,iD=(e,t,n,i)=>!!(null===e.day||void 0!==i&&!i.includes(e.day)||t&&tz(e,t)||n&&tB(e,n)),iN=(e,t,n,i,r,o,a)=>{let s=Array.isArray(n)?n:[n],l=void 0!==s.find(e=>tF(t,e)),c=tF(t,i),d=iD(t,r,o,a);return{disabled:d,isActive:l,isToday:c,ariaSelected:l?"true":null,ariaLabel:nw(e,c,t),text:null!=t.day?n_(e,t):null}},iF=(e,{minParts:t,maxParts:n})=>!!(ij(e.year,t,n)||t&&tz(e,t)||n&&tB(e,n)),iz=(e,t,n)=>{let i=Object.assign(Object.assign({},na(e)),{day:null});return iF(i,{minParts:t,maxParts:n})},iB=(e,t)=>{let n=Object.assign(Object.assign({},ns(e)),{day:null});return iF(n,{maxParts:t})},iH=(e,t,n)=>{if(Array.isArray(e)){let n=t.split("T")[0],i=e.find(e=>e.date===n);if(i)return{textColor:i.textColor,backgroundColor:i.backgroundColor}}else try{return e(t)}catch(e){(0,k.a)("Exception thrown from provided `highlightedDates` callback. Please check your function and try again.",n,e)}},iU=(e,t)=>{var n,i,r,o;((null===(n=null==t?void 0:t.date)||void 0===n?void 0:n.timeZone)||(null===(i=null==t?void 0:t.date)||void 0===i?void 0:i.timeZoneName)||(null===(r=null==t?void 0:t.time)||void 0===r?void 0:r.timeZone)||(null===(o=null==t?void 0:t.time)||void 0===o?void 0:o.timeZoneName))&&(0,k.p)('Datetime: "timeZone" and "timeZoneName" are not supported in "formatOptions".',e)},iV=(e,t,n)=>{if(n)switch(t){case"date":case"month-year":case"month":case"year":void 0===n.date&&(0,k.p)(`Datetime: The '${t}' presentation requires a date object in formatOptions.`,e);break;case"time":void 0===n.time&&(0,k.p)("Datetime: The 'time' presentation requires a time object in formatOptions.",e);break;case"date-time":case"time-date":void 0===n.date&&void 0===n.time&&(0,k.p)(`Datetime: The '${t}' presentation requires either a date or time object (or both) in formatOptions.`,e)}},iW=(0,eN.GH)(class extends eN.mv{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionCancel=(0,eN.yM)(this,"ionCancel",7),this.ionChange=(0,eN.yM)(this,"ionChange",7),this.ionValueChange=(0,eN.yM)(this,"ionValueChange",7),this.ionFocus=(0,eN.yM)(this,"ionFocus",7),this.ionBlur=(0,eN.yM)(this,"ionBlur",7),this.ionStyle=(0,eN.yM)(this,"ionStyle",7),this.ionRender=(0,eN.yM)(this,"ionRender",7),this.inputId=`ion-dt-${iq++}`,this.prevPresentation=null,this.warnIfIncorrectValueUsage=()=>{let{multiple:e,value:t}=this;!e&&Array.isArray(t)&&(0,k.p)(`ion-datetime was passed an array of values, but multiple="false". This is incorrect usage and may result in unexpected behaviors. To dismiss this warning, pass a string to the "value" property when multiple="false".

  Value Passed: [${t.map(e=>`'${e}'`).join(", ")}]
`,this.el)},this.setValue=e=>{this.value=e,this.ionChange.emit({value:e})},this.getActivePartsWithFallback=()=>{var e;let{defaultParts:t}=this;return null!==(e=this.getActivePart())&&void 0!==e?e:t},this.getActivePart=()=>{let{activeParts:e}=this;return Array.isArray(e)?e[0]:e},this.closeParentOverlay=e=>{let t=this.el.closest("ion-modal, ion-popover");t&&t.dismiss(void 0,e)},this.setWorkingParts=e=>{this.workingParts=Object.assign({},e)},this.setActiveParts=(e,t=!1)=>{if(this.readonly)return;let{multiple:n,minParts:i,maxParts:r,activeParts:o}=this,a=np(e,i,r);if(this.setWorkingParts(a),n){let e=Array.isArray(o)?o:[o];t?this.activeParts=e.filter(e=>!tF(e,a)):this.activeParts=[...e,a]}else this.activeParts=Object.assign({},a);let s=null!==this.el.querySelector('[slot="buttons"]');s||this.showDefaultButtons||this.confirm()},this.initializeKeyboardListeners=()=>{let e=this.calendarBodyRef;if(!e)return;let t=this.el.shadowRoot,n=e.querySelector(".calendar-month:nth-of-type(2)"),i=new MutationObserver(t=>{var i;let r=t[0];(null===(i=r.oldValue)||void 0===i||!i.includes("ion-focused"))&&e.classList.contains("ion-focused")&&this.focusWorkingDay(n)});i.observe(e,{attributeFilter:["class"],attributeOldValue:!0}),this.destroyKeyboardMO=()=>{null==i||i.disconnect()},e.addEventListener("keydown",e=>{let i;let r=t.activeElement;if(!r||!r.classList.contains("calendar-day"))return;let o=tZ(r);switch(e.key){case"ArrowDown":e.preventDefault(),i=ni(o);break;case"ArrowUp":e.preventDefault(),i=nn(o);break;case"ArrowRight":e.preventDefault(),i=ne(o);break;case"ArrowLeft":e.preventDefault(),i=nt(o);break;case"Home":e.preventDefault(),i=t9(o);break;case"End":e.preventDefault(),i=t7(o);break;case"PageUp":e.preventDefault(),i=e.shiftKey?nc(o):na(o);break;case"PageDown":e.preventDefault(),i=e.shiftKey?nd(o):ns(o);break;default:return}iD(i,this.minParts,this.maxParts)||(this.setWorkingParts(Object.assign(Object.assign({},this.workingParts),i)),requestAnimationFrame(()=>this.focusWorkingDay(n)))})},this.focusWorkingDay=e=>{let t=e.querySelectorAll(".calendar-day-padding"),{day:n}=this.workingParts;if(null===n)return;let i=e.querySelector(`.calendar-day-wrapper:nth-of-type(${t.length+n}) .calendar-day`);i&&i.focus()},this.processMinParts=()=>{let{min:e,defaultParts:t}=this;if(void 0===e){this.minParts=void 0;return}this.minParts=t5(e,t)},this.processMaxParts=()=>{let{max:e,defaultParts:t}=this;if(void 0===e){this.maxParts=void 0;return}this.maxParts=t2(e,t)},this.initializeCalendarListener=()=>{let e=this.calendarBodyRef;if(!e)return;let t=e.querySelectorAll(".calendar-month"),n=t[0],i=t[1],r=t[2],o=(0,p.b)(this),a="ios"===o&&"undefined"!=typeof navigator&&navigator.maxTouchPoints>1;(0,eN.Iu)(()=>{let t;e.scrollLeft=n.clientWidth*((0,t$.i)(this.el)?-1:1);let o=t=>{let i=e.getBoundingClientRect(),o=(0,t$.i)(this.el)?e.scrollLeft>=-2:e.scrollLeft<=2,a=o?n:r,s=a.getBoundingClientRect();if(Math.abs(s.x-i.x)>2)return;let{forceRenderDate:l}=this;return void 0!==l?{month:l.month,year:l.year,day:l.day}:a===n?na(t):a===r?ns(t):void 0},s=()=>{a&&(e.style.removeProperty("pointer-events"),l=!1);let t=o(this.workingParts);if(!t)return;let{month:n,day:r,year:s}=t;iF({month:n,year:s,day:null},{minParts:Object.assign(Object.assign({},this.minParts),{day:null}),maxParts:Object.assign(Object.assign({},this.maxParts),{day:null})})||(e.style.setProperty("overflow","hidden"),(0,eN.Iu)(()=>{this.setWorkingParts(Object.assign(Object.assign({},this.workingParts),{month:n,day:r,year:s})),e.scrollLeft=i.clientWidth*((0,t$.i)(this.el)?-1:1),e.style.removeProperty("overflow"),this.resolveForceDateScrolling&&this.resolveForceDateScrolling()}))},l=!1,c=()=>{t&&clearTimeout(t),!l&&a&&(e.style.setProperty("pointer-events","none"),l=!0),t=setTimeout(s,50)};e.addEventListener("scroll",c),this.destroyCalendarListener=()=>{e.removeEventListener("scroll",c)}})},this.destroyInteractionListeners=()=>{let{destroyCalendarListener:e,destroyKeyboardMO:t}=this;void 0!==e&&e(),void 0!==t&&t()},this.processValue=e=>{let t=null!=e&&(!Array.isArray(e)||e.length>0),n=t?tQ(e):this.defaultParts,{minParts:i,maxParts:r,workingParts:o,el:a}=this;if(this.warnIfIncorrectValueUsage(),!n)return;t&&tH(n,i,r);let s=Array.isArray(n)?n[0]:n,l=t0(s,i,r),{month:c,day:d,year:u,hour:h,minute:p}=l,f=t1(h);t?Array.isArray(n)?this.activeParts=[...n]:this.activeParts={month:c,day:d,year:u,hour:h,minute:p,ampm:f}:this.activeParts=[];let m=void 0!==c&&c!==o.month||void 0!==u&&u!==o.year,g=a.classList.contains("datetime-ready"),{isGridStyle:b,showMonthAndYear:v}=this,y=!0;if(Array.isArray(n)){let e=n[0].month;for(let t of n)if(t.month!==e){y=!1;break}}y&&(b&&m&&g&&!v?this.animateToDate(l):this.setWorkingParts({month:c,day:d,year:u,hour:h,minute:p,ampm:f}))},this.animateToDate=async e=>{let{workingParts:t}=this;this.forceRenderDate=e;let n=new Promise(e=>{this.resolveForceDateScrolling=e}),i=tz(e,t);i?this.prevMonth():this.nextMonth(),await n,this.resolveForceDateScrolling=void 0,this.forceRenderDate=void 0},this.onFocus=()=>{this.ionFocus.emit()},this.onBlur=()=>{this.ionBlur.emit()},this.hasValue=()=>null!=this.value,this.nextMonth=()=>{let e=this.calendarBodyRef;if(!e)return;let t=e.querySelector(".calendar-month:last-of-type");if(!t)return;let n=2*t.offsetWidth;e.scrollTo({top:0,left:n*((0,t$.i)(this.el)?-1:1),behavior:"smooth"})},this.prevMonth=()=>{let e=this.calendarBodyRef;if(!e)return;let t=e.querySelector(".calendar-month:first-of-type");t&&e.scrollTo({top:0,left:0,behavior:"smooth"})},this.toggleMonthAndYearView=()=>{this.showMonthAndYear=!this.showMonthAndYear},this.showMonthAndYear=!1,this.activeParts=[],this.workingParts={month:5,day:28,year:2021,hour:13,minute:52,ampm:"pm"},this.isTimePopoverOpen=!1,this.forceRenderDate=void 0,this.color="primary",this.name=this.inputId,this.disabled=!1,this.formatOptions=void 0,this.readonly=!1,this.isDateEnabled=void 0,this.min=void 0,this.max=void 0,this.presentation="date-time",this.cancelText="Cancel",this.doneText="Done",this.clearText="Clear",this.yearValues=void 0,this.monthValues=void 0,this.dayValues=void 0,this.hourValues=void 0,this.minuteValues=void 0,this.locale="default",this.firstDayOfWeek=0,this.titleSelectedDatesFormatter=void 0,this.multiple=!1,this.highlightedDates=void 0,this.value=void 0,this.showDefaultTitle=!1,this.showDefaultButtons=!1,this.showClearButton=!1,this.showDefaultTimeLabel=!0,this.hourCycle=void 0,this.size="fixed",this.preferWheel=!1}formatOptionsChanged(){let{el:e,formatOptions:t,presentation:n}=this;iV(e,n,t),iU(e,t)}disabledChanged(){this.emitStyle()}minChanged(){this.processMinParts()}maxChanged(){this.processMaxParts()}presentationChanged(){let{el:e,formatOptions:t,presentation:n}=this;iV(e,n,t)}get isGridStyle(){let{presentation:e,preferWheel:t}=this;return("date"===e||"date-time"===e||"time-date"===e)&&!t}yearValuesChanged(){this.parsedYearValues=tJ(this.yearValues)}monthValuesChanged(){this.parsedMonthValues=tJ(this.monthValues)}dayValuesChanged(){this.parsedDayValues=tJ(this.dayValues)}hourValuesChanged(){this.parsedHourValues=tJ(this.hourValues)}minuteValuesChanged(){this.parsedMinuteValues=tJ(this.minuteValues)}async valueChanged(){let{value:e}=this;this.hasValue()&&this.processValue(e),this.emitStyle(),this.ionValueChange.emit({value:e})}async confirm(e=!1){let{isCalendarPicker:t,activeParts:n,preferWheel:i,workingParts:r}=this;if(void 0!==n||!t){let e=Array.isArray(n);e&&0===n.length?i?this.setValue(t6(r)):this.setValue(void 0):this.setValue(t6(n))}e&&this.closeParentOverlay(iX)}async reset(e){this.processValue(e)}async cancel(e=!1){this.ionCancel.emit(),e&&this.closeParentOverlay(iG)}get isCalendarPicker(){let{presentation:e}=this;return"date"===e||"date-time"===e||"time-date"===e}connectedCallback(){this.clearFocusVisible=(0,tN.startFocusVisible)(this.el).destroy}disconnectedCallback(){this.clearFocusVisible&&(this.clearFocusVisible(),this.clearFocusVisible=void 0)}initializeListeners(){this.initializeCalendarListener(),this.initializeKeyboardListeners()}componentDidLoad(){let{el:e,intersectionTrackerRef:t}=this,n=new IntersectionObserver(e=>{let t=e[0];t.isIntersecting&&(this.initializeListeners(),(0,eN.Iu)(()=>{this.el.classList.add("datetime-ready")}))},{threshold:.01,root:e});(0,f.r)(()=>null==n?void 0:n.observe(t));let i=new IntersectionObserver(e=>{let t=e[0];t.isIntersecting||(this.destroyInteractionListeners(),this.showMonthAndYear=!1,(0,eN.Iu)(()=>{this.el.classList.remove("datetime-ready")}))},{threshold:0,root:e});(0,f.r)(()=>null==i?void 0:i.observe(t));let r=(0,f.g)(this.el);r.addEventListener("ionFocus",e=>e.stopPropagation()),r.addEventListener("ionBlur",e=>e.stopPropagation())}componentDidRender(){let{presentation:e,prevPresentation:t,calendarBodyRef:n,minParts:i,preferWheel:r,forceRenderDate:o}=this,a=!r&&["date-time","time-date","date"].includes(e);if(void 0!==i&&a&&n){let e=n.querySelector(".calendar-month:nth-of-type(1)");e&&void 0===o&&(n.scrollLeft=e.clientWidth*((0,t$.i)(this.el)?-1:1))}if(null===t){this.prevPresentation=e;return}e!==t&&(this.prevPresentation=e,this.destroyInteractionListeners(),this.initializeListeners(),this.showMonthAndYear=!1,(0,f.r)(()=>{this.ionRender.emit()}))}componentWillLoad(){let{el:e,formatOptions:t,highlightedDates:n,multiple:i,presentation:r,preferWheel:o}=this;i&&("date"!==r&&(0,k.p)('Multiple date selection is only supported for presentation="date".',e),o&&(0,k.p)('Multiple date selection is not supported with preferWheel="true".',e)),void 0!==n&&("date"!==r&&"date-time"!==r&&"time-date"!==r&&(0,k.p)("The highlightedDates property is only supported with the date, date-time, and time-date presentations.",e),o&&(0,k.p)('The highlightedDates property is not supported with preferWheel="true".',e)),t&&(iV(e,r,t),iU(e,t));let a=this.parsedHourValues=tJ(this.hourValues),s=this.parsedMinuteValues=tJ(this.minuteValues),l=this.parsedMonthValues=tJ(this.monthValues),c=this.parsedYearValues=tJ(this.yearValues),d=this.parsedDayValues=tJ(this.dayValues),u=this.todayParts=tQ(nM());this.processMinParts(),this.processMaxParts(),this.defaultParts=nf({refParts:u,monthValues:l,dayValues:d,yearValues:c,hourValues:a,minuteValues:s,minParts:this.minParts,maxParts:this.maxParts}),this.processValue(this.value),this.emitStyle()}emitStyle(){this.ionStyle.emit({interactive:!0,datetime:!0,"interactive-disabled":this.disabled})}renderFooter(){let{disabled:e,readonly:t,showDefaultButtons:n,showClearButton:i}=this,r=e||t,o=null!==this.el.querySelector('[slot="buttons"]');if(!o&&!n&&!i)return;let a=()=>{this.reset(),this.setValue(void 0)};return(0,eN.h)("div",{class:"datetime-footer"},(0,eN.h)("div",{class:"datetime-buttons"},(0,eN.h)("div",{class:{"datetime-action-buttons":!0,"has-clear-button":this.showClearButton}},(0,eN.h)("slot",{name:"buttons"},(0,eN.h)("ion-buttons",null,n&&(0,eN.h)("ion-button",{id:"cancel-button",color:this.color,onClick:()=>this.cancel(!0),disabled:r},this.cancelText),(0,eN.h)("div",{class:"datetime-action-buttons-container"},i&&(0,eN.h)("ion-button",{id:"clear-button",color:this.color,onClick:()=>a(),disabled:r},this.clearText),n&&(0,eN.h)("ion-button",{id:"confirm-button",color:this.color,onClick:()=>this.confirm(!0),disabled:r},this.doneText)))))))}renderWheelPicker(e=this.presentation){let t="time-date"===e?[this.renderTimePickerColumns(e),this.renderDatePickerColumns(e)]:[this.renderDatePickerColumns(e),this.renderTimePickerColumns(e)];return(0,eN.h)("ion-picker",null,t)}renderDatePickerColumns(e){return"date-time"===e||"time-date"===e?this.renderCombinedDatePickerColumn():this.renderIndividualDatePickerColumns(e)}renderCombinedDatePickerColumn(){let{defaultParts:e,disabled:t,workingParts:n,locale:i,minParts:r,maxParts:o,todayParts:a,isDateEnabled:s}=this,l=this.getActivePartsWithFallback(),c=nW(n),d=c[c.length-1];c[0].day=1,d.day=tq(d.month,d.year);let u=void 0!==r&&tB(r,c[0])?r:c[0],h=void 0!==o&&tz(o,d)?o:d,p=nK(i,a,u,h,this.parsedDayValues,this.parsedMonthValues),f=p.items,m=p.parts;s&&(f=f.map((e,t)=>{let n;let i=m[t];try{n=!s(t6(i))}catch(e){(0,k.a)("Exception thrown from provided `isDateEnabled` function. Please check your function and try again.",e)}return Object.assign(Object.assign({},e),{disabled:n})}));let g=null!==n.day?`${n.year}-${n.month}-${n.day}`:`${e.year}-${e.month}-${e.day}`;return(0,eN.h)("ion-picker-column",{"aria-label":"Select a date",class:"date-column",color:this.color,disabled:t,value:g,onIonChange:e=>{let{value:t}=e.detail,i=m.find(({month:e,day:n,year:i})=>t===`${i}-${e}-${n}`);this.setWorkingParts(Object.assign(Object.assign({},n),i)),this.setActiveParts(Object.assign(Object.assign({},l),i)),e.stopPropagation()}},f.map(e=>(0,eN.h)("ion-picker-column-option",{part:e.value===g?`${iY} ${iK}`:iY,key:e.value,disabled:e.disabled,value:e.value},e.text)))}renderIndividualDatePickerColumns(e){let{workingParts:t,isDateEnabled:n}=this,i="year"!==e&&"time"!==e?nq(this.locale,t,this.minParts,this.maxParts,this.parsedMonthValues):[],r="date"===e?nG(this.locale,t,this.minParts,this.maxParts,this.parsedDayValues):[];n&&(r=r.map(e=>{let i;let{value:r}=e,o="string"==typeof r?parseInt(r):r,a={month:t.month,day:o,year:t.year};try{i=!n(t6(a))}catch(e){(0,k.a)("Exception thrown from provided `isDateEnabled` function. Please check your function and try again.",e)}return Object.assign(Object.assign({},e),{disabled:i})}));let o="month"!==e&&"time"!==e?nX(this.locale,this.defaultParts,this.minParts,this.maxParts,this.parsedYearValues):[],a=tG(this.locale,{month:"numeric",day:"numeric"});return a?[this.renderMonthPickerColumn(i),this.renderDayPickerColumn(r),this.renderYearPickerColumn(o)]:[this.renderDayPickerColumn(r),this.renderMonthPickerColumn(i),this.renderYearPickerColumn(o)]}renderDayPickerColumn(e){var t;if(0===e.length)return[];let{disabled:n,workingParts:i}=this,r=this.getActivePartsWithFallback(),o=null!==(t=null!==i.day?i.day:this.defaultParts.day)&&void 0!==t?t:void 0;return(0,eN.h)("ion-picker-column",{"aria-label":"Select a day",class:"day-column",color:this.color,disabled:n,value:o,onIonChange:e=>{this.setWorkingParts(Object.assign(Object.assign({},i),{day:e.detail.value})),this.setActiveParts(Object.assign(Object.assign({},r),{day:e.detail.value})),e.stopPropagation()}},e.map(e=>(0,eN.h)("ion-picker-column-option",{part:e.value===o?`${iY} ${iK}`:iY,key:e.value,disabled:e.disabled,value:e.value},e.text)))}renderMonthPickerColumn(e){if(0===e.length)return[];let{disabled:t,workingParts:n}=this,i=this.getActivePartsWithFallback();return(0,eN.h)("ion-picker-column",{"aria-label":"Select a month",class:"month-column",color:this.color,disabled:t,value:n.month,onIonChange:e=>{this.setWorkingParts(Object.assign(Object.assign({},n),{month:e.detail.value})),this.setActiveParts(Object.assign(Object.assign({},i),{month:e.detail.value})),e.stopPropagation()}},e.map(e=>(0,eN.h)("ion-picker-column-option",{part:e.value===n.month?`${iY} ${iK}`:iY,key:e.value,disabled:e.disabled,value:e.value},e.text)))}renderYearPickerColumn(e){if(0===e.length)return[];let{disabled:t,workingParts:n}=this,i=this.getActivePartsWithFallback();return(0,eN.h)("ion-picker-column",{"aria-label":"Select a year",class:"year-column",color:this.color,disabled:t,value:n.year,onIonChange:e=>{this.setWorkingParts(Object.assign(Object.assign({},n),{year:e.detail.value})),this.setActiveParts(Object.assign(Object.assign({},i),{year:e.detail.value})),e.stopPropagation()}},e.map(e=>(0,eN.h)("ion-picker-column-option",{part:e.value===n.year?`${iY} ${iK}`:iY,key:e.value,disabled:e.disabled,value:e.value},e.text)))}renderTimePickerColumns(e){if(["date","month","month-year","year"].includes(e))return[];let t=this.getActivePart(),n=void 0!==t,{hoursData:i,minutesData:r,dayPeriodData:o}=nJ(this.locale,this.workingParts,this.hourCycle,n?this.minParts:void 0,n?this.maxParts:void 0,this.parsedHourValues,this.parsedMinuteValues);return[this.renderHourPickerColumn(i),this.renderMinutePickerColumn(r),this.renderDayPeriodPickerColumn(o)]}renderHourPickerColumn(e){let{disabled:t,workingParts:n}=this;if(0===e.length)return[];let i=this.getActivePartsWithFallback();return(0,eN.h)("ion-picker-column",{"aria-label":"Select an hour",color:this.color,disabled:t,value:i.hour,numericInput:!0,onIonChange:e=>{this.setWorkingParts(Object.assign(Object.assign({},n),{hour:e.detail.value})),this.setActiveParts(Object.assign(Object.assign({},i),{hour:e.detail.value})),e.stopPropagation()}},e.map(e=>(0,eN.h)("ion-picker-column-option",{part:e.value===i.hour?`${iY} ${iK}`:iY,key:e.value,disabled:e.disabled,value:e.value},e.text)))}renderMinutePickerColumn(e){let{disabled:t,workingParts:n}=this;if(0===e.length)return[];let i=this.getActivePartsWithFallback();return(0,eN.h)("ion-picker-column",{"aria-label":"Select a minute",color:this.color,disabled:t,value:i.minute,numericInput:!0,onIonChange:e=>{this.setWorkingParts(Object.assign(Object.assign({},n),{minute:e.detail.value})),this.setActiveParts(Object.assign(Object.assign({},i),{minute:e.detail.value})),e.stopPropagation()}},e.map(e=>(0,eN.h)("ion-picker-column-option",{part:e.value===i.minute?`${iY} ${iK}`:iY,key:e.value,disabled:e.disabled,value:e.value},e.text)))}renderDayPeriodPickerColumn(e){let{disabled:t,workingParts:n}=this;if(0===e.length)return[];let i=this.getActivePartsWithFallback(),r=tX(this.locale);return(0,eN.h)("ion-picker-column",{"aria-label":"Select a day period",style:r?{order:"-1"}:{},color:this.color,disabled:t,value:i.ampm,onIonChange:e=>{let t=nh(n,e.detail.value);this.setWorkingParts(Object.assign(Object.assign({},n),{ampm:e.detail.value,hour:t})),this.setActiveParts(Object.assign(Object.assign({},i),{ampm:e.detail.value,hour:t})),e.stopPropagation()}},e.map(e=>(0,eN.h)("ion-picker-column-option",{part:e.value===i.ampm?`${iY} ${iK}`:iY,key:e.value,disabled:e.disabled,value:e.value},e.text)))}renderWheelView(e){let{locale:t}=this,n=tG(t);return(0,eN.h)("div",{class:{[`wheel-order-${n?"month-first":"year-first"}`]:!0}},this.renderWheelPicker(e))}renderCalendarHeader(e){let{disabled:t}=this,n="ios"===e?eU:ez,i=t||iz(this.workingParts,this.minParts,this.maxParts),r=t||iB(this.workingParts,this.maxParts),o=this.el.getAttribute("dir")||void 0;return(0,eN.h)("div",{class:"calendar-header"},(0,eN.h)("div",{class:"calendar-action-buttons"},(0,eN.h)("div",{class:"calendar-month-year"},(0,eN.h)("button",{class:{"calendar-month-year-toggle":!0,"ion-activatable":!0,"ion-focusable":!0},part:"month-year-button",disabled:t,"aria-label":this.showMonthAndYear?"Hide year picker":"Show year picker",onClick:()=>this.toggleMonthAndYearView()},(0,eN.h)("span",{id:"toggle-wrapper"},nk(this.locale,this.workingParts),(0,eN.h)("ion-icon",{"aria-hidden":"true",icon:this.showMonthAndYear?"ios"===e?eH:"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path d='M448 368L256 144 64 368h384z'/></svg>":n,lazy:!1,flipRtl:!0})),"md"===e&&(0,eN.h)("ion-ripple-effect",null))),(0,eN.h)("div",{class:"calendar-next-prev"},(0,eN.h)("ion-buttons",null,(0,eN.h)("ion-button",{"aria-label":"Previous month",disabled:i,onClick:()=>this.prevMonth()},(0,eN.h)("ion-icon",{dir:o,"aria-hidden":"true",slot:"icon-only",icon:eB,lazy:!1,flipRtl:!0})),(0,eN.h)("ion-button",{"aria-label":"Next month",disabled:r,onClick:()=>this.nextMonth()},(0,eN.h)("ion-icon",{dir:o,"aria-hidden":"true",slot:"icon-only",icon:eU,lazy:!1,flipRtl:!0}))))),(0,eN.h)("div",{class:"calendar-days-of-week","aria-hidden":"true"},nB(this.locale,e,this.firstDayOfWeek%7).map(e=>(0,eN.h)("div",{class:"day-of-week"},e))))}renderMonth(e,t){let{disabled:n,readonly:i}=this,r=void 0===this.parsedYearValues||this.parsedYearValues.includes(t),o=void 0===this.parsedMonthValues||this.parsedMonthValues.includes(e),a=!r||!o,s=n||i,l=n||iF({month:e,year:t,day:null},{minParts:Object.assign(Object.assign({},this.minParts),{day:null}),maxParts:Object.assign(Object.assign({},this.maxParts),{day:null})}),c=this.workingParts.month===e&&this.workingParts.year===t,d=this.getActivePartsWithFallback();return(0,eN.h)("div",{"aria-hidden":c?null:"true",class:{"calendar-month":!0,"calendar-month-disabled":!c&&l}},(0,eN.h)("div",{class:"calendar-month-grid"},nH(e,t,this.firstDayOfWeek%7).map((n,i)=>{let r,o;let{day:l,dayOfWeek:c}=n,{el:u,highlightedDates:h,isDateEnabled:p,multiple:f}=this,m={month:e,day:l,year:t},g=null===l,{isActive:b,isToday:v,ariaLabel:y,ariaSelected:x,disabled:w,text:_}=iN(this.locale,m,this.activeParts,this.todayParts,this.minParts,this.maxParts,this.parsedDayValues),E=t6(m),S=a||w;if(!S&&void 0!==p)try{S=!p(E)}catch(e){(0,k.a)("Exception thrown from provided `isDateEnabled` function. Please check your function and try again.",u,e)}let C=S&&s,P=S||s;return void 0===h||b||null===l||(r=iH(h,E,u)),g||(o=`calendar-day${b?" active":""}${v?" today":""}${S?" disabled":""}`),(0,eN.h)("div",{class:"calendar-day-wrapper"},(0,eN.h)("button",{ref:e=>{e&&(e.style.setProperty("color",`${r?r.textColor:""}`,"important"),e.style.setProperty("background-color",`${r?r.backgroundColor:""}`,"important"))},tabindex:"-1","data-day":l,"data-month":e,"data-year":t,"data-index":i,"data-day-of-week":c,disabled:P,class:{"calendar-day-padding":g,"calendar-day":!0,"calendar-day-active":b,"calendar-day-constrained":C,"calendar-day-today":v},part:o,"aria-hidden":g?"true":null,"aria-selected":x,"aria-label":y,onClick:()=>{g||(this.setWorkingParts(Object.assign(Object.assign({},this.workingParts),{month:e,day:l,year:t})),f?this.setActiveParts({month:e,day:l,year:t},b):this.setActiveParts(Object.assign(Object.assign({},d),{month:e,day:l,year:t})))}},_))})))}renderCalendarBody(){return(0,eN.h)("div",{class:"calendar-body ion-focusable",ref:e=>this.calendarBodyRef=e,tabindex:"0"},nW(this.workingParts,this.forceRenderDate).map(({month:e,year:t})=>this.renderMonth(e,t)))}renderCalendar(e){return(0,eN.h)("div",{class:"datetime-calendar",key:"datetime-calendar"},this.renderCalendarHeader(e),this.renderCalendarBody())}renderTimeLabel(){let e=null!==this.el.querySelector('[slot="time-label"]');if(e||this.showDefaultTimeLabel)return(0,eN.h)("slot",{name:"time-label"},"Time")}renderTimeOverlay(){let{disabled:e,hourCycle:t,isTimePopoverOpen:n,locale:i,formatOptions:r}=this,o=tV(i,t),a=this.getActivePartsWithFallback();return[(0,eN.h)("div",{class:"time-header"},this.renderTimeLabel()),(0,eN.h)("button",{class:{"time-body":!0,"time-body-active":n},part:`time-button${n?" active":""}`,"aria-expanded":"false","aria-haspopup":"true",disabled:e,onClick:async e=>{let{popoverRef:t}=this;t&&(this.isTimePopoverOpen=!0,t.present(new CustomEvent("ionShadowTarget",{detail:{ionShadowTarget:e.target}})),await t.onWillDismiss(),this.isTimePopoverOpen=!1)}},nv(i,a,o,null==r?void 0:r.time)),(0,eN.h)("ion-popover",{alignment:"center",translucent:!0,overlayIndex:1,arrow:!1,onWillPresent:e=>{let t=e.target.querySelectorAll("ion-picker-column");t.forEach(e=>e.scrollActiveItemIntoView())},style:{"--offset-y":"-10px","--min-width":"fit-content"},keyboardEvents:!0,ref:e=>this.popoverRef=e},this.renderWheelPicker("time"))]}getHeaderSelectedDateText(){var e;let t;let{activeParts:n,formatOptions:i,multiple:r,titleSelectedDatesFormatter:o}=this,a=Array.isArray(n);if(r&&a&&1!==n.length){if(t=`${n.length} days`,void 0!==o)try{t=o(t6(n))}catch(e){(0,k.a)("Exception in provided `titleSelectedDatesFormatter`: ",e)}}else t=nC(this.locale,this.getActivePartsWithFallback(),null!==(e=null==i?void 0:i.date)&&void 0!==e?e:{weekday:"short",month:"short",day:"numeric"});return t}renderHeader(e=!0){let t=null!==this.el.querySelector('[slot="title"]');if(t||this.showDefaultTitle)return(0,eN.h)("div",{class:"datetime-header"},(0,eN.h)("div",{class:"datetime-title"},(0,eN.h)("slot",{name:"title"},"Select Date")),e&&(0,eN.h)("div",{class:"datetime-selected-date"},this.getHeaderSelectedDateText()))}renderTime(){let{presentation:e}=this;return(0,eN.h)("div",{class:"datetime-time"},"time"===e?this.renderWheelPicker():this.renderTimeOverlay())}renderCalendarViewMonthYearPicker(){return(0,eN.h)("div",{class:"datetime-year"},this.renderWheelView("month-year"))}renderDatetime(e){let{presentation:t,preferWheel:n}=this;if(n&&("date"===t||"date-time"===t||"time-date"===t))return[this.renderHeader(!1),this.renderWheelView(),this.renderFooter()];switch(t){case"date-time":return[this.renderHeader(),this.renderCalendar(e),this.renderCalendarViewMonthYearPicker(),this.renderTime(),this.renderFooter()];case"time-date":return[this.renderHeader(),this.renderTime(),this.renderCalendar(e),this.renderCalendarViewMonthYearPicker(),this.renderFooter()];case"time":return[this.renderHeader(!1),this.renderTime(),this.renderFooter()];case"month":case"month-year":case"year":return[this.renderHeader(!1),this.renderWheelView(),this.renderFooter()];default:return[this.renderHeader(),this.renderCalendar(e),this.renderCalendarViewMonthYearPicker(),this.renderFooter()]}}render(){let{name:e,value:t,disabled:n,el:i,color:r,readonly:o,showMonthAndYear:a,preferWheel:s,presentation:l,size:c,isGridStyle:d}=this,u=(0,p.b)(this),h="year"===l||"month"===l||"month-year"===l,m=a||h,g=a&&!h;return(0,f.e)(!0,i,e,nL(t),n),(0,eN.h)(eN.AA,{key:"48313af4ec8e2a2666cd8c89932c5131dfa7b556","aria-disabled":n?"true":null,onFocus:this.onFocus,onBlur:this.onBlur,class:Object.assign({},eP(r,{[u]:!0,"datetime-readonly":o,"datetime-disabled":n,"show-month-and-year":m,"month-year-picker-open":g,[`datetime-presentation-${l}`]:!0,[`datetime-size-${c}`]:!0,"datetime-prefer-wheel":("date"===l||"date-time"===l||"time-date"===l)&&s,"datetime-grid":d}))},(0,eN.h)("div",{key:"b72570048236415aed915488305046d987d51dcf",class:"intersection-tracker",ref:e=>this.intersectionTrackerRef=e}),this.renderDatetime(u))}get el(){return this}static get watchers(){return{formatOptions:["formatOptionsChanged"],disabled:["disabledChanged"],min:["minChanged"],max:["maxChanged"],presentation:["presentationChanged"],yearValues:["yearValuesChanged"],monthValues:["monthValuesChanged"],dayValues:["dayValuesChanged"],hourValues:["hourValuesChanged"],minuteValues:["minuteValuesChanged"],value:["valueChanged"]}}static get style(){return{ios:':host{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;background:var(--background);overflow:hidden}:host(.datetime-size-fixed){width:auto;height:auto}:host(.datetime-size-fixed:not(.datetime-prefer-wheel)){max-width:350px}:host(.datetime-size-fixed.datetime-prefer-wheel){min-width:350px;max-width:-webkit-max-content;max-width:-moz-max-content;max-width:max-content}:host(.datetime-size-cover){width:100%}:host .calendar-body,:host .datetime-year{opacity:0}:host(:not(.datetime-ready)) .datetime-year{position:absolute;pointer-events:none}:host(.datetime-ready) .calendar-body{opacity:1}:host(.datetime-ready) .datetime-year{display:none;opacity:1}:host .wheel-order-year-first .day-column{-ms-flex-order:3;order:3;text-align:end}:host .wheel-order-year-first .month-column{-ms-flex-order:2;order:2;text-align:end}:host .wheel-order-year-first .year-column{-ms-flex-order:1;order:1;text-align:start}:host .datetime-calendar,:host .datetime-year{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-flow:column;flex-flow:column}:host(.show-month-and-year) .datetime-year{display:-ms-flexbox;display:flex}:host(.show-month-and-year) .calendar-next-prev,:host(.show-month-and-year) .calendar-days-of-week,:host(.show-month-and-year) .calendar-body,:host(.show-month-and-year) .datetime-time{display:none}:host(.month-year-picker-open) .datetime-footer{display:none}:host(.datetime-disabled){pointer-events:none}:host(.datetime-disabled) .calendar-days-of-week,:host(.datetime-disabled) .datetime-time{opacity:0.4}:host(.datetime-readonly){pointer-events:none;}:host(.datetime-readonly) .calendar-action-buttons,:host(.datetime-readonly) .calendar-body,:host(.datetime-readonly) .datetime-year{pointer-events:initial}:host(.datetime-readonly) .calendar-day[disabled]:not(.calendar-day-constrained),:host(.datetime-readonly) .datetime-action-buttons ion-button[disabled]{opacity:1}:host .datetime-header .datetime-title{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}:host .datetime-action-buttons.has-clear-button{width:100%}:host .datetime-action-buttons ion-buttons{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}.datetime-action-buttons .datetime-action-buttons-container{display:-ms-flexbox;display:flex}:host .calendar-action-buttons{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}:host .calendar-action-buttons ion-button{--background:transparent}:host .calendar-days-of-week{display:grid;grid-template-columns:repeat(7, 1fr);text-align:center}.calendar-days-of-week .day-of-week{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:0;margin-bottom:0}:host .calendar-body{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-webkit-scroll-snap-type:x mandatory;-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory;overflow-x:scroll;overflow-y:hidden;scrollbar-width:none;outline:none}:host .calendar-body .calendar-month{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;scroll-snap-align:start;scroll-snap-stop:always;-ms-flex-negative:0;flex-shrink:0;width:100%}:host .calendar-body .calendar-month-disabled{scroll-snap-align:none}:host .calendar-body::-webkit-scrollbar{display:none}:host .calendar-body .calendar-month-grid{display:grid;grid-template-columns:repeat(7, 1fr)}:host .calendar-day-wrapper{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;min-width:0;min-height:0;overflow:visible}.calendar-day{border-radius:50%;-webkit-padding-start:0px;padding-inline-start:0px;-webkit-padding-end:0px;padding-inline-end:0px;padding-top:0px;padding-bottom:0px;-webkit-margin-start:0px;margin-inline-start:0px;-webkit-margin-end:0px;margin-inline-end:0px;margin-top:0px;margin-bottom:0px;display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border:none;outline:none;background:none;color:currentColor;font-family:var(--ion-font-family, inherit);cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;z-index:0}:host .calendar-day[disabled]{pointer-events:none;opacity:0.4}.calendar-day:focus{background:rgba(var(--ion-color-base-rgb), 0.2);-webkit-box-shadow:0px 0px 0px 4px rgba(var(--ion-color-base-rgb), 0.2);box-shadow:0px 0px 0px 4px rgba(var(--ion-color-base-rgb), 0.2)}:host .datetime-time{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}:host(.datetime-presentation-time) .datetime-time{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0}:host ion-popover{--height:200px}:host .time-header{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host .time-body{border-radius:8px;-webkit-padding-start:12px;padding-inline-start:12px;-webkit-padding-end:12px;padding-inline-end:12px;padding-top:6px;padding-bottom:6px;display:-ms-flexbox;display:flex;border:none;background:var(--ion-color-step-300, var(--ion-background-color-step-300, #edeef0));color:var(--ion-text-color, #000);font-family:inherit;font-size:inherit;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none}:host .time-body-active{color:var(--ion-color-base)}:host(.in-item){position:static}:host(.show-month-and-year) .calendar-action-buttons .calendar-month-year-toggle{color:var(--ion-color-base)}.calendar-month-year{min-width:0}.calendar-month-year-toggle{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;position:relative;border:0;outline:none;background:transparent;cursor:pointer;z-index:1}.calendar-month-year-toggle::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0;-webkit-transition:opacity 15ms linear, background-color 15ms linear;transition:opacity 15ms linear, background-color 15ms linear;z-index:-1}.calendar-month-year-toggle.ion-focused::after{background:currentColor}.calendar-month-year-toggle:disabled{opacity:0.3;pointer-events:none}.calendar-month-year-toggle ion-icon{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:0;padding-inline-end:0;padding-top:0;padding-bottom:0;-ms-flex-negative:0;flex-shrink:0}.calendar-month-year-toggle #toggle-wrapper{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center}ion-picker{--highlight-background:var(--wheel-highlight-background);--highlight-border-radius:var(--wheel-highlight-border-radius);--fade-background-rgb:var(--wheel-fade-background-rgb)}:host{--background:var(--ion-color-light, #f4f5f8);--background-rgb:var(--ion-color-light-rgb, 244, 245, 248);--title-color:var(--ion-color-step-600, var(--ion-text-color-step-400, #666666))}:host(.datetime-presentation-date-time:not(.datetime-prefer-wheel)),:host(.datetime-presentation-time-date:not(.datetime-prefer-wheel)),:host(.datetime-presentation-date:not(.datetime-prefer-wheel)){min-height:350px}:host .datetime-header{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:16px;padding-bottom:16px;border-bottom:0.55px solid var(--ion-color-step-200, var(--ion-background-color-step-200, #cccccc));font-size:min(0.875rem, 22.4px)}:host .datetime-header .datetime-title{color:var(--title-color)}:host .datetime-header .datetime-selected-date{margin-top:10px}.calendar-month-year-toggle{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:0px;padding-bottom:0px;min-height:44px;font-size:min(1rem, 25.6px);font-weight:600}.calendar-month-year-toggle.ion-focused::after{opacity:0.15}.calendar-month-year-toggle #toggle-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:8px;margin-inline-end:8px;margin-top:10px;margin-bottom:10px}:host .calendar-action-buttons .calendar-month-year-toggle ion-icon,:host .calendar-action-buttons ion-buttons ion-button{color:var(--ion-color-base)}:host .calendar-action-buttons ion-buttons{padding-left:0;padding-right:0;padding-top:8px;padding-bottom:0}:host .calendar-action-buttons ion-buttons ion-button{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}:host .calendar-days-of-week{-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px;padding-top:0;padding-bottom:0;color:var(--ion-color-step-300, var(--ion-text-color-step-700, #b3b3b3));font-size:min(0.75rem, 19.2px);font-weight:600;line-height:24px;text-transform:uppercase}@supports (border-radius: mod(1px, 1px)){.calendar-days-of-week .day-of-week{width:clamp(20px, calc(mod(min(1rem, 24px), 24px) * 10), 100%);height:24px;overflow:hidden}.calendar-day{border-radius:max(8px, mod(min(1rem, 24px), 24px) * 10)}}@supports ((border-radius: mod(1px, 1px)) and (background: -webkit-named-image(apple-pay-logo-black)) and (not (contain-intrinsic-size: none))) or (not (border-radius: mod(1px, 1px))){.calendar-days-of-week .day-of-week{width:auto;height:auto;overflow:initial}.calendar-day{border-radius:32px}}:host .calendar-body .calendar-month .calendar-month-grid{-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px;padding-top:8px;padding-bottom:8px;-ms-flex-align:center;align-items:center;height:calc(100% - 16px)}:host .calendar-day-wrapper{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:4px;padding-inline-end:4px;padding-top:4px;padding-bottom:4px;height:0;min-height:1rem}:host .calendar-day{width:40px;min-width:40px;height:40px;font-size:min(1.25rem, 32px)}.calendar-day.calendar-day-active{background:rgba(var(--ion-color-base-rgb), 0.2);font-size:min(1.375rem, 35.2px)}:host .calendar-day.calendar-day-today{color:var(--ion-color-base)}:host .calendar-day.calendar-day-active{color:var(--ion-color-base);font-weight:600}:host .calendar-day.calendar-day-today.calendar-day-active{background:var(--ion-color-base);color:var(--ion-color-contrast)}:host .datetime-time{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:8px;padding-bottom:16px;font-size:min(1rem, 25.6px)}:host .datetime-time .time-header{font-weight:600}:host .datetime-buttons{-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px;padding-top:8px;padding-bottom:8px;border-top:0.55px solid var(--ion-color-step-200, var(--ion-background-color-step-200, #cccccc))}:host .datetime-buttons ::slotted(ion-buttons),:host .datetime-buttons ion-buttons{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between}:host .datetime-action-buttons{width:100%}',md:':host{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;background:var(--background);overflow:hidden}:host(.datetime-size-fixed){width:auto;height:auto}:host(.datetime-size-fixed:not(.datetime-prefer-wheel)){max-width:350px}:host(.datetime-size-fixed.datetime-prefer-wheel){min-width:350px;max-width:-webkit-max-content;max-width:-moz-max-content;max-width:max-content}:host(.datetime-size-cover){width:100%}:host .calendar-body,:host .datetime-year{opacity:0}:host(:not(.datetime-ready)) .datetime-year{position:absolute;pointer-events:none}:host(.datetime-ready) .calendar-body{opacity:1}:host(.datetime-ready) .datetime-year{display:none;opacity:1}:host .wheel-order-year-first .day-column{-ms-flex-order:3;order:3;text-align:end}:host .wheel-order-year-first .month-column{-ms-flex-order:2;order:2;text-align:end}:host .wheel-order-year-first .year-column{-ms-flex-order:1;order:1;text-align:start}:host .datetime-calendar,:host .datetime-year{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-flow:column;flex-flow:column}:host(.show-month-and-year) .datetime-year{display:-ms-flexbox;display:flex}:host(.show-month-and-year) .calendar-next-prev,:host(.show-month-and-year) .calendar-days-of-week,:host(.show-month-and-year) .calendar-body,:host(.show-month-and-year) .datetime-time{display:none}:host(.month-year-picker-open) .datetime-footer{display:none}:host(.datetime-disabled){pointer-events:none}:host(.datetime-disabled) .calendar-days-of-week,:host(.datetime-disabled) .datetime-time{opacity:0.4}:host(.datetime-readonly){pointer-events:none;}:host(.datetime-readonly) .calendar-action-buttons,:host(.datetime-readonly) .calendar-body,:host(.datetime-readonly) .datetime-year{pointer-events:initial}:host(.datetime-readonly) .calendar-day[disabled]:not(.calendar-day-constrained),:host(.datetime-readonly) .datetime-action-buttons ion-button[disabled]{opacity:1}:host .datetime-header .datetime-title{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}:host .datetime-action-buttons.has-clear-button{width:100%}:host .datetime-action-buttons ion-buttons{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}.datetime-action-buttons .datetime-action-buttons-container{display:-ms-flexbox;display:flex}:host .calendar-action-buttons{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}:host .calendar-action-buttons ion-button{--background:transparent}:host .calendar-days-of-week{display:grid;grid-template-columns:repeat(7, 1fr);text-align:center}.calendar-days-of-week .day-of-week{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:0;margin-bottom:0}:host .calendar-body{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-webkit-scroll-snap-type:x mandatory;-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory;overflow-x:scroll;overflow-y:hidden;scrollbar-width:none;outline:none}:host .calendar-body .calendar-month{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;scroll-snap-align:start;scroll-snap-stop:always;-ms-flex-negative:0;flex-shrink:0;width:100%}:host .calendar-body .calendar-month-disabled{scroll-snap-align:none}:host .calendar-body::-webkit-scrollbar{display:none}:host .calendar-body .calendar-month-grid{display:grid;grid-template-columns:repeat(7, 1fr)}:host .calendar-day-wrapper{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;min-width:0;min-height:0;overflow:visible}.calendar-day{border-radius:50%;-webkit-padding-start:0px;padding-inline-start:0px;-webkit-padding-end:0px;padding-inline-end:0px;padding-top:0px;padding-bottom:0px;-webkit-margin-start:0px;margin-inline-start:0px;-webkit-margin-end:0px;margin-inline-end:0px;margin-top:0px;margin-bottom:0px;display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border:none;outline:none;background:none;color:currentColor;font-family:var(--ion-font-family, inherit);cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;z-index:0}:host .calendar-day[disabled]{pointer-events:none;opacity:0.4}.calendar-day:focus{background:rgba(var(--ion-color-base-rgb), 0.2);-webkit-box-shadow:0px 0px 0px 4px rgba(var(--ion-color-base-rgb), 0.2);box-shadow:0px 0px 0px 4px rgba(var(--ion-color-base-rgb), 0.2)}:host .datetime-time{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}:host(.datetime-presentation-time) .datetime-time{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0}:host ion-popover{--height:200px}:host .time-header{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host .time-body{border-radius:8px;-webkit-padding-start:12px;padding-inline-start:12px;-webkit-padding-end:12px;padding-inline-end:12px;padding-top:6px;padding-bottom:6px;display:-ms-flexbox;display:flex;border:none;background:var(--ion-color-step-300, var(--ion-background-color-step-300, #edeef0));color:var(--ion-text-color, #000);font-family:inherit;font-size:inherit;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none}:host .time-body-active{color:var(--ion-color-base)}:host(.in-item){position:static}:host(.show-month-and-year) .calendar-action-buttons .calendar-month-year-toggle{color:var(--ion-color-base)}.calendar-month-year{min-width:0}.calendar-month-year-toggle{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;position:relative;border:0;outline:none;background:transparent;cursor:pointer;z-index:1}.calendar-month-year-toggle::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0;-webkit-transition:opacity 15ms linear, background-color 15ms linear;transition:opacity 15ms linear, background-color 15ms linear;z-index:-1}.calendar-month-year-toggle.ion-focused::after{background:currentColor}.calendar-month-year-toggle:disabled{opacity:0.3;pointer-events:none}.calendar-month-year-toggle ion-icon{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:0;padding-inline-end:0;padding-top:0;padding-bottom:0;-ms-flex-negative:0;flex-shrink:0}.calendar-month-year-toggle #toggle-wrapper{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center}ion-picker{--highlight-background:var(--wheel-highlight-background);--highlight-border-radius:var(--wheel-highlight-border-radius);--fade-background-rgb:var(--wheel-fade-background-rgb)}:host{--background:var(--ion-color-step-100, var(--ion-background-color-step-100, #ffffff));--title-color:var(--ion-color-contrast)}:host .datetime-header{-webkit-padding-start:20px;padding-inline-start:20px;-webkit-padding-end:20px;padding-inline-end:20px;padding-top:20px;padding-bottom:20px;background:var(--ion-color-base);color:var(--title-color)}:host .datetime-header .datetime-title{font-size:0.75rem;text-transform:uppercase}:host .datetime-header .datetime-selected-date{margin-top:30px;font-size:2.125rem}:host .calendar-action-buttons ion-button{--color:var(--ion-color-step-650, var(--ion-text-color-step-350, #595959))}.calendar-month-year-toggle{-webkit-padding-start:20px;padding-inline-start:20px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:12px;padding-bottom:12px;min-height:48px;background:transparent;color:var(--ion-color-step-650, var(--ion-text-color-step-350, #595959));z-index:1}.calendar-month-year-toggle.ion-focused::after{opacity:0.04}.calendar-month-year-toggle ion-ripple-effect{color:currentColor}@media (any-hover: hover){.calendar-month-year-toggle.ion-activatable:not(.ion-focused):hover::after{background:currentColor;opacity:0.04}}:host .calendar-days-of-week{-webkit-padding-start:10px;padding-inline-start:10px;-webkit-padding-end:10px;padding-inline-end:10px;padding-top:0px;padding-bottom:0px;color:var(--ion-color-step-500, var(--ion-text-color-step-500, gray));font-size:0.875rem;line-height:36px}:host .calendar-body .calendar-month .calendar-month-grid{-webkit-padding-start:10px;padding-inline-start:10px;-webkit-padding-end:10px;padding-inline-end:10px;padding-top:4px;padding-bottom:4px;grid-template-rows:repeat(6, 1fr)}:host .calendar-day{width:42px;min-width:42px;height:42px;font-size:0.875rem}:host .calendar-day.calendar-day-today{border:1px solid var(--ion-color-base);color:var(--ion-color-base)}:host .calendar-day.calendar-day-active{color:var(--ion-color-contrast)}.calendar-day.calendar-day-active{border:1px solid var(--ion-color-base);background:var(--ion-color-base)}:host .datetime-time{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:8px;padding-bottom:8px}:host .time-header{color:var(--ion-color-step-650, var(--ion-text-color-step-350, #595959))}:host(.datetime-presentation-month) .datetime-year,:host(.datetime-presentation-year) .datetime-year,:host(.datetime-presentation-month-year) .datetime-year{margin-top:20px;margin-bottom:20px}:host .datetime-buttons{-webkit-padding-start:10px;padding-inline-start:10px;-webkit-padding-end:10px;padding-inline-end:10px;padding-top:10px;padding-bottom:10px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:end;justify-content:flex-end}'}}},[33,"ion-datetime",{color:[1],name:[1],disabled:[4],formatOptions:[16],readonly:[4],isDateEnabled:[16],min:[1025],max:[1025],presentation:[1],cancelText:[1,"cancel-text"],doneText:[1,"done-text"],clearText:[1,"clear-text"],yearValues:[8,"year-values"],monthValues:[8,"month-values"],dayValues:[8,"day-values"],hourValues:[8,"hour-values"],minuteValues:[8,"minute-values"],locale:[1],firstDayOfWeek:[2,"first-day-of-week"],titleSelectedDatesFormatter:[16],multiple:[4],highlightedDates:[16],value:[1025],showDefaultTitle:[4,"show-default-title"],showDefaultButtons:[4,"show-default-buttons"],showClearButton:[4,"show-clear-button"],showDefaultTimeLabel:[4,"show-default-time-label"],hourCycle:[1,"hour-cycle"],size:[1],preferWheel:[4,"prefer-wheel"],showMonthAndYear:[32],activeParts:[32],workingParts:[32],isTimePopoverOpen:[32],forceRenderDate:[32],confirm:[64],reset:[64],cancel:[64]},void 0,{formatOptions:["formatOptionsChanged"],disabled:["disabledChanged"],min:["minChanged"],max:["maxChanged"],presentation:["presentationChanged"],yearValues:["yearValuesChanged"],monthValues:["monthValuesChanged"],dayValues:["dayValuesChanged"],hourValues:["hourValuesChanged"],minuteValues:["minuteValuesChanged"],value:["valueChanged"]}]),iq=0,iG="datetime-cancel",iX="datetime-confirm",iY="wheel-item",iK="active",iJ=(0,eN.GH)(class extends eN.mv{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.datetimeEl=null,this.overlayEl=null,this.getParsedDateValues=e=>null==e?[]:Array.isArray(e)?e:[e],this.setDateTimeText=()=>{var e,t,n,i,r;let{datetimeEl:o,datetimePresentation:a}=this;if(!o)return;let{value:s,locale:l,formatOptions:c,hourCycle:d,preferWheel:u,multiple:h,titleSelectedDatesFormatter:p}=o,f=this.getParsedDateValues(s),m=tQ(f.length>0?f:[nM()]);if(!m)return;let g=m[0],b=tV(l,d);switch(this.dateText=this.timeText=void 0,a){case"date-time":case"time-date":let v=nC(l,g,null!==(e=null==c?void 0:c.date)&&void 0!==e?e:{month:"short",day:"numeric",year:"numeric"}),y=nv(l,g,b,null==c?void 0:c.time);u?this.dateText=`${v} ${y}`:(this.dateText=v,this.timeText=y);break;case"date":if(h&&1!==f.length){let e=`${f.length} days`;if(void 0!==p)try{e=p(f)}catch(e){(0,k.a)("Exception in provided `titleSelectedDatesFormatter`: ",e)}this.dateText=e}else this.dateText=nC(l,g,null!==(t=null==c?void 0:c.date)&&void 0!==t?t:{month:"short",day:"numeric",year:"numeric"});break;case"time":this.timeText=nv(l,g,b,null==c?void 0:c.time);break;case"month-year":this.dateText=nC(l,g,null!==(n=null==c?void 0:c.date)&&void 0!==n?n:{month:"long",year:"numeric"});break;case"month":this.dateText=nC(l,g,null!==(i=null==c?void 0:c.time)&&void 0!==i?i:{month:"long"});break;case"year":this.dateText=nC(l,g,null!==(r=null==c?void 0:c.time)&&void 0!==r?r:{year:"numeric"})}},this.waitForDatetimeChanges=async()=>{let{datetimeEl:e}=this;return e?new Promise(t=>{(0,f.a)(e,"ionRender",t,{once:!0})}):Promise.resolve()},this.handleDateClick=async e=>{let{datetimeEl:t,datetimePresentation:n}=this;if(!t)return;let i=!1;switch(n){case"date-time":case"time-date":let r="date"!==t.presentation;!t.preferWheel&&r&&(t.presentation="date",i=!0)}this.selectedButton="date",this.presentOverlay(e,i,this.dateTargetEl)},this.handleTimeClick=e=>{let{datetimeEl:t,datetimePresentation:n}=this;if(!t)return;let i=!1;switch(n){case"date-time":case"time-date":let r="time"!==t.presentation;r&&(t.presentation="time",i=!0)}this.selectedButton="time",this.presentOverlay(e,i,this.timeTargetEl)},this.presentOverlay=async(e,t,n)=>{let{overlayEl:i}=this;i&&("ION-POPOVER"===i.tagName?(t&&await this.waitForDatetimeChanges(),i.present(Object.assign(Object.assign({},e),{detail:{ionShadowTarget:n}}))):i.present())},this.datetimePresentation="date-time",this.dateText=void 0,this.timeText=void 0,this.datetimeActive=!1,this.selectedButton=void 0,this.color="primary",this.disabled=!1,this.datetime=void 0}async componentWillLoad(){let{datetime:e}=this;if(!e){(0,k.a)("An ID associated with an ion-datetime instance is required for ion-datetime-button to function properly.",this.el);return}let t=this.datetimeEl=document.getElementById(e);if(!t){(0,k.a)(`No ion-datetime instance found for ID '${e}'.`,this.el);return}if("ION-DATETIME"!==t.tagName){(0,k.a)(`Expected an ion-datetime instance for ID '${e}' but received '${t.tagName.toLowerCase()}' instead.`,t);return}let n=new IntersectionObserver(e=>{let t=e[0];this.datetimeActive=t.isIntersecting},{threshold:.01});n.observe(t);let i=this.overlayEl=t.closest("ion-modal, ion-popover");i&&i.classList.add("ion-datetime-button-overlay"),(0,f.c)(t,()=>{let e=this.datetimePresentation=t.presentation||"date-time";switch(this.setDateTimeText(),(0,f.a)(t,"ionValueChange",this.setDateTimeText),e){case"date-time":case"date":case"month-year":case"month":case"year":this.selectedButton="date";break;case"time-date":case"time":this.selectedButton="time"}})}render(){let{color:e,dateText:t,timeText:n,selectedButton:i,datetimeActive:r,disabled:o}=this,a=(0,p.b)(this);return(0,eN.h)(eN.AA,{key:"0be955404133adbb31ae16a6599014bb29765f19",class:eP(e,{[a]:!0,[`${i}-active`]:r,"datetime-button-disabled":o})},t&&(0,eN.h)("button",{key:"812dcb50b17768cc13a5cfa0bcce8b113cee0f09",class:"ion-activatable",id:"date-button","aria-expanded":r?"true":"false",onClick:this.handleDateClick,disabled:o,part:"native",ref:e=>this.dateTargetEl=e},(0,eN.h)("slot",{key:"46930c740a32a78502df9e651f9bd5914d6a9fea",name:"date-target"},t),"md"===a&&(0,eN.h)("ion-ripple-effect",{key:"0602999cc8435dc37aa22da7f5531bc8cb71e1b4"})),n&&(0,eN.h)("button",{key:"ecdd21da5181ecbdce03209f9f6673b7dcbc1f78",class:"ion-activatable",id:"time-button","aria-expanded":r?"true":"false",onClick:this.handleTimeClick,disabled:o,part:"native",ref:e=>this.timeTargetEl=e},(0,eN.h)("slot",{key:"b5b093b5166d12d11e27360788edaac916d44390",name:"time-target"},n),"md"===a&&(0,eN.h)("ion-ripple-effect",{key:"70bb3a04f4748d13233eeb257503968dbd1161a9"})))}get el(){return this}static get style(){return{ios:":host{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}:host button{border-radius:8px;-webkit-margin-start:2px;margin-inline-start:2px;-webkit-margin-end:2px;margin-inline-end:2px;margin-top:0px;margin-bottom:0px;position:relative;-webkit-transition:150ms color ease-in-out;transition:150ms color ease-in-out;border:none;background:var(--ion-color-step-300, var(--ion-background-color-step-300, #edeef0));color:var(--ion-text-color, #000);font-family:inherit;font-size:1rem;cursor:pointer;overflow:hidden;-webkit-appearance:none;-moz-appearance:none;appearance:none}:host(.time-active) #time-button,:host(.date-active) #date-button{color:var(--ion-color-base)}:host(.datetime-button-disabled){pointer-events:none}:host(.datetime-button-disabled) button{opacity:0.4}:host button{-webkit-padding-start:13px;padding-inline-start:13px;-webkit-padding-end:13px;padding-inline-end:13px;padding-top:7px;padding-bottom:7px}:host button.ion-activated{color:var(--ion-color-step-600, var(--ion-text-color-step-400, #666666))}",md:":host{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}:host button{border-radius:8px;-webkit-margin-start:2px;margin-inline-start:2px;-webkit-margin-end:2px;margin-inline-end:2px;margin-top:0px;margin-bottom:0px;position:relative;-webkit-transition:150ms color ease-in-out;transition:150ms color ease-in-out;border:none;background:var(--ion-color-step-300, var(--ion-background-color-step-300, #edeef0));color:var(--ion-text-color, #000);font-family:inherit;font-size:1rem;cursor:pointer;overflow:hidden;-webkit-appearance:none;-moz-appearance:none;appearance:none}:host(.time-active) #time-button,:host(.date-active) #date-button{color:var(--ion-color-base)}:host(.datetime-button-disabled){pointer-events:none}:host(.datetime-button-disabled) button{opacity:0.4}:host button{-webkit-padding-start:12px;padding-inline-start:12px;-webkit-padding-end:12px;padding-inline-end:12px;padding-top:6px;padding-bottom:6px}"}}},[33,"ion-datetime-button",{color:[513],disabled:[516],datetime:[1],datetimePresentation:[32],dateText:[32],timeText:[32],datetimeActive:[32],selectedButton:[32]}]),iZ=(0,eN.GH)(class extends eN.mv{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.horizontal=void 0,this.vertical=void 0,this.edge=!1,this.activated=!1}activatedChanged(){let e=this.activated,t=this.getFab();t&&(t.activated=e),Array.from(this.el.querySelectorAll("ion-fab-list")).forEach(t=>{t.activated=e})}componentDidLoad(){this.activated&&this.activatedChanged()}async close(){this.activated=!1}getFab(){return this.el.querySelector("ion-fab-button")}async toggle(){let e=!!this.el.querySelector("ion-fab-list");e&&(this.activated=!this.activated)}render(){let{horizontal:e,vertical:t,edge:n}=this,i=(0,p.b)(this);return(0,eN.h)(eN.AA,{key:"cb44cf6486b0a6439b99da87c065b0b52e2514f4",class:{[i]:!0,[`fab-horizontal-${e}`]:void 0!==e,[`fab-vertical-${t}`]:void 0!==t,"fab-edge":n}},(0,eN.h)("slot",{key:"1ed484c7ecb10cd81fbca9a4f5c4049bf82f9f8a"}))}get el(){return this}static get watchers(){return{activated:["activatedChanged"]}}static get style(){return":host{position:absolute;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;z-index:999}:host(.fab-horizontal-center){left:0px;right:0px;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto}:host(.fab-horizontal-start){left:calc(10px + var(--ion-safe-area-left, 0px));}:host-context([dir=rtl]):host(.fab-horizontal-start),:host-context([dir=rtl]).fab-horizontal-start{right:calc(10px + var(--ion-safe-area-right, 0px));left:unset}@supports selector(:dir(rtl)){:host(.fab-horizontal-start:dir(rtl)){right:calc(10px + var(--ion-safe-area-right, 0px));left:unset}}:host(.fab-horizontal-end){right:calc(10px + var(--ion-safe-area-right, 0px));}:host-context([dir=rtl]):host(.fab-horizontal-end),:host-context([dir=rtl]).fab-horizontal-end{left:calc(10px + var(--ion-safe-area-left, 0px));right:unset}@supports selector(:dir(rtl)){:host(.fab-horizontal-end:dir(rtl)){left:calc(10px + var(--ion-safe-area-left, 0px));right:unset}}:host(.fab-vertical-top){top:10px}:host(.fab-vertical-top.fab-edge){top:0}:host(.fab-vertical-top.fab-edge) ::slotted(ion-fab-button){margin-top:-50%}:host(.fab-vertical-top.fab-edge) ::slotted(ion-fab-button.fab-button-small){margin-top:calc((-100% + 16px) / 2)}:host(.fab-vertical-top.fab-edge) ::slotted(ion-fab-list.fab-list-side-start),:host(.fab-vertical-top.fab-edge) ::slotted(ion-fab-list.fab-list-side-end){margin-top:-50%}:host(.fab-vertical-top.fab-edge) ::slotted(ion-fab-list.fab-list-side-top),:host(.fab-vertical-top.fab-edge) ::slotted(ion-fab-list.fab-list-side-bottom){margin-top:calc(50% + 10px)}:host(.fab-vertical-bottom){bottom:10px}:host(.fab-vertical-bottom.fab-edge){bottom:0}:host(.fab-vertical-bottom.fab-edge) ::slotted(ion-fab-button){margin-bottom:-50%}:host(.fab-vertical-bottom.fab-edge) ::slotted(ion-fab-button.fab-button-small){margin-bottom:calc((-100% + 16px) / 2)}:host(.fab-vertical-bottom.fab-edge) ::slotted(ion-fab-list.fab-list-side-start),:host(.fab-vertical-bottom.fab-edge) ::slotted(ion-fab-list.fab-list-side-end){margin-bottom:-50%}:host(.fab-vertical-bottom.fab-edge) ::slotted(ion-fab-list.fab-list-side-top),:host(.fab-vertical-bottom.fab-edge) ::slotted(ion-fab-list.fab-list-side-bottom){margin-bottom:calc(50% + 10px)}:host(.fab-vertical-center){top:0px;bottom:0px;margin-top:auto;margin-bottom:auto}"}},[1,"ion-fab",{horizontal:[1],vertical:[1],edge:[4],activated:[1028],close:[64],toggle:[64]},void 0,{activated:["activatedChanged"]}]),iQ=(0,eN.GH)(class extends eN.mv{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.activated=!1,this.side="bottom"}activatedChanged(e){let t=Array.from(this.el.querySelectorAll("ion-fab-button")),n=e?30:0;t.forEach((t,i)=>{setTimeout(()=>t.show=e,i*n)})}render(){let e=(0,p.b)(this);return(0,eN.h)(eN.AA,{key:"fa1d195b9950654ba0e984bf61d981c977d05275",class:{[e]:!0,"fab-list-active":this.activated,[`fab-list-side-${this.side}`]:!0}},(0,eN.h)("slot",{key:"2ec738c66c05112e1e2521155d6adfc36d2fd1db"}))}get el(){return this}static get watchers(){return{activated:["activatedChanged"]}}static get style(){return":host{margin-left:0;margin-right:0;margin-top:calc(100% + 10px);margin-bottom:calc(100% + 10px);display:none;position:absolute;top:0;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;min-width:56px;min-height:56px}:host(.fab-list-active){display:-ms-flexbox;display:flex}::slotted(.fab-button-in-list){margin-left:0;margin-right:0;margin-top:8px;margin-bottom:8px;width:40px;height:40px;-webkit-transform:scale(0);transform:scale(0);opacity:0;visibility:hidden}:host(.fab-list-side-top) ::slotted(.fab-button-in-list),:host(.fab-list-side-bottom) ::slotted(.fab-button-in-list){margin-left:0;margin-right:0;margin-top:5px;margin-bottom:5px}:host(.fab-list-side-start) ::slotted(.fab-button-in-list),:host(.fab-list-side-end) ::slotted(.fab-button-in-list){-webkit-margin-start:5px;margin-inline-start:5px;-webkit-margin-end:5px;margin-inline-end:5px;margin-top:0;margin-bottom:0}::slotted(.fab-button-in-list.fab-button-show){-webkit-transform:scale(1);transform:scale(1);opacity:1;visibility:visible}:host(.fab-list-side-top){top:auto;bottom:0;-ms-flex-direction:column-reverse;flex-direction:column-reverse}:host(.fab-list-side-start){-webkit-margin-start:calc(100% + 10px);margin-inline-start:calc(100% + 10px);-webkit-margin-end:calc(100% + 10px);margin-inline-end:calc(100% + 10px);margin-top:0;margin-bottom:0;-ms-flex-direction:row-reverse;flex-direction:row-reverse}:host(.fab-list-side-start){inset-inline-end:0}:host(.fab-list-side-end){-webkit-margin-start:calc(100% + 10px);margin-inline-start:calc(100% + 10px);-webkit-margin-end:calc(100% + 10px);margin-inline-end:calc(100% + 10px);margin-top:0;margin-bottom:0;-ms-flex-direction:row;flex-direction:row}:host(.fab-list-side-end){inset-inline-start:0}"}},[1,"ion-fab-list",{activated:[4],side:[1]},void 0,{activated:["activatedChanged"]}]);var i0=n(11396),i1=n(99234);/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */let i2=e=>{if(void 0===g.d||e===i1.a.None||void 0===e)return null;let t=g.d.querySelector("ion-app");return null!=t?t:g.d.body},i5=e=>{let t=i2(e);return null===t?0:t.clientHeight},i3=async e=>{let t,n,i,r;let o=async()=>{let e=await i1.K.getResizeMode(),o=void 0===e?void 0:e.mode;t=()=>{void 0===r&&(r=i5(o)),a(i=!0,o)},n=()=>{a(i=!1,o)},null===g.w||void 0===g.w||g.w.addEventListener("keyboardWillShow",t),null===g.w||void 0===g.w||g.w.addEventListener("keyboardWillHide",n)},a=(t,n)=>{e&&e(t,s(n))},s=e=>{if(0===r||r===i5(e))return;let t=i2(e);if(null!==t)return new Promise(e=>{let n=new ResizeObserver(()=>{t.clientHeight===r&&(n.disconnect(),e())});n.observe(t)})};return await o(),{init:o,destroy:()=>{null===g.w||void 0===g.w||g.w.removeEventListener("keyboardWillShow",t),null===g.w||void 0===g.w||g.w.removeEventListener("keyboardWillHide",n),t=n=void 0},isKeyboardVisible:()=>i}},i4=(e,t)=>{(0,eN.wj)(()=>{let n=e.scrollTop,i=e.scrollHeight-e.clientHeight,r=(0,f.k)(0,1-(n-(i-10))/10,1);(0,eN.Iu)(()=>{t.style.setProperty("--opacity-scale",r.toString())})})},i6=(0,eN.GH)(class extends eN.mv{constructor(){super(),this.__registerHost(),this.keyboardCtrl=null,this.checkCollapsibleFooter=()=>{let e=(0,p.b)(this);if("ios"!==e)return;let{collapse:t}=this;if(this.destroyCollapsibleFooter(),"fade"===t){let e=this.el.closest("ion-app,ion-page,.ion-page,page-inner"),t=e?(0,i0.f)(e):null;if(!t){(0,i0.p)(this.el);return}this.setupFadeFooter(t)}},this.setupFadeFooter=async e=>{let t=this.scrollEl=await (0,i0.g)(e);this.contentScrollCallback=()=>{i4(t,this.el)},t.addEventListener("scroll",this.contentScrollCallback),i4(t,this.el)},this.keyboardVisible=!1,this.collapse=void 0,this.translucent=!1}componentDidLoad(){this.checkCollapsibleFooter()}componentDidUpdate(){this.checkCollapsibleFooter()}async connectedCallback(){this.keyboardCtrl=await i3(async(e,t)=>{!1===e&&void 0!==t&&await t,this.keyboardVisible=e})}disconnectedCallback(){this.keyboardCtrl&&this.keyboardCtrl.destroy()}destroyCollapsibleFooter(){this.scrollEl&&this.contentScrollCallback&&(this.scrollEl.removeEventListener("scroll",this.contentScrollCallback),this.contentScrollCallback=void 0)}render(){let{translucent:e,collapse:t}=this,n=(0,p.b)(this),i=this.el.closest("ion-tabs"),r=null==i?void 0:i.querySelector(":scope > ion-tab-bar");return(0,eN.h)(eN.AA,{key:"5da19dc38ba73e1ddfd1bef3ebd485105d77c751",role:"contentinfo",class:{[n]:!0,[`footer-${n}`]:!0,"footer-translucent":e,[`footer-translucent-${n}`]:e,"footer-toolbar-padding":!this.keyboardVisible&&(!r||"bottom"!==r.slot),[`footer-collapse-${t}`]:void 0!==t}},"ios"===n&&e&&(0,eN.h)("div",{key:"fafad08090a33d8c4e8a5b63d61929dcb89aab47",class:"footer-background"}),(0,eN.h)("slot",{key:"e0a443d346afa55e4317c0bc1263fdbe3c619559"}))}get el(){return this}static get style(){return{ios:"ion-footer{display:block;position:relative;-ms-flex-order:1;order:1;width:100%;z-index:10}ion-footer.footer-toolbar-padding ion-toolbar:last-of-type{padding-bottom:var(--ion-safe-area-bottom, 0)}.footer-ios ion-toolbar:first-of-type{--border-width:0.55px 0 0}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){.footer-background{left:0;right:0;top:0;bottom:0;position:absolute;-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px)}.footer-translucent-ios ion-toolbar{--opacity:.8}}.footer-ios.ion-no-border ion-toolbar:first-of-type{--border-width:0}.footer-collapse-fade ion-toolbar{--opacity-scale:inherit}",md:"ion-footer{display:block;position:relative;-ms-flex-order:1;order:1;width:100%;z-index:10}ion-footer.footer-toolbar-padding ion-toolbar:last-of-type{padding-bottom:var(--ion-safe-area-bottom, 0)}.footer-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)}.footer-md.ion-no-border{-webkit-box-shadow:none;box-shadow:none}"}}},[36,"ion-footer",{collapse:[1],translucent:[4],keyboardVisible:[32]}]),i8=(0,eN.GH)(class extends eN.mv{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.fixed=!1}render(){let e=(0,p.b)(this);return(0,eN.h)(eN.AA,{key:"930ce78b02f8360fbca08a35d364d2c09128c6c8",class:{[e]:!0,"grid-fixed":this.fixed}},(0,eN.h)("slot",{key:"c47bf7ef2197f5ebc42d3e2c55044276fb0db393"}))}static get style(){return":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}"}},[1,"ion-grid",{fixed:[4]}]),i9=e=>{let t=document.querySelector(`${e}.ion-cloned-element`);if(null!==t)return t;let n=document.createElement(e);return n.classList.add("ion-cloned-element"),n.style.setProperty("display","none"),document.body.appendChild(n),n},i7=e=>{if(!e)return;let t=e.querySelectorAll("ion-toolbar");return{el:e,toolbars:Array.from(t).map(e=>{let t=e.querySelector("ion-title");return{el:e,background:e.shadowRoot.querySelector(".toolbar-background"),ionTitleEl:t,innerTitleEl:t?t.shadowRoot.querySelector(".toolbar-title"):null,ionButtonsEl:Array.from(e.querySelectorAll("ion-buttons"))}})}},re=(e,t,n)=>{(0,eN.wj)(()=>{let i=e.scrollTop,r=(0,f.k)(1,1+-i/500,1.1),o=n.querySelector("ion-refresher.refresher-native");null===o&&(0,eN.Iu)(()=>{ro(t.toolbars,r)})})},rt=(e,t)=>{"fade"!==e.collapse&&(void 0===t?e.style.removeProperty("--opacity-scale"):e.style.setProperty("--opacity-scale",t.toString()))},rn=(e,t,n)=>{if(!e[0].isIntersecting)return;let i=e[0].intersectionRatio>.9||n<=0?0:(1-e[0].intersectionRatio)*100/75;rt(t.el,1===i?void 0:i)},ri=(e,t,n,i)=>{(0,eN.Iu)(()=>{let r=i.scrollTop;rn(e,t,r);let o=e[0],a=o.intersectionRect,s=a.width*a.height,l=o.rootBounds.width*o.rootBounds.height,c=Math.abs(a.left-o.boundingClientRect.left),d=Math.abs(a.right-o.boundingClientRect.right);if((0!==s||0!==l)&&(!(s>0)||!(c>=5)&&!(d>=5))){if(o.isIntersecting)rr(t,!1),rr(n);else{let e=0===a.x&&0===a.y||0!==a.width&&0!==a.height;e&&r>0&&(rr(t),rr(n,!1),rt(t.el))}}})},rr=(e,t=!0)=>{let 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"))},ro=(e=[],t=1,n=!1)=>{e.forEach(e=>{let i=e.ionTitleEl,r=e.innerTitleEl;i&&"large"===i.size&&(r.style.transition=n?"all 0.2s ease-in-out":"",r.style.transform=`scale3d(${t}, ${t}, 1)`)})},ra=(e,t,n)=>{(0,eN.wj)(()=>{let i=e.scrollTop,r=t.clientHeight,o=n?n.clientHeight:0;if(null!==n&&i<o){t.style.setProperty("--opacity-scale","0"),e.style.setProperty("clip-path",`inset(${r}px 0px 0px 0px)`);return}let a=(0,f.k)(0,(i-o)/10,1);(0,eN.Iu)(()=>{e.style.removeProperty("clip-path"),t.style.setProperty("--opacity-scale",a.toString())})})},rs=(0,eN.GH)(class extends eN.mv{constructor(){super(),this.__registerHost(),this.inheritedAttributes={},this.setupFadeHeader=async(e,t)=>{let n=this.scrollEl=await (0,i0.g)(e);this.contentScrollCallback=()=>{ra(this.scrollEl,this.el,t)},n.addEventListener("scroll",this.contentScrollCallback),ra(this.scrollEl,this.el,t)},this.collapse=void 0,this.translucent=!1}componentWillLoad(){this.inheritedAttributes=(0,f.i)(this.el)}componentDidLoad(){this.checkCollapsibleHeader()}componentDidUpdate(){this.checkCollapsibleHeader()}disconnectedCallback(){this.destroyCollapsibleHeader()}async checkCollapsibleHeader(){let e=(0,p.b)(this);if("ios"!==e)return;let{collapse:t}=this;if(this.destroyCollapsibleHeader(),"condense"===t){let e=this.el.closest("ion-app,ion-page,.ion-page,page-inner"),t=e?(0,i0.f)(e):null;(0,eN.Iu)(()=>{let e=i9("ion-title");e.size="large",i9("ion-back-button")}),await this.setupCondenseHeader(t,e)}else if("fade"===t){let e=this.el.closest("ion-app,ion-page,.ion-page,page-inner"),t=e?(0,i0.f)(e):null;if(!t){(0,i0.p)(this.el);return}let n=t.querySelector('ion-header[collapse="condense"]');await this.setupFadeHeader(t,n)}}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(e,t){if(!e||!t){(0,i0.p)(this.el);return}if("undefined"==typeof IntersectionObserver)return;this.scrollEl=await (0,i0.g)(e);let n=t.querySelectorAll("ion-header");if(this.collapsibleMainHeader=Array.from(n).find(e=>"condense"!==e.collapse),!this.collapsibleMainHeader)return;let i=i7(this.collapsibleMainHeader),r=i7(this.el);i&&r&&(rr(i,!1),rt(i.el,0),this.intersectionObserver=new IntersectionObserver(e=>{ri(e,i,r,this.scrollEl)},{root:e,threshold:[.25,.3,.4,.5,.6,.7,.8,.9,1]}),this.intersectionObserver.observe(r.toolbars[r.toolbars.length-1].el),this.contentScrollCallback=()=>{re(this.scrollEl,r,e)},this.scrollEl.addEventListener("scroll",this.contentScrollCallback),(0,eN.Iu)(()=>{void 0!==this.collapsibleMainHeader&&this.collapsibleMainHeader.classList.add("header-collapse-main")}))}render(){let{translucent:e,inheritedAttributes:t}=this,n=(0,p.b)(this),i=this.collapse||"none",r=eC("ion-menu",this.el)?"none":"banner";return(0,eN.h)(eN.AA,Object.assign({key:"c687314ef290793a9d633ad20cfc5eeb47621e31",role:r,class:{[n]:!0,[`header-${n}`]:!0,"header-translucent":this.translucent,[`header-collapse-${i}`]:!0,[`header-translucent-${n}`]:this.translucent}},t),"ios"===n&&e&&(0,eN.h)("div",{key:"b429996046082405a91e7c23f95516db0b736f12",class:"header-background"}),(0,eN.h)("slot",{key:"e17a8965f8d3a33c1bfcb056c153d8242e5229fa"}))}get el(){return this}static get style(){return{ios:"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.header-ios:not(.header-collapse-main):has(~ion-content ion-header.header-ios[collapse=condense],~ion-content ion-header.header-ios.header-collapse-condense){opacity:0}",md:"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}"}}},[36,"ion-header",{collapse:[1],translucent:[4]}]),rl=(0,eN.GH)(class extends eN.mv{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionImgWillLoad=(0,eN.yM)(this,"ionImgWillLoad",7),this.ionImgDidLoad=(0,eN.yM)(this,"ionImgDidLoad",7),this.ionError=(0,eN.yM)(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=(0,f.d)(this.el,["draggable"])}componentDidLoad(){this.addIO()}addIO(){void 0!==this.src&&("undefined"!=typeof window&&"IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"isIntersecting"in window.IntersectionObserverEntry.prototype?(this.removeIO(),this.io=new IntersectionObserver(e=>{e[e.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(){let{loadSrc:e,alt:t,onLoad:n,loadError:i,inheritedAttributes:r}=this,{draggable:o}=r;return(0,eN.h)(eN.AA,{key:"14d24d65ec8e5522192ca58035264971b1ab883b",class:(0,p.b)(this)},(0,eN.h)("img",{key:"345ba155a5fdce5e66c397a599b7333d37d9cb1d",decoding:"async",src:e,alt:t,onLoad:n,onError:i,part:"image",draggable:rc(o)}))}get el(){return this}static get watchers(){return{src:["srcChanged"]}}static get style(){return":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}"}},[1,"ion-img",{alt:[1],src:[1],loadSrc:[32],loadError:[32]},void 0,{src:["srcChanged"]}]),rc=e=>{switch(e){case"true":return!0;case"false":return!1;default:return}},rd=(0,eN.GH)(class extends eN.mv{constructor(){super(),this.__registerHost(),this.ionInfinite=(0,eN.yM)(this,"ionInfinite",7),this.thrPx=0,this.thrPc=0,this.didFire=!1,this.isBusy=!1,this.onScroll=()=>{let e=this.scrollEl;if(!e||!this.canStart())return 1;let t=this.el.offsetHeight;if(0===t)return 2;let n=e.scrollTop,i=e.scrollHeight,r=e.offsetHeight,o=0!==this.thrPc?r*this.thrPc:this.thrPx,a="bottom"===this.position?i-t-n-o-r:n-t-o;return a<0&&!this.didFire?(this.isLoading=!0,this.didFire=!0,this.ionInfinite.emit(),3):4},this.isLoading=!1,this.threshold="15%",this.disabled=!1,this.position="bottom"}thresholdChanged(){let e=this.threshold;e.lastIndexOf("%")>-1?(this.thrPx=0,this.thrPc=parseFloat(e)/100):(this.thrPx=parseFloat(e),this.thrPc=0)}disabledChanged(){let e=this.disabled;e&&(this.isLoading=!1,this.isBusy=!1),this.enableScrollEvents(!e)}async connectedCallback(){let e=(0,i0.a)(this.el);if(!e){(0,i0.p)(this.el);return}this.scrollEl=await (0,i0.g)(e),this.thresholdChanged(),this.disabledChanged(),"top"===this.position&&(0,eN.Iu)(()=>{this.scrollEl&&(this.scrollEl.scrollTop=this.scrollEl.scrollHeight-this.scrollEl.clientHeight)})}disconnectedCallback(){this.enableScrollEvents(!1),this.scrollEl=void 0}async complete(){let e=this.scrollEl;if(this.isLoading&&e){if(this.isLoading=!1,"top"===this.position){this.isBusy=!0;let t=e.scrollHeight-e.scrollTop;requestAnimationFrame(()=>{(0,eN.wj)(()=>{let n=e.scrollHeight,i=n-t;requestAnimationFrame(()=>{(0,eN.Iu)(()=>{e.scrollTop=i,this.isBusy=!1,this.didFire=!1})})})})}else this.didFire=!1}}canStart(){return!this.disabled&&!this.isBusy&&!!this.scrollEl&&!this.isLoading}enableScrollEvents(e){this.scrollEl&&(e?this.scrollEl.addEventListener("scroll",this.onScroll):this.scrollEl.removeEventListener("scroll",this.onScroll))}render(){let e=(0,p.b)(this),t=this.disabled;return(0,eN.h)(eN.AA,{key:"1444429a86950c449953cbf578436cc8cabf40ec",class:{[e]:!0,"infinite-scroll-loading":this.isLoading,"infinite-scroll-enabled":!t}})}get el(){return this}static get watchers(){return{threshold:["thresholdChanged"],disabled:["disabledChanged"]}}static get style(){return"ion-infinite-scroll{display:none;width:100%}.infinite-scroll-enabled{display:block}"}},[0,"ion-infinite-scroll",{threshold:[1],disabled:[4],position:[1],isLoading:[32],complete:[64]},void 0,{threshold:["thresholdChanged"],disabled:["disabledChanged"]}]),ru={bubbles:{dur:1e3,circles:9,fn:(e,t,n)=>{let i=`${e*t/n-e}ms`,r=2*Math.PI*t/n;return{r:5,style:{top:`${32*Math.sin(r)}%`,left:`${32*Math.cos(r)}%`,"animation-delay":i}}}},circles:{dur:1e3,circles:8,fn:(e,t,n)=>{let i=t/n,r=`${e*i-e}ms`,o=2*Math.PI*i;return{r:5,style:{top:`${32*Math.sin(o)}%`,left:`${32*Math.cos(o)}%`,"animation-delay":r}}}},circular:{dur:1400,elmDuration:!0,circles:1,fn:()=>({r:20,cx:48,cy:48,fill:"none",viewBox:"24 24 48 48",transform:"translate(0,0)",style:{}})},crescent:{dur:750,circles:1,fn:()=>({r:26,style:{}})},dots:{dur:750,circles:3,fn:(e,t)=>({r:6,style:{left:`${32-32*t}%`,"animation-delay":-(110*t)+"ms"}})},lines:{dur:1e3,lines:8,fn:(e,t,n)=>{let i=`rotate(${360/n*t+(t<n/2?180:-180)}deg)`,r=`${e*t/n-e}ms`;return{y1:14,y2:26,style:{transform:i,"animation-delay":r}}}},"lines-small":{dur:1e3,lines:8,fn:(e,t,n)=>{let i=`rotate(${360/n*t+(t<n/2?180:-180)}deg)`,r=`${e*t/n-e}ms`;return{y1:12,y2:20,style:{transform:i,"animation-delay":r}}}},"lines-sharp":{dur:1e3,lines:12,fn:(e,t,n)=>{let i=`rotate(${30*t+(t<6?180:-180)}deg)`,r=`${e*t/n-e}ms`;return{y1:17,y2:29,style:{transform:i,"animation-delay":r}}}},"lines-sharp-small":{dur:1e3,lines:12,fn:(e,t,n)=>{let i=`rotate(${30*t+(t<6?180:-180)}deg)`,r=`${e*t/n-e}ms`;return{y1:12,y2:20,style:{transform:i,"animation-delay":r}}}}},rh=(0,eN.GH)(class extends eN.mv{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.color=void 0,this.duration=void 0,this.name=void 0,this.paused=!1}getName(){let e=this.name||p.c.get("spinner"),t=(0,p.b)(this);return e||("ios"===t?"lines":"circular")}render(){var e;let t=(0,p.b)(this),n=this.getName(),i=null!==(e=ru[n])&&void 0!==e?e:ru.lines,r="number"==typeof this.duration&&this.duration>10?this.duration:i.dur,o=[];if(void 0!==i.circles)for(let e=0;e<i.circles;e++)o.push(rp(i,r,e,i.circles));else if(void 0!==i.lines)for(let e=0;e<i.lines;e++)o.push(rf(i,r,e,i.lines));return(0,eN.h)(eN.AA,{key:"50cbaed55eeab15292447d106a80b93db4cb40de",class:eP(this.color,{[t]:!0,[`spinner-${n}`]:!0,"spinner-paused":this.paused||p.c.getBoolean("_testing")}),role:"progressbar",style:i.elmDuration?{animationDuration:r+"ms"}:{}},o)}static get style(){return":host{display:inline-block;position:relative;width:28px;height:28px;color:var(--color);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host(.ion-color){color:var(--ion-color-base)}svg{-webkit-transform-origin:center;transform-origin:center;position:absolute;top:0;left:0;width:100%;height:100%;-webkit-transform:translateZ(0);transform:translateZ(0)}:host-context([dir=rtl]) svg{-webkit-transform-origin:calc(100% - center);transform-origin:calc(100% - center)}[dir=rtl] svg{-webkit-transform-origin:calc(100% - center);transform-origin:calc(100% - center)}@supports selector(:dir(rtl)){svg:dir(rtl){-webkit-transform-origin:calc(100% - center);transform-origin:calc(100% - center)}}:host(.spinner-lines) line,:host(.spinner-lines-small) line{stroke-width:7px}:host(.spinner-lines-sharp) line,:host(.spinner-lines-sharp-small) line{stroke-width:4px}:host(.spinner-lines) line,:host(.spinner-lines-small) line,:host(.spinner-lines-sharp) line,:host(.spinner-lines-sharp-small) line{stroke-linecap:round;stroke:currentColor}:host(.spinner-lines) svg,:host(.spinner-lines-small) svg,:host(.spinner-lines-sharp) svg,:host(.spinner-lines-sharp-small) svg{-webkit-animation:spinner-fade-out 1s linear infinite;animation:spinner-fade-out 1s linear infinite}:host(.spinner-bubbles) svg{-webkit-animation:spinner-scale-out 1s linear infinite;animation:spinner-scale-out 1s linear infinite;fill:currentColor}:host(.spinner-circles) svg{-webkit-animation:spinner-fade-out 1s linear infinite;animation:spinner-fade-out 1s linear infinite;fill:currentColor}:host(.spinner-crescent) circle{fill:transparent;stroke-width:4px;stroke-dasharray:128px;stroke-dashoffset:82px;stroke:currentColor}:host(.spinner-crescent) svg{-webkit-animation:spinner-rotate 1s linear infinite;animation:spinner-rotate 1s linear infinite}:host(.spinner-dots) circle{stroke-width:0;fill:currentColor}:host(.spinner-dots) svg{-webkit-animation:spinner-dots 1s linear infinite;animation:spinner-dots 1s linear infinite}:host(.spinner-circular) svg{-webkit-animation:spinner-circular linear infinite;animation:spinner-circular linear infinite}:host(.spinner-circular) circle{-webkit-animation:spinner-circular-inner ease-in-out infinite;animation:spinner-circular-inner ease-in-out infinite;stroke:currentColor;stroke-dasharray:80px, 200px;stroke-dashoffset:0px;stroke-width:5.6;fill:none}:host(.spinner-paused),:host(.spinner-paused) svg,:host(.spinner-paused) circle{-webkit-animation-play-state:paused;animation-play-state:paused}@-webkit-keyframes spinner-fade-out{0%{opacity:1}100%{opacity:0}}@keyframes spinner-fade-out{0%{opacity:1}100%{opacity:0}}@-webkit-keyframes spinner-scale-out{0%{-webkit-transform:scale(1, 1);transform:scale(1, 1)}100%{-webkit-transform:scale(0, 0);transform:scale(0, 0)}}@keyframes spinner-scale-out{0%{-webkit-transform:scale(1, 1);transform:scale(1, 1)}100%{-webkit-transform:scale(0, 0);transform:scale(0, 0)}}@-webkit-keyframes spinner-rotate{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes spinner-rotate{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@-webkit-keyframes spinner-dots{0%{-webkit-transform:scale(1, 1);transform:scale(1, 1);opacity:0.9}50%{-webkit-transform:scale(0.4, 0.4);transform:scale(0.4, 0.4);opacity:0.3}100%{-webkit-transform:scale(1, 1);transform:scale(1, 1);opacity:0.9}}@keyframes spinner-dots{0%{-webkit-transform:scale(1, 1);transform:scale(1, 1);opacity:0.9}50%{-webkit-transform:scale(0.4, 0.4);transform:scale(0.4, 0.4);opacity:0.3}100%{-webkit-transform:scale(1, 1);transform:scale(1, 1);opacity:0.9}}@-webkit-keyframes spinner-circular{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes spinner-circular{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@-webkit-keyframes spinner-circular-inner{0%{stroke-dasharray:1px, 200px;stroke-dashoffset:0px}50%{stroke-dasharray:100px, 200px;stroke-dashoffset:-15px}100%{stroke-dasharray:100px, 200px;stroke-dashoffset:-125px}}@keyframes spinner-circular-inner{0%{stroke-dasharray:1px, 200px;stroke-dashoffset:0px}50%{stroke-dasharray:100px, 200px;stroke-dashoffset:-15px}100%{stroke-dasharray:100px, 200px;stroke-dashoffset:-125px}}"}},[1,"ion-spinner",{color:[513],duration:[2],name:[1],paused:[4]}]),rp=(e,t,n,i)=>{let r=e.fn(t,n,i);return r.style["animation-duration"]=t+"ms",(0,eN.h)("svg",{viewBox:r.viewBox||"0 0 64 64",style:r.style},(0,eN.h)("circle",{transform:r.transform||"translate(32,32)",cx:r.cx,cy:r.cy,r:r.r,style:e.elmDuration?{animationDuration:t+"ms"}:{}}))},rf=(e,t,n,i)=>{let r=e.fn(t,n,i);return r.style["animation-duration"]=t+"ms",(0,eN.h)("svg",{viewBox:r.viewBox||"0 0 64 64",style:r.style},(0,eN.h)("line",{transform:"translate(32,32)",y1:r.y1,y2:r.y2}))};function rm(){"undefined"!=typeof customElements&&["ion-spinner"].forEach(e=>{"ion-spinner"===e&&(customElements.get(e)||customElements.define(e,rh))})}let rg=(0,eN.GH)(class extends eN.mv{constructor(){super(),this.__registerHost(),this.customHTMLEnabled=p.c.get("innerHTMLTemplatesEnabled",!1),this.loadingSpinner=void 0,this.loadingText=void 0}componentDidLoad(){if(void 0===this.loadingSpinner){let e=(0,p.b)(this);this.loadingSpinner=p.c.get("infiniteLoadingSpinner",p.c.get("spinner","ios"===e?"lines":"crescent"))}}renderLoadingText(){let{customHTMLEnabled:e,loadingText:t}=this;return e?(0,eN.h)("div",{class:"infinite-loading-text",innerHTML:ef(t)}):(0,eN.h)("div",{class:"infinite-loading-text"},this.loadingText)}render(){let e=(0,p.b)(this);return(0,eN.h)(eN.AA,{key:"060278bf9cb0321e182352f9613be4ebbb028259",class:{[e]:!0,[`infinite-scroll-content-${e}`]:!0}},(0,eN.h)("div",{key:"07d3cada920145f979ad315bd187fb878e0c3da3",class:"infinite-loading"},this.loadingSpinner&&(0,eN.h)("div",{key:"6254f175d7543d09f3dd47cd0589a2809182cd8c",class:"infinite-loading-spinner"},(0,eN.h)("ion-spinner",{key:"a6a816d1c65b60b786333b209b63492aa716a283",name:this.loadingSpinner})),void 0!==this.loadingText&&this.renderLoadingText()))}static get style(){return{ios:"ion-infinite-scroll-content{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;min-height:84px;text-align:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.infinite-loading{margin-left:0;margin-right:0;margin-top:0;margin-bottom:32px;display:none;width:100%}.infinite-loading-text{-webkit-margin-start:32px;margin-inline-start:32px;-webkit-margin-end:32px;margin-inline-end:32px;margin-top:4px;margin-bottom:0}.infinite-scroll-loading ion-infinite-scroll-content>.infinite-loading{display:block}.infinite-scroll-content-ios .infinite-loading-text{color:var(--ion-color-step-600, var(--ion-text-color-step-400, #666666))}.infinite-scroll-content-ios .infinite-loading-spinner .spinner-lines-ios line,.infinite-scroll-content-ios .infinite-loading-spinner .spinner-lines-small-ios line,.infinite-scroll-content-ios .infinite-loading-spinner .spinner-crescent circle{stroke:var(--ion-color-step-600, var(--ion-text-color-step-400, #666666))}.infinite-scroll-content-ios .infinite-loading-spinner .spinner-bubbles circle,.infinite-scroll-content-ios .infinite-loading-spinner .spinner-circles circle,.infinite-scroll-content-ios .infinite-loading-spinner .spinner-dots circle{fill:var(--ion-color-step-600, var(--ion-text-color-step-400, #666666))}",md:"ion-infinite-scroll-content{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;min-height:84px;text-align:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.infinite-loading{margin-left:0;margin-right:0;margin-top:0;margin-bottom:32px;display:none;width:100%}.infinite-loading-text{-webkit-margin-start:32px;margin-inline-start:32px;-webkit-margin-end:32px;margin-inline-end:32px;margin-top:4px;margin-bottom:0}.infinite-scroll-loading ion-infinite-scroll-content>.infinite-loading{display:block}.infinite-scroll-content-md .infinite-loading-text{color:var(--ion-color-step-600, var(--ion-text-color-step-400, #666666))}.infinite-scroll-content-md .infinite-loading-spinner .spinner-lines-md line,.infinite-scroll-content-md .infinite-loading-spinner .spinner-lines-small-md line,.infinite-scroll-content-md .infinite-loading-spinner .spinner-crescent circle{stroke:var(--ion-color-step-600, var(--ion-text-color-step-400, #666666))}.infinite-scroll-content-md .infinite-loading-spinner .spinner-bubbles circle,.infinite-scroll-content-md .infinite-loading-spinner .spinner-circles circle,.infinite-scroll-content-md .infinite-loading-spinner .spinner-dots circle{fill:var(--ion-color-step-600, var(--ion-text-color-step-400, #666666))}"}}},[32,"ion-infinite-scroll-content",{loadingSpinner:[1025,"loading-spinner"],loadingText:[1,"loading-text"]}]),rb=(e,t,n)=>{let i;let r=()=>{let i=t();return void 0!==i&&void 0===e.label&&null!==n()},o=()=>{let a=t();if(void 0===a)return;if(!r()){a.style.removeProperty("width");return}let s=n().scrollWidth;if(0===s&&null===a.offsetParent&&void 0!==g.w&&"IntersectionObserver"in g.w){if(void 0!==i)return;let t=i=new IntersectionObserver(e=>{1===e[0].intersectionRatio&&(o(),t.disconnect(),i=void 0)},{threshold:.01,root:e});t.observe(a);return}a.style.setProperty("width",`${.75*s}px`)};return{calculateNotchWidth:()=>{r()&&(0,f.r)(()=>{o()})},destroy:()=>{i&&(i.disconnect(),i=void 0)}}},rv=(e,t,n)=>{let i,r;if(void 0!==g.w&&"MutationObserver"in g.w){let r=Array.isArray(t)?t:[t];(i=new MutationObserver(e=>{for(let t of e)for(let e of t.addedNodes)if(e.nodeType===Node.ELEMENT_NODE&&r.includes(e.slot)){n(),(0,f.r)(()=>o(e));return}})).observe(e,{childList:!0,subtree:!0})}let o=e=>{var i;r&&(r.disconnect(),r=void 0),(r=new MutationObserver(e=>{for(let i of(n(),e))for(let e of i.removedNodes)e.nodeType===Node.ELEMENT_NODE&&e.slot===t&&a()})).observe(null!==(i=e.parentElement)&&void 0!==i?i:e,{subtree:!0,childList:!0})},a=()=>{r&&(r.disconnect(),r=void 0)};return{destroy:()=>{i&&(i.disconnect(),i=void 0),a()}}},ry=(e,t,n)=>{let i=null==e?0:e.toString().length,r=rx(i,t);if(void 0===n)return r;try{return n(i,t)}catch(e){return(0,k.a)("Exception in provided `counterFormatter`.",e),r}},rx=(e,t)=>`${e} / ${t}`,rw=(0,eN.GH)(class extends eN.mv{constructor(){super(),this.__registerHost(),this.ionInput=(0,eN.yM)(this,"ionInput",7),this.ionChange=(0,eN.yM)(this,"ionChange",7),this.ionBlur=(0,eN.yM)(this,"ionBlur",7),this.ionFocus=(0,eN.yM)(this,"ionFocus",7),this.inputId=`ion-input-${rk++}`,this.inheritedAttributes={},this.isComposing=!1,this.didInputClearOnEdit=!1,this.onInput=e=>{let t=e.target;t&&(this.value=t.value||""),this.emitInputChange(e)},this.onChange=e=>{this.emitValueChange(e)},this.onBlur=e=>{this.hasFocus=!1,this.focusedValue!==this.value&&this.emitValueChange(e),this.didInputClearOnEdit=!1,this.ionBlur.emit(e)},this.onFocus=e=>{this.hasFocus=!0,this.focusedValue=this.value,this.ionFocus.emit(e)},this.onKeydown=e=>{this.checkClearOnEdit(e)},this.onCompositionStart=()=>{this.isComposing=!0},this.onCompositionEnd=()=>{this.isComposing=!1},this.clearTextInput=e=>{this.clearInput&&!this.readonly&&!this.disabled&&e&&(e.preventDefault(),e.stopPropagation(),this.setFocus()),this.value="",this.emitInputChange(e)},this.hasFocus=!1,this.color=void 0,this.autocapitalize="off",this.autocomplete="off",this.autocorrect="off",this.autofocus=!1,this.clearInput=!1,this.clearInputIcon=void 0,this.clearOnEdit=void 0,this.counter=!1,this.counterFormatter=void 0,this.debounce=void 0,this.disabled=!1,this.enterkeyhint=void 0,this.errorText=void 0,this.fill=void 0,this.inputmode=void 0,this.helperText=void 0,this.label=void 0,this.labelPlacement="start",this.max=void 0,this.maxlength=void 0,this.min=void 0,this.minlength=void 0,this.multiple=void 0,this.name=this.inputId,this.pattern=void 0,this.placeholder=void 0,this.readonly=!1,this.required=!1,this.shape=void 0,this.spellcheck=!1,this.step=void 0,this.type="text",this.value=""}debounceChanged(){let{ionInput:e,debounce:t,originalIonInput:n}=this;this.ionInput=void 0===t?null!=n?n:e:(0,f.l)(e,t)}onTypeChange(){let e=this.el.querySelector("ion-input-password-toggle");e&&(e.type=this.type)}valueChanged(){let e=this.nativeInput,t=this.getValue();e&&e.value!==t&&!this.isComposing&&(e.value=t)}componentWillLoad(){this.inheritedAttributes=Object.assign(Object.assign({},(0,f.i)(this.el)),(0,f.d)(this.el,["tabindex","title","data-form-type"]))}connectedCallback(){let{el:e}=this;this.slotMutationController=rv(e,["label","start","end"],()=>(0,eN.xE)(this)),this.notchController=rb(e,()=>this.notchSpacerEl,()=>this.labelSlot),this.debounceChanged(),eN.Z5.isBrowser&&document.dispatchEvent(new CustomEvent("ionInputDidLoad",{detail:this.el}))}componentDidLoad(){this.originalIonInput=this.ionInput,this.onTypeChange(),this.debounceChanged()}componentDidRender(){var e;null===(e=this.notchController)||void 0===e||e.calculateNotchWidth()}disconnectedCallback(){eN.Z5.isBrowser&&document.dispatchEvent(new CustomEvent("ionInputDidUnload",{detail:this.el})),this.slotMutationController&&(this.slotMutationController.destroy(),this.slotMutationController=void 0),this.notchController&&(this.notchController.destroy(),this.notchController=void 0)}async setFocus(){this.nativeInput&&this.nativeInput.focus()}async getInputElement(){return this.nativeInput||await new Promise(e=>(0,f.c)(this.el,e)),Promise.resolve(this.nativeInput)}emitValueChange(e){let{value:t}=this,n=null==t?t:t.toString();this.focusedValue=n,this.ionChange.emit({value:n,event:e})}emitInputChange(e){let{value:t}=this,n=null==t?t:t.toString();this.ionInput.emit({value:n,event:e})}shouldClearOnEdit(){let{type:e,clearOnEdit:t}=this;return void 0===t?"password"===e:t}getValue(){return"number"==typeof this.value?this.value.toString():(this.value||"").toString()}checkClearOnEdit(e){if(!this.shouldClearOnEdit())return;let t=["Enter","Tab","Shift","Meta","Alt","Control"].includes(e.key);!this.didInputClearOnEdit&&this.hasValue()&&!t&&(this.value="",this.emitInputChange(e)),t||(this.didInputClearOnEdit=!0)}hasValue(){return this.getValue().length>0}renderHintText(){let{helperText:e,errorText:t}=this;return[(0,eN.h)("div",{class:"helper-text"},e),(0,eN.h)("div",{class:"error-text"},t)]}renderCounter(){let{counter:e,maxlength:t,counterFormatter:n,value:i}=this;if(!0===e&&void 0!==t)return(0,eN.h)("div",{class:"counter"},ry(i,t,n))}renderBottomContent(){let{counter:e,helperText:t,errorText:n,maxlength:i}=this;if(t||n||!0===e&&void 0!==i)return(0,eN.h)("div",{class:"input-bottom"},this.renderHintText(),this.renderCounter())}renderLabel(){let{label:e}=this;return(0,eN.h)("div",{class:{"label-text-wrapper":!0,"label-text-wrapper-hidden":!this.hasLabel}},void 0===e?(0,eN.h)("slot",{name:"label"}):(0,eN.h)("div",{class:"label-text"},e))}get labelSlot(){return this.el.querySelector('[slot="label"]')}get hasLabel(){return void 0!==this.label||null!==this.labelSlot}renderLabelContainer(){let e=(0,p.b)(this),t="md"===e&&"outline"===this.fill;return t?[(0,eN.h)("div",{class:"input-outline-container"},(0,eN.h)("div",{class:"input-outline-start"}),(0,eN.h)("div",{class:{"input-outline-notch":!0,"input-outline-notch-hidden":!this.hasLabel}},(0,eN.h)("div",{class:"notch-spacer","aria-hidden":"true",ref:e=>this.notchSpacerEl=e},this.label)),(0,eN.h)("div",{class:"input-outline-end"})),this.renderLabel()]:this.renderLabel()}render(){let{disabled:e,fill:t,readonly:n,shape:i,inputId:r,labelPlacement:o,el:a,hasFocus:s,clearInputIcon:l}=this,c=(0,p.b)(this),d=this.getValue(),u=eC("ion-item",this.el),h=this.hasValue(),f=null!==a.querySelector('[slot="start"], [slot="end"]'),m="stacked"===o||"floating"===o&&(h||s||f);return(0,eN.h)(eN.AA,{key:"907ce98a82b5cfae5a08504cd79e00a2330b7444",class:eP(this.color,{[c]:!0,"has-value":h,"has-focus":s,"label-floating":m,[`input-fill-${t}`]:void 0!==t,[`input-shape-${i}`]:void 0!==i,[`input-label-placement-${o}`]:!0,"in-item":u,"in-item-color":eC("ion-item.ion-color",this.el),"input-disabled":e})},(0,eN.h)("label",{key:"59d5bb45d2a5b828bba0ed8687a632a551e2f4d8",class:"input-wrapper",htmlFor:r},this.renderLabelContainer(),(0,eN.h)("div",{key:"f93f129d08246d0e9a601c100d718534d6403853",class:"native-wrapper"},(0,eN.h)("slot",{key:"54eeb1a6bace662b7eb0d7e27180ea3d7e3a3729",name:"start"}),(0,eN.h)("input",Object.assign({key:"b3e0be55bc1a4a539ae3b0fdcf7fc078723cca16",class:"native-input",ref:e=>this.nativeInput=e,id:r,disabled:e,autoCapitalize:this.autocapitalize,autoComplete:this.autocomplete,autoCorrect:this.autocorrect,autoFocus:this.autofocus,enterKeyHint:this.enterkeyhint,inputMode:this.inputmode,min:this.min,max:this.max,minLength:this.minlength,maxLength:this.maxlength,multiple:this.multiple,name:this.name,pattern:this.pattern,placeholder:this.placeholder||"",readOnly:n,required:this.required,spellcheck:this.spellcheck,step:this.step,type:this.type,value:d,onInput:this.onInput,onChange:this.onChange,onBlur:this.onBlur,onFocus:this.onFocus,onKeyDown:this.onKeydown,onCompositionstart:this.onCompositionStart,onCompositionend:this.onCompositionEnd},this.inheritedAttributes)),this.clearInput&&!n&&!e&&(0,eN.h)("button",{key:"5f6373504a6d0d074bfbf875c794d45ea2748175","aria-label":"reset",type:"button",class:"input-clear-icon",onPointerDown:e=>{e.preventDefault()},onFocusin:e=>{e.stopPropagation()},onClick:this.clearTextInput},(0,eN.h)("ion-icon",{key:"230d77973aa83458ceb32bf52e3abe9bc322cfe6","aria-hidden":"true",icon:null!=l?l:"ios"===c?eV:eW})),(0,eN.h)("slot",{key:"9d69ac6e8a3c4b2b303dba2478f82695d5755ed2",name:"end"})),"md"===c&&"outline"!==t&&!u&&(0,eN.h)("div",{key:"ac61f16237ce731e0745ab72d0fc3f066252464a",class:"input-highlight"})),this.renderBottomContent())}get el(){return this}static get watchers(){return{debounce:["debounceChanged"],type:["onTypeChange"],value:["valueChanged"]}}static get style(){return{ios:".sc-ion-input-ios-h{--placeholder-color:initial;--placeholder-font-style:initial;--placeholder-font-weight:initial;--placeholder-opacity:var(--ion-placeholder-opacity, 0.6);--padding-top:0px;--padding-end:0px;--padding-bottom:0px;--padding-start:0px;--background:transparent;--color:initial;--border-style:solid;--highlight-color-focused:var(--ion-color-primary, #0054e9);--highlight-color-valid:var(--ion-color-success, #2dd55b);--highlight-color-invalid:var(--ion-color-danger, #c5000f);--highlight-color:var(--highlight-color-focused);display:block;position:relative;width:100%;min-height:44px;padding:0 !important;color:var(--color);font-family:var(--ion-font-family, inherit);z-index:2}ion-item[slot=start].sc-ion-input-ios-h,ion-item [slot=start].sc-ion-input-ios-h,ion-item[slot=end].sc-ion-input-ios-h,ion-item [slot=end].sc-ion-input-ios-h{width:auto}.ion-color.sc-ion-input-ios-h{--highlight-color-focused:var(--ion-color-base)}.input-label-placement-floating.sc-ion-input-ios-h,.input-label-placement-stacked.sc-ion-input-ios-h{min-height:56px}.native-input.sc-ion-input-ios{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;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:inline-block;position:relative;-ms-flex:1;flex:1;width:100%;max-width:100%;max-height:100%;border:0;outline:none;background:transparent;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-appearance:none;-moz-appearance:none;appearance:none;z-index:1}.native-input.sc-ion-input-ios::-webkit-input-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-input.sc-ion-input-ios::-moz-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-input.sc-ion-input-ios:-ms-input-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-input.sc-ion-input-ios::-ms-input-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-input.sc-ion-input-ios::placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-input.sc-ion-input-ios:-webkit-autofill{background-color:transparent}.native-input.sc-ion-input-ios:invalid{-webkit-box-shadow:none;box-shadow:none}.native-input.sc-ion-input-ios::-ms-clear{display:none}.cloned-input.sc-ion-input-ios{top:0;bottom:0;position:absolute;pointer-events:none}.cloned-input.sc-ion-input-ios{inset-inline-start:0}.cloned-input.sc-ion-input-ios:disabled{opacity:1}.input-clear-icon.sc-ion-input-ios{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:auto;margin-bottom:auto;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;background-position:center;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:30px;height:30px;border:0;outline:none;background-color:transparent;background-repeat:no-repeat;color:var(--ion-color-step-600, var(--ion-text-color-step-400, #666666));visibility:hidden;-webkit-appearance:none;-moz-appearance:none;appearance:none}.in-item-color.sc-ion-input-ios-h .input-clear-icon.sc-ion-input-ios{color:inherit}.input-clear-icon.sc-ion-input-ios:focus{opacity:0.5}.has-value.sc-ion-input-ios-h .input-clear-icon.sc-ion-input-ios{visibility:visible}.input-wrapper.sc-ion-input-ios{-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:stretch;align-items:stretch;height:inherit;min-height:inherit;-webkit-transition:background-color 15ms linear;transition:background-color 15ms linear;background:var(--background);line-height:normal}.native-wrapper.sc-ion-input-ios{display:-ms-flexbox;display:flex;position:relative;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center;width:100%}.ion-touched.ion-invalid.sc-ion-input-ios-h{--highlight-color:var(--highlight-color-invalid)}.ion-valid.sc-ion-input-ios-h{--highlight-color:var(--highlight-color-valid)}.input-bottom.sc-ion-input-ios{-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:5px;padding-bottom:0;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;border-top:var(--border-width) var(--border-style) var(--border-color);font-size:0.75rem}.has-focus.ion-valid.sc-ion-input-ios-h,.ion-touched.ion-invalid.sc-ion-input-ios-h{--border-color:var(--highlight-color)}.input-bottom.sc-ion-input-ios .error-text.sc-ion-input-ios{display:none;color:var(--highlight-color-invalid)}.input-bottom.sc-ion-input-ios .helper-text.sc-ion-input-ios{display:block;color:var(--ion-color-step-550, var(--ion-text-color-step-450, #737373))}.ion-touched.ion-invalid.sc-ion-input-ios-h .input-bottom.sc-ion-input-ios .error-text.sc-ion-input-ios{display:block}.ion-touched.ion-invalid.sc-ion-input-ios-h .input-bottom.sc-ion-input-ios .helper-text.sc-ion-input-ios{display:none}.input-bottom.sc-ion-input-ios .counter.sc-ion-input-ios{-webkit-margin-start:auto;margin-inline-start:auto;color:var(--ion-color-step-550, var(--ion-text-color-step-450, #737373));white-space:nowrap;-webkit-padding-start:16px;padding-inline-start:16px}.has-focus.sc-ion-input-ios-h input.sc-ion-input-ios{caret-color:var(--highlight-color)}.label-text-wrapper.sc-ion-input-ios{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.sc-ion-input-ios,.sc-ion-input-ios-s>[slot=label]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.label-text-wrapper-hidden.sc-ion-input-ios,.input-outline-notch-hidden.sc-ion-input-ios{display:none}.input-wrapper.sc-ion-input-ios input.sc-ion-input-ios{-webkit-transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1)}.input-label-placement-start.sc-ion-input-ios-h .input-wrapper.sc-ion-input-ios{-ms-flex-direction:row;flex-direction:row}.input-label-placement-start.sc-ion-input-ios-h .label-text-wrapper.sc-ion-input-ios{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:0;margin-bottom:0}.input-label-placement-end.sc-ion-input-ios-h .input-wrapper.sc-ion-input-ios{-ms-flex-direction:row-reverse;flex-direction:row-reverse}.input-label-placement-end.sc-ion-input-ios-h .label-text-wrapper.sc-ion-input-ios{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0;margin-top:0;margin-bottom:0}.input-label-placement-fixed.sc-ion-input-ios-h .label-text-wrapper.sc-ion-input-ios{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:0;margin-bottom:0}.input-label-placement-fixed.sc-ion-input-ios-h .label-text.sc-ion-input-ios{-ms-flex:0 0 100px;flex:0 0 100px;width:100px;min-width:100px;max-width:200px}.input-label-placement-stacked.sc-ion-input-ios-h .input-wrapper.sc-ion-input-ios,.input-label-placement-floating.sc-ion-input-ios-h .input-wrapper.sc-ion-input-ios{-ms-flex-direction:column;flex-direction:column;-ms-flex-align:start;align-items:start}.input-label-placement-stacked.sc-ion-input-ios-h .label-text-wrapper.sc-ion-input-ios,.input-label-placement-floating.sc-ion-input-ios-h .label-text-wrapper.sc-ion-input-ios{-webkit-transform-origin:left top;transform-origin:left top;max-width:100%;z-index:2}[dir=rtl].sc-ion-input-ios-h -no-combinator.input-label-placement-stacked.sc-ion-input-ios-h .label-text-wrapper.sc-ion-input-ios,[dir=rtl] .sc-ion-input-ios-h -no-combinator.input-label-placement-stacked.sc-ion-input-ios-h .label-text-wrapper.sc-ion-input-ios,[dir=rtl].input-label-placement-stacked.sc-ion-input-ios-h .label-text-wrapper.sc-ion-input-ios,[dir=rtl] .input-label-placement-stacked.sc-ion-input-ios-h .label-text-wrapper.sc-ion-input-ios,[dir=rtl].sc-ion-input-ios-h -no-combinator.input-label-placement-floating.sc-ion-input-ios-h .label-text-wrapper.sc-ion-input-ios,[dir=rtl] .sc-ion-input-ios-h -no-combinator.input-label-placement-floating.sc-ion-input-ios-h .label-text-wrapper.sc-ion-input-ios,[dir=rtl].input-label-placement-floating.sc-ion-input-ios-h .label-text-wrapper.sc-ion-input-ios,[dir=rtl] .input-label-placement-floating.sc-ion-input-ios-h .label-text-wrapper.sc-ion-input-ios{-webkit-transform-origin:right top;transform-origin:right top}@supports selector(:dir(rtl)){.input-label-placement-stacked.sc-ion-input-ios-h:dir(rtl) .label-text-wrapper.sc-ion-input-ios,.input-label-placement-floating.sc-ion-input-ios-h:dir(rtl) .label-text-wrapper.sc-ion-input-ios{-webkit-transform-origin:right top;transform-origin:right top}}.input-label-placement-stacked.sc-ion-input-ios-h input.sc-ion-input-ios,.input-label-placement-floating.sc-ion-input-ios-h input.sc-ion-input-ios{margin-left:0;margin-right:0;margin-top:1px;margin-bottom:0}.input-label-placement-floating.sc-ion-input-ios-h .label-text-wrapper.sc-ion-input-ios{-webkit-transform:translateY(100%) scale(1);transform:translateY(100%) scale(1)}.input-label-placement-floating.sc-ion-input-ios-h input.sc-ion-input-ios{opacity:0}.has-focus.input-label-placement-floating.sc-ion-input-ios-h input.sc-ion-input-ios,.has-value.input-label-placement-floating.sc-ion-input-ios-h input.sc-ion-input-ios{opacity:1}.label-floating.sc-ion-input-ios-h .label-text-wrapper.sc-ion-input-ios{-webkit-transform:translateY(50%) scale(0.75);transform:translateY(50%) scale(0.75);max-width:calc(100% / 0.75)}.sc-ion-input-ios-s>[slot=start]:last-of-type{-webkit-margin-end:16px;margin-inline-end:16px;-webkit-margin-start:0;margin-inline-start:0}.sc-ion-input-ios-s>[slot=end]:first-of-type{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0}.sc-ion-input-ios-h[disabled].sc-ion-input-ios-s>ion-input-password-toggle,.sc-ion-input-ios-h[disabled] .sc-ion-input-ios-s>ion-input-password-toggle,.sc-ion-input-ios-h[readonly].sc-ion-input-ios-s>ion-input-password-toggle,.sc-ion-input-ios-h[readonly] .sc-ion-input-ios-s>ion-input-password-toggle{display:none}.sc-ion-input-ios-h{--border-width:0.55px;--border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-250, var(--ion-background-color-step-250, #c8c7cc))));--highlight-height:0px;font-size:inherit}.input-clear-icon.sc-ion-input-ios ion-icon.sc-ion-input-ios{width:18px;height:18px}.input-disabled.sc-ion-input-ios-h{opacity:0.3}.sc-ion-input-ios-s>ion-button[slot=start].button-has-icon-only,.sc-ion-input-ios-s>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}",md:".sc-ion-input-md-h{--placeholder-color:initial;--placeholder-font-style:initial;--placeholder-font-weight:initial;--placeholder-opacity:var(--ion-placeholder-opacity, 0.6);--padding-top:0px;--padding-end:0px;--padding-bottom:0px;--padding-start:0px;--background:transparent;--color:initial;--border-style:solid;--highlight-color-focused:var(--ion-color-primary, #0054e9);--highlight-color-valid:var(--ion-color-success, #2dd55b);--highlight-color-invalid:var(--ion-color-danger, #c5000f);--highlight-color:var(--highlight-color-focused);display:block;position:relative;width:100%;min-height:44px;padding:0 !important;color:var(--color);font-family:var(--ion-font-family, inherit);z-index:2}ion-item[slot=start].sc-ion-input-md-h,ion-item [slot=start].sc-ion-input-md-h,ion-item[slot=end].sc-ion-input-md-h,ion-item [slot=end].sc-ion-input-md-h{width:auto}.ion-color.sc-ion-input-md-h{--highlight-color-focused:var(--ion-color-base)}.input-label-placement-floating.sc-ion-input-md-h,.input-label-placement-stacked.sc-ion-input-md-h{min-height:56px}.native-input.sc-ion-input-md{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;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:inline-block;position:relative;-ms-flex:1;flex:1;width:100%;max-width:100%;max-height:100%;border:0;outline:none;background:transparent;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-appearance:none;-moz-appearance:none;appearance:none;z-index:1}.native-input.sc-ion-input-md::-webkit-input-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-input.sc-ion-input-md::-moz-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-input.sc-ion-input-md:-ms-input-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-input.sc-ion-input-md::-ms-input-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-input.sc-ion-input-md::placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-input.sc-ion-input-md:-webkit-autofill{background-color:transparent}.native-input.sc-ion-input-md:invalid{-webkit-box-shadow:none;box-shadow:none}.native-input.sc-ion-input-md::-ms-clear{display:none}.cloned-input.sc-ion-input-md{top:0;bottom:0;position:absolute;pointer-events:none}.cloned-input.sc-ion-input-md{inset-inline-start:0}.cloned-input.sc-ion-input-md:disabled{opacity:1}.input-clear-icon.sc-ion-input-md{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:auto;margin-bottom:auto;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;background-position:center;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:30px;height:30px;border:0;outline:none;background-color:transparent;background-repeat:no-repeat;color:var(--ion-color-step-600, var(--ion-text-color-step-400, #666666));visibility:hidden;-webkit-appearance:none;-moz-appearance:none;appearance:none}.in-item-color.sc-ion-input-md-h .input-clear-icon.sc-ion-input-md{color:inherit}.input-clear-icon.sc-ion-input-md:focus{opacity:0.5}.has-value.sc-ion-input-md-h .input-clear-icon.sc-ion-input-md{visibility:visible}.input-wrapper.sc-ion-input-md{-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:stretch;align-items:stretch;height:inherit;min-height:inherit;-webkit-transition:background-color 15ms linear;transition:background-color 15ms linear;background:var(--background);line-height:normal}.native-wrapper.sc-ion-input-md{display:-ms-flexbox;display:flex;position:relative;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center;width:100%}.ion-touched.ion-invalid.sc-ion-input-md-h{--highlight-color:var(--highlight-color-invalid)}.ion-valid.sc-ion-input-md-h{--highlight-color:var(--highlight-color-valid)}.input-bottom.sc-ion-input-md{-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:5px;padding-bottom:0;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;border-top:var(--border-width) var(--border-style) var(--border-color);font-size:0.75rem}.has-focus.ion-valid.sc-ion-input-md-h,.ion-touched.ion-invalid.sc-ion-input-md-h{--border-color:var(--highlight-color)}.input-bottom.sc-ion-input-md .error-text.sc-ion-input-md{display:none;color:var(--highlight-color-invalid)}.input-bottom.sc-ion-input-md .helper-text.sc-ion-input-md{display:block;color:var(--ion-color-step-550, var(--ion-text-color-step-450, #737373))}.ion-touched.ion-invalid.sc-ion-input-md-h .input-bottom.sc-ion-input-md .error-text.sc-ion-input-md{display:block}.ion-touched.ion-invalid.sc-ion-input-md-h .input-bottom.sc-ion-input-md .helper-text.sc-ion-input-md{display:none}.input-bottom.sc-ion-input-md .counter.sc-ion-input-md{-webkit-margin-start:auto;margin-inline-start:auto;color:var(--ion-color-step-550, var(--ion-text-color-step-450, #737373));white-space:nowrap;-webkit-padding-start:16px;padding-inline-start:16px}.has-focus.sc-ion-input-md-h input.sc-ion-input-md{caret-color:var(--highlight-color)}.label-text-wrapper.sc-ion-input-md{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.sc-ion-input-md,.sc-ion-input-md-s>[slot=label]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.label-text-wrapper-hidden.sc-ion-input-md,.input-outline-notch-hidden.sc-ion-input-md{display:none}.input-wrapper.sc-ion-input-md input.sc-ion-input-md{-webkit-transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1)}.input-label-placement-start.sc-ion-input-md-h .input-wrapper.sc-ion-input-md{-ms-flex-direction:row;flex-direction:row}.input-label-placement-start.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:0;margin-bottom:0}.input-label-placement-end.sc-ion-input-md-h .input-wrapper.sc-ion-input-md{-ms-flex-direction:row-reverse;flex-direction:row-reverse}.input-label-placement-end.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0;margin-top:0;margin-bottom:0}.input-label-placement-fixed.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:0;margin-bottom:0}.input-label-placement-fixed.sc-ion-input-md-h .label-text.sc-ion-input-md{-ms-flex:0 0 100px;flex:0 0 100px;width:100px;min-width:100px;max-width:200px}.input-label-placement-stacked.sc-ion-input-md-h .input-wrapper.sc-ion-input-md,.input-label-placement-floating.sc-ion-input-md-h .input-wrapper.sc-ion-input-md{-ms-flex-direction:column;flex-direction:column;-ms-flex-align:start;align-items:start}.input-label-placement-stacked.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md,.input-label-placement-floating.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md{-webkit-transform-origin:left top;transform-origin:left top;max-width:100%;z-index:2}[dir=rtl].sc-ion-input-md-h -no-combinator.input-label-placement-stacked.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md,[dir=rtl] .sc-ion-input-md-h -no-combinator.input-label-placement-stacked.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md,[dir=rtl].input-label-placement-stacked.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md,[dir=rtl] .input-label-placement-stacked.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md,[dir=rtl].sc-ion-input-md-h -no-combinator.input-label-placement-floating.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md,[dir=rtl] .sc-ion-input-md-h -no-combinator.input-label-placement-floating.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md,[dir=rtl].input-label-placement-floating.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md,[dir=rtl] .input-label-placement-floating.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md{-webkit-transform-origin:right top;transform-origin:right top}@supports selector(:dir(rtl)){.input-label-placement-stacked.sc-ion-input-md-h:dir(rtl) .label-text-wrapper.sc-ion-input-md,.input-label-placement-floating.sc-ion-input-md-h:dir(rtl) .label-text-wrapper.sc-ion-input-md{-webkit-transform-origin:right top;transform-origin:right top}}.input-label-placement-stacked.sc-ion-input-md-h input.sc-ion-input-md,.input-label-placement-floating.sc-ion-input-md-h input.sc-ion-input-md{margin-left:0;margin-right:0;margin-top:1px;margin-bottom:0}.input-label-placement-floating.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md{-webkit-transform:translateY(100%) scale(1);transform:translateY(100%) scale(1)}.input-label-placement-floating.sc-ion-input-md-h input.sc-ion-input-md{opacity:0}.has-focus.input-label-placement-floating.sc-ion-input-md-h input.sc-ion-input-md,.has-value.input-label-placement-floating.sc-ion-input-md-h input.sc-ion-input-md{opacity:1}.label-floating.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md{-webkit-transform:translateY(50%) scale(0.75);transform:translateY(50%) scale(0.75);max-width:calc(100% / 0.75)}.sc-ion-input-md-s>[slot=start]:last-of-type{-webkit-margin-end:16px;margin-inline-end:16px;-webkit-margin-start:0;margin-inline-start:0}.sc-ion-input-md-s>[slot=end]:first-of-type{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0}.sc-ion-input-md-h[disabled].sc-ion-input-md-s>ion-input-password-toggle,.sc-ion-input-md-h[disabled] .sc-ion-input-md-s>ion-input-password-toggle,.sc-ion-input-md-h[readonly].sc-ion-input-md-s>ion-input-password-toggle,.sc-ion-input-md-h[readonly] .sc-ion-input-md-s>ion-input-password-toggle{display:none}.input-fill-solid.sc-ion-input-md-h{--background:var(--ion-color-step-50, var(--ion-background-color-step-50, #f2f2f2));--border-color:var(--ion-color-step-500, var(--ion-background-color-step-500, gray));--border-radius:4px;--padding-start:16px;--padding-end:16px;min-height:56px}.input-fill-solid.sc-ion-input-md-h .input-wrapper.sc-ion-input-md{border-bottom:var(--border-width) var(--border-style) var(--border-color)}.has-focus.input-fill-solid.ion-valid.sc-ion-input-md-h,.input-fill-solid.ion-touched.ion-invalid.sc-ion-input-md-h{--border-color:var(--highlight-color)}.input-fill-solid.sc-ion-input-md-h .input-bottom.sc-ion-input-md{border-top:none}@media (any-hover: hover){.input-fill-solid.sc-ion-input-md-h:hover{--background:var(--ion-color-step-100, var(--ion-background-color-step-100, #e6e6e6));--border-color:var(--ion-color-step-750, var(--ion-background-color-step-750, #404040))}}.input-fill-solid.has-focus.sc-ion-input-md-h{--background:var(--ion-color-step-150, var(--ion-background-color-step-150, #d9d9d9));--border-color:var(--ion-color-step-750, var(--ion-background-color-step-750, #404040))}.input-fill-solid.sc-ion-input-md-h .input-wrapper.sc-ion-input-md{border-start-start-radius:var(--border-radius);border-start-end-radius:var(--border-radius);border-end-end-radius:0px;border-end-start-radius:0px}.label-floating.input-fill-solid.input-label-placement-floating.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md{max-width:calc(100% / 0.75)}.input-fill-outline.sc-ion-input-md-h{--border-color:var(--ion-color-step-300, var(--ion-background-color-step-300, #b3b3b3));--border-radius:4px;--padding-start:16px;--padding-end:16px;min-height:56px}.input-fill-outline.input-shape-round.sc-ion-input-md-h{--border-radius:28px;--padding-start:32px;--padding-end:32px}.has-focus.input-fill-outline.ion-valid.sc-ion-input-md-h,.input-fill-outline.ion-touched.ion-invalid.sc-ion-input-md-h{--border-color:var(--highlight-color)}@media (any-hover: hover){.input-fill-outline.sc-ion-input-md-h:hover{--border-color:var(--ion-color-step-750, var(--ion-background-color-step-750, #404040))}}.input-fill-outline.has-focus.sc-ion-input-md-h{--border-width:var(--highlight-height);--border-color:var(--highlight-color)}.input-fill-outline.sc-ion-input-md-h .input-bottom.sc-ion-input-md{border-top:none}.input-fill-outline.sc-ion-input-md-h .input-wrapper.sc-ion-input-md{border-bottom:none}.input-fill-outline.input-label-placement-stacked.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md,.input-fill-outline.input-label-placement-floating.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md{-webkit-transform-origin:left top;transform-origin:left top;position:absolute;max-width:calc(100% - var(--padding-start) - var(--padding-end))}[dir=rtl].sc-ion-input-md-h -no-combinator.input-fill-outline.input-label-placement-stacked.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md,[dir=rtl] .sc-ion-input-md-h -no-combinator.input-fill-outline.input-label-placement-stacked.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md,[dir=rtl].input-fill-outline.input-label-placement-stacked.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md,[dir=rtl] .input-fill-outline.input-label-placement-stacked.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md,[dir=rtl].sc-ion-input-md-h -no-combinator.input-fill-outline.input-label-placement-floating.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md,[dir=rtl] .sc-ion-input-md-h -no-combinator.input-fill-outline.input-label-placement-floating.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md,[dir=rtl].input-fill-outline.input-label-placement-floating.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md,[dir=rtl] .input-fill-outline.input-label-placement-floating.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md{-webkit-transform-origin:right top;transform-origin:right top}@supports selector(:dir(rtl)){.input-fill-outline.input-label-placement-stacked.sc-ion-input-md-h:dir(rtl) .label-text-wrapper.sc-ion-input-md,.input-fill-outline.input-label-placement-floating.sc-ion-input-md-h:dir(rtl) .label-text-wrapper.sc-ion-input-md{-webkit-transform-origin:right top;transform-origin:right top}}.input-fill-outline.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md{position:relative}.label-floating.input-fill-outline.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md{-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)}.input-fill-outline.input-label-placement-stacked.sc-ion-input-md-h input.sc-ion-input-md,.input-fill-outline.input-label-placement-floating.sc-ion-input-md-h input.sc-ion-input-md{margin-left:0;margin-right:0;margin-top:6px;margin-bottom:6px}.input-fill-outline.sc-ion-input-md-h .input-outline-container.sc-ion-input-md{left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:absolute;width:100%;height:100%}.input-fill-outline.sc-ion-input-md-h .input-outline-start.sc-ion-input-md,.input-fill-outline.sc-ion-input-md-h .input-outline-end.sc-ion-input-md{pointer-events:none}.input-fill-outline.sc-ion-input-md-h .input-outline-start.sc-ion-input-md,.input-fill-outline.sc-ion-input-md-h .input-outline-notch.sc-ion-input-md,.input-fill-outline.sc-ion-input-md-h .input-outline-end.sc-ion-input-md{border-top:var(--border-width) var(--border-style) var(--border-color);border-bottom:var(--border-width) var(--border-style) var(--border-color)}.input-fill-outline.sc-ion-input-md-h .input-outline-notch.sc-ion-input-md{max-width:calc(100% - var(--padding-start) - var(--padding-end))}.input-fill-outline.sc-ion-input-md-h .notch-spacer.sc-ion-input-md{-webkit-padding-end:8px;padding-inline-end:8px;font-size:calc(1em * 0.75);opacity:0;pointer-events:none;-webkit-box-sizing:content-box;box-sizing:content-box}.input-fill-outline.sc-ion-input-md-h .input-outline-start.sc-ion-input-md{border-start-start-radius:var(--border-radius);border-start-end-radius:0px;border-end-end-radius:0px;border-end-start-radius:var(--border-radius);-webkit-border-start:var(--border-width) var(--border-style) var(--border-color);border-inline-start:var(--border-width) var(--border-style) var(--border-color);width:calc(var(--padding-start) - 4px)}.input-fill-outline.sc-ion-input-md-h .input-outline-end.sc-ion-input-md{-webkit-border-end:var(--border-width) var(--border-style) var(--border-color);border-inline-end:var(--border-width) var(--border-style) var(--border-color);border-start-start-radius:0px;border-start-end-radius:var(--border-radius);border-end-end-radius:var(--border-radius);border-end-start-radius:0px;-ms-flex-positive:1;flex-grow:1}.label-floating.input-fill-outline.sc-ion-input-md-h .input-outline-notch.sc-ion-input-md{border-top:none}.sc-ion-input-md-h{--border-width:1px;--border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-150, var(--ion-background-color-step-150, rgba(0, 0, 0, 0.13)))));--highlight-height:2px;font-size:inherit}.input-clear-icon.sc-ion-input-md ion-icon.sc-ion-input-md{width:22px;height:22px}.input-disabled.sc-ion-input-md-h{opacity:0.38}.has-focus.ion-valid.sc-ion-input-md-h,.ion-touched.ion-invalid.sc-ion-input-md-h{--border-color:var(--highlight-color)}.input-bottom.sc-ion-input-md .counter.sc-ion-input-md{letter-spacing:0.0333333333em}.input-label-placement-floating.has-focus.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md,.input-label-placement-stacked.has-focus.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md{color:var(--highlight-color)}.has-focus.input-label-placement-floating.ion-valid.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md,.input-label-placement-floating.ion-touched.ion-invalid.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md,.has-focus.input-label-placement-stacked.ion-valid.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md,.input-label-placement-stacked.ion-touched.ion-invalid.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md{color:var(--highlight-color)}.input-highlight.sc-ion-input-md{bottom:-1px;position:absolute;width:100%;height:var(--highlight-height);-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)}.input-highlight.sc-ion-input-md{inset-inline-start:0}.has-focus.sc-ion-input-md-h .input-highlight.sc-ion-input-md{-webkit-transform:scale(1);transform:scale(1)}.in-item.sc-ion-input-md-h .input-highlight.sc-ion-input-md{bottom:0}.in-item.sc-ion-input-md-h .input-highlight.sc-ion-input-md{inset-inline-start:0}.input-shape-round.sc-ion-input-md-h{--border-radius:16px}.sc-ion-input-md-s>ion-button[slot=start].button-has-icon-only,.sc-ion-input-md-s>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}"}}},[38,"ion-input",{color:[513],autocapitalize:[1],autocomplete:[1],autocorrect:[1],autofocus:[4],clearInput:[4,"clear-input"],clearInputIcon:[1,"clear-input-icon"],clearOnEdit:[4,"clear-on-edit"],counter:[4],counterFormatter:[16],debounce:[2],disabled:[516],enterkeyhint:[1],errorText:[1,"error-text"],fill:[1],inputmode:[1],helperText:[1,"helper-text"],label:[1],labelPlacement:[1,"label-placement"],max:[8],maxlength:[2],min:[8],minlength:[2],multiple:[4],name:[1],pattern:[1],placeholder:[1],readonly:[516],required:[4],shape:[1],spellcheck:[4],step:[1],type:[1],value:[1032],hasFocus:[32],setFocus:[64],getInputElement:[64]},void 0,{debounce:["debounceChanged"],type:["onTypeChange"],value:["valueChanged"]}]),rk=0,r_=(0,eN.GH)(class extends eN.mv{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.togglePasswordVisibility=()=>{let{inputElRef:e}=this;e&&(e.type="text"===e.type?"password":"text")},this.color=void 0,this.showIcon=void 0,this.hideIcon=void 0,this.type="password"}onTypeChange(e){if("text"!==e&&"password"!==e){(0,k.p)(`ion-input-password-toggle only supports inputs of type "text" or "password". Input of type "${e}" is not compatible.`,this.el);return}}connectedCallback(){let{el:e}=this,t=this.inputElRef=e.closest("ion-input");if(!t){(0,k.p)("No ancestor ion-input found for ion-input-password-toggle. This component must be slotted inside of an ion-input.",e);return}this.type=t.type}disconnectedCallback(){this.inputElRef=null}render(){var e,t;let{color:n,type:i}=this,r=(0,p.b)(this),o=null!==(e=this.showIcon)&&void 0!==e?e:"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><circle cx='256' cy='256' r='64'/><path d='M490.84 238.6c-26.46-40.92-60.79-75.68-99.27-100.53C349 110.55 302 96 255.66 96c-42.52 0-84.33 12.15-124.27 36.11-40.73 24.43-77.63 60.12-109.68 106.07a31.92 31.92 0 00-.64 35.54c26.41 41.33 60.4 76.14 98.28 100.65C162 402 207.9 416 255.66 416c46.71 0 93.81-14.43 136.2-41.72 38.46-24.77 72.72-59.66 99.08-100.92a32.2 32.2 0 00-.1-34.76zM256 352a96 96 0 1196-96 96.11 96.11 0 01-96 96z'/></svg>",a=null!==(t=this.hideIcon)&&void 0!==t?t:"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path d='M432 448a15.92 15.92 0 01-11.31-4.69l-352-352a16 16 0 0122.62-22.62l352 352A16 16 0 01432 448zM248 315.85l-51.79-51.79a2 2 0 00-3.39 1.69 64.11 64.11 0 0053.49 53.49 2 2 0 001.69-3.39zM264 196.15L315.87 248a2 2 0 003.4-1.69 64.13 64.13 0 00-53.55-53.55 2 2 0 00-1.72 3.39z'/><path d='M491 273.36a32.2 32.2 0 00-.1-34.76c-26.46-40.92-60.79-75.68-99.27-100.53C349 110.55 302 96 255.68 96a226.54 226.54 0 00-71.82 11.79 4 4 0 00-1.56 6.63l47.24 47.24a4 4 0 003.82 1.05 96 96 0 01116 116 4 4 0 001.05 3.81l67.95 68a4 4 0 005.4.24 343.81 343.81 0 0067.24-77.4zM256 352a96 96 0 01-93.3-118.63 4 4 0 00-1.05-3.81l-66.84-66.87a4 4 0 00-5.41-.23c-24.39 20.81-47 46.13-67.67 75.72a31.92 31.92 0 00-.64 35.54c26.41 41.33 60.39 76.14 98.28 100.65C162.06 402 207.92 416 255.68 416a238.22 238.22 0 0072.64-11.55 4 4 0 001.61-6.64l-47.47-47.46a4 4 0 00-3.81-1.05A96 96 0 01256 352z'/></svg>",s="text"===i;return(0,eN.h)(eN.AA,{key:"ed1c29726ce0c91548f0e2ada61e3f8b5c813d2d",class:eP(n,{[r]:!0})},(0,eN.h)("ion-button",{key:"9698eccdaedb86cf12d20acc53660371b3af3c55",mode:r,color:n,fill:"clear",shape:"round","aria-checked":s?"true":"false","aria-label":"show password",role:"switch",type:"button",onPointerDown:e=>{e.preventDefault()},onClick:this.togglePasswordVisibility},(0,eN.h)("ion-icon",{key:"1f2119c30b56c800d9af44e6499445a0ebb466cf",slot:"icon-only","aria-hidden":"true",icon:s?a:o})))}get el(){return this}static get watchers(){return{type:["onTypeChange"]}}static get style(){return{ios:"",md:""}}},[33,"ion-input-password-toggle",{color:[513],showIcon:[1,"show-icon"],hideIcon:[1,"hide-icon"],type:[1025]},void 0,{type:["onTypeChange"]}]),rE=(0,eN.GH)(class extends eN.mv{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.color=void 0,this.sticky=!1}render(){let e=(0,p.b)(this);return(0,eN.h)(eN.AA,{key:"60fda1dab7dbc0038ec7ff68a661896430f7d5c5",class:eP(this.color,{[e]:!0,"item-divider-sticky":this.sticky,item:!0})},(0,eN.h)("slot",{key:"6ce072dfc2adfa699a2c34ffe25ed221c74d9eea",name:"start"}),(0,eN.h)("div",{key:"9a441be204ee2f0b567432722407c75e3cbbe942",class:"item-divider-inner"},(0,eN.h)("div",{key:"fd6f2969b345dba51400a290473e594d2d019dc5",class:"item-divider-wrapper"},(0,eN.h)("slot",{key:"ebf5601b21c4cf199c01bf142865b8da0c1ba4a6"})),(0,eN.h)("slot",{key:"249af8f30113f2c986976d518126661f65531121",name:"end"})))}get el(){return this}static get style(){return{ios:":host{--padding-top:0px;--padding-end:0px;--padding-bottom:0px;--padding-start:0px;--inner-padding-top:0px;--inner-padding-end:0px;--inner-padding-bottom:0px;--inner-padding-start:0px;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);padding-right:var(--padding-end);padding-left:calc(var(--padding-start) + var(--ion-safe-area-left, 0px));display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;width:100%;background:var(--background);color:var(--color);font-family:var(--ion-font-family, inherit);overflow:hidden;z-index:100;-webkit-box-sizing:border-box;box-sizing:border-box}:host-context([dir=rtl]){padding-right:calc(var(--padding-start) + var(--ion-safe-area-right, 0px));padding-left:var(--padding-end)}@supports selector(:dir(rtl)){:host(:dir(rtl)){padding-right:calc(var(--padding-start) + var(--ion-safe-area-right, 0px));padding-left:var(--padding-end)}}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(.item-divider-sticky){position:-webkit-sticky;position:sticky;top:0}.item-divider-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;-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:0;overflow:hidden}:host-context([dir=rtl]) .item-divider-inner{padding-right:var(--inner-padding-start);padding-left:calc(var(--ion-safe-area-left, 0px) + var(--inner-padding-end))}[dir=rtl] .item-divider-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-divider-inner:dir(rtl){padding-right:var(--inner-padding-start);padding-left:calc(var(--ion-safe-area-left, 0px) + var(--inner-padding-end))}}.item-divider-wrapper{display:-ms-flexbox;display:flex;-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;text-overflow:ellipsis;overflow:hidden}:host{--background:var(--ion-color-step-100, var(--ion-background-color-step-100, #e6e6e6));--color:var(--ion-color-step-850, var(--ion-text-color-step-150, #262626));--padding-start:16px;--inner-padding-end:8px;border-radius:0;position:relative;min-height:28px;font-size:1.0625rem;font-weight:600}:host([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(h1){margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px}::slotted(h2){margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px}::slotted(h3),::slotted(h4),::slotted(h5),::slotted(h6){margin-left:0;margin-right:0;margin-top:0;margin-bottom:3px}::slotted(p){margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;color:var(--ion-text-color-step-550, #a3a3a3);font-size:0.875rem;line-height:normal;text-overflow:inherit;overflow:inherit}::slotted(h2:last-child) ::slotted(h3:last-child),::slotted(h4:last-child),::slotted(h5:last-child),::slotted(h6:last-child),::slotted(p:last-child){margin-bottom:0}",md:":host{--padding-top:0px;--padding-end:0px;--padding-bottom:0px;--padding-start:0px;--inner-padding-top:0px;--inner-padding-end:0px;--inner-padding-bottom:0px;--inner-padding-start:0px;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);padding-right:var(--padding-end);padding-left:calc(var(--padding-start) + var(--ion-safe-area-left, 0px));display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;width:100%;background:var(--background);color:var(--color);font-family:var(--ion-font-family, inherit);overflow:hidden;z-index:100;-webkit-box-sizing:border-box;box-sizing:border-box}:host-context([dir=rtl]){padding-right:calc(var(--padding-start) + var(--ion-safe-area-right, 0px));padding-left:var(--padding-end)}@supports selector(:dir(rtl)){:host(:dir(rtl)){padding-right:calc(var(--padding-start) + var(--ion-safe-area-right, 0px));padding-left:var(--padding-end)}}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(.item-divider-sticky){position:-webkit-sticky;position:sticky;top:0}.item-divider-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;-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:0;overflow:hidden}:host-context([dir=rtl]) .item-divider-inner{padding-right:var(--inner-padding-start);padding-left:calc(var(--ion-safe-area-left, 0px) + var(--inner-padding-end))}[dir=rtl] .item-divider-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-divider-inner:dir(rtl){padding-right:var(--inner-padding-start);padding-left:calc(var(--ion-safe-area-left, 0px) + var(--inner-padding-end))}}.item-divider-wrapper{display:-ms-flexbox;display:flex;-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;text-overflow:ellipsis;overflow:hidden}:host{--background:var(--ion-background-color, #fff);--color:var(--ion-color-step-400, var(--ion-text-color-step-600, #999999));--padding-start:16px;--inner-padding-end:16px;min-height:30px;border-bottom:1px solid var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-150, var(--ion-background-color-step-150, rgba(0, 0, 0, 0.13)))));font-size:0.875rem}::slotted([slot=start]){-webkit-margin-end:16px;margin-inline-end:16px}::slotted([slot=end]){-webkit-margin-start:16px;margin-inline-start:16px}::slotted(ion-label){margin-left:0;margin-right:0;margin-top:13px;margin-bottom:10px}::slotted(ion-icon){color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.54);font-size:1.7142857143em}:host(.ion-color) ::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}::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]){padding-left:0;padding-right:0;padding-top:18px;padding-bottom:10px}::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(h1){margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px}::slotted(h2){margin-left:0;margin-right:0;margin-top:2px;margin-bottom:2px}::slotted(h3,h4,h5,h6){margin-left:0;margin-right:0;margin-top:2px;margin-bottom:2px}::slotted(p){margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;color:var(--ion-color-step-600, var(--ion-text-color-step-400, #666666));font-size:0.875rem;line-height:normal;text-overflow:inherit;overflow:inherit}"}}},[33,"ion-item-divider",{color:[513],sticky:[4]}]),rS=(0,eN.GH)(class extends eN.mv{constructor(){super(),this.__registerHost()}render(){let e=(0,p.b)(this);return(0,eN.h)(eN.AA,{key:"24ff047b7c45f963f0dad072c65d38a230c2bc97",role:"group",class:{[e]:!0,[`item-group-${e}`]:!0,item:!0}})}static get style(){return{ios:"ion-item-group{display:block}",md:"ion-item-group{display:block}"}}},[32,"ion-item-group"]),rC=(0,eN.GH)(class extends eN.mv{constructor(){super(),this.__registerHost(),this.ionSwipe=(0,eN.yM)(this,"ionSwipe",7),this.side="end"}async fireSwipeEvent(){this.ionSwipe.emit({side:this.side})}render(){let e=(0,p.b)(this),t=(0,f.m)(this.side);return(0,eN.h)(eN.AA,{key:"e28cd6a236323b5cc203c9b96782aa81024da924",class:{[e]:!0,[`item-options-${e}`]:!0,"item-options-start":!t,"item-options-end":t}})}get el(){return this}static get style(){return{ios:"ion-item-options{top:0;right:0;-ms-flex-pack:end;justify-content:flex-end;display:none;position:absolute;height:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:1}:host-context([dir=rtl]) ion-item-options{-ms-flex-pack:start;justify-content:flex-start}:host-context([dir=rtl]) ion-item-options:not(.item-options-end){right:auto;left:0;-ms-flex-pack:end;justify-content:flex-end}[dir=rtl] ion-item-options{-ms-flex-pack:start;justify-content:flex-start}[dir=rtl] ion-item-options:not(.item-options-end){right:auto;left:0;-ms-flex-pack:end;justify-content:flex-end}@supports selector(:dir(rtl)){ion-item-options:dir(rtl){-ms-flex-pack:start;justify-content:flex-start}ion-item-options:dir(rtl):not(.item-options-end){right:auto;left:0;-ms-flex-pack:end;justify-content:flex-end}}.item-options-start{right:auto;left:0;-ms-flex-pack:start;justify-content:flex-start}:host-context([dir=rtl]) .item-options-start{-ms-flex-pack:end;justify-content:flex-end}[dir=rtl] .item-options-start{-ms-flex-pack:end;justify-content:flex-end}@supports selector(:dir(rtl)){.item-options-start:dir(rtl){-ms-flex-pack:end;justify-content:flex-end}}[dir=ltr] .item-options-start ion-item-option:first-child,[dir=rtl] .item-options-start ion-item-option:last-child{padding-left:var(--ion-safe-area-left)}[dir=ltr] .item-options-end ion-item-option:last-child,[dir=rtl] .item-options-end ion-item-option:first-child{padding-right:var(--ion-safe-area-right)}:host-context([dir=rtl]) .item-sliding-active-slide.item-sliding-active-options-start ion-item-options:not(.item-options-end){width:100%;visibility:visible}[dir=rtl] .item-sliding-active-slide.item-sliding-active-options-start ion-item-options:not(.item-options-end){width:100%;visibility:visible}@supports selector(:dir(rtl)){.item-sliding-active-slide:dir(rtl).item-sliding-active-options-start ion-item-options:not(.item-options-end){width:100%;visibility:visible}}.item-sliding-active-slide ion-item-options{display:-ms-flexbox;display:flex;visibility:hidden}.item-sliding-active-slide.item-sliding-active-options-start .item-options-start,.item-sliding-active-slide.item-sliding-active-options-end ion-item-options:not(.item-options-start){width:100%;visibility:visible}.item-options-ios{border-bottom-width:0;border-bottom-style:solid;border-bottom-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-250, var(--ion-background-color-step-250, #c8c7cc))))}.item-options-ios.item-options-end{border-bottom-width:0.55px}.list-ios-lines-none .item-options-ios{border-bottom-width:0}.list-ios-lines-full .item-options-ios,.list-ios-lines-inset .item-options-ios.item-options-end{border-bottom-width:0.55px}",md:"ion-item-options{top:0;right:0;-ms-flex-pack:end;justify-content:flex-end;display:none;position:absolute;height:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:1}:host-context([dir=rtl]) ion-item-options{-ms-flex-pack:start;justify-content:flex-start}:host-context([dir=rtl]) ion-item-options:not(.item-options-end){right:auto;left:0;-ms-flex-pack:end;justify-content:flex-end}[dir=rtl] ion-item-options{-ms-flex-pack:start;justify-content:flex-start}[dir=rtl] ion-item-options:not(.item-options-end){right:auto;left:0;-ms-flex-pack:end;justify-content:flex-end}@supports selector(:dir(rtl)){ion-item-options:dir(rtl){-ms-flex-pack:start;justify-content:flex-start}ion-item-options:dir(rtl):not(.item-options-end){right:auto;left:0;-ms-flex-pack:end;justify-content:flex-end}}.item-options-start{right:auto;left:0;-ms-flex-pack:start;justify-content:flex-start}:host-context([dir=rtl]) .item-options-start{-ms-flex-pack:end;justify-content:flex-end}[dir=rtl] .item-options-start{-ms-flex-pack:end;justify-content:flex-end}@supports selector(:dir(rtl)){.item-options-start:dir(rtl){-ms-flex-pack:end;justify-content:flex-end}}[dir=ltr] .item-options-start ion-item-option:first-child,[dir=rtl] .item-options-start ion-item-option:last-child{padding-left:var(--ion-safe-area-left)}[dir=ltr] .item-options-end ion-item-option:last-child,[dir=rtl] .item-options-end ion-item-option:first-child{padding-right:var(--ion-safe-area-right)}:host-context([dir=rtl]) .item-sliding-active-slide.item-sliding-active-options-start ion-item-options:not(.item-options-end){width:100%;visibility:visible}[dir=rtl] .item-sliding-active-slide.item-sliding-active-options-start ion-item-options:not(.item-options-end){width:100%;visibility:visible}@supports selector(:dir(rtl)){.item-sliding-active-slide:dir(rtl).item-sliding-active-options-start ion-item-options:not(.item-options-end){width:100%;visibility:visible}}.item-sliding-active-slide ion-item-options{display:-ms-flexbox;display:flex;visibility:hidden}.item-sliding-active-slide.item-sliding-active-options-start .item-options-start,.item-sliding-active-slide.item-sliding-active-options-end ion-item-options:not(.item-options-start){width:100%;visibility:visible}.item-options-md{border-bottom-width:0;border-bottom-style:solid;border-bottom-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-150, var(--ion-background-color-step-150, rgba(0, 0, 0, 0.13)))))}.list-md-lines-none .item-options-md{border-bottom-width:0}.list-md-lines-full .item-options-md,.list-md-lines-inset .item-options-md.item-options-end{border-bottom-width:1px}"}}},[32,"ion-item-options",{side:[1],fireSwipeEvent:[64]}]),rP=(e,t,n)=>{if("undefined"==typeof MutationObserver)return;let i=new MutationObserver(e=>{n(rT(e,t))});return i.observe(e,{childList:!0,subtree:!0}),i},rT=(e,t)=>{let n;return e.forEach(e=>{for(let i=0;i<e.addedNodes.length;i++)n=rO(e.addedNodes[i],t)||n}),n},rO=(e,t)=>{if(1!==e.nodeType)return;let n=e.tagName===t.toUpperCase()?[e]:Array.from(e.querySelectorAll(t));return n.find(t=>t.value===e.value)},rA=(0,eN.GH)(class extends eN.mv{constructor(){super(),this.__registerHost(),this.ionDrag=(0,eN.yM)(this,"ionDrag",7),this.item=null,this.openAmount=0,this.initialOpenAmount=0,this.optsWidthRightSide=0,this.optsWidthLeftSide=0,this.sides=0,this.optsDirty=!0,this.contentEl=null,this.initialContentScrollY=!0,this.state=2,this.disabled=!1}disabledChanged(){this.gesture&&this.gesture.enable(!this.disabled)}async connectedCallback(){let{el:e}=this;this.item=e.querySelector("ion-item"),this.contentEl=(0,i0.a)(e),this.mutationObserver=rP(e,"ion-item-option",async()=>{await this.updateOptions()}),await this.updateOptions(),this.gesture=(await Promise.resolve().then(n.bind(n,19341))).createGesture({el:e,gestureName:"item-swipe",gesturePriority:100,threshold:5,canStart:e=>this.canStart(e),onStart:()=>this.onStart(),onMove:e=>this.onMove(e),onEnd:e=>this.onEnd(e)}),this.disabledChanged()}disconnectedCallback(){this.gesture&&(this.gesture.destroy(),this.gesture=void 0),this.item=null,this.leftOptions=this.rightOptions=void 0,o===this.el&&(o=void 0),this.mutationObserver&&(this.mutationObserver.disconnect(),this.mutationObserver=void 0)}getOpenAmount(){return Promise.resolve(this.openAmount)}getSlidingRatio(){return Promise.resolve(this.getSlidingRatioSync())}async open(e){var t;let n=this.item=null!==(t=this.item)&&void 0!==t?t:this.el.querySelector("ion-item");if(null===n)return;let i=this.getOptions(e);if(!i)return;void 0===e&&(e=i===this.leftOptions?"start":"end"),e=(0,f.m)(e)?"end":"start";let r=this.openAmount<0,a=this.openAmount>0;r&&i===this.leftOptions||a&&i===this.rightOptions||(this.closeOpened(),this.state=4,requestAnimationFrame(()=>{this.calculateOptsWidth();let t="end"===e?this.optsWidthRightSide:-this.optsWidthLeftSide;o=this.el,this.setOpenAmount(t,!1),this.state="end"===e?8:16}))}async close(){this.setOpenAmount(0,!0)}async closeOpened(){return void 0!==o&&(o.close(),o=void 0,!0)}getOptions(e){return void 0===e?this.leftOptions||this.rightOptions:"start"===e?this.leftOptions:this.rightOptions}async updateOptions(){let e=this.el.querySelectorAll("ion-item-options"),t=0;this.leftOptions=this.rightOptions=void 0;for(let n=0;n<e.length;n++){let i=e.item(n),r=void 0!==i.componentOnReady?await i.componentOnReady():i,o=(0,f.m)(r.side)?"end":"start";"start"===o?(this.leftOptions=r,t|=1):(this.rightOptions=r,t|=2)}this.optsDirty=!0,this.sides=t}canStart(e){let t="rtl"===document.dir,n=t?window.innerWidth-e.startX<15:e.startX<15;if(n)return!1;let i=o;return i&&i!==this.el&&this.closeOpened(),!!(this.rightOptions||this.leftOptions)}onStart(){this.item=this.el.querySelector("ion-item");let{contentEl:e}=this;e&&(this.initialContentScrollY=(0,i0.d)(e)),o=this.el,void 0!==this.tmr&&(clearTimeout(this.tmr),this.tmr=void 0),0===this.openAmount&&(this.optsDirty=!0,this.state=4),this.initialOpenAmount=this.openAmount,this.item&&(this.item.style.transition="none")}onMove(e){let t;this.optsDirty&&this.calculateOptsWidth();let n=this.initialOpenAmount-e.deltaX;switch(this.sides){case 2:n=Math.max(0,n);break;case 1:n=Math.min(0,n);break;case 3:break;case 0:return;default:console.warn("invalid ItemSideFlags value",this.sides)}n>this.optsWidthRightSide?n=(t=this.optsWidthRightSide)+(n-t)*.55:n<-this.optsWidthLeftSide&&(n=(t=-this.optsWidthLeftSide)+(n-t)*.55),this.setOpenAmount(n,!1)}onEnd(e){let{contentEl:t,initialContentScrollY:n}=this;t&&(0,i0.r)(t,n);let i=e.velocityX,r=this.openAmount>0?this.optsWidthRightSide:-this.optsWidthLeftSide,o=this.openAmount>0==!(i<0),a=Math.abs(this.openAmount)<Math.abs(r/2);rI(o,Math.abs(i)>.3,a)&&(r=0);let s=this.state;this.setOpenAmount(r,!0),(32&s)!=0&&this.rightOptions?this.rightOptions.fireSwipeEvent():(64&s)!=0&&this.leftOptions&&this.leftOptions.fireSwipeEvent()}calculateOptsWidth(){this.optsWidthRightSide=0,this.rightOptions&&(this.rightOptions.style.display="flex",this.optsWidthRightSide=this.rightOptions.offsetWidth,this.rightOptions.style.display=""),this.optsWidthLeftSide=0,this.leftOptions&&(this.leftOptions.style.display="flex",this.optsWidthLeftSide=this.leftOptions.offsetWidth,this.leftOptions.style.display=""),this.optsDirty=!1}setOpenAmount(e,t){if(void 0!==this.tmr&&(clearTimeout(this.tmr),this.tmr=void 0),!this.item)return;let{el:n}=this,i=this.item.style;if(this.openAmount=e,t&&(i.transition=""),e>0)this.state=e>=this.optsWidthRightSide+30?40:8;else if(e<0)this.state=e<=-this.optsWidthLeftSide-30?80:16;else{n.classList.add("item-sliding-closing"),this.gesture&&this.gesture.enable(!1),this.tmr=setTimeout(()=>{this.state=2,this.tmr=void 0,this.gesture&&this.gesture.enable(!this.disabled),n.classList.remove("item-sliding-closing")},600),o=void 0,i.transform="";return}i.transform=`translate3d(${-e}px,0,0)`,this.ionDrag.emit({amount:e,ratio:this.getSlidingRatioSync()})}getSlidingRatioSync(){return this.openAmount>0?this.openAmount/this.optsWidthRightSide:this.openAmount<0?this.openAmount/this.optsWidthLeftSide:0}render(){let e=(0,p.b)(this);return(0,eN.h)(eN.AA,{key:"99f87c8bd794ae69830b407ba55013ac44793c26",class:{[e]:!0,"item-sliding-active-slide":2!==this.state,"item-sliding-active-options-end":(8&this.state)!=0,"item-sliding-active-options-start":(16&this.state)!=0,"item-sliding-active-swipe-end":(32&this.state)!=0,"item-sliding-active-swipe-start":(64&this.state)!=0}})}get el(){return this}static get watchers(){return{disabled:["disabledChanged"]}}static get style(){return"ion-item-sliding{display:block;position:relative;width:100%;overflow:hidden;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}ion-item-sliding .item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.item-sliding-active-slide .item{position:relative;-webkit-transition:-webkit-transform 500ms cubic-bezier(0.36, 0.66, 0.04, 1);transition:-webkit-transform 500ms cubic-bezier(0.36, 0.66, 0.04, 1);transition:transform 500ms cubic-bezier(0.36, 0.66, 0.04, 1);transition:transform 500ms cubic-bezier(0.36, 0.66, 0.04, 1), -webkit-transform 500ms cubic-bezier(0.36, 0.66, 0.04, 1);opacity:1;z-index:2;pointer-events:none;will-change:transform}.item-sliding-closing ion-item-options{pointer-events:none}.item-sliding-active-swipe-end .item-options-end .item-option-expandable{padding-left:100%;-ms-flex-order:1;order:1;-webkit-transition-duration:0.6s;transition-duration:0.6s;-webkit-transition-property:padding-left;transition-property:padding-left}:host-context([dir=rtl]) .item-sliding-active-swipe-end .item-options-end .item-option-expandable{-ms-flex-order:-1;order:-1}[dir=rtl] .item-sliding-active-swipe-end .item-options-end .item-option-expandable{-ms-flex-order:-1;order:-1}@supports selector(:dir(rtl)){.item-sliding-active-swipe-end .item-options-end .item-option-expandable:dir(rtl){-ms-flex-order:-1;order:-1}}.item-sliding-active-swipe-start .item-options-start .item-option-expandable{padding-right:100%;-ms-flex-order:-1;order:-1;-webkit-transition-duration:0.6s;transition-duration:0.6s;-webkit-transition-property:padding-right;transition-property:padding-right}:host-context([dir=rtl]) .item-sliding-active-swipe-start .item-options-start .item-option-expandable{-ms-flex-order:1;order:1}[dir=rtl] .item-sliding-active-swipe-start .item-options-start .item-option-expandable{-ms-flex-order:1;order:1}@supports selector(:dir(rtl)){.item-sliding-active-swipe-start .item-options-start .item-option-expandable:dir(rtl){-ms-flex-order:1;order:1}}"}},[0,"ion-item-sliding",{disabled:[4],state:[32],getOpenAmount:[64],getSlidingRatio:[64],open:[64],close:[64],closeOpened:[64]},void 0,{disabled:["disabledChanged"]}]),rI=(e,t,n)=>!t&&n||e&&t,rR=(0,eN.GH)(class extends eN.mv{constructor(){super(),this.__registerHost(),this.ionColor=(0,eN.yM)(this,"ionColor",7),this.ionStyle=(0,eN.yM)(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="floating"===this.position,this.emitStyle(),this.emitColor()}componentDidLoad(){this.noAnimate&&setTimeout(()=>{this.noAnimate=!1},1e3)}colorChanged(){this.emitColor()}positionChanged(){this.emitStyle()}emitColor(){let{color:e}=this;this.ionColor.emit({"item-label-color":void 0!==e,[`ion-color-${e}`]:void 0!==e})}emitStyle(){let{inRange:e,position:t}=this;e||this.ionStyle.emit({label:!0,[`label-${t}`]:void 0!==t})}render(){let e=this.position,t=(0,p.b)(this);return(0,eN.h)(eN.AA,{key:"c2c0f388dab910d294efb9fbb409ee4ef829c1ed",class:eP(this.color,{[t]:!0,"in-item-color":eC("ion-item.ion-color",this.el),[`label-${e}`]:void 0!==e,"label-no-animate":this.noAnimate,"label-rtl":"rtl"===document.dir})},(0,eN.h)("slot",{key:"4de6b69950f417873a13c851018ec31ea2686f0a"}))}get el(){return this}static get watchers(){return{color:["colorChanged"],position:["positionChanged"]}}static get style(){return{ios:".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}.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:var(--ion-color-step-400, var(--ion-text-color-step-600, #999999))}.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}",md:".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}.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)}.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, #0054e9)}.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)}.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, var(--ion-text-color-step-400, #666666))}.sc-ion-label-md-h.in-item-color.sc-ion-label-md-s>p{color:inherit}"}}},[38,"ion-label",{color:[513],position:[1],noAnimate:[32]},void 0,{color:["colorChanged"],position:["positionChanged"]}]);function r$(){"undefined"!=typeof customElements&&["ion-label"].forEach(e=>{"ion-label"===e&&(customElements.get(e)||customElements.define(e,rR))})}let rL=(0,eN.GH)(class extends eN.mv{constructor(){super(),this.__registerHost(),this.lines=void 0,this.inset=!1}async closeSlidingItems(){let e=this.el.querySelector("ion-item-sliding");return null!=e&&!!e.closeOpened&&e.closeOpened()}render(){let e=(0,p.b)(this),{lines:t,inset:n}=this;return(0,eN.h)(eN.AA,{key:"8bde220025a7eeca6da075379c6487c4c9bdddc1",role:"list",class:{[e]:!0,[`list-${e}`]:!0,"list-inset":n,[`list-lines-${t}`]:void 0!==t,[`list-${e}-lines-${t}`]:void 0!==t}})}get el(){return this}static get style(){return{ios:"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}",md:"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))}.list-md>.input:last-child::after{inset-inline-start: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):last-of-type,.list-md.list-inset ion-item-sliding:last-of-type ion-item{--border-width:0;--inner-border-width:0}.list-md.list-inset ion-item:only-child{--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}"}}},[32,"ion-list",{lines:[1],inset:[4],closeSlidingItems:[64]}]);function rM(){"undefined"!=typeof customElements&&["ion-list"].forEach(e=>{"ion-list"===e&&(customElements.get(e)||customElements.define(e,rL))})}let rj=(0,eN.GH)(class extends eN.mv{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.color=void 0,this.lines=void 0}render(){let{lines:e}=this,t=(0,p.b)(this);return(0,eN.h)(eN.AA,{key:"7e2e050f13722f2b870a2415d99a9e631e9ca267",class:eP(this.color,{[t]:!0,[`list-header-lines-${e}`]:void 0!==e})},(0,eN.h)("div",{key:"6117bebc45800d874e9b75355476fbced5cc8398",class:"list-header-inner"},(0,eN.h)("slot",{key:"9165fb274cd2c45a5a65c271d8b1f30e8a00c890"})))}static get style(){return{ios:":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, var(--ion-text-color-step-150, #262626));--border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-250, var(--ion-background-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}",md:":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, var(--ion-background-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}"}}},[33,"ion-list-header",{color:[513],lines:[1]}]);function rD(){"undefined"!=typeof customElements&&["ion-list-header"].forEach(e=>{"ion-list-header"===e&&(customElements.get(e)||customElements.define(e,rj))})}/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */let rN=e=>(0,m.c)().duration(e?400:300),rF=e=>{let t;let n=e.width+8,i=(0,m.c)(),r=(0,m.c)();t=e.isEndSide?n+"px":-n+"px",i.addElement(e.menuInnerEl).fromTo("transform",`translateX(${t})`,"translateX(0px)");let o=(0,p.b)(e),a="ios"===o;return r.addElement(e.backdropEl).fromTo("opacity",.01,a?.2:.25),rN(a).addAnimation([i,r])},rz=e=>{let t,n;let i=(0,p.b)(e),r=e.width;e.isEndSide?(t=-r+"px",n=r+"px"):(t=r+"px",n=-r+"px");let o=(0,m.c)().addElement(e.menuInnerEl).fromTo("transform",`translateX(${n})`,"translateX(0px)"),a=(0,m.c)().addElement(e.contentEl).fromTo("transform","translateX(0px)",`translateX(${t})`),s=(0,m.c)().addElement(e.backdropEl).fromTo("opacity",.01,.32);return rN("ios"===i).addAnimation([o,a,s])},rB=e=>{let t=(0,p.b)(e),n=e.width*(e.isEndSide?-1:1)+"px",i=(0,m.c)().addElement(e.contentEl).fromTo("transform","translateX(0px)",`translateX(${n})`);return rN("ios"===t).addAnimation(i)},rH=(()=>{let e=new Map,t=[],n=async e=>{let t=await c(e,!0);return!!t&&t.open()},i=async e=>{let t=await (void 0!==e?c(e,!0):d());return void 0!==t&&t.close()},r=async e=>{let t=await c(e,!0);return!!t&&t.toggle()},o=async(e,t)=>{let n=await c(t);return n&&(n.disabled=!e),n},a=async(e,t)=>{let n=await c(t);return n&&(n.swipeGesture=e),n},s=async e=>{if(null!=e){let t=await c(e);return void 0!==t&&t.isOpen()}{let e=await d();return void 0!==e}},l=async e=>{let t=await c(e);return!!t&&!t.disabled},c=async(e,n=!1)=>{if(await _(),"start"===e||"end"===e){let i=t.filter(t=>t.side===e&&!t.disabled);if(i.length>=1)return i.length>1&&n&&(0,k.p)(`menuController queried for a menu on the "${e}" side, but ${i.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.`,i.map(e=>e.el)),i[0].el;let r=t.filter(t=>t.side===e);if(r.length>=1)return r.length>1&&n&&(0,k.p)(`menuController queried for a menu on the "${e}" 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(e=>e.el)),r[0].el}else if(null!=e)return w(t=>t.menuId===e);let i=w(e=>!e.disabled);return i||(t.length>0?t[0].el:void 0)},d=async()=>(await _(),v()),u=async()=>(await _(),y()),h=async()=>(await _(),x()),p=(t,n)=>{e.set(t,n)},m=async(e,t,n)=>{if(x())return!1;if(t){let t=await d();t&&e.el!==t&&await t.setOpen(!1,!1)}return e._setOpen(t,n)},v=()=>w(e=>e._isOpen),y=()=>t.map(e=>e.el),x=()=>t.some(e=>e.isAnimating),w=e=>{let n=t.find(e);if(void 0!==n)return n.el},_=()=>Promise.all(Array.from(document.querySelectorAll("ion-menu")).map(e=>new Promise(t=>(0,f.c)(e,t))));return p("reveal",rB),p("push",rz),p("overlay",rF),null===g.d||void 0===g.d||g.d.addEventListener("ionBackButton",e=>{let t=v();t&&e.detail.register(b.MENU_BACK_BUTTON_PRIORITY,()=>t.close())}),{registerAnimation:p,get:c,getMenus:u,getOpen:d,isEnabled:l,swipeGesture:a,isAnimating:h,isOpen:s,enable:o,toggle:r,close:i,open:n,_getOpenSync:v,_createAnimation:(t,n)=>{let i=e.get(t);if(!i)throw Error("animation not registered");let r=i(n);return r},_register:e=>{0>t.indexOf(e)&&t.push(e)},_unregister:e=>{let n=t.indexOf(e);n>-1&&t.splice(n,1)},_setOpen:m}})(),rU=(0,eN.GH)(class extends eN.mv{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionWillOpen=(0,eN.yM)(this,"ionWillOpen",7),this.ionWillClose=(0,eN.yM)(this,"ionWillClose",7),this.ionDidOpen=(0,eN.yM)(this,"ionDidOpen",7),this.ionDidClose=(0,eN.yM)(this,"ionDidClose",7),this.ionMenuChange=(0,eN.yM)(this,"ionMenuChange",7),this.lastOnEnd=0,this.blocker=w.G.createBlocker({disableScroll:!0}),this.didLoad=!1,this.operationCancelled=!1,this.isAnimating=!1,this._isOpen=!1,this.inheritedAttributes={},this.handleFocus=e=>{let t=X(document);(!t||t.contains(this.el))&&this.trapKeyboardFocus(e,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(e,t){let n=this.contentEl;n&&(void 0!==t&&n.classList.remove(`menu-content-${t}`),n.classList.add(`menu-content-${e}`),n.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=(0,f.m)(this.side),this.animation=void 0}swipeGestureChanged(){this.updateState()}async connectedCallback(){if("undefined"!=typeof customElements&&null!=customElements&&await customElements.whenDefined("ion-menu"),void 0===this.type&&(this.type=p.c.get("menuType","overlay")),!eN.Z5.isBrowser)return;let e=void 0!==this.contentId?document.getElementById(this.contentId):null;if(null===e){console.error('Menu: must have a "content" element to listen for drag events on.');return}this.el.contains(e)&&console.error('Menu: "contentId" should refer to the main view\'s ion-content, not the ion-content inside of the ion-menu.'),this.contentEl=e,e.classList.add("menu-content"),this.typeChanged(this.type,void 0),this.sideChanged(),rH._register(this),this.menuChanged(),this.gesture=(await Promise.resolve().then(n.bind(n,19341))).createGesture({el:document,gestureName:"menu-swipe",gesturePriority:30,threshold:10,blurOnStart:!0,canStart:e=>this.canStart(e),onWillStart:()=>this.onWillStart(),onStart:()=>this.onStart(),onMove:e=>this.onMove(e),onEnd:e=>this.onEnd(e)}),this.updateState()}componentWillLoad(){this.inheritedAttributes=(0,f.i)(this.el)}async componentDidLoad(){this.didLoad=!0;let e=this.el.closest("ion-split-pane");null!==e&&(this.isPaneVisible=await e.isVisible()),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(),rH._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(e){let t=this.el.closest("ion-split-pane");null!==t&&t===e.target&&(this.isPaneVisible=e.detail.visible,this.updateState())}onBackdropClick(e){if(this._isOpen&&this.lastOnEnd<e.timeStamp-100){let t=!!e.composedPath&&!e.composedPath().includes(this.menuInnerEl);t&&(e.preventDefault(),e.stopPropagation(),this.close())}}onKeydown(e){"Escape"===e.key&&this.close()}isOpen(){return Promise.resolve(this._isOpen)}isActive(){return Promise.resolve(this._isActive())}open(e=!0){return this.setOpen(!0,e)}close(e=!0){return this.setOpen(!1,e)}toggle(e=!0){return this.setOpen(!this._isOpen,e)}setOpen(e,t=!0){return rH._setOpen(this,e,t)}trapKeyboardFocus(e,t){let n=e.target;if(n){if(this.el.contains(n))this.lastFocus=n;else{let{el:e}=this;E(e),this.lastFocus===t.activeElement&&S(e)}}}async _setOpen(e,t=!0){return!!this._isActive()&&!this.isAnimating&&e!==this._isOpen&&((this.beforeAnimation(e),await this.loadAnimation(),await this.startAnimation(e,t),this.operationCancelled)?(this.operationCancelled=!1,!1):(this.afterAnimation(e),!0))}async loadAnimation(){let e=this.menuInnerEl.offsetWidth,t=(0,f.m)(this.side);if(e===this.width&&void 0!==this.animation&&t===this.isEndSide)return;this.width=e,this.isEndSide=t,this.animation&&(this.animation.destroy(),this.animation=void 0);let n=this.animation=await rH._createAnimation(this.type,this);p.c.getBoolean("animated",!0)||n.duration(0),n.fill("both")}async startAnimation(e,t){let n=!e,i=(0,p.b)(this),r=this.animation.direction(n?"reverse":"normal").easing(n?"ios"===i?"cubic-bezier(1, 0, 0.68, 0.28)":"cubic-bezier(0.4, 0, 0.6, 1)":"ios"===i?"cubic-bezier(0.32,0.72,0,1)":"cubic-bezier(0.0,0.0,0.2,1)");t?await r.play():r.play({sync:!0}),"reverse"===r.getDirection()&&r.direction("normal")}_isActive(){return!this.disabled&&!this.isPaneVisible}canSwipe(){return this.swipeGesture&&!this.isAnimating&&this._isActive()}canStart(e){let t=!!document.querySelector("ion-modal.show-modal");return!t&&!!this.canSwipe()&&(!!this._isOpen||!rH._getOpenSync()&&rW(window,e.currentX,this.isEndSide,this.maxEdgeStart))}onWillStart(){return this.beforeAnimation(!this._isOpen),this.loadAnimation()}onStart(){if(!this.isAnimating||!this.animation){(0,f.n)(!1,"isAnimating has to be true");return}this.animation.progressStart(!0,this._isOpen?1:0)}onMove(e){if(!this.isAnimating||!this.animation){(0,f.n)(!1,"isAnimating has to be true");return}let t=rV(e.deltaX,this._isOpen,this.isEndSide),n=t/this.width;this.animation.progressStep(this._isOpen?1-n:n)}onEnd(e){if(!this.isAnimating||!this.animation){(0,f.n)(!1,"isAnimating has to be true");return}let t=this._isOpen,n=this.isEndSide,i=rV(e.deltaX,t,n),r=this.width,o=i/r,a=e.velocityX,s=r/2,l=a>=0&&(a>.2||e.deltaX>s),c=a<=0&&(a<-.2||e.deltaX<-s),d=t?n?l:c:n?c:l,u=!t&&d;t&&!d&&(u=!0),this.lastOnEnd=e.currentTime;let h=d?.001:-.001;h+=ew([0,0],[.4,0],[.6,1],[1,1],(0,f.k)(0,o<0?.01:o,.9999))[0]||0;let p=this._isOpen?!d:d;this.animation.easing("cubic-bezier(0.4, 0.0, 0.6, 1)").onFinish(()=>this.afterAnimation(u),{oneTimeCallback:!0}).progressEnd(p?1:0,this._isOpen?1-h:h,300)}beforeAnimation(e){(0,f.n)(!this.isAnimating,"_before() should not be called while animating"),this.el.classList.add(rq),this.el.setAttribute("tabindex","0"),this.backdropEl&&this.backdropEl.classList.add(rG),this.contentEl&&(this.contentEl.classList.add(rX),this.contentEl.setAttribute("aria-hidden","true")),this.blocker.block(),this.isAnimating=!0,e?this.ionWillOpen.emit():this.ionWillClose.emit()}afterAnimation(e){var t;if(this._isOpen=e,this.isAnimating=!1,this._isOpen||this.blocker.unblock(),e){this.ionDidOpen.emit();let e=null===(t=document.activeElement)||void 0===t?void 0:t.closest("ion-menu");e!==this.el&&this.el.focus(),document.addEventListener("focus",this.handleFocus,!0)}else this.el.classList.remove(rq),this.el.removeAttribute("tabindex"),this.contentEl&&(this.contentEl.classList.remove(rX),this.contentEl.removeAttribute("aria-hidden")),this.backdropEl&&this.backdropEl.classList.remove(rG),this.animation&&this.animation.stop(),this.ionDidClose.emit(),document.removeEventListener("focus",this.handleFocus,!0)}updateState(){let e=this._isActive();this.gesture&&this.gesture.enable(e&&this.swipeGesture),e||(this.isAnimating&&(this.operationCancelled=!0),this.afterAnimation(!1))}render(){let{type:e,disabled:t,el:n,isPaneVisible:i,inheritedAttributes:r,side:o}=this,a=(0,p.b)(this);return(0,eN.h)(eN.AA,{key:"30c0c9bfb8973e4a6feb658f8c4ee8e362f464ed",onKeyDown:(0,b.shouldUseCloseWatcher)()?null:this.onKeydown,role:"navigation","aria-label":r["aria-label"]||"menu",class:{[a]:!0,[`menu-type-${e}`]:!0,"menu-enabled":!t,[`menu-side-${o}`]:!0,"menu-pane-visible":i,"split-pane-side":eC("ion-split-pane",n)}},(0,eN.h)("div",{key:"34b0e5840906862cf1bc27207e089004b0402c56",class:"menu-inner",part:"container",ref:e=>this.menuInnerEl=e},(0,eN.h)("slot",{key:"2cd7e61a8c0987ca4b3f1f8b33cba7152f1275fe"})),(0,eN.h)("ion-backdrop",{key:"d190b1f9b66c76e276f27bfe074d3aab796180fb",ref:e=>this.backdropEl=e,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:":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}:host(.menu-side-start) .menu-inner{inset-inline-start:0;inset-inline-end:auto}: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}:host(.menu-side-end) .menu-inner{inset-inline-start:auto;inset-inline-end:0}: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){-ms-flex:0 1 auto;flex:0 1 auto;width:var(--side-width, var(--width));min-width:var(--side-min-width, var(--min-width));max-width:var(--side-max-width, var(--max-width))}:host(.menu-pane-visible.split-pane-side){left:0;right:0;top:0;bottom:0;position:relative;-webkit-box-shadow:none;box-shadow:none;z-index:0}:host(.menu-pane-visible.split-pane-side.menu-enabled){display:-ms-flexbox;display:flex;-ms-flex-negative:0;flex-shrink:0}:host(.menu-pane-visible.split-pane-side){-ms-flex-order:-1;order:-1}:host(.menu-pane-visible.split-pane-side[side=end]){-ms-flex-order:1;order:1}: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-pane-visible.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(.menu-pane-visible.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)}:host(.menu-type-push){z-index:1000}:host(.menu-type-push) .show-backdrop{display:block}",md:":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}:host(.menu-side-start) .menu-inner{inset-inline-start:0;inset-inline-end:auto}: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}:host(.menu-side-end) .menu-inner{inset-inline-start:auto;inset-inline-end:0}: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){-ms-flex:0 1 auto;flex:0 1 auto;width:var(--side-width, var(--width));min-width:var(--side-min-width, var(--min-width));max-width:var(--side-max-width, var(--max-width))}:host(.menu-pane-visible.split-pane-side){left:0;right:0;top:0;bottom:0;position:relative;-webkit-box-shadow:none;box-shadow:none;z-index:0}:host(.menu-pane-visible.split-pane-side.menu-enabled){display:-ms-flexbox;display:flex;-ms-flex-negative:0;flex-shrink:0}:host(.menu-pane-visible.split-pane-side){-ms-flex-order:-1;order:-1}:host(.menu-pane-visible.split-pane-side[side=end]){-ms-flex-order:1;order:1}: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-pane-visible.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(.menu-pane-visible.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)}: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)}"}}},[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"]],{type:["typeChanged"],disabled:["disabledChanged"],side:["sideChanged"],swipeGesture:["swipeGestureChanged"]}]),rV=(e,t,n)=>Math.max(0,t!==n?-e:e),rW=(e,t,n,i)=>n?t>=e.innerWidth-i:t<=i,rq="show-menu",rG="show-backdrop",rX="menu-content-open",rY=async e=>{let t=await rH.get(e);return!!(t&&await t.isActive())},rK=(0,eN.GH)(class extends eN.mv{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.inheritedAttributes={},this.onClick=async()=>rH.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=(0,f.i)(this.el)}componentDidLoad(){this.visibilityChanged()}async visibilityChanged(){this.visible=await rY(this.menu)}render(){let{color:e,disabled:t,inheritedAttributes:n}=this,i=(0,p.b)(this),r=p.c.get("menuIcon","ios"===i?"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path stroke-linecap='round' stroke-miterlimit='10' d='M80 160h352M80 256h352M80 352h352' class='ionicon-fill-none ionicon-stroke-width'/></svg>":"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path d='M64 384h384v-42.67H64zm0-106.67h384v-42.66H64zM64 128v42.67h384V128z'/></svg>"),o=this.autoHide&&!this.visible,a={type:this.type},s=n["aria-label"]||"menu";return(0,eN.h)(eN.AA,{key:"95a8b9f09c7fae9713a8dc003ed277f6f31403da",onClick:this.onClick,"aria-disabled":t?"true":null,"aria-hidden":o?"true":null,class:eP(e,{[i]:!0,button:!0,"menu-button-hidden":o,"menu-button-disabled":t,"in-toolbar":eC("ion-toolbar",this.el),"in-toolbar-color":eC("ion-toolbar[color]",this.el),"ion-activatable":!0,"ion-focusable":!0})},(0,eN.h)("button",Object.assign({key:"39f3ce20c400d2fac4890a042e8e44426709fca5"},a,{disabled:t,class:"button-native",part:"native","aria-label":s}),(0,eN.h)("span",{key:"310978dc1cdef668de6720cde2a2304253679176",class:"button-inner"},(0,eN.h)("slot",{key:"2a2b9de524c1fc3c526fe9559cb077b976852725"},(0,eN.h)("ion-icon",{key:"9c22d7ea9fc3d76c32ec1c1b4b13d982c60b8c2d",part:"icon",icon:r,mode:i,lazy:!1,"aria-hidden":"true"}))),"md"===i&&(0,eN.h)("ion-ripple-effect",{key:"c58c9e29c763070383472f65a9d322a684bcb564",type:"unbounded"})))}get el(){return this}static get style(){return{ios:':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, #0054e9);--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}}',md:':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)}}'}}},[33,"ion-menu-button",{color:[513],disabled:[4],menu:[1],autoHide:[4,"auto-hide"],type:[1],visible:[32]},[[16,"ionMenuChange","visibilityChanged"],[16,"ionSplitPaneVisible","visibilityChanged"]]]),rJ=(0,eN.GH)(class extends eN.mv{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.onClick=()=>rH.toggle(this.menu),this.visible=!1,this.menu=void 0,this.autoHide=!0}connectedCallback(){this.visibilityChanged()}async visibilityChanged(){this.visible=await rY(this.menu)}render(){let e=(0,p.b)(this),t=this.autoHide&&!this.visible;return(0,eN.h)(eN.AA,{key:"90e621f09792383f1badcc1b402b1ac7d08c5f98",onClick:this.onClick,"aria-hidden":t?"true":null,class:{[e]:!0,"menu-toggle-hidden":t}},(0,eN.h)("slot",{key:"c0abdd1d91e9d80ee3704e3e374ebe1f29078460"}))}static get style(){return":host(.menu-toggle-hidden){display:none}"}},[1,"ion-menu-toggle",{menu:[1],autoHide:[4,"auto-hide"],visible:[32]},[[16,"ionMenuChange","visibilityChanged"],[16,"ionSplitPaneVisible","visibilityChanged"]]]);class rZ{constructor(e,t){this.component=e,this.params=t,this.state=1}async init(e){if(this.state=2,!this.element){let t=this.component;this.element=await v(this.delegate,e,t,["ion-page","ion-page-invisible"],this.params)}}_destroy(){(0,f.n)(3!==this.state,"view state must be ATTACHED");let e=this.element;e&&(this.delegate?this.delegate.removeViewFromDom(e.parentElement,e):e.remove()),this.nav=void 0,this.state=3}}let rQ=(e,t,n)=>!!e&&e.component===t&&(0,f.s)(e.params,n),r0=(e,t)=>e?e instanceof rZ?e:new rZ(e,t):null,r1=e=>e.map(e=>e instanceof rZ?e:"component"in e?r0(e.component,null===e.componentProps?void 0:e.componentProps):r0(e,void 0)).filter(e=>null!==e),r2=(0,eN.GH)(class extends eN.mv{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionNavWillLoad=(0,eN.yM)(this,"ionNavWillLoad",7),this.ionNavWillChange=(0,eN.yM)(this,"ionNavWillChange",3),this.ionNavDidChange=(0,eN.yM)(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(!0===this.swipeGesture)}rootChanged(){let e=eN.Z5.isDev;void 0!==this.root&&!1!==this.didLoad&&(this.useRouter?e&&(0,k.p)("<ion-nav> does not support a root attribute when using ion-router.",this.el):void 0!==this.root&&this.setRoot(this.root,this.rootParams))}componentWillLoad(){if(this.useRouter=null!==document.querySelector("ion-router")&&null===this.el.closest("[no-router]"),void 0===this.swipeGesture){let e=(0,p.b)(this);this.swipeGesture=p.c.getBoolean("swipeBackEnabled","ios"===e)}this.ionNavWillLoad.emit()}async componentDidLoad(){this.didLoad=!0,this.rootChanged(),this.gesture=(await n.e(4613).then(n.bind(n,24613))).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(let e of this.views)(0,e$.l)(e.element,e$.d),e._destroy();this.gesture&&(this.gesture.destroy(),this.gesture=void 0),this.transInstr.length=0,this.views.length=0,this.destroyed=!0}push(e,t,n,i){return this.insert(-1,e,t,n,i)}insert(e,t,n,i,r){return this.insertPages(e,[{component:t,componentProps:n}],i,r)}insertPages(e,t,n,i){return this.queueTrns({insertStart:e,insertViews:t,opts:n},i)}pop(e,t){return this.removeIndex(-1,1,e,t)}popTo(e,t,n){let i={removeStart:-1,removeCount:-1,opts:t};return"object"==typeof e&&e.component?(i.removeView=e,i.removeStart=1):"number"==typeof e&&(i.removeStart=e+1),this.queueTrns(i,n)}popToRoot(e,t){return this.removeIndex(1,-1,e,t)}removeIndex(e,t=1,n,i){return this.queueTrns({removeStart:e,removeCount:t,opts:n},i)}setRoot(e,t,n,i){return this.setPages([{component:e,componentProps:t}],n,i)}setPages(e,t,n){return null!=t||(t={}),!0!==t.animated&&(t.animated=!1),this.queueTrns({insertStart:0,insertViews:e,removeStart:0,removeCount:-1,opts:t},n)}setRouteId(e,t,n,i){let r,o;let a=this.getActiveSync();if(rQ(a,e,t))return Promise.resolve({changed:!1,element:a.element});let s=new Promise(e=>r=e),l={updateURL:!1,viewIsReady:e=>{let t;let n=new Promise(e=>t=e);return r({changed:!0,element:e,markVisible:async()=>{t(),await o}}),n}};if("root"===n)o=this.setRoot(e,t,l);else{let r=this.views.find(n=>rQ(n,e,t));r?o=this.popTo(r,Object.assign(Object.assign({},l),{direction:"back",animationBuilder:i})):"forward"===n?o=this.push(e,t,Object.assign(Object.assign({},l),{animationBuilder:i})):"back"===n&&(o=this.setRoot(e,t,Object.assign(Object.assign({},l),{direction:"back",animated:!0,animationBuilder:i})))}return s}async getRouteId(){let e=this.getActiveSync();if(e)return{id:e.element.tagName,params:e.params,element:e.element}}async getActive(){return this.getActiveSync()}async getByIndex(e){return this.views[e]}async canGoBack(e){return this.canGoBackSync(e)}async getPrevious(e){return this.getPreviousSync(e)}async getLength(){return Promise.resolve(this.views.length)}getActiveSync(){return this.views[this.views.length-1]}canGoBackSync(e=this.getActiveSync()){return!!(e&&this.getPreviousSync(e))}getPreviousSync(e=this.getActiveSync()){if(!e)return;let t=this.views,n=t.indexOf(e);return n>0?t[n-1]:void 0}async queueTrns(e,t){var n,i;if(this.isTransitioning&&(null===(n=e.opts)||void 0===n?void 0:n.skipIfBusy))return!1;let r=new Promise((t,n)=>{e.resolve=t,e.reject=n});if(e.done=t,e.opts&&!1!==e.opts.updateURL&&this.useRouter){let t=document.querySelector("ion-router");if(t){let n=await t.canTransition();if(!1===n)return!1;if("string"==typeof n)return t.push(n,e.opts.direction||"back"),!1}}return(null===(i=e.insertViews)||void 0===i?void 0:i.length)===0&&(e.insertViews=void 0),this.transInstr.push(e),this.nextTrns(),r}success(e,t){if(this.destroyed){this.fireError("nav controller was destroyed",t);return}if(t.done&&t.done(e.hasCompleted,e.requiresTransition,e.enteringView,e.leavingView,e.direction),t.resolve(e.hasCompleted),!1!==t.opts.updateURL&&this.useRouter){let t=document.querySelector("ion-router");if(t){let n="back"===e.direction?"back":"forward";t.navChanged(n)}}}failed(e,t){if(this.destroyed){this.fireError("nav controller was destroyed",t);return}this.transInstr.length=0,this.fireError(e,t)}fireError(e,t){t.done&&t.done(!1,!1,e),t.reject&&!this.destroyed?t.reject(e):t.resolve(!1)}nextTrns(){if(this.isTransitioning)return!1;let e=this.transInstr.shift();return!!e&&(this.runTransition(e),!0)}async runTransition(e){try{let t;this.ionNavWillChange.emit(),this.isTransitioning=!0,this.prepareTI(e);let n=this.getActiveSync(),i=this.getEnteringView(e,n);if(!n&&!i)throw Error("no views in the stack to be removed");i&&1===i.state&&await i.init(this.el),this.postViewInit(i,n,e);let r=(e.enteringRequiresTransition||e.leavingRequiresTransition)&&i!==n;if(r&&e.opts&&n){let t="back"===e.opts.direction;t&&(e.opts.animationBuilder=e.opts.animationBuilder||(null==i?void 0:i.animationBuilder)),n.animationBuilder=e.opts.animationBuilder}t=r?await this.transition(i,n,e):{hasCompleted:!0,requiresTransition:!1},this.success(t,e),this.ionNavDidChange.emit()}catch(t){this.failed(t,e)}this.isTransitioning=!1,this.nextTrns()}prepareTI(e){var t,n,i;let r=this.views.length;if(null!==(t=e.opts)&&void 0!==t||(e.opts={}),null!==(n=(i=e.opts).delegate)&&void 0!==n||(i.delegate=this.delegate),void 0!==e.removeView){(0,f.n)(void 0!==e.removeStart,"removeView needs removeStart"),(0,f.n)(void 0!==e.removeCount,"removeView needs removeCount");let t=this.views.indexOf(e.removeView);if(t<0)throw Error("removeView was not found");e.removeStart+=t}void 0!==e.removeStart&&(e.removeStart<0&&(e.removeStart=r-1),e.removeCount<0&&(e.removeCount=r-e.removeStart),e.leavingRequiresTransition=e.removeCount>0&&e.removeStart+e.removeCount===r),e.insertViews&&((e.insertStart<0||e.insertStart>r)&&(e.insertStart=r),e.enteringRequiresTransition=e.insertStart===r);let o=e.insertViews;if(!o)return;(0,f.n)(o.length>0,"length can not be zero");let a=r1(o);if(0===a.length)throw Error("invalid views to insert");for(let t of a){t.delegate=e.opts.delegate;let n=t.nav;if(n&&n!==this)throw Error("inserted view was already inserted");if(3===t.state)throw Error("inserted view was already destroyed")}e.insertViews=a}getEnteringView(e,t){let n=e.insertViews;if(void 0!==n)return n[n.length-1];let i=e.removeStart;if(void 0!==i){let n=this.views,r=i+e.removeCount;for(let e=n.length-1;e>=0;e--){let o=n[e];if((e<i||e>=r)&&o!==t)return o}}}postViewInit(e,t,n){var i,r,o;let a;(0,f.n)(t||e,"Both leavingView and enteringView are null"),(0,f.n)(n.resolve,"resolve must be valid"),(0,f.n)(n.reject,"reject must be valid");let s=n.opts,{insertViews:l,removeStart:c,removeCount:d}=n;if(void 0!==c&&void 0!==d){(0,f.n)(c>=0,"removeStart can not be negative"),(0,f.n)(d>=0,"removeCount can not be negative"),a=[];for(let n=c;n<c+d;n++){let i=this.views[n];void 0!==i&&i!==e&&i!==t&&a.push(i)}null!==(i=s.direction)&&void 0!==i||(s.direction="back")}let u=this.views.length+(null!==(r=null==l?void 0:l.length)&&void 0!==r?r:0)-(null!=d?d:0);if((0,f.n)(u>=0,"final balance can not be negative"),0===u)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),Error("navigation stack needs at least one root page");if(l){let e=n.insertStart;for(let t of l)this.insertViewAt(t,e),e++;n.enteringRequiresTransition&&(null!==(o=s.direction)&&void 0!==o||(s.direction="forward"))}if(a&&a.length>0){for(let e of a)(0,e$.l)(e.element,e$.b),(0,e$.l)(e.element,e$.c),(0,e$.l)(e.element,e$.d);for(let e of a)this.destroyView(e)}}async transition(e,t,n){let i=n.opts,r=i.progressAnimation?e=>{void 0===e||this.gestureOrAnimationInProgress?this.sbAni=e:(this.gestureOrAnimationInProgress=!0,e.onFinish(()=>{this.gestureOrAnimationInProgress=!1},{oneTimeCallback:!0}),e.progressEnd(0,0,0))}:void 0,o=(0,p.b)(this),a=e.element,s=t&&t.element,l=Object.assign(Object.assign({mode:o,showGoBack:this.canGoBackSync(e),baseEl:this.el,progressCallback:r,animated:this.animated&&p.c.getBoolean("animated",!0),enteringEl:a,leavingEl:s},i),{animationBuilder:i.animationBuilder||this.animation||p.c.get("navAnimation")}),{hasCompleted:c}=await (0,e$.t)(l);return this.transitionFinish(c,e,t,i)}transitionFinish(e,t,n,i){let r=e?t:n;return r&&this.unmountInactiveViews(r),{hasCompleted:e,requiresTransition:!0,enteringView:t,leavingView:n,direction:i.direction}}insertViewAt(e,t){let n=this.views,i=n.indexOf(e);i>-1?((0,f.n)(e.nav===this,"view is not part of the nav"),n.splice(i,1)):((0,f.n)(!e.nav,"nav is used"),e.nav=this),n.splice(t,0,e)}removeView(e){(0,f.n)(2===e.state||3===e.state,"view state should be loaded or destroyed");let t=this.views,n=t.indexOf(e);(0,f.n)(n>-1,"view must be part of the stack"),n>=0&&t.splice(n,1)}destroyView(e){e._destroy(),this.removeView(e)}unmountInactiveViews(e){if(this.destroyed)return;let t=this.views,n=t.indexOf(e);for(let e=t.length-1;e>=0;e--){let i=t[e],r=i.element;r&&(e>n?((0,e$.l)(r,e$.d),this.destroyView(i)):e<n&&(0,e$.s)(r,!0))}}canStart(){return!this.gestureOrAnimationInProgress&&!!this.swipeGesture&&!this.isTransitioning&&0===this.transInstr.length&&this.canGoBackSync()}onStart(){this.gestureOrAnimationInProgress=!0,this.pop({direction:"back",progressAnimation:!0})}onMove(e){this.sbAni&&this.sbAni.progressStep(e)}onEnd(e,t,n){if(this.sbAni){this.sbAni.onFinish(()=>{this.gestureOrAnimationInProgress=!1},{oneTimeCallback:!0});let i=e?-.001:.001;e?i+=ew([0,0],[.32,.72],[0,1],[1,1],t)[0]:(this.sbAni.easing("cubic-bezier(1, 0, 0.68, 0.28)"),i+=ew([0,0],[1,0],[.68,.28],[1,1],t)[0]),this.sbAni.progressEnd(e?1:0,i,n)}else this.gestureOrAnimationInProgress=!1}render(){return(0,eN.h)("slot",{key:"e9d99a8a0b84f02f9964d8143cd5e647e43334f9"})}get el(){return this}static get watchers(){return{swipeGesture:["swipeGestureChanged"],root:["rootChanged"]}}static get style(){return":host{left:0;right:0;top:0;bottom:0;position:absolute;contain:layout size style;z-index:0}"}},[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],getLength:[64]},void 0,{swipeGesture:["swipeGestureChanged"],root:["rootChanged"]}]),r5=(e,t,n,i,r)=>{let o=e.closest("ion-nav");if(o){if("forward"===t){if(void 0!==n)return o.push(n,i,{skipIfBusy:!0,animationBuilder:r})}else if("root"===t){if(void 0!==n)return o.setRoot(n,i,{skipIfBusy:!0,animationBuilder:r})}else if("back"===t)return o.pop({skipIfBusy:!0,animationBuilder:r})}return Promise.resolve(!1)},r3=(0,eN.GH)(class extends eN.mv{constructor(){super(),this.__registerHost(),this.onClick=()=>r5(this.el,this.routerDirection,this.component,this.componentProps,this.routerAnimation),this.component=void 0,this.componentProps=void 0,this.routerDirection="forward",this.routerAnimation=void 0}render(){return(0,eN.h)(eN.AA,{key:"42c23dcdec5fdb25defebaf6e8a9fa75754ff8eb",onClick:this.onClick})}get el(){return this}},[0,"ion-nav-link",{component:[1],componentProps:[16],routerDirection:[1,"router-direction"],routerAnimation:[16]}]),r4=(0,eN.GH)(class extends eN.mv{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.color=void 0}render(){let e=(0,p.b)(this);return(0,eN.h)(eN.AA,{key:"90ec2fe8c9487608ed8c0bdc32c2e80a6a0890b3",class:eP(this.color,{[e]:!0})},(0,eN.h)("slot",{key:"115ee3f79e6c526b0644443aad468e99385d0eda"}))}static get style(){return{ios:":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, var(--ion-text-color-step-650, #a6a6a6));font-size:max(14px, 1rem)}",md:":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, var(--ion-text-color-step-400, #666666));font-size:0.875rem}"}}},[33,"ion-note",{color:[513]}]),r6=(0,eN.GH)(class extends eN.mv{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.type="determinate",this.reversed=!1,this.value=0,this.buffer=1,this.color=void 0}render(){let{color:e,type:t,reversed:n,value:i,buffer:r}=this,o=p.c.getBoolean("_testing"),a=(0,p.b)(this);return(0,eN.h)(eN.AA,{key:"b293f4475bcdaa7851b41ebfda659037f0365120",role:"progressbar","aria-valuenow":"determinate"===t?i:null,"aria-valuemin":"0","aria-valuemax":"1",class:eP(e,{[a]:!0,[`progress-bar-${t}`]:!0,"progress-paused":o,"progress-bar-reversed":"rtl"===document.dir?!n:n,"progress-bar-solid":1===r})},"indeterminate"===t?r8():r9(i,r))}static get style(){return{ios:":host{--background:rgba(var(--ion-color-primary-rgb, 0, 84, 233), 0.3);--progress-background:var(--ion-color-primary, #0054e9);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(--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(--background) 0%, var(--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) .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{border-radius:9999px;height:4px}:host(.progress-bar-solid){--background:var(--ion-color-step-100, var(--ion-background-color-step-100, #e6e6e6))}",md:":host{--background:rgba(var(--ion-color-primary-rgb, 0, 84, 233), 0.3);--progress-background:var(--ion-color-primary, #0054e9);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(--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(--background) 0%, var(--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) .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}:host(.ion-color) .progress-buffer-bar{background:rgba(var(--ion-color-base-rgb), 0.3)}"}}},[33,"ion-progress-bar",{type:[1],reversed:[4],value:[2],buffer:[2],color:[513]}]),r8=()=>(0,eN.h)("div",{part:"track",class:"progress-buffer-bar"},(0,eN.h)("div",{class:"indeterminate-bar-primary"},(0,eN.h)("span",{part:"progress",class:"progress-indeterminate"})),(0,eN.h)("div",{class:"indeterminate-bar-secondary"},(0,eN.h)("span",{part:"progress",class:"progress-indeterminate"}))),r9=(e,t)=>{let n=(0,f.k)(0,e,1),i=(0,f.k)(0,t,1);return[(0,eN.h)("div",{part:"progress",class:"progress",style:{transform:`scaleX(${n})`}}),(0,eN.h)("div",{class:{"buffer-circles-container":!0,"ion-hide":1===i},style:{transform:`translateX(${100*i}%)`}},(0,eN.h)("div",{class:"buffer-circles-container",style:{transform:`translateX(-${100*i}%)`}},(0,eN.h)("div",{part:"stream",class:"buffer-circles"}))),(0,eN.h)("div",{part:"track",class:"progress-buffer-bar",style:{transform:`scaleX(${i})`}})]},r7=(e,t,n)=>"function"==typeof n?n(e,t):"string"==typeof n?e[n]===t[n]:Array.isArray(t)?t.includes(e):e===t,oe=(e,t,n)=>void 0!==e&&(Array.isArray(e)?e.some(e=>r7(e,t,n)):r7(e,t,n)),ot=(0,eN.GH)(class extends eN.mv{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionFocus=(0,eN.yM)(this,"ionFocus",7),this.ionBlur=(0,eN.yM)(this,"ionBlur",7),this.inputId=`ion-rb-${on++}`,this.radioGroup=null,this.updateState=()=>{if(this.radioGroup){let{compareWith:e,value:t}=this.radioGroup;this.checked=oe(t,this.value,e)}},this.onClick=()=>{let{radioGroup:e,checked:t,disabled:n}=this;n||(t&&(null==e?void 0:e.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.justify="space-between",this.alignment="center"}valueChanged(){this.updateState()}componentDidLoad(){this.updateState()}async setFocus(e){e.stopPropagation(),e.preventDefault(),this.el.focus()}async setButtonTabindex(e){this.buttonTabindex=e}connectedCallback(){void 0===this.value&&(this.value=this.inputId);let e=this.radioGroup=this.el.closest("ion-radio-group");e&&(this.updateState(),(0,f.a)(e,"ionValueChange",this.updateState))}disconnectedCallback(){let e=this.radioGroup;e&&((0,f.b)(e,"ionValueChange",this.updateState),this.radioGroup=null)}get hasLabel(){return""!==this.el.textContent}renderRadioControl(){return(0,eN.h)("div",{class:"radio-icon",part:"container"},(0,eN.h)("div",{class:"radio-inner",part:"mark"}),(0,eN.h)("div",{class:"radio-ripple"}))}render(){let{checked:e,disabled:t,color:n,el:i,justify:r,labelPlacement:o,hasLabel:a,buttonTabindex:s,alignment:l}=this,c=(0,p.b)(this),d=eC("ion-item",i);return(0,eN.h)(eN.AA,{key:"43c95effb6acb119733270e8a5e02fe18b47ee4b",onFocus:this.onFocus,onBlur:this.onBlur,onClick:this.onClick,class:eP(n,{[c]:!0,"in-item":d,"radio-checked":e,"radio-disabled":t,[`radio-justify-${r}`]:!0,[`radio-alignment-${l}`]:!0,[`radio-label-placement-${o}`]:!0,"ion-activatable":!d,"ion-focusable":!d}),role:"radio","aria-checked":e?"true":"false","aria-disabled":t?"true":null,tabindex:s},(0,eN.h)("label",{key:"168ea77c08fde9832077d617662b93dc9986b544",class:"radio-wrapper"},(0,eN.h)("div",{key:"ce1e6eee63fbab1e5a66b18f767f4eecc2a227f1",class:{"label-text-wrapper":!0,"label-text-wrapper-hidden":!a},part:"label"},(0,eN.h)("slot",{key:"7d849e43d4356b5c3978c2bba9a6fba5d21ca69d"})),(0,eN.h)("div",{key:"e741f7822364958b050a232bdfccdc413095c244",class:"native-wrapper"},this.renderRadioControl())))}get el(){return this}static get watchers(){return{value:["valueChanged"]}}static get style(){return{ios:':host{--inner-border-radius:50%;display:inline-block;position:relative;max-width:100%;min-height:inherit;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:2;-webkit-box-sizing:border-box;box-sizing:border-box}: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}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){-ms-flex:1 1 0px;flex:1 1 0;width:100%;height:100%}:host([slot=start]),:host([slot=end]){-ms-flex:initial;flex:initial;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) .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, #0054e9)}: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, #1a65eb);content:"";opacity:0.2}:host(.ion-focused) .radio-icon::after{inset-inline-start:-9px}.native-wrapper .radio-icon{width:0.9375rem;height:1.5rem}',md:':host{--inner-border-radius:50%;display:inline-block;position:relative;max-width:100%;min-height:inherit;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:2;-webkit-box-sizing:border-box;box-sizing:border-box}: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}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){-ms-flex:1 1 0px;flex:1 1 0;width:100%;height:100%}:host([slot=start]),:host([slot=end]){-ms-flex:initial;flex:initial;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) .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, #0054e9);--border-width:0.125rem;--border-style:solid;--border-radius:50%}: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(.radio-disabled) .label-text-wrapper{opacity:0.38}:host(.radio-disabled) .native-wrapper{opacity:0.63}: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, #1a65eb);content:"";opacity:0.2}.native-wrapper .radio-icon{width:1.25rem;height:1.25rem}'}}},[33,"ion-radio",{color:[513],name:[1],disabled:[4],value:[8],labelPlacement:[1,"label-placement"],justify:[1],alignment:[1],checked:[32],buttonTabindex:[32],setFocus:[64],setButtonTabindex:[64]},void 0,{value:["valueChanged"]}]),on=0;function oi(){"undefined"!=typeof customElements&&["ion-radio"].forEach(e=>{"ion-radio"===e&&(customElements.get(e)||customElements.define(e,ot))})}/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */let or=(0,eN.GH)(class extends eN.mv{constructor(){super(),this.__registerHost(),this.ionChange=(0,eN.yM)(this,"ionChange",7),this.ionValueChange=(0,eN.yM)(this,"ionValueChange",7),this.inputId=`ion-rg-${oo++}`,this.labelId=`${this.inputId}-lbl`,this.setRadioTabindex=e=>{let t=this.getRadios(),n=t.find(e=>!e.disabled),i=t.find(t=>t.value===e&&!t.disabled);if(!n&&!i)return;let r=i||n;for(let e of t){let t=e===r?0:-1;e.setButtonTabindex(t)}},this.onClick=e=>{e.preventDefault();let t=e.target&&e.target.closest("ion-radio");if(t&&!t.disabled){let n=this.value,i=t.value;i!==n?(this.value=i,this.emitValueChange(e)):this.allowEmptySelection&&(this.value=void 0,this.emitValueChange(e))}},this.allowEmptySelection=!1,this.compareWith=void 0,this.name=this.inputId,this.value=void 0}valueChanged(e){this.setRadioTabindex(e),this.ionValueChange.emit({value:e})}componentDidLoad(){this.valueChanged(this.value)}async connectedCallback(){let e=this.el.querySelector("ion-list-header")||this.el.querySelector("ion-item-divider");if(e){let t=this.label=e.querySelector("ion-label");t&&(this.labelId=t.id=this.name+"-lbl")}}getRadios(){return Array.from(this.el.querySelectorAll("ion-radio"))}emitValueChange(e){let{value:t}=this;this.ionChange.emit({value:t,event:e})}onKeydown(e){let t=!!this.el.closest("ion-select-popover");if(e.target&&!this.el.contains(e.target))return;let n=this.getRadios().filter(e=>!e.disabled);if(e.target&&n.includes(e.target)){let i;let r=n.findIndex(t=>t===e.target),o=n[r];if(["ArrowDown","ArrowRight"].includes(e.key)&&(i=r===n.length-1?n[0]:n[r+1]),["ArrowUp","ArrowLeft"].includes(e.key)&&(i=0===r?n[n.length-1]:n[r-1]),i&&n.includes(i)&&(i.setFocus(e),t||(this.value=i.value,this.emitValueChange(e))),[" "].includes(e.key)){let t=this.value;this.value=this.allowEmptySelection&&void 0!==this.value?void 0:o.value,(t!==this.value||this.allowEmptySelection)&&this.emitValueChange(e),e.preventDefault()}}}render(){let{label:e,labelId:t,el:n,name:i,value:r}=this,o=(0,p.b)(this);return(0,f.e)(!0,n,i,r,!1),(0,eN.h)(eN.AA,{key:"7a8ad7eb6a05c6f96a348dcf30fd0c610a95688c",role:"radiogroup","aria-labelledby":e?t:null,onClick:this.onClick,class:o})}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"]}]),oo=0;function oa(){"undefined"!=typeof customElements&&["ion-radio-group"].forEach(e=>{"ion-radio-group"===e&&(customElements.get(e)||customElements.define(e,or))})}let Range=(0,eN.GH)(class extends eN.mv{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionChange=(0,eN.yM)(this,"ionChange",7),this.ionInput=(0,eN.yM)(this,"ionInput",7),this.ionFocus=(0,eN.yM)(this,"ionFocus",7),this.ionBlur=(0,eN.yM)(this,"ionBlur",7),this.ionKnobMoveStart=(0,eN.yM)(this,"ionKnobMoveStart",7),this.ionKnobMoveEnd=(0,eN.yM)(this,"ionKnobMoveEnd",7),this.rangeId=`ion-r-${od++}`,this.didLoad=!1,this.noUpdate=!1,this.hasFocus=!1,this.inheritedAttributes={},this.contentEl=null,this.initialContentScrollY=!0,this.clampBounds=e=>(0,f.k)(this.min,e,this.max),this.ensureValueInBounds=e=>this.dualKnobs?{lower:this.clampBounds(e.lower),upper:this.clampBounds(e.upper)}:this.clampBounds(e),this.setupGesture=async()=>{let e=this.rangeSlider;e&&(this.gesture=(await Promise.resolve().then(n.bind(n,19341))).createGesture({el:e,gestureName:"range",gesturePriority:100,threshold:10,onStart:()=>this.onStart(),onMove:e=>this.onMove(e),onEnd:e=>this.onEnd(e)}),this.gesture.enable(!this.disabled))},this.handleKeyboard=(e,t)=>{let{ensureValueInBounds:n}=this,i=this.step;i=(i>0?i:1)/(this.max-this.min),t||(i*=-1),"A"===e?this.ratioA=(0,f.k)(0,this.ratioA+i,1):this.ratioB=(0,f.k)(0,this.ratioB+i,1),this.ionKnobMoveStart.emit({value:n(this.value)}),this.updateValue(),this.emitValueChange(),this.ionKnobMoveEnd.emit({value:n(this.value)})},this.onBlur=()=>{this.hasFocus&&(this.hasFocus=!1,this.ionBlur.emit())},this.onFocus=()=>{this.hasFocus||(this.hasFocus=!0,this.ionFocus.emit())},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=e=>Math.round(e),this.snaps=!1,this.step=1,this.ticks=!0,this.activeBarStart=void 0,this.disabled=!1,this.value=0,this.labelPlacement="start"}debounceChanged(){let{ionInput:e,debounce:t,originalIonInput:n}=this;this.ionInput=void 0===t?null!=n?n:e:(0,f.l)(e,t)}minChanged(){this.noUpdate||this.updateRatio()}maxChanged(){this.noUpdate||this.updateRatio()}activeBarStartChanged(){let{activeBarStart:e}=this;void 0!==e&&(e>this.max?((0,k.p)(`Range: The value of activeBarStart (${e}) 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):e<this.min&&((0,k.p)(`Range: The value of activeBarStart (${e}) is less than the min (${this.min}). 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.min))}disabledChanged(){this.gesture&&this.gesture.enable(!this.disabled)}valueChanged(){this.noUpdate||this.updateRatio()}componentWillLoad(){this.el.hasAttribute("id")&&(this.rangeId=this.el.getAttribute("id")),this.inheritedAttributes=(0,f.i)(this.el)}componentDidLoad(){this.originalIonInput=this.ionInput,this.setupGesture(),this.updateRatio(),this.didLoad=!0}connectedCallback(){this.updateRatio(),this.debounceChanged(),this.disabledChanged(),this.activeBarStartChanged(),this.didLoad&&this.setupGesture(),this.contentEl=(0,i0.a)(this.el)}disconnectedCallback(){this.gesture&&(this.gesture.destroy(),this.gesture=void 0)}getValue(){var e;let t=null!==(e=this.value)&&void 0!==e?e:0;return this.dualKnobs?"object"==typeof t?t:{lower:0,upper:t}:"object"==typeof t?t.upper:t}emitValueChange(){this.value=this.ensureValueInBounds(this.value),this.ionChange.emit({value:this.value})}onStart(){this.ionKnobMoveStart.emit({value:this.ensureValueInBounds(this.value)})}onMove(e){let{contentEl:t,pressedKnob:n}=this,i=e.currentX;t&&void 0===this.initialContentScrollY&&(this.initialContentScrollY=(0,i0.d)(t)),void 0===n&&this.setPressedKnob(i),this.update(i)}onEnd(e){let{contentEl:t,initialContentScrollY:n}=this,i=e.currentX||e.clientX;void 0===this.pressedKnob&&this.setPressedKnob(i),t&&void 0!==n&&(0,i0.r)(t,n),this.update(i),this.pressedKnob=void 0,this.emitValueChange(),this.ionKnobMoveEnd.emit({value:this.ensureValueInBounds(this.value)})}update(e){let t=this.rect,n=(0,f.k)(0,(e-t.left)/t.width,1);(0,t$.i)(this.el)&&(n=1-n),this.snaps&&(n=oc(ol(n,this.min,this.max,this.step),this.min,this.max)),"A"===this.pressedKnob?this.ratioA=n:this.ratioB=n,this.updateValue()}setPressedKnob(e){let t=this.rect=this.rangeSlider.getBoundingClientRect(),n=(0,f.k)(0,(e-t.left)/t.width,1);(0,t$.i)(this.el)&&(n=1-n),this.pressedKnob=!this.dualKnobs||Math.abs(this.ratioA-n)<Math.abs(this.ratioB-n)?"A":"B",this.setFocus(this.pressedKnob)}get valA(){return ol(this.ratioA,this.min,this.max,this.step)}get valB(){return ol(this.ratioB,this.min,this.max,this.step)}get ratioLower(){if(this.dualKnobs)return Math.min(this.ratioA,this.ratioB);let{activeBarStart:e}=this;return null==e?0:oc(e,this.min,this.max)}get ratioUpper(){return this.dualKnobs?Math.max(this.ratioA,this.ratioB):this.ratioA}updateRatio(){let e=this.getValue(),{min:t,max:n}=this;this.dualKnobs?(this.ratioA=oc(e.lower,t,n),this.ratioB=oc(e.upper,t,n)):this.ratioA=oc(e,t,n)}updateValue(){this.noUpdate=!0;let{valA:e,valB:t}=this;this.value=this.dualKnobs?{lower:Math.min(e,t),upper:Math.max(e,t)}:e,this.ionInput.emit({value:this.value}),this.noUpdate=!1}setFocus(e){if(this.el.shadowRoot){let t=this.el.shadowRoot.querySelector("A"===e?".range-knob-a":".range-knob-b");t&&t.focus()}}get hasStartSlotContent(){return null!==this.el.querySelector('[slot="start"]')}get hasEndSlotContent(){return null!==this.el.querySelector('[slot="end"]')}get hasLabel(){return void 0!==this.label||null!==this.el.querySelector('[slot="label"]')}renderRangeSlider(){var e;let{min:t,max:n,step:i,handleKeyboard:r,pressedKnob:o,disabled:a,pin:s,ratioLower:l,ratioUpper:c,pinFormatter:d,inheritedAttributes:u}=this,h=`${100*l}%`,p=`${100-100*c}%`,f=(0,t$.i)(this.el),m=f?"right":"left",g=f?"left":"right",b=e=>({[m]:e[m]});!1===this.dualKnobs&&(this.valA<(null!==(e=this.activeBarStart)&&void 0!==e?e:this.min)?(h=`${100*c}%`,p=`${100-100*l}%`):(h=`${100*l}%`,p=`${100-100*c}%`));let v={[m]:h,[g]:p},y=[];if(this.snaps&&this.ticks)for(let e=t;e<=n;e+=i){let i=oc(e,t,n),r=Math.min(l,c),o=Math.max(l,c),a={ratio:i,active:i>=r&&i<=o};a[m]=`${100*i}%`,y.push(a)}return(0,eN.h)("div",{class:"range-slider",ref:e=>this.rangeSlider=e,onPointerUp:e=>{void 0===this.pressedKnob&&(this.onStart(),this.onEnd(e))}},y.map(e=>(0,eN.h)("div",{style:b(e),role:"presentation",class:{"range-tick":!0,"range-tick-active":e.active},part:e.active?"tick-active":"tick"})),(0,eN.h)("div",{class:"range-bar-container"},(0,eN.h)("div",{class:"range-bar",role:"presentation",part:"bar"}),(0,eN.h)("div",{class:{"range-bar":!0,"range-bar-active":!0,"has-ticks":y.length>0},role:"presentation",style:v,part:"bar-active"})),os(f,{knob:"A",pressed:"A"===o,value:this.valA,ratio:this.ratioA,pin:s,pinFormatter:d,disabled:a,handleKeyboard:r,min:t,max:n,inheritedAttributes:u}),this.dualKnobs&&os(f,{knob:"B",pressed:"B"===o,value:this.valB,ratio:this.ratioB,pin:s,pinFormatter:d,disabled:a,handleKeyboard:r,min:t,max:n,inheritedAttributes:u}))}render(){let{disabled:e,el:t,hasLabel:n,rangeId:i,pin:r,pressedKnob:o,labelPlacement:a,label:s}=this,l=eC("ion-item",t),c=n&&("start"===a||"fixed"===a)||this.hasStartSlotContent,d=l&&!c,u=n&&"end"===a||this.hasEndSlotContent,h=l&&!u,m=(0,p.b)(this);return(0,f.e)(!0,t,this.name,JSON.stringify(this.getValue()),e),(0,eN.h)(eN.AA,{key:"7ad5ca892fd46c64ce5583e91e6812410a869921",onFocusin:this.onFocus,onFocusout:this.onBlur,id:i,class:eP(this.color,{[m]:!0,"in-item":l,"range-disabled":e,"range-pressed":void 0!==o,"range-has-pin":r,[`range-label-placement-${a}`]:!0,"range-item-start-adjustment":d,"range-item-end-adjustment":h})},(0,eN.h)("label",{key:"eb8d46a9572341b4cc3c91d8a5de0667bd166ca4",class:"range-wrapper",id:"range-label"},(0,eN.h)("div",{key:"21acd6ff6eba17bf6923bf723fea055b95fd29ca",class:{"label-text-wrapper":!0,"label-text-wrapper-hidden":!n},part:"label"},void 0!==s?(0,eN.h)("div",{class:"label-text"},s):(0,eN.h)("slot",{name:"label"})),(0,eN.h)("div",{key:"7644c86a6ad3edf2c27f02dd2a14795b3720ea0d",class:"native-wrapper"},(0,eN.h)("slot",{key:"1bbeccee57addc126b36de395e28ba655248695b",name:"start"}),this.renderRangeSlider(),(0,eN.h)("slot",{key:"2963dd84e4116fc3956c304eb53deefd0d1291df",name:"end"}))))}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:":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}.range-knob-handle{inset-inline-start: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)}.range-bar-container{inset-inline-start: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}.range-knob{inset-inline-start: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, var(--ion-background-color-step-900, #e6e6e6));--bar-background-active:var(--ion-color-primary, #0054e9);--bar-border-radius:2px;--height:42px}: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, var(--ion-background-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}",md:':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}.range-knob-handle{inset-inline-start: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)}.range-bar-container{inset-inline-start: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}.range-knob{inset-inline-start: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, 0, 84, 233), 0.26);--bar-background-active:var(--ion-color-primary, #0054e9);--bar-border-radius:0;--height:42px;--pin-background:var(--ion-color-primary, #0054e9);--pin-color:var(--ion-color-primary-contrast, #fff)}::slotted(:not(ion-icon)[slot=start]),::slotted(:not(ion-icon)[slot=end]),.native-wrapper{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}.range-knob::before{inset-inline-start: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}.range-pin::before{inset-inline-start: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, var(--ion-background-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, var(--ion-background-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}'}}},[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"],ratioA:[32],ratioB:[32],pressedKnob:[32]},void 0,{debounce:["debounceChanged"],min:["minChanged"],max:["maxChanged"],activeBarStart:["activeBarStartChanged"],disabled:["disabledChanged"],value:["valueChanged"]}]),os=(e,{knob:t,value:n,ratio:i,min:r,max:o,disabled:a,pressed:s,pin:l,handleKeyboard:c,pinFormatter:d,inheritedAttributes:u})=>{let h=e?"right":"left",p=u["aria-label"];return(0,eN.h)("div",{onKeyDown:e=>{let n=e.key;"ArrowLeft"===n||"ArrowDown"===n?(c(t,!1),e.preventDefault(),e.stopPropagation()):("ArrowRight"===n||"ArrowUp"===n)&&(c(t,!0),e.preventDefault(),e.stopPropagation())},class:{"range-knob-handle":!0,"range-knob-a":"A"===t,"range-knob-b":"B"===t,"range-knob-pressed":s,"range-knob-min":n===r,"range-knob-max":n===o,"ion-activatable":!0,"ion-focusable":!0},style:(()=>{let e={};return e[h]=`${100*i}%`,e})(),role:"slider",tabindex:a?-1:0,"aria-label":void 0!==p?p:null,"aria-labelledby":void 0===p?"range-label":null,"aria-valuemin":r,"aria-valuemax":o,"aria-disabled":a?"true":null,"aria-valuenow":n},l&&(0,eN.h)("div",{class:"range-pin",role:"presentation",part:"pin"},d(n)),(0,eN.h)("div",{class:"range-knob",role:"presentation",part:"knob"}))},ol=(e,t,n,i)=>{let r=(n-t)*e;i>0&&(r=Math.round(r/i)*i+t);let o=(0,f.k)(t,r,n);return function(e,...t){let n=Math.max(...t.map(e=>e%1==0?0:e.toString().split(".")[1].length));return Number(e.toFixed(n))}(o,t,n,i)},oc=(e,t,n)=>(0,f.k)(0,(e-t)/(n-t),1),od=0,ou=e=>{let t=e.previousElementSibling,n=null!==t&&"ION-HEADER"===t.tagName;return n?"translate":"scale"},oh=(e,t,n)=>"scale"===e?of(t,n):om(t,n),op=e=>{let t=e.querySelector("ion-spinner"),n=t.shadowRoot.querySelector("circle"),i=e.querySelector(".spinner-arrow-container"),r=e.querySelector(".arrow-container"),o=r?r.querySelector("ion-icon"):null,a=(0,m.c)().duration(1e3).easing("ease-out"),s=(0,m.c)().addElement(i).keyframes([{offset:0,opacity:"0.3"},{offset:.45,opacity:"0.3"},{offset:.55,opacity:"1"},{offset:1,opacity:"1"}]),l=(0,m.c)().addElement(n).keyframes([{offset:0,strokeDasharray:"1px, 200px"},{offset:.2,strokeDasharray:"1px, 200px"},{offset:.55,strokeDasharray:"100px, 200px"},{offset:1,strokeDasharray:"100px, 200px"}]),c=(0,m.c)().addElement(t).keyframes([{offset:0,transform:"rotate(-90deg)"},{offset:1,transform:"rotate(210deg)"}]);if(r&&o){let e=(0,m.c)().addElement(r).keyframes([{offset:0,transform:"rotate(0deg)"},{offset:.3,transform:"rotate(0deg)"},{offset:.55,transform:"rotate(280deg)"},{offset:1,transform:"rotate(400deg)"}]),t=(0,m.c)().addElement(o).keyframes([{offset:0,transform:"translateX(2px) scale(0)"},{offset:.3,transform:"translateX(2px) scale(0)"},{offset:.55,transform:"translateX(-1.5px) scale(1)"},{offset:1,transform:"translateX(-1.5px) scale(1)"}]);a.addAnimation([e,t])}return a.addAnimation([s,l,c])},of=(e,t)=>{let n=t.clientHeight,i=(0,m.c)().addElement(e).keyframes([{offset:0,transform:`scale(0) translateY(-${n}px)`},{offset:1,transform:"scale(1) translateY(100px)"}]);return op(e).addAnimation([i])},om=(e,t)=>{let n=t.clientHeight,i=(0,m.c)().addElement(e).keyframes([{offset:0,transform:`translateY(-${n}px)`},{offset:1,transform:"translateY(100px)"}]);return op(e).addAnimation([i])},og=e=>(0,m.c)().duration(125).addElement(e).fromTo("transform","translateY(var(--ion-pulling-refresher-translate, 100px))","translateY(0px)"),ob=(e,t)=>{e.style.setProperty("opacity",t.toString())},ov=(e,t,n)=>{(0,eN.Iu)(()=>{e.forEach((e,i)=>{let r=i*(1/t),o=(0,f.k)(0,(n-r)/(1-r),1);e.style.setProperty("opacity",o.toString())})})},oy=(e,t)=>{(0,eN.Iu)(()=>{e.style.setProperty("--refreshing-rotation-duration",t>=1?"0.5s":"2s"),e.style.setProperty("opacity","1")})},ox=(e,t,n=200)=>{if(!e)return Promise.resolve();let i=(0,f.t)(e,n);return(0,eN.Iu)(()=>{e.style.setProperty("transition",`${n}ms all ease-out`),void 0===t?e.style.removeProperty("transform"):e.style.setProperty("transform",`translate3d(0px, ${t}, 0px)`)}),i},ow=()=>navigator.maxTouchPoints>0&&CSS.supports("background: -webkit-named-image(apple-pay-logo-black)"),ok=async(e,t)=>{let n=e.querySelector("ion-refresher-content");if(!n)return Promise.resolve(!1);await new Promise(e=>(0,f.c)(n,e));let i=e.querySelector("ion-refresher-content .refresher-pulling ion-spinner"),r=e.querySelector("ion-refresher-content .refresher-refreshing ion-spinner");return null!==i&&null!==r&&("ios"===t&&ow()||"md"===t)},o_=(0,eN.GH)(class extends eN.mv{constructor(){super(),this.__registerHost(),this.ionRefresh=(0,eN.yM)(this,"ionRefresh",7),this.ionPull=(0,eN.yM)(this,"ionPull",7),this.ionStart=(0,eN.yM)(this,"ionStart",7),this.appliedStyles=!1,this.didStart=!1,this.progress=0,this.pointerDown=!1,this.needsCompletion=!1,this.didRefresh=!1,this.contentFullscreen=!1,this.lastVelocityY=0,this.animations=[],this.nativeRefresher=!1,this.state=1,this.pullMin=60,this.pullMax=this.pullMin+60,this.closeDuration="280ms",this.snapbackDuration="280ms",this.pullFactor=1,this.disabled=!1}disabledChanged(){this.gesture&&this.gesture.enable(!this.disabled)}async checkNativeRefresher(){let e=await ok(this.el,(0,p.b)(this));if(e&&!this.nativeRefresher){let e=this.el.closest("ion-content");this.setupNativeRefresher(e)}else e||this.destroyNativeRefresher()}destroyNativeRefresher(){this.scrollEl&&this.scrollListenerCallback&&(this.scrollEl.removeEventListener("scroll",this.scrollListenerCallback),this.scrollListenerCallback=void 0),this.nativeRefresher=!1}async resetNativeRefresher(e,t){this.state=t,"ios"===(0,p.b)(this)?await ox(e,void 0,300):await (0,f.t)(this.el.querySelector(".refresher-refreshing-icon"),200),this.didRefresh=!1,this.needsCompletion=!1,this.pointerDown=!1,this.animations.forEach(e=>e.destroy()),this.animations=[],this.progress=0,this.state=1}async setupiOSNativeRefresher(e,t){this.elementToTransform=this.scrollEl;let i=e.shadowRoot.querySelectorAll("svg"),r=.16*this.scrollEl.clientHeight,o=i.length;(0,eN.Iu)(()=>i.forEach(e=>e.style.setProperty("animation","none"))),this.scrollListenerCallback=()=>{(this.pointerDown||1!==this.state)&&(0,eN.wj)(()=>{let e=this.scrollEl.scrollTop,n=this.el.clientHeight;if(e>0){if(8===this.state){let i=(0,f.k)(0,e/(.5*n),1);(0,eN.Iu)(()=>ob(t,1-i))}return}this.pointerDown&&(this.didStart||(this.didStart=!0,this.ionStart.emit()),this.pointerDown&&this.ionPull.emit());let a=this.didStart?30:0,s=this.progress=(0,f.k)(0,(Math.abs(e)-a)/r,1),l=8===this.state||1===s;l?(this.pointerDown&&oy(t,this.lastVelocityY),this.didRefresh||(this.beginRefresh(),this.didRefresh=!0,n7({style:c.Light}),this.pointerDown||ox(this.elementToTransform,`${n}px`))):(this.state=2,ov(i,o,s))})},this.scrollEl.addEventListener("scroll",this.scrollListenerCallback),this.gesture=(await Promise.resolve().then(n.bind(n,19341))).createGesture({el:this.scrollEl,gestureName:"refresher",gesturePriority:31,direction:"y",threshold:5,onStart:()=>{this.pointerDown=!0,this.didRefresh||ox(this.elementToTransform,"0px"),0===r&&(r=.16*this.scrollEl.clientHeight)},onMove:e=>{this.lastVelocityY=e.velocityY},onEnd:()=>{this.pointerDown=!1,this.didStart=!1,this.needsCompletion?(this.resetNativeRefresher(this.elementToTransform,32),this.needsCompletion=!1):this.didRefresh&&(0,eN.wj)(()=>ox(this.elementToTransform,`${this.el.clientHeight}px`))}}),this.disabledChanged()}async setupMDNativeRefresher(e,t,i){let r=(0,f.g)(t).querySelector("circle"),o=this.el.querySelector("ion-refresher-content .refresher-pulling-icon"),a=(0,f.g)(i).querySelector("circle");null!==r&&null!==a&&(0,eN.Iu)(()=>{r.style.setProperty("animation","none"),i.style.setProperty("animation-delay","-655ms"),a.style.setProperty("animation-delay","-655ms")}),this.gesture=(await Promise.resolve().then(n.bind(n,19341))).createGesture({el:this.scrollEl,gestureName:"refresher",gesturePriority:31,direction:"y",threshold:5,canStart:()=>8!==this.state&&32!==this.state&&0===this.scrollEl.scrollTop,onStart:e=>{this.progress=0,e.data={animation:void 0,didStart:!1,cancelled:!1}},onMove:t=>{if(t.velocityY<0&&0===this.progress&&!t.data.didStart||t.data.cancelled){t.data.cancelled=!0;return}if(!t.data.didStart){t.data.didStart=!0,this.state=2;let{scrollEl:n}=this,i=n.matches(i0.I)?"overflow":"--overflow";(0,eN.Iu)(()=>n.style.setProperty(i,"hidden"));let r=ou(e),a=oh(r,o,this.el);t.data.animation=a,a.progressStart(!1,0),this.ionStart.emit(),this.animations.push(a);return}this.progress=(0,f.k)(0,t.deltaY/180*.5,1),t.data.animation.progressStep(this.progress),this.ionPull.emit()},onEnd:e=>{if(!e.data.didStart)return;this.gesture.enable(!1);let{scrollEl:t}=this,n=t.matches(i0.I)?"overflow":"--overflow";if((0,eN.Iu)(()=>t.style.removeProperty(n)),this.progress<=.4){e.data.animation.progressEnd(0,this.progress,500).onFinish(()=>{this.animations.forEach(e=>e.destroy()),this.animations=[],this.gesture.enable(!0),this.state=1});return}let i=ew([0,0],[0,0],[1,1],[1,1],this.progress)[0],r=og(o);this.animations.push(r),(0,eN.Iu)(async()=>{o.style.setProperty("--ion-pulling-refresher-translate",`${100*i}px`),e.data.animation.progressEnd(),await r.play(),this.beginRefresh(),e.data.animation.destroy(),this.gesture.enable(!0)})}}),this.disabledChanged()}async setupNativeRefresher(e){if(this.scrollListenerCallback||!e||this.nativeRefresher||!this.scrollEl)return;this.setCss(0,"",!1,""),this.nativeRefresher=!0;let t=this.el.querySelector("ion-refresher-content .refresher-pulling ion-spinner"),n=this.el.querySelector("ion-refresher-content .refresher-refreshing ion-spinner");"ios"===(0,p.b)(this)?this.setupiOSNativeRefresher(t,n):this.setupMDNativeRefresher(e,t,n)}componentDidUpdate(){this.checkNativeRefresher()}async connectedCallback(){if("fixed"!==this.el.getAttribute("slot")){console.error('Make sure you use: <ion-refresher slot="fixed">');return}let e=this.el.closest(i0.b);if(!e){(0,i0.p)(this.el);return}(0,f.c)(e,async()=>{let t=e.querySelector(i0.I);this.scrollEl=await (0,i0.g)(null!=t?t:e),this.backgroundContentEl=await e.getBackgroundElement(),this.contentFullscreen=e.fullscreen,await ok(this.el,(0,p.b)(this))?this.setupNativeRefresher(e):(this.gesture=(await Promise.resolve().then(n.bind(n,19341))).createGesture({el:e,gestureName:"refresher",gesturePriority:31,direction:"y",threshold:20,passive:!1,canStart:()=>this.canStart(),onStart:()=>this.onStart(),onMove:e=>this.onMove(e),onEnd:()=>this.onEnd()}),this.disabledChanged())})}disconnectedCallback(){this.destroyNativeRefresher(),this.scrollEl=void 0,this.gesture&&(this.gesture.destroy(),this.gesture=void 0)}async complete(){this.nativeRefresher?(this.needsCompletion=!0,this.pointerDown||(0,f.r)(()=>(0,f.r)(()=>this.resetNativeRefresher(this.elementToTransform,32)))):this.close(32,"120ms")}async cancel(){this.nativeRefresher?this.pointerDown||(0,f.r)(()=>(0,f.r)(()=>this.resetNativeRefresher(this.elementToTransform,16))):this.close(16,"")}getProgress(){return Promise.resolve(this.progress)}canStart(){return!!this.scrollEl&&1===this.state&&!(this.scrollEl.scrollTop>0)}onStart(){this.progress=0,this.state=1,this.memoizeOverflowStyle(),this.contentFullscreen&&this.backgroundContentEl&&this.backgroundContentEl.style.setProperty("--offset-top","0px")}onMove(e){if(!this.scrollEl)return;let t=e.event;if(void 0!==t.touches&&t.touches.length>1||(56&this.state)!=0)return;let n=Number.isNaN(this.pullFactor)||this.pullFactor<0?1:this.pullFactor,i=e.deltaY*n;if(i<=0){this.progress=0,this.state=1,this.appliedStyles&&this.setCss(0,"",!1,"");return}if(1===this.state){let e=this.scrollEl.scrollTop;if(e>0){this.progress=0;return}this.state=2}if(t.cancelable&&t.preventDefault(),this.setCss(i,"0ms",!0,""),0===i){this.progress=0;return}let r=this.pullMin;if(this.progress=i/r,this.didStart||(this.didStart=!0,this.ionStart.emit()),this.ionPull.emit(),i<r){this.state=2;return}if(i>this.pullMax){this.beginRefresh();return}this.state=4}onEnd(){4===this.state?this.beginRefresh():2===this.state?this.cancel():1===this.state&&this.restoreOverflowStyle()}beginRefresh(){this.state=8,this.setCss(this.pullMin,this.snapbackDuration,!0,""),this.ionRefresh.emit({complete:this.complete.bind(this)})}close(e,t){setTimeout(()=>{var e;this.state=1,this.progress=0,this.didStart=!1,this.setCss(0,"0ms",!1,"",!0),this.contentFullscreen&&this.backgroundContentEl&&(null===(e=this.backgroundContentEl)||void 0===e||e.style.removeProperty("--offset-top"))},600),this.state=e,this.setCss(0,this.closeDuration,!0,t)}setCss(e,t,n,i,r=!1){this.nativeRefresher||(this.appliedStyles=e>0,(0,eN.Iu)(()=>{if(this.scrollEl&&this.backgroundContentEl){let r=this.scrollEl.style,o=this.backgroundContentEl.style;r.transform=o.transform=e>0?`translateY(${e}px) translateZ(0px)`:"",r.transitionDuration=o.transitionDuration=t,r.transitionDelay=o.transitionDelay=i,r.overflow=n?"hidden":""}r&&this.restoreOverflowStyle()}))}memoizeOverflowStyle(){if(this.scrollEl){let{overflow:e,overflowX:t,overflowY:n}=this.scrollEl.style;this.overflowStyles={overflow:null!=e?e:"",overflowX:null!=t?t:"",overflowY:null!=n?n:""}}}restoreOverflowStyle(){if(void 0!==this.overflowStyles&&void 0!==this.scrollEl){let{overflow:e,overflowX:t,overflowY:n}=this.overflowStyles;this.scrollEl.style.overflow=e,this.scrollEl.style.overflowX=t,this.scrollEl.style.overflowY=n,this.overflowStyles=void 0}}render(){let e=(0,p.b)(this);return(0,eN.h)(eN.AA,{key:"3270f181a5141e7d886ec554a3e892974446b90e",slot:"fixed",class:{[e]:!0,[`refresher-${e}`]:!0,"refresher-native":this.nativeRefresher,"refresher-active":1!==this.state,"refresher-pulling":2===this.state,"refresher-ready":4===this.state,"refresher-refreshing":8===this.state,"refresher-cancelling":16===this.state,"refresher-completing":32===this.state}})}get el(){return this}static get watchers(){return{disabled:["disabledChanged"]}}static get style(){return{ios:"ion-refresher{top:0;display:none;position:absolute;width:100%;height:60px;pointer-events:none;z-index:-1}ion-refresher{inset-inline-start:0}ion-refresher.refresher-active{display:block}ion-refresher-content{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;height:100%}.refresher-pulling,.refresher-refreshing{display:none;width:100%}.refresher-pulling-icon,.refresher-refreshing-icon{-webkit-transform-origin:center;transform-origin:center;-webkit-transition:200ms;transition:200ms;font-size:30px;text-align:center}:host-context([dir=rtl]) .refresher-pulling-icon,:host-context([dir=rtl]) .refresher-refreshing-icon{-webkit-transform-origin:calc(100% - center);transform-origin:calc(100% - center)}[dir=rtl] .refresher-pulling-icon,[dir=rtl] .refresher-refreshing-icon{-webkit-transform-origin:calc(100% - center);transform-origin:calc(100% - center)}@supports selector(:dir(rtl)){.refresher-pulling-icon:dir(rtl),.refresher-refreshing-icon:dir(rtl){-webkit-transform-origin:calc(100% - center);transform-origin:calc(100% - center)}}.refresher-pulling-text,.refresher-refreshing-text{font-size:16px;text-align:center}ion-refresher-content .arrow-container{display:none}.refresher-pulling ion-refresher-content .refresher-pulling{display:block}.refresher-ready ion-refresher-content .refresher-pulling{display:block}.refresher-ready ion-refresher-content .refresher-pulling-icon{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.refresher-refreshing ion-refresher-content .refresher-refreshing{display:block}.refresher-cancelling ion-refresher-content .refresher-pulling{display:block}.refresher-cancelling ion-refresher-content .refresher-pulling-icon{-webkit-transform:scale(0);transform:scale(0)}.refresher-completing ion-refresher-content .refresher-refreshing{display:block}.refresher-completing ion-refresher-content .refresher-refreshing-icon{-webkit-transform:scale(0);transform:scale(0)}.refresher-native .refresher-pulling-text,.refresher-native .refresher-refreshing-text{display:none}.refresher-ios .refresher-pulling-icon,.refresher-ios .refresher-refreshing-icon{color:var(--ion-text-color, #000)}.refresher-ios .refresher-pulling-text,.refresher-ios .refresher-refreshing-text{color:var(--ion-text-color, #000)}.refresher-ios .refresher-refreshing .spinner-lines-ios line,.refresher-ios .refresher-refreshing .spinner-lines-small-ios line,.refresher-ios .refresher-refreshing .spinner-crescent circle{stroke:var(--ion-text-color, #000)}.refresher-ios .refresher-refreshing .spinner-bubbles circle,.refresher-ios .refresher-refreshing .spinner-circles circle,.refresher-ios .refresher-refreshing .spinner-dots circle{fill:var(--ion-text-color, #000)}ion-refresher.refresher-native{display:block;z-index:1}ion-refresher.refresher-native ion-spinner{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:0;margin-bottom:0}.refresher-native .refresher-refreshing ion-spinner{--refreshing-rotation-duration:2s;display:none;-webkit-animation:var(--refreshing-rotation-duration) ease-out refresher-rotate forwards;animation:var(--refreshing-rotation-duration) ease-out refresher-rotate forwards}.refresher-native .refresher-refreshing{display:none;-webkit-animation:250ms linear refresher-pop forwards;animation:250ms linear refresher-pop forwards}.refresher-native ion-spinner{width:32px;height:32px;color:var(--ion-color-step-450, var(--ion-background-color-step-450, #747577))}.refresher-native.refresher-refreshing .refresher-pulling ion-spinner,.refresher-native.refresher-completing .refresher-pulling ion-spinner{display:none}.refresher-native.refresher-refreshing .refresher-refreshing ion-spinner,.refresher-native.refresher-completing .refresher-refreshing ion-spinner{display:block}.refresher-native.refresher-pulling .refresher-pulling ion-spinner{display:block}.refresher-native.refresher-pulling .refresher-refreshing ion-spinner{display:none}.refresher-native.refresher-completing ion-refresher-content .refresher-refreshing-icon{-webkit-transform:scale(0) rotate(180deg);transform:scale(0) rotate(180deg);-webkit-transition:300ms;transition:300ms}@-webkit-keyframes refresher-pop{0%{-webkit-transform:scale(1);transform:scale(1);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}50%{-webkit-transform:scale(1.2);transform:scale(1.2);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}100%{-webkit-transform:scale(1);transform:scale(1)}}@keyframes refresher-pop{0%{-webkit-transform:scale(1);transform:scale(1);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}50%{-webkit-transform:scale(1.2);transform:scale(1.2);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}100%{-webkit-transform:scale(1);transform:scale(1)}}@-webkit-keyframes refresher-rotate{from{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(180deg);transform:rotate(180deg)}}@keyframes refresher-rotate{from{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(180deg);transform:rotate(180deg)}}",md:"ion-refresher{top:0;display:none;position:absolute;width:100%;height:60px;pointer-events:none;z-index:-1}ion-refresher{inset-inline-start:0}ion-refresher.refresher-active{display:block}ion-refresher-content{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;height:100%}.refresher-pulling,.refresher-refreshing{display:none;width:100%}.refresher-pulling-icon,.refresher-refreshing-icon{-webkit-transform-origin:center;transform-origin:center;-webkit-transition:200ms;transition:200ms;font-size:30px;text-align:center}:host-context([dir=rtl]) .refresher-pulling-icon,:host-context([dir=rtl]) .refresher-refreshing-icon{-webkit-transform-origin:calc(100% - center);transform-origin:calc(100% - center)}[dir=rtl] .refresher-pulling-icon,[dir=rtl] .refresher-refreshing-icon{-webkit-transform-origin:calc(100% - center);transform-origin:calc(100% - center)}@supports selector(:dir(rtl)){.refresher-pulling-icon:dir(rtl),.refresher-refreshing-icon:dir(rtl){-webkit-transform-origin:calc(100% - center);transform-origin:calc(100% - center)}}.refresher-pulling-text,.refresher-refreshing-text{font-size:16px;text-align:center}ion-refresher-content .arrow-container{display:none}.refresher-pulling ion-refresher-content .refresher-pulling{display:block}.refresher-ready ion-refresher-content .refresher-pulling{display:block}.refresher-ready ion-refresher-content .refresher-pulling-icon{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.refresher-refreshing ion-refresher-content .refresher-refreshing{display:block}.refresher-cancelling ion-refresher-content .refresher-pulling{display:block}.refresher-cancelling ion-refresher-content .refresher-pulling-icon{-webkit-transform:scale(0);transform:scale(0)}.refresher-completing ion-refresher-content .refresher-refreshing{display:block}.refresher-completing ion-refresher-content .refresher-refreshing-icon{-webkit-transform:scale(0);transform:scale(0)}.refresher-native .refresher-pulling-text,.refresher-native .refresher-refreshing-text{display:none}.refresher-md .refresher-pulling-icon,.refresher-md .refresher-refreshing-icon{color:var(--ion-text-color, #000)}.refresher-md .refresher-pulling-text,.refresher-md .refresher-refreshing-text{color:var(--ion-text-color, #000)}.refresher-md .refresher-refreshing .spinner-lines-md line,.refresher-md .refresher-refreshing .spinner-lines-small-md line,.refresher-md .refresher-refreshing .spinner-crescent circle{stroke:var(--ion-text-color, #000)}.refresher-md .refresher-refreshing .spinner-bubbles circle,.refresher-md .refresher-refreshing .spinner-circles circle,.refresher-md .refresher-refreshing .spinner-dots circle{fill:var(--ion-text-color, #000)}ion-refresher.refresher-native{display:block;z-index:1}ion-refresher.refresher-native ion-spinner{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:0;margin-bottom:0;width:24px;height:24px;color:var(--ion-color-primary, #0054e9)}ion-refresher.refresher-native .spinner-arrow-container{display:inherit}ion-refresher.refresher-native .arrow-container{display:block;position:absolute;width:24px;height:24px}ion-refresher.refresher-native .arrow-container ion-icon{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:0;margin-bottom:0;left:0;right:0;bottom:-4px;position:absolute;color:var(--ion-color-primary, #0054e9);font-size:12px}ion-refresher.refresher-native.refresher-pulling ion-refresher-content .refresher-pulling,ion-refresher.refresher-native.refresher-ready ion-refresher-content .refresher-pulling{display:-ms-flexbox;display:flex}ion-refresher.refresher-native.refresher-refreshing ion-refresher-content .refresher-refreshing,ion-refresher.refresher-native.refresher-completing ion-refresher-content .refresher-refreshing,ion-refresher.refresher-native.refresher-cancelling ion-refresher-content .refresher-refreshing{display:-ms-flexbox;display:flex}ion-refresher.refresher-native .refresher-pulling-icon{-webkit-transform:translateY(calc(-100% - 10px));transform:translateY(calc(-100% - 10px))}ion-refresher.refresher-native .refresher-pulling-icon,ion-refresher.refresher-native .refresher-refreshing-icon{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:0;margin-bottom:0;border-radius:100%;-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px;padding-top:8px;padding-bottom:8px;display:-ms-flexbox;display:flex;border:1px solid var(--ion-color-step-200, var(--ion-background-color-step-200, #ececec));background:var(--ion-color-step-250, var(--ion-background-color-step-250, #ffffff));-webkit-box-shadow:0px 1px 6px rgba(0, 0, 0, 0.1);box-shadow:0px 1px 6px rgba(0, 0, 0, 0.1)}"}}},[32,"ion-refresher",{pullMin:[2,"pull-min"],pullMax:[2,"pull-max"],closeDuration:[1,"close-duration"],snapbackDuration:[1,"snapback-duration"],pullFactor:[2,"pull-factor"],disabled:[4],nativeRefresher:[32],state:[32],complete:[64],cancel:[64],getProgress:[64]},void 0,{disabled:["disabledChanged"]}]),oE=(0,eN.GH)(class extends eN.mv{constructor(){super(),this.__registerHost(),this.customHTMLEnabled=p.c.get("innerHTMLTemplatesEnabled",!1),this.pullingIcon=void 0,this.pullingText=void 0,this.refreshingSpinner=void 0,this.refreshingText=void 0}componentWillLoad(){if(void 0===this.pullingIcon){let e=ow(),t=(0,p.b)(this);this.pullingIcon=p.c.get("refreshingIcon","ios"===t&&e?p.c.get("spinner",e?"lines":"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path stroke-linecap='round' stroke-linejoin='round' stroke-width='48' d='M112 268l144 144 144-144M256 392V100' class='ionicon-fill-none'/></svg>"):"circular")}if(void 0===this.refreshingSpinner){let e=(0,p.b)(this);this.refreshingSpinner=p.c.get("refreshingSpinner",p.c.get("spinner","ios"===e?"lines":"circular"))}}renderPullingText(){let{customHTMLEnabled:e,pullingText:t}=this;return e?(0,eN.h)("div",{class:"refresher-pulling-text",innerHTML:ef(t)}):(0,eN.h)("div",{class:"refresher-pulling-text"},t)}renderRefreshingText(){let{customHTMLEnabled:e,refreshingText:t}=this;return e?(0,eN.h)("div",{class:"refresher-refreshing-text",innerHTML:ef(t)}):(0,eN.h)("div",{class:"refresher-refreshing-text"},t)}render(){let e=this.pullingIcon,t=null!=e&&void 0!==ru[e],n=(0,p.b)(this);return(0,eN.h)(eN.AA,{key:"1bec5b4da221c69d856f3f5ddf40f2e03ebf2a4c",class:n},(0,eN.h)("div",{key:"4fcc526c4f1881e9368d9cd16bd7030919bd3841",class:"refresher-pulling"},this.pullingIcon&&t&&(0,eN.h)("div",{key:"a4e9e2e12c2d7faefc8303ec8c021f999ddf308e",class:"refresher-pulling-icon"},(0,eN.h)("div",{key:"5a2d215feb7fb4b64d540d3a65c0f24b415a2433",class:"spinner-arrow-container"},(0,eN.h)("ion-spinner",{key:"abef2621d671ac6ff0abac43a702cbd825b7f127",name:this.pullingIcon,paused:!0}),"md"===n&&"circular"===this.pullingIcon&&(0,eN.h)("div",{key:"30087d672c3780672a05874cd93cd099b2855462",class:"arrow-container"},(0,eN.h)("ion-icon",{key:"5e30333dee469aec0d8efc8c4e6dabb619c6f363",icon:"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path d='M368 64L144 256l224 192V64z'/></svg>","aria-hidden":"true"})))),this.pullingIcon&&!t&&(0,eN.h)("div",{key:"48fe72b5ce8ded633c6ee799cebb520b9c8be528",class:"refresher-pulling-icon"},(0,eN.h)("ion-icon",{key:"d8dfd5d42056b1c0a436c5006affb255407816c0",icon:this.pullingIcon,lazy:!1,"aria-hidden":"true"})),void 0!==this.pullingText&&this.renderPullingText()),(0,eN.h)("div",{key:"c2cbfb94f157c82601ffe7bb815ff82ebc7c0a49",class:"refresher-refreshing"},this.refreshingSpinner&&(0,eN.h)("div",{key:"17f3ebe6a31768d5e389f45a2c12f68600185db9",class:"refresher-refreshing-icon"},(0,eN.h)("ion-spinner",{key:"e8e61f8d7189c9939bba184201c9509d1d5b0fad",name:this.refreshingSpinner})),void 0!==this.refreshingText&&this.renderRefreshingText()))}get el(){return this}},[0,"ion-refresher-content",{pullingIcon:[1025,"pulling-icon"],pullingText:[1,"pulling-text"],refreshingSpinner:[1025,"refreshing-spinner"],refreshingText:[1,"refreshing-text"]}]),oS=(0,eN.GH)(class extends eN.mv{constructor(){super(),this.__registerHost(),this.__attachShadow()}onClick(e){let t=this.el.closest("ion-reorder-group");e.preventDefault(),t&&t.disabled||e.stopImmediatePropagation()}render(){let e=(0,p.b)(this);return(0,eN.h)(eN.AA,{key:"663d74e231e3af56b6298ee2539fdac9c8465839",class:e},(0,eN.h)("slot",{key:"c7c384ab8c9ca8abdc89cd984a39dfde70e342ca"},(0,eN.h)("ion-icon",{key:"c8b6052db03d4b9e33a90e600c20861c73ee73ce",icon:"ios"===e?"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path stroke-linecap='round' stroke-linejoin='round' d='M96 256h320M96 176h320M96 336h320' class='ionicon-fill-none ionicon-stroke-width'/></svg>":"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path stroke-linecap='square' stroke-linejoin='round' stroke-width='44' d='M118 304h276M118 208h276' class='ionicon-fill-none'/></svg>",lazy:!1,class:"reorder-icon",part:"icon","aria-hidden":"true"})))}get el(){return this}static get style(){return{ios:":host([slot]){display:none;line-height:0;z-index:100}.reorder-icon{display:block}::slotted(ion-icon){font-size:dynamic-font(16px)}.reorder-icon{font-size:2.125rem;opacity:0.4}",md:":host([slot]){display:none;line-height:0;z-index:100}.reorder-icon{display:block}::slotted(ion-icon){font-size:dynamic-font(16px)}.reorder-icon{font-size:1.9375rem;opacity:0.3}"}}},[33,"ion-reorder",void 0,[[2,"click","onClick"]]]),oC=(0,eN.GH)(class extends eN.mv{constructor(){super(),this.__registerHost(),this.ionItemReorder=(0,eN.yM)(this,"ionItemReorder",7),this.lastToIndex=-1,this.cachedHeights=[],this.scrollElTop=0,this.scrollElBottom=0,this.scrollElInitial=0,this.containerTop=0,this.containerBottom=0,this.state=0,this.disabled=!0}disabledChanged(){this.gesture&&this.gesture.enable(!this.disabled)}async connectedCallback(){let e=(0,i0.a)(this.el);e&&(this.scrollEl=await (0,i0.g)(e)),this.gesture=(await Promise.resolve().then(n.bind(n,19341))).createGesture({el:this.el,gestureName:"reorder",gesturePriority:110,threshold:0,direction:"y",passive:!1,canStart:e=>this.canStart(e),onStart:e=>this.onStart(e),onMove:e=>this.onMove(e),onEnd:()=>this.onEnd()}),this.disabledChanged()}disconnectedCallback(){this.onEnd(),this.gesture&&(this.gesture.destroy(),this.gesture=void 0)}complete(e){return Promise.resolve(this.completeReorder(e))}canStart(e){if(this.selectedItemEl||0!==this.state)return!1;let t=e.event.target,n=t.closest("ion-reorder");if(!n)return!1;let i=oT(n,this.el);return!!i&&(e.data=i,!0)}onStart(e){e.event.preventDefault();let t=this.selectedItemEl=e.data,n=this.cachedHeights;n.length=0;let i=this.el,r=i.children;if(!r||0===r.length)return;let o=0;for(let e=0;e<r.length;e++){let t=r[e];o+=t.offsetHeight,n.push(o),t.$ionIndex=e}let a=i.getBoundingClientRect();if(this.containerTop=a.top,this.containerBottom=a.bottom,this.scrollEl){let e=this.scrollEl.getBoundingClientRect();this.scrollElInitial=this.scrollEl.scrollTop,this.scrollElTop=e.top+oO,this.scrollElBottom=e.bottom-oO}else this.scrollElInitial=0,this.scrollElTop=0,this.scrollElBottom=0;this.lastToIndex=oP(t),this.selectedItemHeight=t.offsetHeight,this.state=1,t.classList.add(oI),n6()}onMove(e){let t=this.selectedItemEl;if(!t)return;let n=this.autoscroll(e.currentY),i=this.containerTop-n,r=this.containerBottom-n,o=Math.max(i,Math.min(e.currentY,r)),a=n+o-e.startY,s=this.itemIndexForTop(o-i);if(s!==this.lastToIndex){let e=oP(t);this.lastToIndex=s,n8(),this.reorderMove(e,s)}t.style.transform=`translateY(${a}px)`}onEnd(){let e=this.selectedItemEl;if(this.state=2,!e){this.state=0;return}let t=this.lastToIndex,n=oP(e);t===n?this.completeReorder():this.ionItemReorder.emit({from:n,to:t,complete:this.completeReorder.bind(this)}),n9()}completeReorder(e){let t=this.selectedItemEl;if(t&&2===this.state){let n=this.el.children,i=n.length,r=this.lastToIndex,o=oP(t);(0,f.r)(()=>{if(r!==o&&(void 0===e||!0===e)){let e=o<r?n[r+1]:n[r];this.el.insertBefore(t,e)}for(let e=0;e<i;e++)n[e].style.transform=""}),Array.isArray(e)&&(e=oR(e,o,r)),t.style.transition="",t.classList.remove(oI),this.selectedItemEl=void 0,this.state=0}return e}itemIndexForTop(e){let t=this.cachedHeights;for(let n=0;n<t.length;n++)if(t[n]>e)return n;return t.length-1}reorderMove(e,t){let n=this.selectedItemHeight,i=this.el.children;for(let r=0;r<i.length;r++){let o=i[r].style,a="";r>e&&r<=t?a=`translateY(${-n}px)`:r<e&&r>=t&&(a=`translateY(${n}px)`),o.transform=a}}autoscroll(e){if(!this.scrollEl)return 0;let t=0;return e<this.scrollElTop?t=-oA:e>this.scrollElBottom&&(t=oA),0!==t&&this.scrollEl.scrollBy(0,t),this.scrollEl.scrollTop-this.scrollElInitial}render(){let e=(0,p.b)(this);return(0,eN.h)(eN.AA,{key:"491f3e5843cf728ff4589e58bd86b8ce6709b293",class:{[e]:!0,"reorder-enabled":!this.disabled,"reorder-list-active":0!==this.state}})}get el(){return this}static get watchers(){return{disabled:["disabledChanged"]}}static get style(){return".reorder-list-active>*{display:block;-webkit-transition:-webkit-transform 300ms;transition:-webkit-transform 300ms;transition:transform 300ms;transition:transform 300ms, -webkit-transform 300ms;will-change:transform}.reorder-enabled{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.reorder-enabled ion-reorder{display:block;cursor:-webkit-grab;cursor:grab;pointer-events:all;-ms-touch-action:none;touch-action:none}.reorder-selected,.reorder-selected ion-reorder{cursor:-webkit-grabbing;cursor:grabbing}.reorder-selected{position:relative;-webkit-transition:none !important;transition:none !important;-webkit-box-shadow:0 0 10px rgba(0, 0, 0, 0.4);box-shadow:0 0 10px rgba(0, 0, 0, 0.4);opacity:0.8;z-index:100}.reorder-visible ion-reorder .reorder-icon{-webkit-transform:translate3d(0,  0,  0);transform:translate3d(0,  0,  0)}"}},[0,"ion-reorder-group",{disabled:[4],state:[32],complete:[64]},void 0,{disabled:["disabledChanged"]}]),oP=e=>e.$ionIndex,oT=(e,t)=>{let n;for(;e;){if((n=e.parentElement)===t)return e;e=n}},oO=60,oA=10,oI="reorder-selected",oR=(e,t,n)=>{let i=e[t];return e.splice(t,1),e.splice(n,0,i),e.slice()},o$=(0,eN.GH)(class extends eN.mv{constructor(){super(),this.__registerHost(),this.__attachShadow()}render(){return(0,eN.h)(eN.AA,{key:"813c9a7f6782d2cf8eb27f30d3ab28e6f3122868",class:(0,p.b)(this)},(0,eN.h)("slot",{key:"356bec4d4d408ea63d6b431b06465d5b7bcbff71"}))}static get style(){return":host{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}"}},[1,"ion-row"]),oL=(0,eN.GH)(class extends eN.mv{constructor(){super(),this.__registerHost(),this.ionInput=(0,eN.yM)(this,"ionInput",7),this.ionChange=(0,eN.yM)(this,"ionChange",7),this.ionCancel=(0,eN.yM)(this,"ionCancel",7),this.ionClear=(0,eN.yM)(this,"ionClear",7),this.ionBlur=(0,eN.yM)(this,"ionBlur",7),this.ionFocus=(0,eN.yM)(this,"ionFocus",7),this.ionStyle=(0,eN.yM)(this,"ionStyle",7),this.isCancelVisible=!1,this.shouldAlignLeft=!0,this.inputId=`ion-searchbar-${oM++}`,this.inheritedAttributes={},this.onClearInput=async e=>(this.ionClear.emit(),new Promise(t=>{setTimeout(()=>{let n=this.getValue();""!==n&&(this.value="",this.emitInputChange(),e&&!this.focused&&(this.setFocus(),this.focusedValue=n)),t()},64)})),this.onCancelSearchbar=async e=>{e&&(e.preventDefault(),e.stopPropagation()),this.ionCancel.emit();let t=this.getValue(),n=this.focused;await this.onClearInput(),t&&!n&&this.emitValueChange(e),this.nativeInput&&this.nativeInput.blur()},this.onInput=e=>{let t=e.target;t&&(this.value=t.value),this.emitInputChange(e)},this.onChange=e=>{this.emitValueChange(e)},this.onBlur=e=>{this.focused=!1,this.ionBlur.emit(),this.positionElements(),this.focusedValue!==this.value&&this.emitValueChange(e),this.focusedValue=void 0},this.onFocus=()=>{this.focused=!0,this.focusedValue=this.value,this.ionFocus.emit(),this.positionElements()},this.focused=!1,this.noAnimate=!0,this.color=void 0,this.animated=!1,this.autocapitalize="off",this.autocomplete="off",this.autocorrect="off",this.cancelButtonIcon=p.c.get("backButtonIcon",eF),this.cancelButtonText="Cancel",this.clearIcon=void 0,this.debounce=void 0,this.disabled=!1,this.inputmode=void 0,this.enterkeyhint=void 0,this.maxlength=void 0,this.minlength=void 0,this.name=this.inputId,this.placeholder="Search",this.searchIcon=void 0,this.showCancelButton="never",this.showClearButton="always",this.spellcheck=!1,this.type="search",this.value=""}onLangChanged(e){this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{lang:e}),(0,eN.xE)(this)}onDirChanged(e){this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{dir:e}),(0,eN.xE)(this)}debounceChanged(){let{ionInput:e,debounce:t,originalIonInput:n}=this;this.ionInput=void 0===t?null!=n?n:e:(0,f.l)(e,t)}valueChanged(){let e=this.nativeInput,t=this.getValue();e&&e.value!==t&&(e.value=t)}showCancelButtonChanged(){requestAnimationFrame(()=>{this.positionElements(),(0,eN.xE)(this)})}connectedCallback(){this.emitStyle()}componentWillLoad(){this.inheritedAttributes=Object.assign({},(0,f.d)(this.el,["lang","dir"]))}componentDidLoad(){this.originalIonInput=this.ionInput,this.positionElements(),this.debounceChanged(),setTimeout(()=>{this.noAnimate=!1},300)}emitStyle(){this.ionStyle.emit({searchbar:!0})}async setFocus(){this.nativeInput&&this.nativeInput.focus()}async getInputElement(){return this.nativeInput||await new Promise(e=>(0,f.c)(this.el,e)),Promise.resolve(this.nativeInput)}emitValueChange(e){let{value:t}=this,n=null==t?t:t.toString();this.focusedValue=n,this.ionChange.emit({value:n,event:e})}emitInputChange(e){let{value:t}=this;this.ionInput.emit({value:t,event:e})}positionElements(){let e=this.getValue(),t=this.shouldAlignLeft,n=(0,p.b)(this),i=!this.animated||""!==e.trim()||!!this.focused;this.shouldAlignLeft=i,"ios"===n&&(t!==i&&this.positionPlaceholder(),this.animated&&this.positionCancelButton())}positionPlaceholder(){let e=this.nativeInput;if(!e)return;let t=(0,t$.i)(this.el),n=(this.el.shadowRoot||this.el).querySelector(".searchbar-search-icon");if(this.shouldAlignLeft)e.removeAttribute("style"),n.removeAttribute("style");else{let i=document,r=i.createElement("span");r.innerText=this.placeholder||"",i.body.appendChild(r),(0,f.r)(()=>{let i=r.offsetWidth;r.remove();let o="calc(50% - "+i/2+"px)",a="calc(50% - "+(i/2+n.clientWidth+8)+"px)";t?(e.style.paddingRight=o,n.style.marginRight=a):(e.style.paddingLeft=o,n.style.marginLeft=a)})}}positionCancelButton(){let e=(0,t$.i)(this.el),t=(this.el.shadowRoot||this.el).querySelector(".searchbar-cancel-button"),n=this.shouldShowCancelButton();if(null!==t&&n!==this.isCancelVisible){let i=t.style;if(this.isCancelVisible=n,n)e?i.marginLeft="0":i.marginRight="0";else{let n=t.offsetWidth;n>0&&(e?i.marginLeft=-n+"px":i.marginRight=-n+"px")}}}getValue(){return this.value||""}hasValue(){return""!==this.getValue()}shouldShowCancelButton(){return"never"!==this.showCancelButton&&("focus"!==this.showCancelButton||!!this.focused)}shouldShowClearButton(){return"never"!==this.showClearButton&&("focus"!==this.showClearButton||!!this.focused)}render(){let{cancelButtonText:e,autocapitalize:t}=this,n=this.animated&&p.c.getBoolean("animated",!0),i=(0,p.b)(this),r=this.clearIcon||("ios"===i?eV:eW),o=this.searchIcon||("ios"===i?"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path d='M221.09 64a157.09 157.09 0 10157.09 157.09A157.1 157.1 0 00221.09 64z' stroke-miterlimit='10' class='ionicon-fill-none ionicon-stroke-width'/><path stroke-linecap='round' stroke-miterlimit='10' d='M338.29 338.29L448 448' class='ionicon-fill-none ionicon-stroke-width'/></svg>":"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path d='M464 428L339.92 303.9a160.48 160.48 0 0030.72-94.58C370.64 120.37 298.27 48 209.32 48S48 120.37 48 209.32s72.37 161.32 161.32 161.32a160.48 160.48 0 0094.58-30.72L428 464zM209.32 319.69a110.38 110.38 0 11110.37-110.37 110.5 110.5 0 01-110.37 110.37z'/></svg>"),a=this.shouldShowCancelButton(),s="never"!==this.showCancelButton&&(0,eN.h)("button",{key:"20b2d0f2e3425eede725dbe3323c7c29cdb66f4e","aria-label":e,"aria-hidden":a?void 0:"true",type:"button",tabIndex:"ios"!==i||a?void 0:-1,onMouseDown:this.onCancelSearchbar,onTouchStart:this.onCancelSearchbar,class:"searchbar-cancel-button"},(0,eN.h)("div",{key:"3a516c3fdd35256eb79639fd340afcdd92cfd7aa","aria-hidden":"true"},"md"===i?(0,eN.h)("ion-icon",{"aria-hidden":"true",mode:i,icon:this.cancelButtonIcon,lazy:!1}):e));return(0,eN.h)(eN.AA,{key:"34878db21f63a9bdffca0446d8ad5619ff04cac3",role:"search","aria-disabled":this.disabled?"true":null,class:eP(this.color,{[i]:!0,"searchbar-animated":n,"searchbar-disabled":this.disabled,"searchbar-no-animate":n&&this.noAnimate,"searchbar-has-value":this.hasValue(),"searchbar-left-aligned":this.shouldAlignLeft,"searchbar-has-focus":this.focused,"searchbar-should-show-clear":this.shouldShowClearButton(),"searchbar-should-show-cancel":this.shouldShowCancelButton()})},(0,eN.h)("div",{key:"faa7b011206a8359b1963368c65988e506b260cb",class:"searchbar-input-container"},(0,eN.h)("input",Object.assign({key:"732d3e5a2b258da6f136a14472ac872816a9853b","aria-label":"search text",disabled:this.disabled,ref:e=>this.nativeInput=e,class:"searchbar-input",inputMode:this.inputmode,enterKeyHint:this.enterkeyhint,name:this.name,onInput:this.onInput,onChange:this.onChange,onBlur:this.onBlur,onFocus:this.onFocus,minLength:this.minlength,maxLength:this.maxlength,placeholder:this.placeholder,type:this.type,value:this.getValue(),autoCapitalize:"default"===t?void 0:t,autoComplete:this.autocomplete,autoCorrect:this.autocorrect,spellcheck:this.spellcheck},this.inheritedAttributes)),"md"===i&&s,(0,eN.h)("ion-icon",{key:"767dca971849f221dde220deae728b41bf764b98","aria-hidden":"true",mode:i,icon:o,lazy:!1,class:"searchbar-search-icon"}),(0,eN.h)("button",{key:"9941b5de1ed9ebcf3e81de8e0731c09dea5a89d9","aria-label":"reset",type:"button","no-blur":!0,class:"searchbar-clear-button",onPointerDown:e=>{e.preventDefault()},onClick:()=>this.onClearInput(!0)},(0,eN.h)("ion-icon",{key:"cb2b543d286373a84e2c6c2a959f92b045bbd7dd","aria-hidden":"true",mode:i,icon:r,lazy:!1,class:"searchbar-clear-icon"}))),"ios"===i&&s)}get el(){return this}static get watchers(){return{lang:["onLangChanged"],dir:["onDirChanged"],debounce:["debounceChanged"],value:["valueChanged"],showCancelButton:["showCancelButtonChanged"]}}static get style(){return{ios:".sc-ion-searchbar-ios-h{--placeholder-color:initial;--placeholder-font-style:initial;--placeholder-font-weight:initial;--placeholder-opacity:var(--ion-placeholder-opacity, 0.6);-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;width:100%;color:var(--color);font-family:var(--ion-font-family, inherit);-webkit-box-sizing:border-box;box-sizing:border-box}.ion-color.sc-ion-searchbar-ios-h{color:var(--ion-color-contrast)}.ion-color.sc-ion-searchbar-ios-h .searchbar-input.sc-ion-searchbar-ios{background:var(--ion-color-base)}.ion-color.sc-ion-searchbar-ios-h .searchbar-clear-button.sc-ion-searchbar-ios,.ion-color.sc-ion-searchbar-ios-h .searchbar-cancel-button.sc-ion-searchbar-ios,.ion-color.sc-ion-searchbar-ios-h .searchbar-search-icon.sc-ion-searchbar-ios{color:inherit}.searchbar-search-icon.sc-ion-searchbar-ios{color:var(--icon-color);pointer-events:none}.searchbar-input-container.sc-ion-searchbar-ios{display:block;position:relative;-ms-flex-negative:1;flex-shrink:1;width:100%}.searchbar-input.sc-ion-searchbar-ios{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;border-radius:var(--border-radius);display:block;width:100%;min-height:inherit;border:0;outline:none;background:var(--background);font-family:inherit;-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-appearance:none;-moz-appearance:none;appearance:none}.searchbar-input.sc-ion-searchbar-ios::-webkit-input-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.searchbar-input.sc-ion-searchbar-ios::-moz-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.searchbar-input.sc-ion-searchbar-ios:-ms-input-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.searchbar-input.sc-ion-searchbar-ios::-ms-input-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.searchbar-input.sc-ion-searchbar-ios::placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.searchbar-input.sc-ion-searchbar-ios::-webkit-search-cancel-button,.searchbar-input.sc-ion-searchbar-ios::-ms-clear{display:none}.searchbar-cancel-button.sc-ion-searchbar-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:none;height:100%;border:0;outline:none;color:var(--cancel-button-color);cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none}.searchbar-cancel-button.sc-ion-searchbar-ios>div.sc-ion-searchbar-ios{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%}.searchbar-clear-button.sc-ion-searchbar-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:none;min-height:0;outline:none;color:var(--clear-button-color);-webkit-appearance:none;-moz-appearance:none;appearance:none}.searchbar-clear-button.sc-ion-searchbar-ios:focus{opacity:0.5}.searchbar-has-value.searchbar-should-show-clear.sc-ion-searchbar-ios-h .searchbar-clear-button.sc-ion-searchbar-ios{display:block}.searchbar-disabled.sc-ion-searchbar-ios-h{cursor:default;opacity:0.4;pointer-events:none}.sc-ion-searchbar-ios-h{--background:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.07);--border-radius:10px;--box-shadow:none;--cancel-button-color:var(--ion-color-primary, #0054e9);--clear-button-color:var(--ion-color-step-600, var(--ion-text-color-step-400, #666666));--color:var(--ion-text-color, #000);--icon-color:var(--ion-color-step-600, var(--ion-text-color-step-400, #666666));-webkit-padding-start:12px;padding-inline-start:12px;-webkit-padding-end:12px;padding-inline-end:12px;padding-top:12px;padding-bottom:12px;min-height:60px;contain:content}.searchbar-input-container.sc-ion-searchbar-ios{min-height:36px}.searchbar-search-icon.sc-ion-searchbar-ios{-webkit-margin-start:calc(50% - 60px);margin-inline-start:calc(50% - 60px);top:0;position:absolute;width:1.375rem;height:100%;contain:strict}.searchbar-search-icon.sc-ion-searchbar-ios{inset-inline-start:5px}.searchbar-input.sc-ion-searchbar-ios{-webkit-padding-start:0px;padding-inline-start:0px;-webkit-padding-end:0px;padding-inline-end:0px;padding-top:6px;padding-bottom:6px;height:100%;font-size:1.0625rem;font-weight:400;contain:strict}.searchbar-has-value.searchbar-should-show-clear.sc-ion-searchbar-ios-h .searchbar-input.sc-ion-searchbar-ios{-webkit-padding-start:1.75rem;padding-inline-start:1.75rem;-webkit-padding-end:1.75rem;padding-inline-end:1.75rem}.searchbar-clear-button.sc-ion-searchbar-ios{top:0;background-position:center;position:absolute;width:1.875rem;height:100%;border:0;background-color:transparent}.searchbar-clear-button.sc-ion-searchbar-ios{inset-inline-end:0}.searchbar-clear-icon.sc-ion-searchbar-ios{width:1.125rem;height:100%}.searchbar-cancel-button.sc-ion-searchbar-ios{-webkit-padding-start:12px;padding-inline-start:12px;-webkit-padding-end:0;padding-inline-end:0;padding-top:0;padding-bottom:0;-ms-flex-negative:0;flex-shrink:0;background-color:transparent;font-size:17px}.searchbar-left-aligned.sc-ion-searchbar-ios-h .searchbar-search-icon.sc-ion-searchbar-ios{-webkit-margin-start:0;margin-inline-start:0}.searchbar-left-aligned.sc-ion-searchbar-ios-h .searchbar-input.sc-ion-searchbar-ios{-webkit-padding-start:1.875rem;padding-inline-start:1.875rem}.searchbar-has-focus.sc-ion-searchbar-ios-h .searchbar-cancel-button.sc-ion-searchbar-ios,.searchbar-should-show-cancel.sc-ion-searchbar-ios-h .searchbar-cancel-button.sc-ion-searchbar-ios,.searchbar-animated.sc-ion-searchbar-ios-h .searchbar-cancel-button.sc-ion-searchbar-ios{display:block}.searchbar-animated.sc-ion-searchbar-ios-h .searchbar-search-icon.sc-ion-searchbar-ios,.searchbar-animated.sc-ion-searchbar-ios-h .searchbar-input.sc-ion-searchbar-ios{-webkit-transition:all 300ms ease;transition:all 300ms ease}.searchbar-animated.searchbar-has-focus.sc-ion-searchbar-ios-h .searchbar-cancel-button.sc-ion-searchbar-ios,.searchbar-animated.searchbar-should-show-cancel.sc-ion-searchbar-ios-h .searchbar-cancel-button.sc-ion-searchbar-ios{opacity:1;pointer-events:auto}.searchbar-animated.sc-ion-searchbar-ios-h .searchbar-cancel-button.sc-ion-searchbar-ios{-webkit-margin-end:-100%;margin-inline-end:-100%;-webkit-transform:translate3d(0,  0,  0);transform:translate3d(0,  0,  0);-webkit-transition:all 300ms ease;transition:all 300ms ease;opacity:0;pointer-events:none}.searchbar-no-animate.sc-ion-searchbar-ios-h .searchbar-search-icon.sc-ion-searchbar-ios,.searchbar-no-animate.sc-ion-searchbar-ios-h .searchbar-input.sc-ion-searchbar-ios,.searchbar-no-animate.sc-ion-searchbar-ios-h .searchbar-cancel-button.sc-ion-searchbar-ios{-webkit-transition-duration:0ms;transition-duration:0ms}.ion-color.sc-ion-searchbar-ios-h .searchbar-cancel-button.sc-ion-searchbar-ios{color:var(--ion-color-base)}@media (any-hover: hover){.ion-color.sc-ion-searchbar-ios-h .searchbar-cancel-button.sc-ion-searchbar-ios:hover{color:var(--ion-color-tint)}}ion-toolbar.sc-ion-searchbar-ios-h,ion-toolbar .sc-ion-searchbar-ios-h{padding-top:1px;padding-bottom:15px;min-height:52px}ion-toolbar.ion-color.sc-ion-searchbar-ios-h:not(.ion-color),ion-toolbar.ion-color .sc-ion-searchbar-ios-h:not(.ion-color){color:inherit}ion-toolbar.ion-color.sc-ion-searchbar-ios-h:not(.ion-color) .searchbar-cancel-button.sc-ion-searchbar-ios,ion-toolbar.ion-color .sc-ion-searchbar-ios-h:not(.ion-color) .searchbar-cancel-button.sc-ion-searchbar-ios{color:currentColor}ion-toolbar.ion-color.sc-ion-searchbar-ios-h .searchbar-search-icon.sc-ion-searchbar-ios,ion-toolbar.ion-color .sc-ion-searchbar-ios-h .searchbar-search-icon.sc-ion-searchbar-ios{color:currentColor;opacity:0.5}ion-toolbar.ion-color.sc-ion-searchbar-ios-h:not(.ion-color) .searchbar-input.sc-ion-searchbar-ios,ion-toolbar.ion-color .sc-ion-searchbar-ios-h:not(.ion-color) .searchbar-input.sc-ion-searchbar-ios{background:rgba(var(--ion-color-contrast-rgb), 0.07);color:currentColor}ion-toolbar.ion-color.sc-ion-searchbar-ios-h:not(.ion-color) .searchbar-clear-button.sc-ion-searchbar-ios,ion-toolbar.ion-color .sc-ion-searchbar-ios-h:not(.ion-color) .searchbar-clear-button.sc-ion-searchbar-ios{color:currentColor;opacity:0.5}",md:".sc-ion-searchbar-md-h{--placeholder-color:initial;--placeholder-font-style:initial;--placeholder-font-weight:initial;--placeholder-opacity:var(--ion-placeholder-opacity, 0.6);-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;width:100%;color:var(--color);font-family:var(--ion-font-family, inherit);-webkit-box-sizing:border-box;box-sizing:border-box}.ion-color.sc-ion-searchbar-md-h{color:var(--ion-color-contrast)}.ion-color.sc-ion-searchbar-md-h .searchbar-input.sc-ion-searchbar-md{background:var(--ion-color-base)}.ion-color.sc-ion-searchbar-md-h .searchbar-clear-button.sc-ion-searchbar-md,.ion-color.sc-ion-searchbar-md-h .searchbar-cancel-button.sc-ion-searchbar-md,.ion-color.sc-ion-searchbar-md-h .searchbar-search-icon.sc-ion-searchbar-md{color:inherit}.searchbar-search-icon.sc-ion-searchbar-md{color:var(--icon-color);pointer-events:none}.searchbar-input-container.sc-ion-searchbar-md{display:block;position:relative;-ms-flex-negative:1;flex-shrink:1;width:100%}.searchbar-input.sc-ion-searchbar-md{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;border-radius:var(--border-radius);display:block;width:100%;min-height:inherit;border:0;outline:none;background:var(--background);font-family:inherit;-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-appearance:none;-moz-appearance:none;appearance:none}.searchbar-input.sc-ion-searchbar-md::-webkit-input-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.searchbar-input.sc-ion-searchbar-md::-moz-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.searchbar-input.sc-ion-searchbar-md:-ms-input-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.searchbar-input.sc-ion-searchbar-md::-ms-input-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.searchbar-input.sc-ion-searchbar-md::placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.searchbar-input.sc-ion-searchbar-md::-webkit-search-cancel-button,.searchbar-input.sc-ion-searchbar-md::-ms-clear{display:none}.searchbar-cancel-button.sc-ion-searchbar-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:none;height:100%;border:0;outline:none;color:var(--cancel-button-color);cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none}.searchbar-cancel-button.sc-ion-searchbar-md>div.sc-ion-searchbar-md{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%}.searchbar-clear-button.sc-ion-searchbar-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:none;min-height:0;outline:none;color:var(--clear-button-color);-webkit-appearance:none;-moz-appearance:none;appearance:none}.searchbar-clear-button.sc-ion-searchbar-md:focus{opacity:0.5}.searchbar-has-value.searchbar-should-show-clear.sc-ion-searchbar-md-h .searchbar-clear-button.sc-ion-searchbar-md{display:block}.searchbar-disabled.sc-ion-searchbar-md-h{cursor:default;opacity:0.4;pointer-events:none}.sc-ion-searchbar-md-h{--background:var(--ion-background-color, #fff);--border-radius:2px;--box-shadow:0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 1px 5px 0 rgba(0, 0, 0, 0.12);--cancel-button-color:var(--ion-color-step-900, var(--ion-text-color-step-100, #1a1a1a));--clear-button-color:initial;--color:var(--ion-color-step-850, var(--ion-text-color-step-150, #262626));--icon-color:var(--ion-color-step-600, var(--ion-text-color-step-400, #666666));-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px;padding-top:8px;padding-bottom:8px;background:inherit}.searchbar-search-icon.sc-ion-searchbar-md{top:11px;width:1.3125rem;height:1.3125rem}.searchbar-search-icon.sc-ion-searchbar-md{inset-inline-start:16px}.searchbar-cancel-button.sc-ion-searchbar-md{top:0;background-color:transparent;font-size:1.5em}.searchbar-cancel-button.sc-ion-searchbar-md{inset-inline-start:9px}.searchbar-search-icon.sc-ion-searchbar-md,.searchbar-cancel-button.sc-ion-searchbar-md{position:absolute}.searchbar-search-icon.ion-activated.sc-ion-searchbar-md,.searchbar-cancel-button.ion-activated.sc-ion-searchbar-md{background-color:transparent}.searchbar-input.sc-ion-searchbar-md{-webkit-padding-start:3.4375rem;padding-inline-start:3.4375rem;-webkit-padding-end:3.4375rem;padding-inline-end:3.4375rem;padding-top:0.375rem;padding-bottom:0.375rem;background-position:left 8px center;height:auto;font-size:1rem;font-weight:400;line-height:30px}[dir=rtl].sc-ion-searchbar-md-h .searchbar-input.sc-ion-searchbar-md,[dir=rtl] .sc-ion-searchbar-md-h .searchbar-input.sc-ion-searchbar-md{background-position:right 8px center}[dir=rtl].sc-ion-searchbar-md .searchbar-input.sc-ion-searchbar-md{background-position:right 8px center}@supports selector(:dir(rtl)){.searchbar-input.sc-ion-searchbar-md:dir(rtl){background-position:right 8px center}}.searchbar-clear-button.sc-ion-searchbar-md{top:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;position:absolute;height:100%;border:0;background-color:transparent}.searchbar-clear-button.sc-ion-searchbar-md{inset-inline-end:13px}.searchbar-clear-button.ion-activated.sc-ion-searchbar-md{background-color:transparent}.searchbar-clear-icon.sc-ion-searchbar-md{width:1.375rem;height:100%}.searchbar-has-focus.sc-ion-searchbar-md-h .searchbar-search-icon.sc-ion-searchbar-md{display:block}.searchbar-has-focus.sc-ion-searchbar-md-h .searchbar-cancel-button.sc-ion-searchbar-md,.searchbar-should-show-cancel.sc-ion-searchbar-md-h .searchbar-cancel-button.sc-ion-searchbar-md{display:block}.searchbar-has-focus.sc-ion-searchbar-md-h .searchbar-cancel-button.sc-ion-searchbar-md+.searchbar-search-icon.sc-ion-searchbar-md,.searchbar-should-show-cancel.sc-ion-searchbar-md-h .searchbar-cancel-button.sc-ion-searchbar-md+.searchbar-search-icon.sc-ion-searchbar-md{display:none}ion-toolbar.sc-ion-searchbar-md-h,ion-toolbar .sc-ion-searchbar-md-h{-webkit-padding-start:7px;padding-inline-start:7px;-webkit-padding-end:7px;padding-inline-end:7px;padding-top:3px;padding-bottom:3px}"}}},[34,"ion-searchbar",{color:[513],animated:[4],autocapitalize:[1],autocomplete:[1],autocorrect:[1],cancelButtonIcon:[1,"cancel-button-icon"],cancelButtonText:[1,"cancel-button-text"],clearIcon:[1,"clear-icon"],debounce:[2],disabled:[4],inputmode:[1],enterkeyhint:[1],maxlength:[2],minlength:[2],name:[1],placeholder:[1],searchIcon:[1,"search-icon"],showCancelButton:[1,"show-cancel-button"],showClearButton:[1,"show-clear-button"],spellcheck:[4],type:[1],value:[1025],focused:[32],noAnimate:[32],setFocus:[64],getInputElement:[64]},void 0,{lang:["onLangChanged"],dir:["onDirChanged"],debounce:["debounceChanged"],value:["valueChanged"],showCancelButton:["showCancelButtonChanged"]}]),oM=0,oj=(0,eN.GH)(class extends eN.mv{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionChange=(0,eN.yM)(this,"ionChange",7),this.ionSelect=(0,eN.yM)(this,"ionSelect",7),this.ionStyle=(0,eN.yM)(this,"ionStyle",7),this.onClick=e=>{let t=e.target,n=this.checked;"ION-SEGMENT"!==t.tagName&&(this.value=t.value,t!==n&&this.emitValueChange(),(this.scrollable||!this.swipeGesture)&&(n?this.checkButton(n,t):this.setCheckedClasses()))},this.onSlottedItemsChange=()=>{this.valueChanged(this.value)},this.getSegmentButton=e=>{var t,n;let i=this.getButtons().filter(e=>!e.disabled),r=i.findIndex(e=>e===document.activeElement);switch(e){case"first":return i[0];case"last":return i[i.length-1];case"next":return null!==(t=i[r+1])&&void 0!==t?t:i[0];case"previous":return null!==(n=i[r-1])&&void 0!==n?n:i[i.length-1];default:return null}},this.activated=!1,this.color=void 0,this.disabled=!1,this.scrollable=!1,this.swipeGesture=!0,this.value=void 0,this.selectOnFocus=!1}colorChanged(e,t){(void 0===t&&void 0!==e||void 0!==t&&void 0===e)&&this.emitStyle()}swipeGestureChanged(){this.gestureChanged()}valueChanged(e){this.ionSelect.emit({value:e}),this.scrollActiveButtonIntoView()}disabledChanged(){this.gestureChanged();let e=this.getButtons();for(let t of e)t.disabled=this.disabled}gestureChanged(){this.gesture&&this.gesture.enable(!this.scrollable&&!this.disabled&&this.swipeGesture)}connectedCallback(){this.emitStyle()}componentWillLoad(){this.emitStyle()}async componentDidLoad(){this.setCheckedClasses(),(0,f.r)(()=>{this.scrollActiveButtonIntoView(!1)}),this.gesture=(await Promise.resolve().then(n.bind(n,19341))).createGesture({el:this.el,gestureName:"segment",gesturePriority:100,threshold:0,passive:!1,onStart:e=>this.onStart(e),onMove:e=>this.onMove(e),onEnd:e=>this.onEnd(e)}),this.gestureChanged(),this.disabled&&this.disabledChanged()}onStart(e){this.valueBeforeGesture=this.value,this.activate(e)}onMove(e){this.setNextIndex(e)}onEnd(e){this.setActivated(!1),this.setNextIndex(e,!0),e.event.stopImmediatePropagation();let t=this.value;void 0!==t&&this.valueBeforeGesture!==t&&this.emitValueChange(),this.valueBeforeGesture=void 0}emitValueChange(){let{value:e}=this;this.ionChange.emit({value:e})}getButtons(){return Array.from(this.el.querySelectorAll("ion-segment-button"))}get checked(){return this.getButtons().find(e=>e.value===this.value)}setActivated(e){let t=this.getButtons();t.forEach(t=>{e?t.classList.add("segment-button-activated"):t.classList.remove("segment-button-activated")}),this.activated=e}activate(e){let t=e.event.target,n=this.getButtons(),i=n.find(e=>e.value===this.value);"ION-SEGMENT-BUTTON"===t.tagName&&(i||(this.value=t.value,this.setCheckedClasses()),this.value===t.value&&this.setActivated(!0))}getIndicator(e){let t=e.shadowRoot||e;return t.querySelector(".segment-button-indicator")}checkButton(e,t){let n=this.getIndicator(e),i=this.getIndicator(t);if(null===n||null===i)return;let r=n.getBoundingClientRect(),o=i.getBoundingClientRect(),a=r.width/o.width,s=r.left-o.left,l=`translate3d(${s}px, 0, 0) scaleX(${a})`;(0,eN.Iu)(()=>{i.classList.remove("segment-button-indicator-animated"),i.style.setProperty("transform",l),i.getBoundingClientRect(),i.classList.add("segment-button-indicator-animated"),i.style.setProperty("transform","")}),this.value=t.value,this.setCheckedClasses()}setCheckedClasses(){let e=this.getButtons(),t=e.findIndex(e=>e.value===this.value),n=t+1;for(let t of e)t.classList.remove("segment-button-after-checked");n<e.length&&e[n].classList.add("segment-button-after-checked")}scrollActiveButtonIntoView(e=!0){let{scrollable:t,value:n,el:i}=this;if(t){let t=this.getButtons(),r=t.find(e=>e.value===n);if(void 0!==r){let t=i.getBoundingClientRect(),n=r.getBoundingClientRect(),o=n.x-t.x,a=o-t.width/2+n.width/2;i.scrollBy({top:0,left:a,behavior:e?"smooth":"instant"})}}}setNextIndex(e,t=!1){let n,i;let r=(0,t$.i)(this.el),o=this.activated,a=this.getButtons(),s=a.findIndex(e=>e.value===this.value),l=a[s];if(-1===s)return;let c=l.getBoundingClientRect(),d=c.left,u=c.width,h=e.currentX,p=c.top+c.height/2,f=this.el.getRootNode(),m=f.elementFromPoint(h,p),g=r?h>d+u:h<d,b=r?h<d:h>d+u;if(o&&!t){if(g){let e=s-1;e>=0&&(i=e)}else if(b&&o&&!t){let e=s+1;e<a.length&&(i=e)}void 0===i||a[i].disabled||(n=a[i])}if(!o&&t&&(n=m),null!=n){if("ION-SEGMENT"===n.tagName)return!1;l!==n&&this.checkButton(l,n)}return!0}emitStyle(){this.ionStyle.emit({segment:!0})}onKeyDown(e){let t;let n=(0,t$.i)(this.el),i=this.selectOnFocus;switch(e.key){case"ArrowRight":e.preventDefault(),t=n?this.getSegmentButton("previous"):this.getSegmentButton("next");break;case"ArrowLeft":e.preventDefault(),t=n?this.getSegmentButton("next"):this.getSegmentButton("previous");break;case"Home":e.preventDefault(),t=this.getSegmentButton("first");break;case"End":e.preventDefault(),t=this.getSegmentButton("last");break;case" ":case"Enter":e.preventDefault(),t=document.activeElement,i=!0}if(t){if(i){let e=this.checked;this.checkButton(e||t,t),t!==e&&this.emitValueChange()}t.setFocus()}}render(){let e=(0,p.b)(this);return(0,eN.h)(eN.AA,{key:"ad0946134c8d465b760ad792655f1cb9922db520",role:"tablist",onClick:this.onClick,class:eP(this.color,{[e]:!0,"in-toolbar":eC("ion-toolbar",this.el),"in-toolbar-color":eC("ion-toolbar[color]",this.el),"segment-activated":this.activated,"segment-disabled":this.disabled,"segment-scrollable":this.scrollable})},(0,eN.h)("slot",{key:"dcdb425bcda0d60acb7c317e5e671ed462715b4a",onSlotchange:this.onSlottedItemsChange}))}get el(){return this}static get watchers(){return{color:["colorChanged"],swipeGesture:["swipeGestureChanged"],value:["valueChanged"],disabled:["disabledChanged"]}}static get style(){return{ios:":host{--ripple-color:currentColor;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:grid;grid-auto-columns:1fr;position:relative;-ms-flex-align:stretch;align-items:stretch;-ms-flex-pack:center;justify-content:center;width:100%;background:var(--background);font-family:var(--ion-font-family, inherit);text-align:center;contain:paint;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host(.segment-scrollable){-ms-flex-pack:start;justify-content:start;width:auto;overflow-x:auto;grid-auto-columns:minmax(-webkit-min-content, 1fr);grid-auto-columns:minmax(min-content, 1fr)}:host(.segment-scrollable::-webkit-scrollbar){display:none}:host{--background:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.065);border-radius:8px;overflow:hidden;z-index:0}:host(.ion-color){background:rgba(var(--ion-color-base-rgb), 0.065)}:host(.in-toolbar){-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:0;margin-bottom:0;width:auto}:host(.in-toolbar:not(.ion-color)){background:var(--ion-toolbar-segment-background, var(--background))}:host(.in-toolbar-color:not(.ion-color)){background:rgba(var(--ion-color-contrast-rgb), 0.11)}",md:":host{--ripple-color:currentColor;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:grid;grid-auto-columns:1fr;position:relative;-ms-flex-align:stretch;align-items:stretch;-ms-flex-pack:center;justify-content:center;width:100%;background:var(--background);font-family:var(--ion-font-family, inherit);text-align:center;contain:paint;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host(.segment-scrollable){-ms-flex-pack:start;justify-content:start;width:auto;overflow-x:auto;grid-auto-columns:minmax(-webkit-min-content, 1fr);grid-auto-columns:minmax(min-content, 1fr)}:host(.segment-scrollable::-webkit-scrollbar){display:none}:host{--background:transparent;grid-auto-columns:minmax(auto, 360px)}:host(.in-toolbar){min-height:var(--min-height)}:host(.segment-scrollable) ::slotted(ion-segment-button){min-width:auto}"}}},[33,"ion-segment",{color:[513],disabled:[4],scrollable:[4],swipeGesture:[4,"swipe-gesture"],value:[1032],selectOnFocus:[4,"select-on-focus"],activated:[32]},[[0,"keydown","onKeyDown"]],{color:["colorChanged"],swipeGesture:["swipeGestureChanged"],value:["valueChanged"],disabled:["disabledChanged"]}]),oD=0,oN=(0,eN.GH)(class extends eN.mv{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.segmentEl=null,this.inheritedAttributes={},this.updateStyle=()=>{(0,eN.xE)(this)},this.updateState=()=>{let{segmentEl:e}=this;e&&(this.checked=e.value===this.value,e.disabled&&(this.disabled=!0))},this.checked=!1,this.disabled=!1,this.layout="icon-top",this.type="button",this.value="ion-sb-"+oD++}valueChanged(){this.updateState()}connectedCallback(){let e=this.segmentEl=this.el.closest("ion-segment");e&&(this.updateState(),(0,f.a)(e,"ionSelect",this.updateState),(0,f.a)(e,"ionStyle",this.updateStyle))}disconnectedCallback(){let e=this.segmentEl;e&&((0,f.b)(e,"ionSelect",this.updateState),(0,f.b)(e,"ionStyle",this.updateStyle),this.segmentEl=null)}componentWillLoad(){this.inheritedAttributes=Object.assign({},(0,f.d)(this.el,["aria-label"]))}get hasLabel(){return!!this.el.querySelector("ion-label")}get hasIcon(){return!!this.el.querySelector("ion-icon")}async setFocus(){let{nativeEl:e}=this;void 0!==e&&e.focus()}render(){let{checked:e,type:t,disabled:n,hasIcon:i,hasLabel:r,layout:o,segmentEl:a}=this,s=(0,p.b)(this);return(0,eN.h)(eN.AA,{key:"70cf5c7a3ae2620222c5250c644faf3cfc3b3e4e",class:{[s]:!0,"in-toolbar":eC("ion-toolbar",this.el),"in-toolbar-color":eC("ion-toolbar[color]",this.el),"in-segment":eC("ion-segment",this.el),"in-segment-color":(null==a?void 0:a.color)!==void 0,"segment-button-has-label":r,"segment-button-has-icon":i,"segment-button-has-label-only":r&&!i,"segment-button-has-icon-only":i&&!r,"segment-button-disabled":n,"segment-button-checked":e,[`segment-button-layout-${o}`]:!0,"ion-activatable":!0,"ion-activatable-instant":!0,"ion-focusable":!0}},(0,eN.h)("button",Object.assign({key:"a53c9f1e360934e8d2e90476642ba4507fc38ebd","aria-selected":e?"true":"false",role:"tab",ref:e=>this.nativeEl=e,type:t,class:"button-native",part:"native",disabled:n},this.inheritedAttributes),(0,eN.h)("span",{key:"7d8feda840d389941cc693f500b5eba0b39b41da",class:"button-inner"},(0,eN.h)("slot",{key:"d9ae1eec45db253cbf573d29cd545658dd595d87"})),"md"===s&&(0,eN.h)("ion-ripple-effect",{key:"49e6a16968709dc9b3fc77bc9fb99acb42fda88c"})),(0,eN.h)("div",{key:"4e3ea0989ed5205dbb03586e4facb439b05a92de",part:"indicator",class:{"segment-button-indicator":!0,"segment-button-indicator-animated":!0}},(0,eN.h)("div",{key:"65c72a151080998c1e548c87d4d4ebd5c7dda72f",part:"indicator-background",class:"segment-button-indicator-background"})))}get el(){return this}static get watchers(){return{value:["valueChanged"]}}static get style(){return{ios:':host{--color:initial;--color-hover:var(--color);--color-checked:var(--color);--color-disabled:var(--color);--padding-start:0;--padding-end:0;--padding-top:0;--padding-bottom:0;border-radius:var(--border-radius);display:-ms-flexbox;display:flex;position:relative;-ms-flex-direction:column;flex-direction:column;height:auto;background:var(--background);color:var(--color);text-decoration:none;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;grid-row:1;-webkit-font-kerning:none;font-kerning:none}.button-native{border-radius:0;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;-webkit-margin-start:var(--margin-start);margin-inline-start:var(--margin-start);-webkit-margin-end:var(--margin-end);margin-inline-end:var(--margin-end);margin-top:var(--margin-top);margin-bottom:var(--margin-bottom);-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);-webkit-transform:translate3d(0,  0,  0);transform:translate3d(0,  0,  0);display:-ms-flexbox;display:flex;position:relative;-ms-flex-direction:inherit;flex-direction:inherit;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;min-width:inherit;max-width:inherit;height:auto;min-height:inherit;max-height:inherit;-webkit-transition:var(--transition);transition:var(--transition);border:none;outline:none;background:transparent;contain:content;pointer-events:none;overflow:hidden;z-index:2}.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:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;z-index:1}:host(.segment-button-checked){background:var(--background-checked);color:var(--color-checked)}:host(.segment-button-disabled){cursor:default;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)}:host(:focus){outline:none}@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)}:host(.segment-button-checked:hover) .button-native{color:var(--color-checked)}}::slotted(ion-icon){-ms-flex-negative:0;flex-shrink:0;-ms-flex-order:-1;order:-1;pointer-events:none}::slotted(ion-label){display:block;-ms-flex-item-align:center;align-self:center;max-width:100%;line-height:22px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box;pointer-events:none}:host(.segment-button-layout-icon-top) .button-native{-ms-flex-direction:column;flex-direction:column}:host(.segment-button-layout-icon-start) .button-native{-ms-flex-direction:row;flex-direction:row}:host(.segment-button-layout-icon-end) .button-native{-ms-flex-direction:row-reverse;flex-direction:row-reverse}:host(.segment-button-layout-icon-bottom) .button-native{-ms-flex-direction:column-reverse;flex-direction:column-reverse}:host(.segment-button-layout-icon-hide) ::slotted(ion-icon){display:none}:host(.segment-button-layout-label-hide) ::slotted(ion-label){display:none}ion-ripple-effect{color:var(--ripple-color, var(--color-checked))}.segment-button-indicator{-webkit-transform-origin:left;transform-origin:left;position:absolute;opacity:0;-webkit-box-sizing:border-box;box-sizing:border-box;will-change:transform, opacity;pointer-events:none}.segment-button-indicator-background{width:100%;height:var(--indicator-height);-webkit-transform:var(--indicator-transform);transform:var(--indicator-transform);-webkit-box-shadow:var(--indicator-box-shadow);box-shadow:var(--indicator-box-shadow);pointer-events:none}.segment-button-indicator-animated{-webkit-transition:var(--indicator-transition);transition:var(--indicator-transition)}:host(.segment-button-checked) .segment-button-indicator{opacity:1}@media (prefers-reduced-motion: reduce){.segment-button-indicator-background{-webkit-transform:none;transform:none}.segment-button-indicator-animated{-webkit-transition:none;transition:none}}:host{--background:none;--background-checked:none;--background-hover:none;--background-hover-opacity:0;--background-focused:none;--background-focused-opacity:0;--border-radius:7px;--border-width:1px;--border-color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.12);--border-style:solid;--indicator-box-shadow:0 0 5px rgba(0, 0, 0, 0.16);--indicator-color:var(--ion-color-step-350, var(--ion-background-color-step-350, var(--ion-background-color, #fff)));--indicator-height:100%;--indicator-transition:transform 260ms cubic-bezier(0.4, 0, 0.2, 1);--indicator-transform:none;--transition:100ms all linear;--padding-top:0;--padding-end:13px;--padding-bottom:0;--padding-start:13px;margin-top:2px;margin-bottom:2px;position:relative;-ms-flex-direction:row;flex-direction:row;min-width:70px;min-height:28px;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);font-size:13px;font-weight:450;line-height:37px}:host::before{margin-left:0;margin-right:0;margin-top:5px;margin-bottom:5px;-webkit-transition:160ms opacity ease-in-out;transition:160ms opacity ease-in-out;-webkit-transition-delay:100ms;transition-delay:100ms;border-left:var(--border-width) var(--border-style) var(--border-color);content:"";opacity:1;will-change:opacity}:host(:first-of-type)::before{border-left-color:transparent}:host(.segment-button-disabled){opacity:0.3}::slotted(ion-icon){font-size:24px}:host(.segment-button-layout-icon-start) ::slotted(ion-label){-webkit-margin-start:2px;margin-inline-start:2px;-webkit-margin-end:0;margin-inline-end:0}:host(.segment-button-layout-icon-end) ::slotted(ion-label){-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:2px;margin-inline-end:2px}.segment-button-indicator{-webkit-padding-start:2px;padding-inline-start:2px;-webkit-padding-end:2px;padding-inline-end:2px;left:0;right:0;top:0;bottom:0}.segment-button-indicator-background{border-radius:var(--border-radius);background:var(--indicator-color)}.segment-button-indicator-background{-webkit-transition:var(--indicator-transition);transition:var(--indicator-transition)}:host(.segment-button-checked)::before,:host(.segment-button-after-checked)::before{opacity:0}:host(.segment-button-checked){z-index:-1}:host(.segment-button-activated){--indicator-transform:scale(0.95)}:host(.ion-focused) .button-native{opacity:0.7}@media (any-hover: hover){:host(:hover) .button-native{opacity:0.5}:host(.segment-button-checked:hover) .button-native{opacity:1}}:host(.in-segment-color){background:none;color:var(--ion-text-color, #000)}:host(.in-segment-color) .segment-button-indicator-background{background:var(--ion-color-step-350, var(--ion-background-color-step-350, var(--ion-background-color, #fff)))}@media (any-hover: hover){:host(.in-segment-color:hover) .button-native,:host(.in-segment-color.segment-button-checked:hover) .button-native{color:var(--ion-text-color, #000)}}:host(.in-toolbar:not(.in-segment-color)){--background-checked:var(--ion-toolbar-segment-background-checked, none);--color:var(--ion-toolbar-segment-color, var(--ion-toolbar-color), initial);--color-checked:var(--ion-toolbar-segment-color-checked, var(--ion-toolbar-color), initial);--indicator-color:var(--ion-toolbar-segment-indicator-color, var(--ion-color-step-350, var(--ion-background-color-step-350, var(--ion-background-color, #fff))))}:host(.in-toolbar-color) .segment-button-indicator-background{background:var(--ion-color-contrast)}:host(.in-toolbar-color:not(.in-segment-color)) .button-native{color:var(--ion-color-contrast)}:host(.in-toolbar-color.segment-button-checked:not(.in-segment-color)) .button-native{color:var(--ion-color-base)}@media (any-hover: hover){:host(.in-toolbar-color:not(.in-segment-color):hover) .button-native{color:var(--ion-color-contrast)}:host(.in-toolbar-color.segment-button-checked:not(.in-segment-color):hover) .button-native{color:var(--ion-color-base)}}',md:':host{--color:initial;--color-hover:var(--color);--color-checked:var(--color);--color-disabled:var(--color);--padding-start:0;--padding-end:0;--padding-top:0;--padding-bottom:0;border-radius:var(--border-radius);display:-ms-flexbox;display:flex;position:relative;-ms-flex-direction:column;flex-direction:column;height:auto;background:var(--background);color:var(--color);text-decoration:none;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;grid-row:1;-webkit-font-kerning:none;font-kerning:none}.button-native{border-radius:0;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;-webkit-margin-start:var(--margin-start);margin-inline-start:var(--margin-start);-webkit-margin-end:var(--margin-end);margin-inline-end:var(--margin-end);margin-top:var(--margin-top);margin-bottom:var(--margin-bottom);-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);-webkit-transform:translate3d(0,  0,  0);transform:translate3d(0,  0,  0);display:-ms-flexbox;display:flex;position:relative;-ms-flex-direction:inherit;flex-direction:inherit;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;min-width:inherit;max-width:inherit;height:auto;min-height:inherit;max-height:inherit;-webkit-transition:var(--transition);transition:var(--transition);border:none;outline:none;background:transparent;contain:content;pointer-events:none;overflow:hidden;z-index:2}.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:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;z-index:1}:host(.segment-button-checked){background:var(--background-checked);color:var(--color-checked)}:host(.segment-button-disabled){cursor:default;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)}:host(:focus){outline:none}@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)}:host(.segment-button-checked:hover) .button-native{color:var(--color-checked)}}::slotted(ion-icon){-ms-flex-negative:0;flex-shrink:0;-ms-flex-order:-1;order:-1;pointer-events:none}::slotted(ion-label){display:block;-ms-flex-item-align:center;align-self:center;max-width:100%;line-height:22px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box;pointer-events:none}:host(.segment-button-layout-icon-top) .button-native{-ms-flex-direction:column;flex-direction:column}:host(.segment-button-layout-icon-start) .button-native{-ms-flex-direction:row;flex-direction:row}:host(.segment-button-layout-icon-end) .button-native{-ms-flex-direction:row-reverse;flex-direction:row-reverse}:host(.segment-button-layout-icon-bottom) .button-native{-ms-flex-direction:column-reverse;flex-direction:column-reverse}:host(.segment-button-layout-icon-hide) ::slotted(ion-icon){display:none}:host(.segment-button-layout-label-hide) ::slotted(ion-label){display:none}ion-ripple-effect{color:var(--ripple-color, var(--color-checked))}.segment-button-indicator{-webkit-transform-origin:left;transform-origin:left;position:absolute;opacity:0;-webkit-box-sizing:border-box;box-sizing:border-box;will-change:transform, opacity;pointer-events:none}.segment-button-indicator-background{width:100%;height:var(--indicator-height);-webkit-transform:var(--indicator-transform);transform:var(--indicator-transform);-webkit-box-shadow:var(--indicator-box-shadow);box-shadow:var(--indicator-box-shadow);pointer-events:none}.segment-button-indicator-animated{-webkit-transition:var(--indicator-transition);transition:var(--indicator-transition)}:host(.segment-button-checked) .segment-button-indicator{opacity:1}@media (prefers-reduced-motion: reduce){.segment-button-indicator-background{-webkit-transform:none;transform:none}.segment-button-indicator-animated{-webkit-transition:none;transition:none}}:host{--background:none;--background-checked:none;--background-hover:var(--color-checked);--background-focused:var(--color-checked);--background-activated-opacity:0;--background-focused-opacity:.12;--background-hover-opacity:.04;--color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.6);--color-checked:var(--ion-color-primary, #0054e9);--indicator-box-shadow:none;--indicator-color:var(--color-checked);--indicator-height:2px;--indicator-transition:transform 250ms cubic-bezier(0.4, 0, 0.2, 1);--indicator-transform:none;--padding-top:0;--padding-end:16px;--padding-bottom:0;--padding-start:16px;--transition:color 0.15s linear 0s, opacity 0.15s linear 0s;min-width:90px;min-height:48px;border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);font-size:14px;font-weight:500;letter-spacing:0.06em;line-height:40px;text-transform:uppercase}:host(.segment-button-disabled){opacity:0.3}:host(.in-segment-color){background:none;color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.6)}:host(.in-segment-color) ion-ripple-effect{color:var(--ion-color-base)}:host(.in-segment-color) .segment-button-indicator-background{background:var(--ion-color-base)}:host(.in-segment-color.segment-button-checked) .button-native{color:var(--ion-color-base)}:host(.in-segment-color.ion-focused) .button-native::after{background:var(--ion-color-base)}@media (any-hover: hover){:host(.in-segment-color:hover) .button-native{color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.6)}:host(.in-segment-color:hover) .button-native::after{background:var(--ion-color-base)}:host(.in-segment-color.segment-button-checked:hover) .button-native{color:var(--ion-color-base)}}:host(.in-toolbar:not(.in-segment-color)){--background:var(--ion-toolbar-segment-background, none);--background-checked:var(--ion-toolbar-segment-background-checked, none);--color:var(--ion-toolbar-segment-color, rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.6));--color-checked:var(--ion-toolbar-segment-color-checked, var(--ion-color-primary, #0054e9));--indicator-color:var(--ion-toolbar-segment-color-checked, var(--color-checked))}:host(.in-toolbar-color:not(.in-segment-color)) .button-native{color:rgba(var(--ion-color-contrast-rgb), 0.6)}:host(.in-toolbar-color.segment-button-checked:not(.in-segment-color)) .button-native{color:var(--ion-color-contrast)}@media (any-hover: hover){:host(.in-toolbar-color:not(.in-segment-color)) .button-native::after{background:var(--ion-color-contrast)}}::slotted(ion-icon){margin-top:12px;margin-bottom:12px;font-size:24px}::slotted(ion-label){margin-top:12px;margin-bottom:12px}:host(.segment-button-layout-icon-top) ::slotted(ion-label),:host(.segment-button-layout-icon-bottom) ::slotted(ion-icon){margin-top:0}:host(.segment-button-layout-icon-top) ::slotted(ion-icon),:host(.segment-button-layout-icon-bottom) ::slotted(ion-label){margin-bottom:0}:host(.segment-button-layout-icon-start) ::slotted(ion-label){-webkit-margin-start:8px;margin-inline-start:8px;-webkit-margin-end:0;margin-inline-end:0}:host(.segment-button-layout-icon-end) ::slotted(ion-label){-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:8px;margin-inline-end:8px}:host(.segment-button-has-icon-only) ::slotted(ion-icon){margin-top:12px;margin-bottom:12px}:host(.segment-button-has-label-only) ::slotted(ion-label){margin-top:12px;margin-bottom:12px}.segment-button-indicator{left:0;right:0;bottom:0}.segment-button-indicator-background{background:var(--indicator-color)}:host(.in-toolbar:not(.in-segment-color)) .segment-button-indicator-background{background:var(--ion-toolbar-segment-indicator-color, var(--indicator-color))}:host(.in-toolbar-color:not(.in-segment-color)) .segment-button-indicator-background{background:var(--ion-color-contrast)}'}}},[33,"ion-segment-button",{disabled:[1028],layout:[1],type:[1],value:[8],checked:[32],setFocus:[64]},void 0,{value:["valueChanged"]}]),oF=(e,t)=>{let n,i;let r=(e,i,r)=>{if("undefined"==typeof document)return;let s=document.elementFromPoint(e,i);if(!s||!t(s)||s.disabled){a();return}s!==n&&(a(),o(s,r))},o=(e,t)=>{n=e,i||(i=n);let r=n;(0,eN.Iu)(()=>r.classList.add("ion-activated")),t()},a=(e=!1)=>{if(!n)return;let t=n;(0,eN.Iu)(()=>t.classList.remove("ion-activated")),e&&i!==n&&n.click(),n=void 0};return(0,eR.createGesture)({el:e,gestureName:"buttonActiveDrag",threshold:0,onStart:e=>r(e.currentX,e.currentY,n6),onMove:e=>r(e.currentX,e.currentY,n8),onEnd:()=>{a(!0),n9(),i=void 0}})},oz=e=>{let t=(0,m.c)(),n=(0,m.c)(),i=(0,m.c)();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])},oB=e=>{let t=(0,m.c)(),n=(0,m.c)(),i=(0,m.c)();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])},oH=e=>{let t=(0,m.c)(),n=(0,m.c)(),i=(0,m.c)();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])},oU=e=>{let t=(0,m.c)(),n=(0,m.c)(),i=(0,m.c)();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])},oV=(0,eN.GH)(class extends eN.mv{constructor(){super(),this.__registerHost(),this.didPresent=(0,eN.yM)(this,"ionActionSheetDidPresent",7),this.willPresent=(0,eN.yM)(this,"ionActionSheetWillPresent",7),this.willDismiss=(0,eN.yM)(this,"ionActionSheetWillDismiss",7),this.didDismiss=(0,eN.yM)(this,"ionActionSheetDidDismiss",7),this.didPresentShorthand=(0,eN.yM)(this,"didPresent",7),this.willPresentShorthand=(0,eN.yM)(this,"willPresent",7),this.willDismissShorthand=(0,eN.yM)(this,"willDismiss",7),this.didDismissShorthand=(0,eN.yM)(this,"didDismiss",7),this.delegateController=el(this),this.lockController=ia(),this.triggerController=ec(),this.presented=!1,this.onBackdropTap=()=>{this.dismiss(void 0,ea)},this.dispatchCancelHandler=e=>{let t=e.detail.role;if(ei(t)){let e=this.getButtons().find(e=>"cancel"===e.role);this.callButtonHandler(e)}},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(e,t){!0===e&&!1===t?this.present():!1===e&&!0===t&&this.dismiss()}triggerChanged(){let{trigger:e,el:t,triggerController:n}=this;e&&n.addClickListener(t,e)}async present(){let e=await this.lockController.lock();await this.delegateController.attachViewToDom(),await K(this,"actionSheetEnter",oz,oH),e()}async dismiss(e,t){let n=await this.lockController.lock(),i=await Z(this,e,t,"actionSheetLeave",oB,oU);return i&&this.delegateController.removeViewFromDom(),n(),i}onDidDismiss(){return et(this.el,"ionActionSheetDidDismiss")}onWillDismiss(){return et(this.el,"ionActionSheetWillDismiss")}async buttonClick(e){let t=e.role;if(ei(t))return this.dismiss(e.data,t);let n=await this.callButtonHandler(e);return n?this.dismiss(e.data,e.role):Promise.resolve()}async callButtonHandler(e){if(e){let t=await eo(e.handler);if(!1===t)return!1}return!0}getButtons(){return this.buttons.map(e=>"string"==typeof e?{text:e}:e)}connectedCallback(){N(this.el),this.triggerChanged()}disconnectedCallback(){this.gesture&&(this.gesture.destroy(),this.gesture=void 0),this.triggerController.removeClickListener()}componentWillLoad(){var e;(null===(e=this.htmlAttributes)||void 0===e?void 0:e.id)||F(this.el)}componentDidLoad(){let{groupEl:e,wrapperEl:t}=this;!this.gesture&&"ios"===(0,p.b)(this)&&t&&e&&(0,eN.wj)(()=>{let n=e.scrollHeight>e.clientHeight;n||(this.gesture=oF(t,e=>e.classList.contains("action-sheet-button")),this.gesture.enable(!0))}),!0===this.isOpen&&(0,f.r)(()=>this.present()),this.triggerChanged()}render(){let{header:e,htmlAttributes:t,overlayIndex:n}=this,i=(0,p.b)(this),r=this.getButtons(),o=r.find(e=>"cancel"===e.role),a=r.filter(e=>"cancel"!==e.role),s=`action-sheet-${n}-header`;return(0,eN.h)(eN.AA,Object.assign({key:"7bbd202ca9e19727e7514abbe073687d982f80c3",role:"dialog","aria-modal":"true","aria-labelledby":void 0!==e?s:null,tabindex:"-1"},t,{style:{zIndex:`${2e4+this.overlayIndex}`},class:Object.assign(Object.assign({[i]:!0},eO(this.cssClass)),{"overlay-hidden":!0,"action-sheet-translucent":this.translucent}),onIonActionSheetWillDismiss:this.dispatchCancelHandler,onIonBackdropTap:this.onBackdropTap}),(0,eN.h)("ion-backdrop",{key:"23344a9221a2e6720d7b9de5249dc37256cafa7b",tappable:this.backdropDismiss}),(0,eN.h)("div",{key:"d46361bb5cdc32a7922dcf76b566f358a6174bfa",tabindex:"0"}),(0,eN.h)("div",{key:"136c3f2e77c8a2eac8e9ae4bb13d735e1d62598d",class:"action-sheet-wrapper ion-overlay-wrapper",ref:e=>this.wrapperEl=e},(0,eN.h)("div",{key:"6168ea8b2be42020b2edeb8ff3a0f3d1254be37a",class:"action-sheet-container"},(0,eN.h)("div",{key:"29b9e6619dc54574733a704d6bf885839151bd84",class:"action-sheet-group",ref:e=>this.groupEl=e},void 0!==e&&(0,eN.h)("div",{key:"536ce764bfddb3816ea3512d90f4acef2ccb8589",id:s,class:{"action-sheet-title":!0,"action-sheet-has-sub-title":void 0!==this.subHeader}},e,this.subHeader&&(0,eN.h)("div",{key:"6d888219145824fd36cdfe0d3c8388bbf2769777",class:"action-sheet-sub-title"},this.subHeader)),a.map(e=>(0,eN.h)("button",Object.assign({},e.htmlAttributes,{type:"button",id:e.id,class:oW(e),onClick:()=>this.buttonClick(e),disabled:e.disabled}),(0,eN.h)("span",{class:"action-sheet-button-inner"},e.icon&&(0,eN.h)("ion-icon",{icon:e.icon,"aria-hidden":"true",lazy:!1,class:"action-sheet-icon"}),e.text),"md"===i&&(0,eN.h)("ion-ripple-effect",null)))),o&&(0,eN.h)("div",{key:"46f98f0ed5a9bdb3e35feb9ae71c4489c17b7d77",class:"action-sheet-group action-sheet-group-cancel"},(0,eN.h)("button",Object.assign({key:"e3c457bced8ad5f692e48de26e65f731fd631b4f"},o.htmlAttributes,{type:"button",class:oW(o),onClick:()=>this.buttonClick(o)}),(0,eN.h)("span",{key:"4cba6dc559f734ecc852e024959210cd0dd25354",class:"action-sheet-button-inner"},o.icon&&(0,eN.h)("ion-icon",{key:"9df64989aad1b4d1e75edf4d37ab208965cfe37f",icon:o.icon,"aria-hidden":"true",lazy:!1,class:"action-sheet-icon"}),o.text),"md"===i&&(0,eN.h)("ion-ripple-effect",{key:"558089275a29177cefdb2e38eefc9b5c8b62872b"}))))),(0,eN.h)("div",{key:"fa4df6e043b00a6e4126dbc71cb344cfc2b2e7bc",tabindex:"0"}))}get el(){return this}static get watchers(){return{isOpen:["onIsOpenChange"],trigger:["triggerChanged"]}}static get style(){return{ios:'.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.sc-ion-action-sheet-ios:disabled{color:var(--button-color-disabled);opacity:0.4}.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:not(:disabled):hover{color:var(--button-color-hover)}.action-sheet-button.sc-ion-action-sheet-ios:not(:disabled):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, var(--ion-background-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-step-150, var(--ion-background-color, #fff)));--button-background-selected-opacity:1;--button-color:var(--ion-color-primary, #0054e9);--button-color-disabled:var(--ion-color-step-850, var(--ion-text-color-step-150, #262626));--color:var(--ion-color-step-400, var(--ion-text-color-step-600, #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);padding-bottom:var(--ion-safe-area-bottom, 0);-webkit-box-sizing:content-box;box-sizing:content-box}.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, var(--ion-text-color-step-600, #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, #c5000f)}@media (any-hover: hover){.action-sheet-destructive.sc-ion-action-sheet-ios:hover{color:var(--ion-color-danger, #c5000f)}}',md:'.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.sc-ion-action-sheet-md:disabled{color:var(--button-color-disabled);opacity:0.4}.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:not(:disabled):hover{color:var(--button-color-hover)}.action-sheet-button.sc-ion-action-sheet-md:not(:disabled):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, var(--ion-text-color-step-150, #262626));--button-color-disabled:var(--button-color);--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}'}}},[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"]}]),oW=e=>Object.assign({"action-sheet-button":!0,"ion-activatable":!e.disabled,"ion-focusable":!e.disabled,[`action-sheet-${e.role}`]:void 0!==e.role},eO(e.cssClass));function oq(){"undefined"!=typeof customElements&&["ion-action-sheet","ion-backdrop","ion-icon","ion-ripple-effect"].forEach(e=>{switch(e){case"ion-action-sheet":customElements.get(e)||customElements.define(e,oV);break;case"ion-backdrop":customElements.get(e)||tc();break;case"ion-icon":customElements.get(e)||ti();break;case"ion-ripple-effect":customElements.get(e)||tS()}})}/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */let oG=e=>{let t=(0,m.c)(),n=(0,m.c)(),i=(0,m.c)();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])},oX=e=>{let t=(0,m.c)(),n=(0,m.c)(),i=(0,m.c)();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])},oY=e=>{let t=(0,m.c)(),n=(0,m.c)(),i=(0,m.c)();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])},oK=e=>{let t=(0,m.c)(),n=(0,m.c)(),i=(0,m.c)();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])},oJ=(0,eN.GH)(class extends eN.mv{constructor(){super(),this.__registerHost(),this.didPresent=(0,eN.yM)(this,"ionAlertDidPresent",7),this.willPresent=(0,eN.yM)(this,"ionAlertWillPresent",7),this.willDismiss=(0,eN.yM)(this,"ionAlertWillDismiss",7),this.didDismiss=(0,eN.yM)(this,"ionAlertDidDismiss",7),this.didPresentShorthand=(0,eN.yM)(this,"didPresent",7),this.willPresentShorthand=(0,eN.yM)(this,"willPresent",7),this.willDismissShorthand=(0,eN.yM)(this,"willDismiss",7),this.didDismissShorthand=(0,eN.yM)(this,"didDismiss",7),this.delegateController=el(this),this.lockController=ia(),this.triggerController=ec(),this.customHTMLEnabled=p.c.get("innerHTMLTemplatesEnabled",!1),this.processedInputs=[],this.processedButtons=[],this.presented=!1,this.onBackdropTap=()=>{this.dismiss(void 0,ea)},this.dispatchCancelHandler=e=>{let t=e.detail.role;if(ei(t)){let e=this.processedButtons.find(e=>"cancel"===e.role);this.callButtonHandler(e)}},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(e,t){!0===e&&!1===t?this.present():!1===e&&!0===t&&this.dismiss()}triggerChanged(){let{trigger:e,el:t,triggerController:n}=this;e&&n.addClickListener(t,e)}onKeydown(e){let t;let n=new Set(this.processedInputs.map(e=>e.type));if(n.has("checkbox")&&"Enter"===e.key){e.preventDefault();return}if(!n.has("radio")||e.target&&!this.el.contains(e.target)||e.target.classList.contains("alert-button"))return;let i=this.el.querySelectorAll(".alert-radio"),r=Array.from(i).filter(e=>!e.disabled),o=r.findIndex(t=>t.id===e.target.id);if(["ArrowDown","ArrowRight"].includes(e.key)&&(t=o===r.length-1?r[0]:r[o+1]),["ArrowUp","ArrowLeft"].includes(e.key)&&(t=0===o?r[r.length-1]:r[o-1]),t&&r.includes(t)){let e=this.processedInputs.find(e=>e.id===(null==t?void 0:t.id));e&&(this.rbClick(e),t.focus())}}buttonsChanged(){let e=this.buttons;this.processedButtons=e.map(e=>"string"==typeof e?{text:e,role:"cancel"===e.toLowerCase()?"cancel":void 0}:e)}inputsChanged(){let e=this.inputs,t=e.find(e=>!e.disabled),n=e.find(e=>e.checked&&!e.disabled),i=n||t,r=new Set(e.map(e=>e.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=e.map((e,t)=>{var n;return{type:e.type||"text",name:e.name||`${t}`,placeholder:e.placeholder||"",value:e.value,label:e.label,checked:!!e.checked,disabled:!!e.disabled,id:e.id||`alert-input-${this.overlayIndex}-${t}`,handler:e.handler,min:e.min,max:e.max,cssClass:null!==(n=e.cssClass)&&void 0!==n?n:"",attributes:e.attributes||{},tabindex:"radio"===e.type&&e!==i?-1:0}})}connectedCallback(){N(this.el),this.triggerChanged()}componentWillLoad(){var e;(null===(e=this.htmlAttributes)||void 0===e?void 0:e.id)||F(this.el),this.inputsChanged(),this.buttonsChanged()}disconnectedCallback(){this.triggerController.removeClickListener(),this.gesture&&(this.gesture.destroy(),this.gesture=void 0)}componentDidLoad(){!this.gesture&&"ios"===(0,p.b)(this)&&this.wrapperEl&&(this.gesture=oF(this.wrapperEl,e=>e.classList.contains("alert-button")),this.gesture.enable(!0)),!0===this.isOpen&&(0,f.r)(()=>this.present()),this.triggerChanged()}async present(){let e=await this.lockController.lock();await this.delegateController.attachViewToDom(),await K(this,"alertEnter",oG,oY),e()}async dismiss(e,t){let n=await this.lockController.lock(),i=await Z(this,e,t,"alertLeave",oX,oK);return i&&this.delegateController.removeViewFromDom(),n(),i}onDidDismiss(){return et(this.el,"ionAlertDidDismiss")}onWillDismiss(){return et(this.el,"ionAlertWillDismiss")}rbClick(e){for(let t of this.processedInputs)t.checked=t===e,t.tabindex=t===e?0:-1;this.activeId=e.id,eo(e.handler,e),(0,eN.xE)(this)}cbClick(e){e.checked=!e.checked,eo(e.handler,e),(0,eN.xE)(this)}async buttonClick(e){let t=e.role,n=this.getValues();if(ei(t))return this.dismiss({values:n},t);let i=await this.callButtonHandler(e,n);return!1!==i&&this.dismiss(Object.assign({values:n},i),e.role)}async callButtonHandler(e,t){if(null==e?void 0:e.handler){let n=await eo(e.handler,t);if(!1===n)return!1;if("object"==typeof n)return n}return{}}getValues(){if(0===this.processedInputs.length)return;if("radio"===this.inputType){let e=this.processedInputs.find(e=>!!e.checked);return e?e.value:void 0}if("checkbox"===this.inputType)return this.processedInputs.filter(e=>e.checked).map(e=>e.value);let e={};return this.processedInputs.forEach(t=>{e[t.name]=t.value||""}),e}renderAlertInputs(){switch(this.inputType){case"checkbox":return this.renderCheckbox();case"radio":return this.renderRadio();default:return this.renderInput()}}renderCheckbox(){let e=this.processedInputs,t=(0,p.b)(this);return 0===e.length?null:(0,eN.h)("div",{class:"alert-checkbox-group"},e.map(e=>(0,eN.h)("button",{type:"button",onClick:()=>this.cbClick(e),"aria-checked":`${e.checked}`,id:e.id,disabled:e.disabled,tabIndex:e.tabindex,role:"checkbox",class:Object.assign(Object.assign({},eO(e.cssClass)),{"alert-tappable":!0,"alert-checkbox":!0,"alert-checkbox-button":!0,"ion-focusable":!0,"alert-checkbox-button-disabled":e.disabled||!1})},(0,eN.h)("div",{class:"alert-button-inner"},(0,eN.h)("div",{class:"alert-checkbox-icon"},(0,eN.h)("div",{class:"alert-checkbox-inner"})),(0,eN.h)("div",{class:"alert-checkbox-label"},e.label)),"md"===t&&(0,eN.h)("ion-ripple-effect",null))))}renderRadio(){let e=this.processedInputs;return 0===e.length?null:(0,eN.h)("div",{class:"alert-radio-group",role:"radiogroup","aria-activedescendant":this.activeId},e.map(e=>(0,eN.h)("button",{type:"button",onClick:()=>this.rbClick(e),"aria-checked":`${e.checked}`,disabled:e.disabled,id:e.id,tabIndex:e.tabindex,class:Object.assign(Object.assign({},eO(e.cssClass)),{"alert-radio-button":!0,"alert-tappable":!0,"alert-radio":!0,"ion-focusable":!0,"alert-radio-button-disabled":e.disabled||!1}),role:"radio"},(0,eN.h)("div",{class:"alert-button-inner"},(0,eN.h)("div",{class:"alert-radio-icon"},(0,eN.h)("div",{class:"alert-radio-inner"})),(0,eN.h)("div",{class:"alert-radio-label"},e.label)))))}renderInput(){let e=this.processedInputs;return 0===e.length?null:(0,eN.h)("div",{class:"alert-input-group"},e.map(e=>{var t,n,i,r;return"textarea"===e.type?(0,eN.h)("div",{class:"alert-input-wrapper"},(0,eN.h)("textarea",Object.assign({placeholder:e.placeholder,value:e.value,id:e.id,tabIndex:e.tabindex},e.attributes,{disabled:null!==(n=null===(t=e.attributes)||void 0===t?void 0:t.disabled)&&void 0!==n?n:e.disabled,class:oZ(e),onInput:t=>{var n;e.value=t.target.value,(null===(n=e.attributes)||void 0===n?void 0:n.onInput)&&e.attributes.onInput(t)}}))):(0,eN.h)("div",{class:"alert-input-wrapper"},(0,eN.h)("input",Object.assign({placeholder:e.placeholder,type:e.type,min:e.min,max:e.max,value:e.value,id:e.id,tabIndex:e.tabindex},e.attributes,{disabled:null!==(r=null===(i=e.attributes)||void 0===i?void 0:i.disabled)&&void 0!==r?r:e.disabled,class:oZ(e),onInput:t=>{var n;e.value=t.target.value,(null===(n=e.attributes)||void 0===n?void 0:n.onInput)&&e.attributes.onInput(t)}})))}))}renderAlertButtons(){let e=this.processedButtons,t=(0,p.b)(this),n={"alert-button-group":!0,"alert-button-group-vertical":e.length>2};return(0,eN.h)("div",{class:n},e.map(e=>(0,eN.h)("button",Object.assign({},e.htmlAttributes,{type:"button",id:e.id,class:oQ(e),tabIndex:0,onClick:()=>this.buttonClick(e)}),(0,eN.h)("span",{class:"alert-button-inner"},e.text),"md"===t&&(0,eN.h)("ion-ripple-effect",null))))}renderAlertMessage(e){let{customHTMLEnabled:t,message:n}=this;return t?(0,eN.h)("div",{id:e,class:"alert-message",innerHTML:ef(n)}):(0,eN.h)("div",{id:e,class:"alert-message"},n)}render(){let{overlayIndex:e,header:t,subHeader:n,message:i,htmlAttributes:r}=this,o=(0,p.b)(this),a=`alert-${e}-hdr`,s=`alert-${e}-sub-hdr`,l=`alert-${e}-msg`,c=this.inputs.length>0||this.buttons.length>0?"alertdialog":"alert",d=t?a:n?s:null;return(0,eN.h)(eN.AA,Object.assign({key:"c7d53f48b359f2bc3480a2e1ba34948fc9378fb0",role:c,"aria-modal":"true","aria-labelledby":d,"aria-describedby":void 0!==i?l:null,tabindex:"-1"},r,{style:{zIndex:`${2e4+e}`},class:Object.assign(Object.assign({},eO(this.cssClass)),{[o]:!0,"overlay-hidden":!0,"alert-translucent":this.translucent}),onIonAlertWillDismiss:this.dispatchCancelHandler,onIonBackdropTap:this.onBackdropTap}),(0,eN.h)("ion-backdrop",{key:"18c7e6b5d63435d9a6a82bda951158e7e1af6e92",tappable:this.backdropDismiss}),(0,eN.h)("div",{key:"e35e1a4b81286976c8a6bab570c986f3196b21f4",tabindex:"0"}),(0,eN.h)("div",{key:"9089864c80d96ed834bf723f3de863cf1c4a5b97",class:"alert-wrapper ion-overlay-wrapper",ref:e=>this.wrapperEl=e},(0,eN.h)("div",{key:"dd600f02c84352059c6cdf98821b9c9a831bcdcb",class:"alert-head"},t&&(0,eN.h)("h2",{key:"11afb605e1ccefc889fbdd2533d491bea8fbf183",id:a,class:"alert-title"},t),n&&(0,eN.h)("h2",{key:"e53b0613d09d26e5a2cd7c9c6e63ec2535625ce5",id:s,class:"alert-sub-title"},n)),this.renderAlertMessage(l),this.renderAlertInputs(),this.renderAlertButtons()),(0,eN.h)("div",{key:"cef60ec8b34c9aec8bc698f16f55324d1ce67c72",tabindex:"0"}))}get el(){return this}static get watchers(){return{isOpen:["onIsOpenChange"],trigger:["triggerChanged"],buttons:["buttonsChanged"],inputs:["inputsChanged"]}}static get style(){return{ios:".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, var(--ion-background-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, var(--ion-background-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, var(--ion-text-color-step-400, #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:7px;margin-top:10px;-webkit-padding-start:7px;padding-inline-start:7px;-webkit-padding-end:7px;padding-inline-end:7px;padding-top:7px;padding-bottom:7px;border:0.55px solid var(--ion-color-step-250, var(--ion-background-color-step-250, #bfbfbf));background-color:var(--ion-background-color, #fff);-webkit-appearance:none;-moz-appearance:none;appearance:none;font-size:1rem}.alert-input.sc-ion-alert-ios::-webkit-input-placeholder{color:var(--ion-placeholder-color, var(--ion-color-step-400, var(--ion-text-color-step-600, #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, var(--ion-text-color-step-600, #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, var(--ion-text-color-step-600, #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, var(--ion-text-color-step-600, #999999)));font-family:inherit;font-weight:inherit}.alert-input.sc-ion-alert-ios::placeholder{color:var(--ion-placeholder-color, var(--ion-color-step-400, var(--ion-text-color-step-600, #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, #0054e9)}.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, #0054e9)}[aria-checked=true].sc-ion-alert-ios .alert-radio-inner.sc-ion-alert-ios{inset-inline-start: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.375rem, 55.836px);height:min(1.375rem, 55.836px);border-width:0.125rem;border-style:solid;border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-250, var(--ion-background-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, #0054e9);background-color:var(--ion-color-primary, #0054e9)}[aria-checked=true].sc-ion-alert-ios .alert-checkbox-inner.sc-ion-alert-ios{top:calc(min(1.375rem, 55.836px) / 8);position:absolute;width:calc(min(1.375rem, 55.836px) / 6 + 1px);height:calc(min(1.375rem, 55.836px) * 0.5);-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(--ion-background-color, #fff)}[aria-checked=true].sc-ion-alert-ios .alert-checkbox-inner.sc-ion-alert-ios{inset-inline-start:calc(min(1.375rem, 55.836px) / 3)}.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-group-vertical.sc-ion-alert-ios .alert-button.sc-ion-alert-ios{border-right:none}[dir=rtl].sc-ion-alert-ios-h .alert-button-group-vertical.sc-ion-alert-ios .alert-button.sc-ion-alert-ios:last-child,[dir=rtl] .sc-ion-alert-ios-h .alert-button-group-vertical.sc-ion-alert-ios .alert-button.sc-ion-alert-ios:last-child{border-right:none}[dir=rtl].sc-ion-alert-ios .alert-button-group-vertical.sc-ion-alert-ios .alert-button.sc-ion-alert-ios:last-child{border-right:none}@supports selector(:dir(rtl)){.alert-button-group-vertical.sc-ion-alert-ios .alert-button.sc-ion-alert-ios:last-child:dir(rtl){border-right:none}}.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, #0054e9);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, #c5000f)}",md:".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, var(--ion-background-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, var(--ion-text-color-step-450, #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, var(--ion-background-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, var(--ion-text-color-step-600, #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, var(--ion-text-color-step-600, #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, var(--ion-text-color-step-600, #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, var(--ion-text-color-step-600, #999999)));font-family:inherit;font-weight:inherit}.alert-input.sc-ion-alert-md::placeholder{color:var(--ion-placeholder-color, var(--ion-color-step-400, var(--ion-text-color-step-600, #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, #0054e9)}.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, var(--ion-background-color-step-150, #d9d9d9));border-bottom:1px solid var(--ion-color-step-150, var(--ion-background-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, var(--ion-text-color-step-150, #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, var(--ion-background-color-step-550, #737373))}.alert-radio-icon.sc-ion-alert-md{inset-inline-start: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, #0054e9)}.alert-radio-inner.sc-ion-alert-md{inset-inline-start:3px}[aria-checked=true].sc-ion-alert-md .alert-radio-label.sc-ion-alert-md{color:var(--ion-color-step-850, var(--ion-text-color-step-150, #262626))}[aria-checked=true].sc-ion-alert-md .alert-radio-icon.sc-ion-alert-md{border-color:var(--ion-color-primary, #0054e9)}[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, var(--ion-text-color-step-150, #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, var(--ion-background-color-step-550, #737373));contain:strict}.alert-checkbox-icon.sc-ion-alert-md{inset-inline-start:26px}[aria-checked=true].sc-ion-alert-md .alert-checkbox-icon.sc-ion-alert-md{border-color:var(--ion-color-primary, #0054e9);background-color:var(--ion-color-primary, #0054e9)}[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)}[aria-checked=true].sc-ion-alert-md .alert-checkbox-inner.sc-ion-alert-md{inset-inline-start: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, #0054e9);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)}}"}}},[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"]}]),oZ=e=>{var t,n,i;return Object.assign(Object.assign({"alert-input":!0,"alert-input-disabled":(null!==(n=null===(t=e.attributes)||void 0===t?void 0:t.disabled)&&void 0!==n?n:e.disabled)||!1},eO(e.cssClass)),eO(e.attributes?null===(i=e.attributes.class)||void 0===i?void 0:i.toString():""))},oQ=e=>Object.assign({"alert-button":!0,"ion-focusable":!0,"ion-activatable":!0,[`alert-button-role-${e.role}`]:void 0!==e.role},eO(e.cssClass));function o0(){"undefined"!=typeof customElements&&["ion-alert","ion-backdrop","ion-ripple-effect"].forEach(e=>{switch(e){case"ion-alert":customElements.get(e)||customElements.define(e,oJ);break;case"ion-backdrop":customElements.get(e)||tc();break;case"ion-ripple-effect":customElements.get(e)||tS()}})}let o1=(0,eN.GH)(class extends eN.mv{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=eU,this.disabled=!1,this.download=void 0,this.href=void 0,this.rel=void 0,this.lines=void 0,this.routerAnimation=void 0,this.routerDirection="forward",this.target=void 0,this.type="button"}buttonChanged(){this.focusable=this.isFocusable()}labelColorChanged(e){let{color:t}=this;void 0===t&&(this.labelColorStyles=e.detail)}itemStyle(e){e.stopPropagation();let t=e.target.tagName,n=e.detail,i={},r=this.itemStyles.get(t)||{},o=!1;Object.keys(n).forEach(e=>{if(n[e]){let t=`item-${e}`;r[t]||(o=!0),i[t]=!0}}),o||Object.keys(i).length===Object.keys(r).length||(o=!0),o&&(this.itemStyles.set(t,i),(0,eN.xE)(this))}connectedCallback(){this.hasStartEl()}componentWillLoad(){this.inheritedAriaAttributes=(0,f.d)(this.el,["aria-label"])}componentDidLoad(){(0,f.r)(()=>{this.setMultipleInputs(),this.focusable=this.isFocusable()})}setMultipleInputs(){let e=this.el.querySelectorAll("ion-checkbox, ion-datetime, ion-select, ion-radio"),t=this.el.querySelectorAll("ion-input, ion-range, ion-searchbar, ion-segment, ion-textarea, ion-toggle"),n=this.el.querySelectorAll("ion-anchor, ion-button, a, button");this.multipleInputs=e.length+t.length>1||e.length+n.length>1||e.length>0&&this.isClickable()}hasCover(){let e=this.el.querySelectorAll("ion-checkbox, ion-datetime, ion-select, ion-radio");return 1===e.length&&!this.multipleInputs}isClickable(){return void 0!==this.href||this.button}canActivate(){return this.isClickable()||this.hasCover()}isFocusable(){let e=this.el.querySelector(".ion-focusable");return this.canActivate()||null!==e}hasStartEl(){let e=this.el.querySelector('[slot="start"]');null!==e&&this.el.classList.add("item-has-start-slot")}getFirstInteractive(){let e=this.el.querySelectorAll("ion-toggle:not([disabled]), ion-checkbox:not([disabled]), ion-radio:not([disabled]), ion-select:not([disabled]), ion-input:not([disabled]), ion-textarea:not([disabled])");return e[0]}render(){let{detail:e,detailIcon:t,download:n,labelColorStyles:i,lines:r,disabled:o,href:a,rel:s,target:l,routerAnimation:c,routerDirection:d,inheritedAriaAttributes:u,multipleInputs:h}=this,f={},m=(0,p.b)(this),g=this.isClickable(),b=this.canActivate(),v=g?void 0===a?"button":"a":"div",y="button"===v?{type:this.type}:{download:n,href:a,rel:s,target:l},x={},w=this.getFirstInteractive();(g||void 0!==w&&!h)&&(x={onClick:e=>{if(g&&eI(a,e,d,c),void 0!==w&&!h){let t=e.composedPath(),n=t[0];if(e.isTrusted){let e=this.el.shadowRoot.contains(n);e&&("ION-INPUT"===w.tagName||"ION-TEXTAREA"===w.tagName?w.setFocus():w.click())}}}});let k=void 0!==e?e:"ios"===m&&g;this.itemStyles.forEach(e=>{Object.assign(f,e)});let _=o||f["item-interactive-disabled"]?"true":null,E=eC("ion-list",this.el)&&!eC("ion-radio-group",this.el),S=void 0!==w&&!["ION-INPUT","ION-TEXTAREA"].includes(w.tagName);return(0,eN.h)(eN.AA,{key:"f7986b5b81c4f289460bff2c452ce993b674236b","aria-disabled":_,class:Object.assign(Object.assign(Object.assign({},f),i),eP(this.color,{item:!0,[m]:!0,"item-lines-default":void 0===r,[`item-lines-${r}`]:void 0!==r,"item-control-needs-pointer-cursor":S,"item-disabled":o,"in-list":E,"item-multiple-inputs":this.multipleInputs,"ion-activatable":b,"ion-focusable":this.focusable,"item-rtl":"rtl"===document.dir})),role:E?"listitem":null},(0,eN.h)(v,Object.assign({key:"cfafac67cdb532e4bce2dd4989e1936c013396ba"},y,u,{class:"item-native",part:"native",disabled:o},x),(0,eN.h)("slot",{key:"68a5b8e978eed62d7d913ca006bd4bd01497cd32",name:"start"}),(0,eN.h)("div",{key:"5b052cc338b00e8d40ab77cac7a139448f9b6452",class:"item-inner"},(0,eN.h)("div",{key:"7548addbe881a41ee32fd51627db230b56510760",class:"input-wrapper"},(0,eN.h)("slot",{key:"b6f4edd5895b9f91bf060edb35666b0e7ea26ccc"})),(0,eN.h)("slot",{key:"b595e7fb96461ea2e356dbad6529531ca19705db",name:"end"}),k&&(0,eN.h)("ion-icon",{key:"091aa449464d530c921bd7de79bdc16fbdc14a70",icon:t,lazy:!1,class:"item-detail-icon",part:"detail-icon","aria-hidden":"true","flip-rtl":t===eU})),b&&"md"===m&&(0,eN.h)("ion-ripple-effect",{key:"a4454f5ad15a67d5e41173d0227b77cd69776a18"})))}get el(){return this}static get watchers(){return{button:["buttonChanged"]}}static get style(){return{ios:':host{--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;--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) .item-native{background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(.ion-color) .item-native,:host(.ion-color) .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-control-needs-pointer-cursor){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-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)}}.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;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);-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))}}.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;flex:1;-ms-flex-direction:inherit;flex-direction:inherit;-ms-flex-align:inherit;align-items:inherit;-ms-flex-item-align:stretch;align-self:stretch;text-overflow:ellipsis;overflow:inherit;-webkit-box-sizing:border-box;box-sizing:border-box}: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}:host(.item-multiple-inputs) ::slotted(ion-checkbox),:host(.item-multiple-inputs) ::slotted(ion-datetime),:host(.item-multiple-inputs) ::slotted(ion-radio){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{--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, var(--ion-background-color-step-250, #c8c7cc))));--color:var(--ion-item-color, var(--ion-text-color, #000));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-lines-full){--border-width:0px 0px 0.55px 0px}:host(.item-lines-inset){--inner-border-width:0px 0px 0.55px 0px}:host(.item-lines-inset),:host(.item-lines-none){--border-width:0px}:host(.item-lines-full),:host(.item-lines-none){--inner-border-width:0px}::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}',md:':host{--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;--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) .item-native{background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(.ion-color) .item-native,:host(.ion-color) .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-control-needs-pointer-cursor){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-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)}}.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;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);-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))}}.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;flex:1;-ms-flex-direction:inherit;flex-direction:inherit;-ms-flex-align:inherit;align-items:inherit;-ms-flex-item-align:stretch;align-self:stretch;text-overflow:ellipsis;overflow:inherit;-webkit-box-sizing:border-box;box-sizing:border-box}: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}:host(.item-multiple-inputs) ::slotted(ion-checkbox),:host(.item-multiple-inputs) ::slotted(ion-datetime),:host(.item-multiple-inputs) ::slotted(ion-radio){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{--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, var(--ion-background-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;font-size:1rem;font-weight:normal;text-transform:none}:host(.ion-color.ion-activated) .item-native::after{background:transparent}:host(.item-interactive){--border-width:0 0 1px 0;--inner-border-width:0}:host(.item-lines-full){--border-width:0 0 1px 0}:host(.item-lines-inset){--inner-border-width:0 0 1px 0}:host(.item-lines-inset),:host(.item-lines-none){--border-width:0}:host(.item-lines-full),:host(.item-lines-none){--inner-border-width:0}: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:16px;margin-inline-end:16px}::slotted([slot=end]){-webkit-margin-start:16px;margin-inline-start:16px}::slotted(ion-icon){color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.54);font-size:1.5em}:host(.ion-color) ::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}::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]){padding-left:0;padding-right:0;padding-top:18px;padding-bottom:10px}::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-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(.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, #0054e9)}'}}},[33,"ion-item",{color:[513],button:[4],detail:[4],detailIcon:[1,"detail-icon"],disabled:[516],download:[1],href:[1],rel:[1],lines:[1],routerAnimation:[16],routerDirection:[1,"router-direction"],target:[1],type:[1],multipleInputs:[32],focusable:[32]},[[0,"ionColor","labelColorChanged"],[0,"ionStyle","itemStyle"]],{button:["buttonChanged"]}]);function o2(){"undefined"!=typeof customElements&&["ion-item","ion-icon","ion-ripple-effect"].forEach(e=>{switch(e){case"ion-item":customElements.get(e)||customElements.define(e,o1);break;case"ion-icon":customElements.get(e)||ti();break;case"ion-ripple-effect":customElements.get(e)||tS()}})}let o5=(0,eN.GH)(class extends eN.mv{constructor(){super(),this.__registerHost(),this.header=void 0,this.subHeader=void 0,this.message=void 0,this.multiple=void 0,this.options=[]}findOptionFromEvent(e){let{options:t}=this;return t.find(t=>t.value===e.target.value)}callOptionHandler(e){let t=this.findOptionFromEvent(e),n=this.getValues(e);(null==t?void 0:t.handler)&&eo(t.handler,n)}dismissParentPopover(){let e=this.el.closest("ion-popover");e&&e.dismiss()}setChecked(e){let{multiple:t}=this,n=this.findOptionFromEvent(e);t&&n&&(n.checked=e.detail.checked)}getValues(e){let{multiple:t,options:n}=this;if(t)return n.filter(e=>e.checked).map(e=>e.value);let i=this.findOptionFromEvent(e);return i?i.value:void 0}renderOptions(e){let{multiple:t}=this;return!0===t?this.renderCheckboxOptions(e):this.renderRadioOptions(e)}renderCheckboxOptions(e){return e.map(e=>(0,eN.h)("ion-item",{class:Object.assign({"item-checkbox-checked":e.checked},eO(e.cssClass))},(0,eN.h)("ion-checkbox",{value:e.value,disabled:e.disabled,checked:e.checked,justify:"start",labelPlacement:"end",onIonChange:e=>{this.setChecked(e),this.callOptionHandler(e),(0,eN.xE)(this)}},e.text)))}renderRadioOptions(e){let t=e.filter(e=>e.checked).map(e=>e.value)[0];return(0,eN.h)("ion-radio-group",{value:t,onIonChange:e=>this.callOptionHandler(e)},e.map(e=>(0,eN.h)("ion-item",{class:Object.assign({"item-radio-checked":e.value===t},eO(e.cssClass))},(0,eN.h)("ion-radio",{value:e.value,disabled:e.disabled,onClick:()=>this.dismissParentPopover(),onKeyUp:e=>{" "===e.key&&this.dismissParentPopover()}},e.text))))}render(){let{header:e,message:t,options:n,subHeader:i}=this;return(0,eN.h)(eN.AA,{key:"302553a2eec4d1442751b8af28b7c9bd3487fd5d",class:(0,p.b)(this)},(0,eN.h)("ion-list",{key:"39ae8579e6fe3bae2c7504147268ad5c82fd27e6"},void 0!==e&&(0,eN.h)("ion-list-header",{key:"e0e6686380d188f46c593e1bb25287dcf08c75c2"},e),(void 0!==i||void 0!==t)&&(0,eN.h)("ion-item",{key:"8a2d8652db269593c0ba7d767277e12c2b06144d"},(0,eN.h)("ion-label",{key:"a30cc0ecf95d5bdd6421ee1683922c1b853e98ea",class:"ion-text-wrap"},void 0!==i&&(0,eN.h)("h3",{key:"c298459ca450123808a08d65660825b2c26d00e5"},i),void 0!==t&&(0,eN.h)("p",{key:"ed895fbaec020e809021138401341b6fd7675035"},t))),this.renderOptions(n)))}get el(){return this}static get style(){return{ios:".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}.sc-ion-select-popover-ios-h{overflow-y:auto}",md:".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}.sc-ion-select-popover-md-h{overflow-y:auto}ion-list.sc-ion-select-popover-md ion-radio.sc-ion-select-popover-md::part(container){display:none}ion-list.sc-ion-select-popover-md ion-radio.sc-ion-select-popover-md::part(label){margin-left:0;margin-right:0;margin-top:0;margin-bottom: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, 0, 84, 233), 0.08);--background-focused:var(--ion-color-primary, #0054e9);--background-focused-opacity:0.2;--background-hover:var(--ion-color-primary, #0054e9);--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, #0054e9)}"}}},[34,"ion-select-popover",{header:[1],subHeader:[1,"sub-header"],message:[1],multiple:[4],options:[16]}]),o3=(0,eN.GH)(class extends eN.mv{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionChange=(0,eN.yM)(this,"ionChange",7),this.ionCancel=(0,eN.yM)(this,"ionCancel",7),this.ionDismiss=(0,eN.yM)(this,"ionDismiss",7),this.ionFocus=(0,eN.yM)(this,"ionFocus",7),this.ionBlur=(0,eN.yM)(this,"ionBlur",7),this.ionStyle=(0,eN.yM)(this,"ionStyle",7),this.inputId=`ion-sel-${o7++}`,this.inheritedAttributes={},this.onClick=e=>{let t=e.target,n=t.closest('[slot="start"], [slot="end"]');t===this.el||null===n?(this.setFocus(),this.open(e)):e.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.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(e){this.value=e,this.ionChange.emit({value:e})}async connectedCallback(){let{el:e}=this;this.notchController=rb(e,()=>this.notchSpacerEl,()=>this.labelSlot),this.updateOverlayOptions(),this.emitStyle(),this.mutationO=rP(this.el,"ion-select-option",async()=>{this.updateOverlayOptions(),(0,eN.xE)(this)})}componentWillLoad(){this.inheritedAttributes=(0,f.d)(this.el,["aria-label"])}componentDidLoad(){this.emitStyle()}disconnectedCallback(){this.mutationO&&(this.mutationO.disconnect(),this.mutationO=void 0),this.notchController&&(this.notchController.destroy(),this.notchController=void 0)}async open(e){if(this.disabled||this.isExpanded)return;this.isExpanded=!0;let t=this.overlay=await this.createOverlay(e);if(t.onDidDismiss().then(()=>{this.overlay=void 0,this.isExpanded=!1,this.ionDismiss.emit(),this.setFocus()}),await t.present(),"popover"===this.interface){let e=this.childOpts.map(e=>e.value).indexOf(this.value);if(e>-1){let n=t.querySelector(`.select-interface-option:nth-child(${e+1})`);if(n){(0,f.f)(n);let e=n.querySelector("ion-radio, ion-checkbox");e&&e.focus()}}else{let e=t.querySelector("ion-radio:not(.radio-disabled), ion-checkbox:not(.checkbox-disabled)");e&&((0,f.f)(e.closest("ion-item")),e.focus())}}return t}createOverlay(e){let t=this.interface;return("action-sheet"===t&&this.multiple&&(console.warn(`Select interface cannot be "${t}" with a multi-value select. Using the "alert" interface instead.`),t="alert"),"popover"!==t||e||(console.warn(`Select interface cannot be a "${t}" without passing an event. Using the "alert" interface instead.`),t="alert"),"action-sheet"===t)?this.openActionSheet():"popover"===t?this.openPopover(e):this.openAlert()}updateOverlayOptions(){let e=this.overlay;if(!e)return;let t=this.childOpts,n=this.value;switch(this.interface){case"action-sheet":e.buttons=this.createActionSheetButtons(t,n);break;case"popover":let i=e.querySelector("ion-select-popover");i&&(i.options=this.createPopoverOptions(t,n));break;case"alert":let r=this.multiple?"checkbox":"radio";e.inputs=this.createAlertInputs(t,r,n)}}createActionSheetButtons(e,t){let n=e.map(e=>{let n=o4(e),i=Array.from(e.classList).filter(e=>"hydrated"!==e).join(" "),r=`${ae} ${i}`;return{role:oe(t,n,this.compareWith)?"selected":"",text:e.textContent,cssClass:r,handler:()=>{this.setValue(n)}}});return n.push({text:this.cancelText,role:"cancel",handler:()=>{this.ionCancel.emit()}}),n}createAlertInputs(e,t,n){let i=e.map(e=>{let i=o4(e),r=Array.from(e.classList).filter(e=>"hydrated"!==e).join(" "),o=`${ae} ${r}`;return{type:t,cssClass:o,label:e.textContent||"",value:i,checked:oe(n,i,this.compareWith),disabled:e.disabled}});return i}createPopoverOptions(e,t){let n=e.map(e=>{let n=o4(e),i=Array.from(e.classList).filter(e=>"hydrated"!==e).join(" "),r=`${ae} ${i}`;return{text:e.textContent||"",cssClass:r,value:n,checked:oe(t,n,this.compareWith),disabled:e.disabled,handler:e=>{this.setValue(e),this.multiple||this.close()}}});return n}async openPopover(e){let{fill:t,labelPlacement:n}=this,i=this.interfaceOptions,r=(0,p.b)(this),o=this.multiple,a=this.value,s=e,l="auto";"floating"===n||"stacked"===n||"md"===r&&void 0!==t?l="cover":s=Object.assign(Object.assign({},e),{detail:{ionShadowTarget:this.nativeWrapperEl}});let c=Object.assign(Object.assign({mode:r,event:s,alignment:"center",size:l,showBackdrop:"md"!==r},i),{component:"ion-select-popover",cssClass:["select-popover",i.cssClass],componentProps:{header:i.header,subHeader:i.subHeader,message:i.message,multiple:o,value:a,options:this.createPopoverOptions(this.childOpts,a)}});return j.create(c)}async openActionSheet(){let e=(0,p.b)(this),t=this.interfaceOptions,n=Object.assign(Object.assign({mode:e},t),{buttons:this.createActionSheetButtons(this.childOpts,this.value),cssClass:["select-action-sheet",t.cssClass]});return R.create(n)}async openAlert(){let e=this.interfaceOptions,t=this.multiple?"checkbox":"radio",n=(0,p.b)(this),i=Object.assign(Object.assign({mode:n},e),{header:e.header?e.header:this.labelText,inputs:this.createAlertInputs(this.childOpts,t,this.value),buttons:[{text:this.cancelText,role:"cancel",handler:()=>{this.ionCancel.emit()}},{text:this.okText,handler:e=>{this.setValue(e)}}],cssClass:["select-alert",e.cssClass,this.multiple?"multiple-select-alert":"single-select-alert"]});return I.create(i)}close(){return this.overlay?this.overlay.dismiss():Promise.resolve(!1)}hasValue(){return""!==this.getText()}get childOpts(){return Array.from(this.el.querySelectorAll("ion-select-option"))}get labelText(){let{label:e}=this;if(void 0!==e)return e;let{labelSlot:t}=this;if(null!==t)return t.textContent}getText(){let e=this.selectedText;return null!=e&&""!==e?e:o8(this.childOpts,this.value,this.compareWith)}setFocus(){this.focusEl&&this.focusEl.focus()}emitStyle(){let{disabled:e}=this;this.ionStyle.emit({"interactive-disabled":e})}renderLabel(){let{label:e}=this;return(0,eN.h)("div",{class:{"label-text-wrapper":!0,"label-text-wrapper-hidden":!this.hasLabel},part:"label"},void 0===e?(0,eN.h)("slot",{name:"label"}):(0,eN.h)("div",{class:"label-text"},e))}componentDidRender(){var e;null===(e=this.notchController)||void 0===e||e.calculateNotchWidth()}get labelSlot(){return this.el.querySelector('[slot="label"]')}get hasLabel(){return void 0!==this.label||null!==this.labelSlot}renderLabelContainer(){let e=(0,p.b)(this),t="md"===e&&"outline"===this.fill;return t?[(0,eN.h)("div",{class:"select-outline-container"},(0,eN.h)("div",{class:"select-outline-start"}),(0,eN.h)("div",{class:{"select-outline-notch":!0,"select-outline-notch-hidden":!this.hasLabel}},(0,eN.h)("div",{class:"notch-spacer","aria-hidden":"true",ref:e=>this.notchSpacerEl=e},this.label)),(0,eN.h)("div",{class:"select-outline-end"})),this.renderLabel()]:this.renderLabel()}renderSelectText(){let{placeholder:e}=this,t=this.getText(),n=!1,i=t;""===i&&void 0!==e&&(i=e,n=!0);let r={"select-text":!0,"select-placeholder":n},o=n?"placeholder":"text";return(0,eN.h)("div",{"aria-hidden":"true",class:r,part:o},i)}renderSelectIcon(){let e=(0,p.b)(this),{isExpanded:t,toggleIcon:n,expandedIcon:i}=this;return(0,eN.h)("ion-icon",{class:"select-icon",part:"icon","aria-hidden":"true",icon:t&&void 0!==i?i:null!=n?n:"ios"===e?"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path d='M136 208l120-104 120 104M136 304l120 104 120-104' stroke-width='48' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none'/></svg>":ez})}get ariaLabel(){var e;let{placeholder:t,inheritedAttributes:n}=this,i=this.getText(),r=null!==(e=n["aria-label"])&&void 0!==e?e:this.labelText,o=i;return""===o&&void 0!==t&&(o=t),void 0!==r&&(o=""===o?r:`${r}, ${o}`),o}renderListbox(){let{disabled:e,inputId:t,isExpanded:n}=this;return(0,eN.h)("button",{disabled:e,id:t,"aria-label":this.ariaLabel,"aria-haspopup":"dialog","aria-expanded":`${n}`,onFocus:this.onFocus,onBlur:this.onBlur,ref:e=>this.focusEl=e})}render(){let{disabled:e,el:t,isExpanded:n,expandedIcon:i,labelPlacement:r,justify:o,placeholder:a,fill:s,shape:l,name:c,value:d}=this,u=(0,p.b)(this),h="floating"===r||"stacked"===r,m=(0,t$.i)(t)?"rtl":"ltr",g=eC("ion-item",this.el),b=this.hasValue(),v=null!==t.querySelector('[slot="start"], [slot="end"]');(0,f.e)(!0,t,c,o6(d),e);let y="stacked"===r||"floating"===r&&(b||n||v);return(0,eN.h)(eN.AA,{key:"e14586e887c0b73457b9f1e8f0585dfc7d590051",onClick:this.onClick,class:eP(this.color,{[u]:!0,"in-item":g,"in-item-color":eC("ion-item.ion-color",t),"select-disabled":e,"select-expanded":n,"has-expanded-icon":void 0!==i,"has-value":b,"label-floating":y,"has-placeholder":void 0!==a,"ion-focusable":!0,[`select-${m}`]:!0,[`select-fill-${s}`]:void 0!==s,[`select-justify-${o}`]:!h,[`select-shape-${l}`]:void 0!==l,[`select-label-placement-${r}`]:!0})},(0,eN.h)("label",{key:"b44929542c809f2dca25afc588701762a083edd1",class:"select-wrapper",id:"select-label"},this.renderLabelContainer(),(0,eN.h)("div",{key:"195e3fad9cea0363ff00bf257ec2975fe5aa6887",class:"select-wrapper-inner"},(0,eN.h)("slot",{key:"9da7161a69b92d6fd124a478348d3fa420092f26",name:"start"}),(0,eN.h)("div",{key:"49c589c164d167de0ba5741a0c80fba58ea0bec6",class:"native-wrapper",ref:e=>this.nativeWrapperEl=e,part:"container"},this.renderSelectText(),this.renderListbox()),(0,eN.h)("slot",{key:"de1536d910fceb8e2dbdda13abcf88ee969888b8",name:"end"}),!h&&this.renderSelectIcon()),h&&this.renderSelectIcon(),"md"===u&&"outline"!==s&&!g&&(0,eN.h)("div",{key:"e821b7b32cd1996eaa6d471df9b531ad0d491098",class:"select-highlight"})))}get el(){return this}static get watchers(){return{disabled:["styleChanged"],isExpanded:["styleChanged"],placeholder:["styleChanged"],value:["styleChanged"]}}static get style(){return{ios:":host{--padding-top:0px;--padding-end:0px;--padding-bottom:0px;--padding-start:0px;--placeholder-color:currentColor;--placeholder-opacity:var(--ion-placeholder-opacity, 0.6);--background:transparent;--border-style:solid;--highlight-color-focused:var(--ion-color-primary, #0054e9);--highlight-color-valid:var(--ion-color-success, #2dd55b);--highlight-color-invalid:var(--ion-color-danger, #c5000f);--highlight-color:var(--highlight-color-focused);display:block;position:relative;width:100%;min-height:44px;font-family:var(--ion-font-family, inherit);white-space:nowrap;cursor:pointer;z-index:2}:host(.select-label-placement-floating),:host(.select-label-placement-stacked){min-height:56px}:host(.ion-color){--highlight-color-focused:var(--ion-color-base)}:host(.in-item){-ms-flex:1 1 0px;flex:1 1 0}:host(.select-disabled){pointer-events:none}:host(.ion-focused) button{border:2px solid #5e9ed6}:host([slot=start]),:host([slot=end]){-ms-flex:initial;flex:initial;width:auto}.select-placeholder{color:var(--placeholder-color);opacity:var(--placeholder-opacity)}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]:last-of-type){-webkit-margin-end:16px;margin-inline-end:16px;-webkit-margin-start:0;margin-inline-start:0}::slotted([slot=end]:first-of-type){-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0}:host{--highlight-height:0px}.select-icon{width:1.125rem;height:1.125rem;color:var(--ion-color-step-650, var(--ion-text-color-step-350, #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}",md:":host{--padding-top:0px;--padding-end:0px;--padding-bottom:0px;--padding-start:0px;--placeholder-color:currentColor;--placeholder-opacity:var(--ion-placeholder-opacity, 0.6);--background:transparent;--border-style:solid;--highlight-color-focused:var(--ion-color-primary, #0054e9);--highlight-color-valid:var(--ion-color-success, #2dd55b);--highlight-color-invalid:var(--ion-color-danger, #c5000f);--highlight-color:var(--highlight-color-focused);display:block;position:relative;width:100%;min-height:44px;font-family:var(--ion-font-family, inherit);white-space:nowrap;cursor:pointer;z-index:2}:host(.select-label-placement-floating),:host(.select-label-placement-stacked){min-height:56px}:host(.ion-color){--highlight-color-focused:var(--ion-color-base)}:host(.in-item){-ms-flex:1 1 0px;flex:1 1 0}:host(.select-disabled){pointer-events:none}:host(.ion-focused) button{border:2px solid #5e9ed6}:host([slot=start]),:host([slot=end]){-ms-flex:initial;flex:initial;width:auto}.select-placeholder{color:var(--placeholder-color);opacity:var(--placeholder-opacity)}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]:last-of-type){-webkit-margin-end:16px;margin-inline-end:16px;-webkit-margin-start:0;margin-inline-start:0}::slotted([slot=end]:first-of-type){-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, var(--ion-background-color-step-50, #f2f2f2));--border-color:var(--ion-color-step-500, var(--ion-background-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, var(--ion-background-color-step-100, #e6e6e6));--border-color:var(--ion-color-step-750, var(--ion-background-color-step-750, #404040))}}:host(.select-fill-solid.select-expanded),:host(.select-fill-solid.ion-focused){--background:var(--ion-color-step-150, var(--ion-background-color-step-150, #d9d9d9));--border-color:var(--ion-color-step-750, var(--ion-background-color-step-750, #404040))}:host(.select-fill-solid) .select-wrapper{border-start-start-radius:var(--border-radius);border-start-end-radius:var(--border-radius);border-end-end-radius:0px;border-end-start-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, var(--ion-background-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, var(--ion-background-color-step-750, #404040))}}:host(.select-fill-outline.select-expanded),:host(.select-fill-outline.ion-focused){--border-width:var(--highlight-height);--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-fill-outline) .select-outline-start{border-start-start-radius:var(--border-radius);border-start-end-radius:0px;border-end-end-radius:0px;border-end-start-radius:var(--border-radius)}: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-fill-outline) .select-outline-end{border-start-start-radius:0px;border-start-end-radius:var(--border-radius);border-end-end-radius:var(--border-radius);border-end-start-radius:0px}: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, var(--ion-background-color-step-150, rgba(0, 0, 0, 0.13)))));--highlight-height:2px}.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, var(--ion-text-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:var(--highlight-height);-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)}.select-highlight{inset-inline-start: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}:host(.in-item) .select-highlight{inset-inline-start:0}:host(.select-expanded: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(.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}"}}},[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"],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"]}]),o4=e=>{let t=e.value;return void 0===t?e.textContent||"":t},o6=e=>null==e?void 0:Array.isArray(e)?e.join(","):e.toString(),o8=(e,t,n)=>void 0===t?"":Array.isArray(t)?t.map(t=>o9(e,t,n)).filter(e=>null!==e).join(", "):o9(e,t,n)||"",o9=(e,t,n)=>{let i=e.find(e=>r7(t,o4(e),n));return i?i.textContent:null},o7=0,ae="select-interface-option",at=(0,eN.GH)(class extends eN.mv{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.inputId=`ion-selopt-${an++}`,this.disabled=!1,this.value=void 0}render(){return(0,eN.h)(eN.AA,{key:"ba5a9c695c53fe0802af11a49f4305a9b8f71773",role:"option",id:this.inputId,class:(0,p.b)(this)})}get el(){return this}static get style(){return":host{display:none}"}},[1,"ion-select-option",{disabled:[4],value:[8]}]),an=0,ai=(0,eN.GH)(class extends eN.mv{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionStyle=(0,eN.yM)(this,"ionStyle",7),this.animated=!1}componentWillLoad(){this.emitStyle()}emitStyle(){this.ionStyle.emit({"skeleton-text":!0})}render(){let e=this.animated&&p.c.getBoolean("animated",!0),t=eC("ion-avatar",this.el)||eC("ion-thumbnail",this.el),n=(0,p.b)(this);return(0,eN.h)(eN.AA,{key:"1a3e78e9a6f740d609d1f0b7a16cb6eff4a2d617",class:{[n]:!0,"skeleton-text-animated":e,"in-media":t}},(0,eN.h)("span",{key:"be3eabe196ec6e8ec19857375ba30f4c8aa58e7f"},"\xa0"))}get el(){return this}static get style(){return":host{--background:rgba(var(--background-rgb, var(--ion-text-color-rgb, 0, 0, 0)), 0.065);border-radius:var(--border-radius, inherit);display:block;width:100%;height:inherit;margin-top:4px;margin-bottom:4px;background:var(--background);line-height:10px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none}span{display:inline-block}:host(.in-media){margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;height:100%}:host(.skeleton-text-animated){position:relative;background:-webkit-gradient(linear, left top, right top, color-stop(8%, rgba(var(--background-rgb, var(--ion-text-color-rgb, 0, 0, 0)), 0.065)), color-stop(18%, rgba(var(--background-rgb, var(--ion-text-color-rgb, 0, 0, 0)), 0.135)), color-stop(33%, rgba(var(--background-rgb, var(--ion-text-color-rgb, 0, 0, 0)), 0.065)));background:linear-gradient(to right, rgba(var(--background-rgb, var(--ion-text-color-rgb, 0, 0, 0)), 0.065) 8%, rgba(var(--background-rgb, var(--ion-text-color-rgb, 0, 0, 0)), 0.135) 18%, rgba(var(--background-rgb, var(--ion-text-color-rgb, 0, 0, 0)), 0.065) 33%);background-size:800px 104px;-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-name:shimmer;animation-name:shimmer;-webkit-animation-timing-function:linear;animation-timing-function:linear}@-webkit-keyframes shimmer{0%{background-position:-400px 0}100%{background-position:400px 0}}@keyframes shimmer{0%{background-position:-400px 0}100%{background-position:400px 0}}"}},[1,"ion-skeleton-text",{animated:[4]}]),ar="split-pane-main",ao="split-pane-side",aa={xs:"(min-width: 0px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)",never:""},as=(0,eN.GH)(class extends eN.mv{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionSplitPaneVisible=(0,eN.yM)(this,"ionSplitPaneVisible",7),this.visible=!1,this.contentId=void 0,this.disabled=!1,this.when="(min-width: 992px)"}visibleChanged(e){this.ionSplitPaneVisible.emit({visible:e})}async isVisible(){return Promise.resolve(this.visible)}async connectedCallback(){"undefined"!=typeof customElements&&null!=customElements&&await customElements.whenDefined("ion-split-pane"),this.styleMainElement(),this.updateState()}disconnectedCallback(){this.rmL&&(this.rmL(),this.rmL=void 0)}updateState(){if(!eN.Z5.isBrowser)return;if(this.rmL&&(this.rmL(),this.rmL=void 0),this.disabled){this.visible=!1;return}let e=this.when;if("boolean"==typeof e){this.visible=e;return}let t=aa[e]||e;if(0===t.length){this.visible=!1;return}let n=e=>{this.visible=e.matches},i=window.matchMedia(t);i.addListener(n),this.rmL=()=>i.removeListener(n),this.visible=i.matches}styleMainElement(){if(!eN.Z5.isBrowser)return;let e=this.contentId,t=this.el.children,n=this.el.childElementCount,i=!1;for(let r=0;r<n;r++){let n=t[r],o=void 0!==e&&n.id===e;if(o){if(i){console.warn("split pane cannot have more than one main node");return}al(n,o),i=!0}}i||console.warn("split pane does not have a specified main node")}render(){let e=(0,p.b)(this);return(0,eN.h)(eN.AA,{key:"d54c356cd4bff7e55325160882dea8249f47f388",class:{[e]:!0,[`split-pane-${e}`]:!0,"split-pane-visible":this.visible}},(0,eN.h)("slot",{key:"af62690d0fd686cfbd29d888c79eda9001f13e2f"}))}get el(){return this}static get watchers(){return{visible:["visibleChanged"],disabled:["updateState"],when:["updateState"]}}static get style(){return{ios:":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}:host(.split-pane-visible) ::slotted(.split-pane-main){left:0;right:0;top:0;bottom:0;position:relative;-ms-flex:1;flex:1;-webkit-box-shadow:none;box-shadow:none;overflow:hidden;z-index:0}::slotted(.split-pane-side:not(ion-menu)){display:none}:host{--border:0.55px solid var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-250, var(--ion-background-color-step-250, #c8c7cc))));--side-min-width:270px;--side-max-width:28%}",md:":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}:host(.split-pane-visible) ::slotted(.split-pane-main){left:0;right:0;top:0;bottom:0;position:relative;-ms-flex:1;flex:1;-webkit-box-shadow:none;box-shadow:none;overflow:hidden;z-index:0}::slotted(.split-pane-side:not(ion-menu)){display:none}:host{--border:1px solid var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-150, var(--ion-background-color-step-150, rgba(0, 0, 0, 0.13)))));--side-min-width:270px;--side-max-width:28%}"}}},[33,"ion-split-pane",{contentId:[513,"content-id"],disabled:[4],when:[8],visible:[32],isVisible:[64]},void 0,{visible:["visibleChanged"],disabled:["updateState"],when:["updateState"]}]),al=(e,t)=>{let n,i;t?(n=ar,i=ao):(n=ao,i=ar);let r=e.classList;r.add(n),r.remove(i)},ac=(0,eN.GH)(class extends eN.mv{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.loaded=!1,this.active=!1,this.delegate=void 0,this.tab=void 0,this.component=void 0}async componentWillLoad(){eN.Z5.isDev&&void 0!==this.component&&this.el.childElementCount>0&&console.error(`You can not use a lazy-loaded component in a tab and inlined content at the same time.- Remove the component attribute in: <ion-tab component="${this.component}"> or- Remove the embedded content inside the ion-tab: <ion-tab></ion-tab>`),this.active&&await this.setActive()}async setActive(){await this.prepareLazyLoaded(),this.active=!0}changeActive(e){e&&this.prepareLazyLoaded()}prepareLazyLoaded(){if(!this.loaded&&null!=this.component){this.loaded=!0;try{return v(this.delegate,this.el,this.component,["ion-page"])}catch(e){console.error(e)}}return Promise.resolve(void 0)}render(){let{tab:e,active:t,component:n}=this;return(0,eN.h)(eN.AA,{key:"46d5498418f5379861c3d7465e8021dec45f1200",role:"tabpanel","aria-hidden":t?null:"true","aria-labelledby":`tab-button-${e}`,class:{"ion-page":void 0===n,"tab-hidden":!t}},(0,eN.h)("slot",{key:"b45045dccb87dfe75e3f5a5a474bb48b6c98e922"}))}get el(){return this}static get watchers(){return{active:["changeActive"]}}static get style(){return":host(.tab-hidden){display:none !important}"}},[1,"ion-tab",{active:[1028],delegate:[16],tab:[1],component:[1],setActive:[64]},void 0,{active:["changeActive"]}]),Text=(0,eN.GH)(class extends eN.mv{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.color=void 0}render(){let e=(0,p.b)(this);return(0,eN.h)(eN.AA,{key:"4b76333b1ea5cab134b9dc1f5670c0d5a253fc32",class:eP(this.color,{[e]:!0})},(0,eN.h)("slot",{key:"3dee5f16bc58b3d92547d910bd4f441a00ce2039"}))}static get style(){return":host(.ion-color){color:var(--ion-color-base)}"}},[1,"ion-text",{color:[513]}]),ad=(0,eN.GH)(class extends eN.mv{constructor(){super(),this.__registerHost(),this.ionChange=(0,eN.yM)(this,"ionChange",7),this.ionInput=(0,eN.yM)(this,"ionInput",7),this.ionBlur=(0,eN.yM)(this,"ionBlur",7),this.ionFocus=(0,eN.yM)(this,"ionFocus",7),this.inputId=`ion-textarea-${au++}`,this.didTextareaClearOnEdit=!1,this.inheritedAttributes={},this.onInput=e=>{let t=e.target;t&&(this.value=t.value||""),this.emitInputChange(e)},this.onChange=e=>{this.emitValueChange(e)},this.onFocus=e=>{this.hasFocus=!0,this.focusedValue=this.value,this.ionFocus.emit(e)},this.onBlur=e=>{this.hasFocus=!1,this.focusedValue!==this.value&&this.emitValueChange(e),this.didTextareaClearOnEdit=!1,this.ionBlur.emit(e)},this.onKeyDown=e=>{this.checkClearOnEdit(e)},this.hasFocus=!1,this.color=void 0,this.autocapitalize="none",this.autofocus=!1,this.clearOnEdit=!1,this.debounce=void 0,this.disabled=!1,this.fill=void 0,this.inputmode=void 0,this.enterkeyhint=void 0,this.maxlength=void 0,this.minlength=void 0,this.name=this.inputId,this.placeholder=void 0,this.readonly=!1,this.required=!1,this.spellcheck=!1,this.cols=void 0,this.rows=void 0,this.wrap=void 0,this.autoGrow=!1,this.value="",this.counter=!1,this.counterFormatter=void 0,this.errorText=void 0,this.helperText=void 0,this.label=void 0,this.labelPlacement="start",this.shape=void 0}debounceChanged(){let{ionInput:e,debounce:t,originalIonInput:n}=this;this.ionInput=void 0===t?null!=n?n:e:(0,f.l)(e,t)}valueChanged(){let e=this.nativeInput,t=this.getValue();e&&e.value!==t&&(e.value=t),this.runAutoGrow()}connectedCallback(){let{el:e}=this;this.slotMutationController=rv(e,["label","start","end"],()=>(0,eN.xE)(this)),this.notchController=rb(e,()=>this.notchSpacerEl,()=>this.labelSlot),this.debounceChanged(),eN.Z5.isBrowser&&document.dispatchEvent(new CustomEvent("ionInputDidLoad",{detail:e}))}disconnectedCallback(){eN.Z5.isBrowser&&document.dispatchEvent(new CustomEvent("ionInputDidUnload",{detail:this.el})),this.slotMutationController&&(this.slotMutationController.destroy(),this.slotMutationController=void 0),this.notchController&&(this.notchController.destroy(),this.notchController=void 0)}componentWillLoad(){this.inheritedAttributes=Object.assign(Object.assign({},(0,f.i)(this.el)),(0,f.d)(this.el,["data-form-type","title","tabindex"]))}componentDidLoad(){this.originalIonInput=this.ionInput,this.runAutoGrow()}componentDidRender(){var e;null===(e=this.notchController)||void 0===e||e.calculateNotchWidth()}async setFocus(){this.nativeInput&&this.nativeInput.focus()}async getInputElement(){return this.nativeInput||await new Promise(e=>(0,f.c)(this.el,e)),Promise.resolve(this.nativeInput)}emitValueChange(e){let{value:t}=this,n=null==t?t:t.toString();this.focusedValue=n,this.ionChange.emit({value:n,event:e})}emitInputChange(e){let{value:t}=this;this.ionInput.emit({value:t,event:e})}runAutoGrow(){this.nativeInput&&this.autoGrow&&(0,eN.Iu)(()=>{var e;this.textareaWrapper&&(this.textareaWrapper.dataset.replicatedValue=null!==(e=this.value)&&void 0!==e?e:"")})}checkClearOnEdit(e){if(!this.clearOnEdit)return;let t=["Tab","Shift","Meta","Alt","Control"].includes(e.key);!this.didTextareaClearOnEdit&&this.hasValue()&&!t&&(this.value="",this.emitInputChange(e)),t||(this.didTextareaClearOnEdit=!0)}hasValue(){return""!==this.getValue()}getValue(){return this.value||""}renderLabel(){let{label:e}=this;return(0,eN.h)("div",{class:{"label-text-wrapper":!0,"label-text-wrapper-hidden":!this.hasLabel}},void 0===e?(0,eN.h)("slot",{name:"label"}):(0,eN.h)("div",{class:"label-text"},e))}get labelSlot(){return this.el.querySelector('[slot="label"]')}get hasLabel(){return void 0!==this.label||null!==this.labelSlot}renderLabelContainer(){let e=(0,p.b)(this),t="md"===e&&"outline"===this.fill;return t?[(0,eN.h)("div",{class:"textarea-outline-container"},(0,eN.h)("div",{class:"textarea-outline-start"}),(0,eN.h)("div",{class:{"textarea-outline-notch":!0,"textarea-outline-notch-hidden":!this.hasLabel}},(0,eN.h)("div",{class:"notch-spacer","aria-hidden":"true",ref:e=>this.notchSpacerEl=e},this.label)),(0,eN.h)("div",{class:"textarea-outline-end"})),this.renderLabel()]:this.renderLabel()}renderHintText(){let{helperText:e,errorText:t}=this;return[(0,eN.h)("div",{class:"helper-text"},e),(0,eN.h)("div",{class:"error-text"},t)]}renderCounter(){let{counter:e,maxlength:t,counterFormatter:n,value:i}=this;if(!0===e&&void 0!==t)return(0,eN.h)("div",{class:"counter"},ry(i,t,n))}renderBottomContent(){let{counter:e,helperText:t,errorText:n,maxlength:i}=this;if(t||n||!0===e&&void 0!==i)return(0,eN.h)("div",{class:"textarea-bottom"},this.renderHintText(),this.renderCounter())}render(){let{inputId:e,disabled:t,fill:n,shape:i,labelPlacement:r,el:o,hasFocus:a}=this,s=(0,p.b)(this),l=this.getValue(),c=eC("ion-item",this.el),d=this.hasValue(),u=null!==o.querySelector('[slot="start"], [slot="end"]'),h="stacked"===r||"floating"===r&&(d||a||u);return(0,eN.h)(eN.AA,{key:"37595a18d77dea1a337ac1c672e5f08a4128111d",class:eP(this.color,{[s]:!0,"has-value":d,"has-focus":a,"label-floating":h,[`textarea-fill-${n}`]:void 0!==n,[`textarea-shape-${i}`]:void 0!==i,[`textarea-label-placement-${r}`]:!0,"textarea-disabled":t})},(0,eN.h)("label",{key:"67342758743e5a40448a32ff695876d39778621f",class:"textarea-wrapper",htmlFor:e},this.renderLabelContainer(),(0,eN.h)("div",{key:"a994be8264bf5652811cf816d79a04178954e83f",class:"textarea-wrapper-inner"},(0,eN.h)("div",{key:"e09c93ebcd5b3d227d51e682ca23dfc7fd7027ad",class:"start-slot-wrapper"},(0,eN.h)("slot",{key:"d39758f21f19ae70aea21e9a9a7b7c20991fe593",name:"start"})),(0,eN.h)("div",{key:"6a4e10e53de4bb235ee30def4c9ae5bdee888816",class:"native-wrapper",ref:e=>this.textareaWrapper=e},(0,eN.h)("textarea",Object.assign({key:"9e254e551f124d972e9bc6b09ef0f2bb55890be5",class:"native-textarea",ref:e=>this.nativeInput=e,id:e,disabled:t,autoCapitalize:this.autocapitalize,autoFocus:this.autofocus,enterKeyHint:this.enterkeyhint,inputMode:this.inputmode,minLength:this.minlength,maxLength:this.maxlength,name:this.name,placeholder:this.placeholder||"",readOnly:this.readonly,required:this.required,spellcheck:this.spellcheck,cols:this.cols,rows:this.rows,wrap:this.wrap,onInput:this.onInput,onChange:this.onChange,onBlur:this.onBlur,onFocus:this.onFocus,onKeyDown:this.onKeyDown},this.inheritedAttributes),l)),(0,eN.h)("div",{key:"a66aa2d2bc4778a0bec56a8b9ec9052a832eb3b2",class:"end-slot-wrapper"},(0,eN.h)("slot",{key:"8e6a90b4475de32e23afc593da4108610dcca663",name:"end"}))),"md"===s&&"outline"!==n&&!c&&(0,eN.h)("div",{key:"6da03205a8daff45581b20f0af3938634a9d5f8c",class:"textarea-highlight"})),this.renderBottomContent())}get el(){return this}static get watchers(){return{debounce:["debounceChanged"],value:["valueChanged"]}}static get style(){return{ios:'.sc-ion-textarea-ios-h{--background:initial;--color:initial;--placeholder-color:initial;--placeholder-font-style:initial;--placeholder-font-weight:initial;--placeholder-opacity:var(--ion-placeholder-opacity, 0.6);--padding-top:0;--padding-end:0;--padding-bottom:8px;--padding-start:0;--border-radius:0;--border-style:solid;--highlight-color-focused:var(--ion-color-primary, #0054e9);--highlight-color-valid:var(--ion-color-success, #2dd55b);--highlight-color-invalid:var(--ion-color-danger, #c5000f);--highlight-color:var(--highlight-color-focused);display:block;position:relative;width:100%;min-height:44px;color:var(--color);font-family:var(--ion-font-family, inherit);z-index:2;-webkit-box-sizing:border-box;box-sizing:border-box}.textarea-label-placement-floating.sc-ion-textarea-ios-h,.textarea-label-placement-stacked.sc-ion-textarea-ios-h{--padding-top:0px;min-height:56px}[cols].sc-ion-textarea-ios-h:not([auto-grow]){width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.ion-color.sc-ion-textarea-ios-h{--highlight-color-focused:var(--ion-color-base);background:initial}ion-item.sc-ion-textarea-ios-h,ion-item .sc-ion-textarea-ios-h{-ms-flex-item-align:baseline;align-self:baseline}ion-item[slot=start].sc-ion-textarea-ios-h,ion-item [slot=start].sc-ion-textarea-ios-h,ion-item[slot=end].sc-ion-textarea-ios-h,ion-item [slot=end].sc-ion-textarea-ios-h{width:auto}.native-textarea.sc-ion-textarea-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:block;position:relative;-ms-flex:1;flex:1;width:100%;max-width:100%;max-height:100%;border:0;outline:none;background:transparent;white-space:pre-wrap;z-index:1;-webkit-box-sizing:border-box;box-sizing:border-box;resize:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.native-textarea.sc-ion-textarea-ios::-webkit-input-placeholder{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-textarea.sc-ion-textarea-ios::-moz-placeholder{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-textarea.sc-ion-textarea-ios:-ms-input-placeholder{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-textarea.sc-ion-textarea-ios::-ms-input-placeholder{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-textarea.sc-ion-textarea-ios::placeholder{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-textarea.sc-ion-textarea-ios{color:inherit;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-align:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;grid-area:1/1/2/2;word-break:break-word}.cloned-input.sc-ion-textarea-ios{top:0;bottom:0;position:absolute;pointer-events:none}.cloned-input.sc-ion-textarea-ios{inset-inline-start:0}.cloned-input.sc-ion-textarea-ios:disabled{opacity:1}[auto-grow].sc-ion-textarea-ios-h .cloned-input.sc-ion-textarea-ios{height:100%}[auto-grow].sc-ion-textarea-ios-h .native-textarea.sc-ion-textarea-ios{overflow:hidden}.textarea-wrapper.sc-ion-textarea-ios{-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:0px;padding-bottom:0px;border-radius:var(--border-radius);display:-ms-flexbox;display:flex;position:relative;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:start;align-items:flex-start;height:inherit;min-height:inherit;-webkit-transition:background-color 15ms linear;transition:background-color 15ms linear;background:var(--background);line-height:normal}.native-wrapper.sc-ion-textarea-ios{position:relative;width:100%;height:100%}.has-focus.sc-ion-textarea-ios-h textarea.sc-ion-textarea-ios{caret-color:var(--highlight-color)}.native-wrapper.sc-ion-textarea-ios textarea.sc-ion-textarea-ios{-webkit-padding-start:0px;padding-inline-start:0px;-webkit-padding-end:0px;padding-inline-end:0px;padding-top:var(--padding-top);padding-bottom:var(--padding-bottom)}.native-wrapper.sc-ion-textarea-ios{display:grid;min-width:inherit;max-width:inherit;min-height:inherit;max-height:inherit;grid-auto-rows:100%}.native-wrapper.sc-ion-textarea-ios::after{white-space:pre-wrap;content:attr(data-replicated-value) " ";visibility:hidden}.native-wrapper.sc-ion-textarea-ios::after{padding-left:0;padding-right:0;padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;border-radius:var(--border-radius);color:inherit;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-align:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;grid-area:1/1/2/2;word-break:break-word}.textarea-wrapper-inner.sc-ion-textarea-ios{display:-ms-flexbox;display:flex;width:100%;min-height:inherit}.ion-touched.ion-invalid.sc-ion-textarea-ios-h{--highlight-color:var(--highlight-color-invalid)}.ion-valid.sc-ion-textarea-ios-h{--highlight-color:var(--highlight-color-valid)}.textarea-bottom.sc-ion-textarea-ios{-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:5px;padding-bottom:0;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;border-top:var(--border-width) var(--border-style) var(--border-color);font-size:0.75rem}.has-focus.ion-valid.sc-ion-textarea-ios-h,.ion-touched.ion-invalid.sc-ion-textarea-ios-h{--border-color:var(--highlight-color)}.textarea-bottom.sc-ion-textarea-ios .error-text.sc-ion-textarea-ios{display:none;color:var(--highlight-color-invalid)}.textarea-bottom.sc-ion-textarea-ios .helper-text.sc-ion-textarea-ios{display:block;color:var(--ion-color-step-550, var(--ion-text-color-step-450, #737373))}.ion-touched.ion-invalid.sc-ion-textarea-ios-h .textarea-bottom.sc-ion-textarea-ios .error-text.sc-ion-textarea-ios{display:block}.ion-touched.ion-invalid.sc-ion-textarea-ios-h .textarea-bottom.sc-ion-textarea-ios .helper-text.sc-ion-textarea-ios{display:none}.textarea-bottom.sc-ion-textarea-ios .counter.sc-ion-textarea-ios{-webkit-margin-start:auto;margin-inline-start:auto;color:var(--ion-color-step-550, var(--ion-text-color-step-450, #737373));white-space:nowrap;-webkit-padding-start:16px;padding-inline-start:16px}.label-text-wrapper.sc-ion-textarea-ios{-webkit-padding-start:0px;padding-inline-start:0px;-webkit-padding-end:0px;padding-inline-end:0px;padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);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.sc-ion-textarea-ios,.sc-ion-textarea-ios-s>[slot=label]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.label-text-wrapper-hidden.sc-ion-textarea-ios,.textarea-outline-notch-hidden.sc-ion-textarea-ios{display:none}.textarea-wrapper.sc-ion-textarea-ios textarea.sc-ion-textarea-ios{-webkit-transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1)}.textarea-label-placement-start.sc-ion-textarea-ios-h .textarea-wrapper.sc-ion-textarea-ios{-ms-flex-direction:row;flex-direction:row}.textarea-label-placement-start.sc-ion-textarea-ios-h .label-text-wrapper.sc-ion-textarea-ios{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:0;margin-bottom:0}.textarea-label-placement-end.sc-ion-textarea-ios-h .textarea-wrapper.sc-ion-textarea-ios{-ms-flex-direction:row-reverse;flex-direction:row-reverse}.textarea-label-placement-end.sc-ion-textarea-ios-h .label-text-wrapper.sc-ion-textarea-ios{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0;margin-top:0;margin-bottom:0}.textarea-label-placement-fixed.sc-ion-textarea-ios-h .label-text-wrapper.sc-ion-textarea-ios{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:0;margin-bottom:0}.textarea-label-placement-fixed.sc-ion-textarea-ios-h .label-text.sc-ion-textarea-ios{-ms-flex:0 0 100px;flex:0 0 100px;width:100px;min-width:100px;max-width:200px}.textarea-label-placement-stacked.sc-ion-textarea-ios-h .textarea-wrapper.sc-ion-textarea-ios,.textarea-label-placement-floating.sc-ion-textarea-ios-h .textarea-wrapper.sc-ion-textarea-ios{-ms-flex-direction:column;flex-direction:column;-ms-flex-align:start;align-items:start}.textarea-label-placement-stacked.sc-ion-textarea-ios-h .label-text-wrapper.sc-ion-textarea-ios,.textarea-label-placement-floating.sc-ion-textarea-ios-h .label-text-wrapper.sc-ion-textarea-ios{-webkit-transform-origin:left top;transform-origin:left top;-webkit-padding-start:0px;padding-inline-start:0px;-webkit-padding-end:0px;padding-inline-end:0px;padding-top:0px;padding-bottom:0px;max-width:100%;z-index:2}[dir=rtl].sc-ion-textarea-ios-h -no-combinator.textarea-label-placement-stacked.sc-ion-textarea-ios-h .label-text-wrapper.sc-ion-textarea-ios,[dir=rtl] .sc-ion-textarea-ios-h -no-combinator.textarea-label-placement-stacked.sc-ion-textarea-ios-h .label-text-wrapper.sc-ion-textarea-ios,[dir=rtl].textarea-label-placement-stacked.sc-ion-textarea-ios-h .label-text-wrapper.sc-ion-textarea-ios,[dir=rtl] .textarea-label-placement-stacked.sc-ion-textarea-ios-h .label-text-wrapper.sc-ion-textarea-ios,[dir=rtl].sc-ion-textarea-ios-h -no-combinator.textarea-label-placement-floating.sc-ion-textarea-ios-h .label-text-wrapper.sc-ion-textarea-ios,[dir=rtl] .sc-ion-textarea-ios-h -no-combinator.textarea-label-placement-floating.sc-ion-textarea-ios-h .label-text-wrapper.sc-ion-textarea-ios,[dir=rtl].textarea-label-placement-floating.sc-ion-textarea-ios-h .label-text-wrapper.sc-ion-textarea-ios,[dir=rtl] .textarea-label-placement-floating.sc-ion-textarea-ios-h .label-text-wrapper.sc-ion-textarea-ios{-webkit-transform-origin:right top;transform-origin:right top}@supports selector(:dir(rtl)){.textarea-label-placement-stacked.sc-ion-textarea-ios-h:dir(rtl) .label-text-wrapper.sc-ion-textarea-ios,.textarea-label-placement-floating.sc-ion-textarea-ios-h:dir(rtl) .label-text-wrapper.sc-ion-textarea-ios{-webkit-transform-origin:right top;transform-origin:right top}}.textarea-label-placement-stacked.sc-ion-textarea-ios-h textarea.sc-ion-textarea-ios,.textarea-label-placement-floating.sc-ion-textarea-ios-h textarea.sc-ion-textarea-ios,.textarea-label-placement-stacked[auto-grow].sc-ion-textarea-ios-h .native-wrapper.sc-ion-textarea-ios::after,.textarea-label-placement-floating[auto-grow].sc-ion-textarea-ios-h .native-wrapper.sc-ion-textarea-ios::after{-webkit-margin-start:0px;margin-inline-start:0px;-webkit-margin-end:0px;margin-inline-end:0px;margin-top:8px;margin-bottom:0px}.sc-ion-textarea-ios-h.textarea-label-placement-stacked.sc-ion-textarea-ios-s>[slot=start],.sc-ion-textarea-ios-h.textarea-label-placement-stacked .sc-ion-textarea-ios-s>[slot=start],.sc-ion-textarea-ios-h.textarea-label-placement-stacked.sc-ion-textarea-ios-s>[slot=end],.sc-ion-textarea-ios-h.textarea-label-placement-stacked .sc-ion-textarea-ios-s>[slot=end],.sc-ion-textarea-ios-h.textarea-label-placement-floating.sc-ion-textarea-ios-s>[slot=start],.sc-ion-textarea-ios-h.textarea-label-placement-floating .sc-ion-textarea-ios-s>[slot=start],.sc-ion-textarea-ios-h.textarea-label-placement-floating.sc-ion-textarea-ios-s>[slot=end],.sc-ion-textarea-ios-h.textarea-label-placement-floating .sc-ion-textarea-ios-s>[slot=end]{margin-top:8px}.textarea-label-placement-floating.sc-ion-textarea-ios-h .label-text-wrapper.sc-ion-textarea-ios{-webkit-transform:translateY(100%) scale(1);transform:translateY(100%) scale(1)}.textarea-label-placement-floating.sc-ion-textarea-ios-h textarea.sc-ion-textarea-ios{opacity:0}.has-focus.textarea-label-placement-floating.sc-ion-textarea-ios-h textarea.sc-ion-textarea-ios,.has-value.textarea-label-placement-floating.sc-ion-textarea-ios-h textarea.sc-ion-textarea-ios{opacity:1}.label-floating.sc-ion-textarea-ios-h .label-text-wrapper.sc-ion-textarea-ios{-webkit-transform:translateY(50%) scale(0.75);transform:translateY(50%) scale(0.75);max-width:calc(100% / 0.75)}.start-slot-wrapper.sc-ion-textarea-ios,.end-slot-wrapper.sc-ion-textarea-ios{padding-left:0;padding-right:0;padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);display:-ms-flexbox;display:flex;-ms-flex-negative:0;flex-shrink:0;-ms-flex-item-align:start;align-self:start}.sc-ion-textarea-ios-s>[slot=start],.sc-ion-textarea-ios-s>[slot=end]{margin-top:0}.sc-ion-textarea-ios-s>[slot=start]:last-of-type{-webkit-margin-end:16px;margin-inline-end:16px;-webkit-margin-start:0;margin-inline-start:0}.sc-ion-textarea-ios-s>[slot=end]:first-of-type{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0}.sc-ion-textarea-ios-h{--border-width:0.55px;--border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-250, var(--ion-background-color-step-250, #c8c7cc))));--padding-top:10px;--padding-end:0px;--padding-bottom:8px;--padding-start:0px;--highlight-height:0px;font-size:inherit}.textarea-disabled.sc-ion-textarea-ios-h{opacity:0.3}.sc-ion-textarea-ios-s>ion-button[slot=start].button-has-icon-only,.sc-ion-textarea-ios-s>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}',md:'.sc-ion-textarea-md-h{--background:initial;--color:initial;--placeholder-color:initial;--placeholder-font-style:initial;--placeholder-font-weight:initial;--placeholder-opacity:var(--ion-placeholder-opacity, 0.6);--padding-top:0;--padding-end:0;--padding-bottom:8px;--padding-start:0;--border-radius:0;--border-style:solid;--highlight-color-focused:var(--ion-color-primary, #0054e9);--highlight-color-valid:var(--ion-color-success, #2dd55b);--highlight-color-invalid:var(--ion-color-danger, #c5000f);--highlight-color:var(--highlight-color-focused);display:block;position:relative;width:100%;min-height:44px;color:var(--color);font-family:var(--ion-font-family, inherit);z-index:2;-webkit-box-sizing:border-box;box-sizing:border-box}.textarea-label-placement-floating.sc-ion-textarea-md-h,.textarea-label-placement-stacked.sc-ion-textarea-md-h{--padding-top:0px;min-height:56px}[cols].sc-ion-textarea-md-h:not([auto-grow]){width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.ion-color.sc-ion-textarea-md-h{--highlight-color-focused:var(--ion-color-base);background:initial}ion-item.sc-ion-textarea-md-h,ion-item .sc-ion-textarea-md-h{-ms-flex-item-align:baseline;align-self:baseline}ion-item[slot=start].sc-ion-textarea-md-h,ion-item [slot=start].sc-ion-textarea-md-h,ion-item[slot=end].sc-ion-textarea-md-h,ion-item [slot=end].sc-ion-textarea-md-h{width:auto}.native-textarea.sc-ion-textarea-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:block;position:relative;-ms-flex:1;flex:1;width:100%;max-width:100%;max-height:100%;border:0;outline:none;background:transparent;white-space:pre-wrap;z-index:1;-webkit-box-sizing:border-box;box-sizing:border-box;resize:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.native-textarea.sc-ion-textarea-md::-webkit-input-placeholder{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-textarea.sc-ion-textarea-md::-moz-placeholder{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-textarea.sc-ion-textarea-md:-ms-input-placeholder{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-textarea.sc-ion-textarea-md::-ms-input-placeholder{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-textarea.sc-ion-textarea-md::placeholder{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-textarea.sc-ion-textarea-md{color:inherit;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-align:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;grid-area:1/1/2/2;word-break:break-word}.cloned-input.sc-ion-textarea-md{top:0;bottom:0;position:absolute;pointer-events:none}.cloned-input.sc-ion-textarea-md{inset-inline-start:0}.cloned-input.sc-ion-textarea-md:disabled{opacity:1}[auto-grow].sc-ion-textarea-md-h .cloned-input.sc-ion-textarea-md{height:100%}[auto-grow].sc-ion-textarea-md-h .native-textarea.sc-ion-textarea-md{overflow:hidden}.textarea-wrapper.sc-ion-textarea-md{-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:0px;padding-bottom:0px;border-radius:var(--border-radius);display:-ms-flexbox;display:flex;position:relative;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:start;align-items:flex-start;height:inherit;min-height:inherit;-webkit-transition:background-color 15ms linear;transition:background-color 15ms linear;background:var(--background);line-height:normal}.native-wrapper.sc-ion-textarea-md{position:relative;width:100%;height:100%}.has-focus.sc-ion-textarea-md-h textarea.sc-ion-textarea-md{caret-color:var(--highlight-color)}.native-wrapper.sc-ion-textarea-md textarea.sc-ion-textarea-md{-webkit-padding-start:0px;padding-inline-start:0px;-webkit-padding-end:0px;padding-inline-end:0px;padding-top:var(--padding-top);padding-bottom:var(--padding-bottom)}.native-wrapper.sc-ion-textarea-md{display:grid;min-width:inherit;max-width:inherit;min-height:inherit;max-height:inherit;grid-auto-rows:100%}.native-wrapper.sc-ion-textarea-md::after{white-space:pre-wrap;content:attr(data-replicated-value) " ";visibility:hidden}.native-wrapper.sc-ion-textarea-md::after{padding-left:0;padding-right:0;padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;border-radius:var(--border-radius);color:inherit;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-align:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;grid-area:1/1/2/2;word-break:break-word}.textarea-wrapper-inner.sc-ion-textarea-md{display:-ms-flexbox;display:flex;width:100%;min-height:inherit}.ion-touched.ion-invalid.sc-ion-textarea-md-h{--highlight-color:var(--highlight-color-invalid)}.ion-valid.sc-ion-textarea-md-h{--highlight-color:var(--highlight-color-valid)}.textarea-bottom.sc-ion-textarea-md{-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:5px;padding-bottom:0;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;border-top:var(--border-width) var(--border-style) var(--border-color);font-size:0.75rem}.has-focus.ion-valid.sc-ion-textarea-md-h,.ion-touched.ion-invalid.sc-ion-textarea-md-h{--border-color:var(--highlight-color)}.textarea-bottom.sc-ion-textarea-md .error-text.sc-ion-textarea-md{display:none;color:var(--highlight-color-invalid)}.textarea-bottom.sc-ion-textarea-md .helper-text.sc-ion-textarea-md{display:block;color:var(--ion-color-step-550, var(--ion-text-color-step-450, #737373))}.ion-touched.ion-invalid.sc-ion-textarea-md-h .textarea-bottom.sc-ion-textarea-md .error-text.sc-ion-textarea-md{display:block}.ion-touched.ion-invalid.sc-ion-textarea-md-h .textarea-bottom.sc-ion-textarea-md .helper-text.sc-ion-textarea-md{display:none}.textarea-bottom.sc-ion-textarea-md .counter.sc-ion-textarea-md{-webkit-margin-start:auto;margin-inline-start:auto;color:var(--ion-color-step-550, var(--ion-text-color-step-450, #737373));white-space:nowrap;-webkit-padding-start:16px;padding-inline-start:16px}.label-text-wrapper.sc-ion-textarea-md{-webkit-padding-start:0px;padding-inline-start:0px;-webkit-padding-end:0px;padding-inline-end:0px;padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);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.sc-ion-textarea-md,.sc-ion-textarea-md-s>[slot=label]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.label-text-wrapper-hidden.sc-ion-textarea-md,.textarea-outline-notch-hidden.sc-ion-textarea-md{display:none}.textarea-wrapper.sc-ion-textarea-md textarea.sc-ion-textarea-md{-webkit-transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1)}.textarea-label-placement-start.sc-ion-textarea-md-h .textarea-wrapper.sc-ion-textarea-md{-ms-flex-direction:row;flex-direction:row}.textarea-label-placement-start.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:0;margin-bottom:0}.textarea-label-placement-end.sc-ion-textarea-md-h .textarea-wrapper.sc-ion-textarea-md{-ms-flex-direction:row-reverse;flex-direction:row-reverse}.textarea-label-placement-end.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0;margin-top:0;margin-bottom:0}.textarea-label-placement-fixed.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:0;margin-bottom:0}.textarea-label-placement-fixed.sc-ion-textarea-md-h .label-text.sc-ion-textarea-md{-ms-flex:0 0 100px;flex:0 0 100px;width:100px;min-width:100px;max-width:200px}.textarea-label-placement-stacked.sc-ion-textarea-md-h .textarea-wrapper.sc-ion-textarea-md,.textarea-label-placement-floating.sc-ion-textarea-md-h .textarea-wrapper.sc-ion-textarea-md{-ms-flex-direction:column;flex-direction:column;-ms-flex-align:start;align-items:start}.textarea-label-placement-stacked.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md,.textarea-label-placement-floating.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md{-webkit-transform-origin:left top;transform-origin:left top;-webkit-padding-start:0px;padding-inline-start:0px;-webkit-padding-end:0px;padding-inline-end:0px;padding-top:0px;padding-bottom:0px;max-width:100%;z-index:2}[dir=rtl].sc-ion-textarea-md-h -no-combinator.textarea-label-placement-stacked.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md,[dir=rtl] .sc-ion-textarea-md-h -no-combinator.textarea-label-placement-stacked.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md,[dir=rtl].textarea-label-placement-stacked.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md,[dir=rtl] .textarea-label-placement-stacked.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md,[dir=rtl].sc-ion-textarea-md-h -no-combinator.textarea-label-placement-floating.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md,[dir=rtl] .sc-ion-textarea-md-h -no-combinator.textarea-label-placement-floating.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md,[dir=rtl].textarea-label-placement-floating.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md,[dir=rtl] .textarea-label-placement-floating.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md{-webkit-transform-origin:right top;transform-origin:right top}@supports selector(:dir(rtl)){.textarea-label-placement-stacked.sc-ion-textarea-md-h:dir(rtl) .label-text-wrapper.sc-ion-textarea-md,.textarea-label-placement-floating.sc-ion-textarea-md-h:dir(rtl) .label-text-wrapper.sc-ion-textarea-md{-webkit-transform-origin:right top;transform-origin:right top}}.textarea-label-placement-stacked.sc-ion-textarea-md-h textarea.sc-ion-textarea-md,.textarea-label-placement-floating.sc-ion-textarea-md-h textarea.sc-ion-textarea-md,.textarea-label-placement-stacked[auto-grow].sc-ion-textarea-md-h .native-wrapper.sc-ion-textarea-md::after,.textarea-label-placement-floating[auto-grow].sc-ion-textarea-md-h .native-wrapper.sc-ion-textarea-md::after{-webkit-margin-start:0px;margin-inline-start:0px;-webkit-margin-end:0px;margin-inline-end:0px;margin-top:8px;margin-bottom:0px}.sc-ion-textarea-md-h.textarea-label-placement-stacked.sc-ion-textarea-md-s>[slot=start],.sc-ion-textarea-md-h.textarea-label-placement-stacked .sc-ion-textarea-md-s>[slot=start],.sc-ion-textarea-md-h.textarea-label-placement-stacked.sc-ion-textarea-md-s>[slot=end],.sc-ion-textarea-md-h.textarea-label-placement-stacked .sc-ion-textarea-md-s>[slot=end],.sc-ion-textarea-md-h.textarea-label-placement-floating.sc-ion-textarea-md-s>[slot=start],.sc-ion-textarea-md-h.textarea-label-placement-floating .sc-ion-textarea-md-s>[slot=start],.sc-ion-textarea-md-h.textarea-label-placement-floating.sc-ion-textarea-md-s>[slot=end],.sc-ion-textarea-md-h.textarea-label-placement-floating .sc-ion-textarea-md-s>[slot=end]{margin-top:8px}.textarea-label-placement-floating.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md{-webkit-transform:translateY(100%) scale(1);transform:translateY(100%) scale(1)}.textarea-label-placement-floating.sc-ion-textarea-md-h textarea.sc-ion-textarea-md{opacity:0}.has-focus.textarea-label-placement-floating.sc-ion-textarea-md-h textarea.sc-ion-textarea-md,.has-value.textarea-label-placement-floating.sc-ion-textarea-md-h textarea.sc-ion-textarea-md{opacity:1}.label-floating.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md{-webkit-transform:translateY(50%) scale(0.75);transform:translateY(50%) scale(0.75);max-width:calc(100% / 0.75)}.start-slot-wrapper.sc-ion-textarea-md,.end-slot-wrapper.sc-ion-textarea-md{padding-left:0;padding-right:0;padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);display:-ms-flexbox;display:flex;-ms-flex-negative:0;flex-shrink:0;-ms-flex-item-align:start;align-self:start}.sc-ion-textarea-md-s>[slot=start],.sc-ion-textarea-md-s>[slot=end]{margin-top:0}.sc-ion-textarea-md-s>[slot=start]:last-of-type{-webkit-margin-end:16px;margin-inline-end:16px;-webkit-margin-start:0;margin-inline-start:0}.sc-ion-textarea-md-s>[slot=end]:first-of-type{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0}.textarea-fill-solid.sc-ion-textarea-md-h{--background:var(--ion-color-step-50, var(--ion-background-color-step-50, #f2f2f2));--border-color:var(--ion-color-step-500, var(--ion-background-color-step-500, gray));--border-radius:4px;--padding-start:16px;--padding-end:16px;min-height:56px}.textarea-fill-solid.sc-ion-textarea-md-h .textarea-wrapper.sc-ion-textarea-md{border-bottom:var(--border-width) var(--border-style) var(--border-color)}.has-focus.textarea-fill-solid.ion-valid.sc-ion-textarea-md-h,.textarea-fill-solid.ion-touched.ion-invalid.sc-ion-textarea-md-h{--border-color:var(--highlight-color)}.textarea-fill-solid.sc-ion-textarea-md-h .textarea-bottom.sc-ion-textarea-md{border-top:none}@media (any-hover: hover){.textarea-fill-solid.sc-ion-textarea-md-h:hover{--background:var(--ion-color-step-100, var(--ion-background-color-step-100, #e6e6e6));--border-color:var(--ion-color-step-750, var(--ion-background-color-step-750, #404040))}}.textarea-fill-solid.has-focus.sc-ion-textarea-md-h{--background:var(--ion-color-step-150, var(--ion-background-color-step-150, #d9d9d9));--border-color:var(--ion-color-step-750, var(--ion-background-color-step-750, #404040))}.textarea-fill-solid.sc-ion-textarea-md-h .textarea-wrapper.sc-ion-textarea-md{border-start-start-radius:var(--border-radius);border-start-end-radius:var(--border-radius);border-end-end-radius:0px;border-end-start-radius:0px}.label-floating.textarea-fill-solid.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md{max-width:calc(100% / 0.75)}.textarea-fill-outline.sc-ion-textarea-md-h{--border-color:var(--ion-color-step-300, var(--ion-background-color-step-300, #b3b3b3));--border-radius:4px;--padding-start:16px;--padding-end:16px;min-height:56px}.textarea-fill-outline.textarea-shape-round.sc-ion-textarea-md-h{--border-radius:28px;--padding-start:32px;--padding-end:32px}.has-focus.textarea-fill-outline.ion-valid.sc-ion-textarea-md-h,.textarea-fill-outline.ion-touched.ion-invalid.sc-ion-textarea-md-h{--border-color:var(--highlight-color)}@media (any-hover: hover){.textarea-fill-outline.sc-ion-textarea-md-h:hover{--border-color:var(--ion-color-step-750, var(--ion-background-color-step-750, #404040))}}.textarea-fill-outline.has-focus.sc-ion-textarea-md-h{--border-width:var(--highlight-height);--border-color:var(--highlight-color)}.textarea-fill-outline.sc-ion-textarea-md-h .textarea-bottom.sc-ion-textarea-md{border-top:none}.textarea-fill-outline.sc-ion-textarea-md-h .textarea-wrapper.sc-ion-textarea-md{border-bottom:none}.textarea-fill-outline.textarea-label-placement-stacked.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md,.textarea-fill-outline.textarea-label-placement-floating.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md{-webkit-transform-origin:left top;transform-origin:left top;position:absolute;max-width:calc(100% - var(--padding-start) - var(--padding-end))}[dir=rtl].sc-ion-textarea-md-h -no-combinator.textarea-fill-outline.textarea-label-placement-stacked.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md,[dir=rtl] .sc-ion-textarea-md-h -no-combinator.textarea-fill-outline.textarea-label-placement-stacked.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md,[dir=rtl].textarea-fill-outline.textarea-label-placement-stacked.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md,[dir=rtl] .textarea-fill-outline.textarea-label-placement-stacked.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md,[dir=rtl].sc-ion-textarea-md-h -no-combinator.textarea-fill-outline.textarea-label-placement-floating.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md,[dir=rtl] .sc-ion-textarea-md-h -no-combinator.textarea-fill-outline.textarea-label-placement-floating.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md,[dir=rtl].textarea-fill-outline.textarea-label-placement-floating.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md,[dir=rtl] .textarea-fill-outline.textarea-label-placement-floating.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md{-webkit-transform-origin:right top;transform-origin:right top}@supports selector(:dir(rtl)){.textarea-fill-outline.textarea-label-placement-stacked.sc-ion-textarea-md-h:dir(rtl) .label-text-wrapper.sc-ion-textarea-md,.textarea-fill-outline.textarea-label-placement-floating.sc-ion-textarea-md-h:dir(rtl) .label-text-wrapper.sc-ion-textarea-md{-webkit-transform-origin:right top;transform-origin:right top}}.textarea-fill-outline.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md{position:relative}.label-floating.textarea-fill-outline.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md{-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(\n    (100% - var(--padding-start) - var(--padding-end) - 8px) / 0.75\n  )}.textarea-fill-outline.textarea-label-placement-stacked.sc-ion-textarea-md-h textarea.sc-ion-textarea-md,.textarea-fill-outline.textarea-label-placement-floating.sc-ion-textarea-md-h textarea.sc-ion-textarea-md,.textarea-fill-outline.textarea-label-placement-stacked[auto-grow].sc-ion-textarea-md-h .native-wrapper.sc-ion-textarea-md::after,.textarea-fill-outline.textarea-label-placement-floating[auto-grow].sc-ion-textarea-md-h .native-wrapper.sc-ion-textarea-md::after{-webkit-margin-start:0px;margin-inline-start:0px;-webkit-margin-end:0px;margin-inline-end:0px;margin-top:12px;margin-bottom:0px}.sc-ion-textarea-md-h.textarea-fill-outline.textarea-label-placement-stacked.sc-ion-textarea-md-s>[slot=start],.sc-ion-textarea-md-h.textarea-fill-outline.textarea-label-placement-stacked .sc-ion-textarea-md-s>[slot=start],.sc-ion-textarea-md-h.textarea-fill-outline.textarea-label-placement-stacked.sc-ion-textarea-md-s>[slot=end],.sc-ion-textarea-md-h.textarea-fill-outline.textarea-label-placement-stacked .sc-ion-textarea-md-s>[slot=end],.sc-ion-textarea-md-h.textarea-fill-outline.textarea-label-placement-floating.sc-ion-textarea-md-s>[slot=start],.sc-ion-textarea-md-h.textarea-fill-outline.textarea-label-placement-floating .sc-ion-textarea-md-s>[slot=start],.sc-ion-textarea-md-h.textarea-fill-outline.textarea-label-placement-floating.sc-ion-textarea-md-s>[slot=end],.sc-ion-textarea-md-h.textarea-fill-outline.textarea-label-placement-floating .sc-ion-textarea-md-s>[slot=end]{margin-top:12px}.textarea-fill-outline.sc-ion-textarea-md-h .textarea-outline-container.sc-ion-textarea-md{left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:absolute;width:100%;height:100%}.textarea-fill-outline.sc-ion-textarea-md-h .textarea-outline-start.sc-ion-textarea-md,.textarea-fill-outline.sc-ion-textarea-md-h .textarea-outline-end.sc-ion-textarea-md{pointer-events:none}.textarea-fill-outline.sc-ion-textarea-md-h .textarea-outline-start.sc-ion-textarea-md,.textarea-fill-outline.sc-ion-textarea-md-h .textarea-outline-notch.sc-ion-textarea-md,.textarea-fill-outline.sc-ion-textarea-md-h .textarea-outline-end.sc-ion-textarea-md{border-top:var(--border-width) var(--border-style) var(--border-color);border-bottom:var(--border-width) var(--border-style) var(--border-color)}.textarea-fill-outline.sc-ion-textarea-md-h .textarea-outline-notch.sc-ion-textarea-md{max-width:calc(100% - var(--padding-start) - var(--padding-end))}.textarea-fill-outline.sc-ion-textarea-md-h .notch-spacer.sc-ion-textarea-md{-webkit-padding-end:8px;padding-inline-end:8px;font-size:calc(1em * 0.75);opacity:0;pointer-events:none;-webkit-box-sizing:content-box;box-sizing:content-box}.textarea-fill-outline.sc-ion-textarea-md-h .textarea-outline-start.sc-ion-textarea-md{border-start-start-radius:var(--border-radius);border-start-end-radius:0px;border-end-end-radius:0px;border-end-start-radius:var(--border-radius);-webkit-border-start:var(--border-width) var(--border-style) var(--border-color);border-inline-start:var(--border-width) var(--border-style) var(--border-color);width:calc(var(--padding-start) - 4px)}.textarea-fill-outline.sc-ion-textarea-md-h .textarea-outline-end.sc-ion-textarea-md{-webkit-border-end:var(--border-width) var(--border-style) var(--border-color);border-inline-end:var(--border-width) var(--border-style) var(--border-color);border-start-start-radius:0px;border-start-end-radius:var(--border-radius);border-end-end-radius:var(--border-radius);border-end-start-radius:0px;-ms-flex-positive:1;flex-grow:1}.label-floating.textarea-fill-outline.sc-ion-textarea-md-h .textarea-outline-notch.sc-ion-textarea-md{border-top:none}.sc-ion-textarea-md-h{--border-width:1px;--border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-150, var(--ion-background-color-step-150, rgba(0, 0, 0, 0.13)))));--padding-top:18px;--padding-end:0px;--padding-bottom:8px;--padding-start:0px;--highlight-height:2px;font-size:inherit}.textarea-bottom.sc-ion-textarea-md .counter.sc-ion-textarea-md{letter-spacing:0.0333333333em}.textarea-label-placement-floating.has-focus.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md,.textarea-label-placement-stacked.has-focus.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md{color:var(--highlight-color)}.has-focus.textarea-label-placement-floating.ion-valid.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md,.textarea-label-placement-floating.ion-touched.ion-invalid.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md,.has-focus.textarea-label-placement-stacked.ion-valid.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md,.textarea-label-placement-stacked.ion-touched.ion-invalid.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md{color:var(--highlight-color)}.textarea-disabled.sc-ion-textarea-md-h{opacity:0.38}.textarea-highlight.sc-ion-textarea-md{bottom:-1px;position:absolute;width:100%;height:var(--highlight-height);-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)}.textarea-highlight.sc-ion-textarea-md{inset-inline-start:0}.has-focus.sc-ion-textarea-md-h .textarea-highlight.sc-ion-textarea-md{-webkit-transform:scale(1);transform:scale(1)}.in-item.sc-ion-textarea-md-h .textarea-highlight.sc-ion-textarea-md{bottom:0}.in-item.sc-ion-textarea-md-h .textarea-highlight.sc-ion-textarea-md{inset-inline-start:0}.textarea-shape-round.sc-ion-textarea-md-h{--border-radius:16px}.sc-ion-textarea-md-s>ion-button[slot=start].button-has-icon-only,.sc-ion-textarea-md-s>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}'}}},[38,"ion-textarea",{color:[513],autocapitalize:[1],autofocus:[4],clearOnEdit:[4,"clear-on-edit"],debounce:[2],disabled:[4],fill:[1],inputmode:[1],enterkeyhint:[1],maxlength:[2],minlength:[2],name:[1],placeholder:[1],readonly:[4],required:[4],spellcheck:[4],cols:[514],rows:[2],wrap:[1],autoGrow:[516,"auto-grow"],value:[1025],counter:[4],counterFormatter:[16],errorText:[1,"error-text"],helperText:[1,"helper-text"],label:[1],labelPlacement:[1,"label-placement"],shape:[1],hasFocus:[32],setFocus:[64],getInputElement:[64]},void 0,{debounce:["debounceChanged"],value:["valueChanged"]}]),au=0,ah=(0,eN.GH)(class extends eN.mv{constructor(){super(),this.__registerHost(),this.__attachShadow()}render(){return(0,eN.h)(eN.AA,{key:"ea55000055f941b0c79561e8934be6242ec8e114",class:(0,p.b)(this)},(0,eN.h)("slot",{key:"a4f934f442797f5c66a77e0ef8920fdd07c204f2"}))}static get style(){return":host{--size:48px;--border-radius:0;border-radius:var(--border-radius);display:block;width:var(--size);height:var(--size)}::slotted(ion-img),::slotted(img){border-radius:var(--border-radius);width:100%;height:100%;-o-object-fit:cover;object-fit:cover;overflow:hidden}"}},[1,"ion-thumbnail"]),ap=(0,eN.GH)(class extends eN.mv{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionStyle=(0,eN.yM)(this,"ionStyle",7),this.color=void 0,this.size=void 0}sizeChanged(){this.emitStyle()}connectedCallback(){this.emitStyle()}emitStyle(){let e=this.getSize();this.ionStyle.emit({[`title-${e}`]:!0})}getSize(){return void 0!==this.size?this.size:"default"}render(){let e=(0,p.b)(this),t=this.getSize();return(0,eN.h)(eN.AA,{key:"5a58dc437a6f4257244bbdd7e9a682a17d8c9a6b",class:eP(this.color,{[e]:!0,[`title-${t}`]:!0,"title-rtl":"rtl"===document.dir})},(0,eN.h)("div",{key:"58682ea7b8f47a08adfad419b5c76b34784c6501",class:"toolbar-title"},(0,eN.h)("slot",{key:"8a9248534e4c3076f5e2dfda38ef86069796851c"})))}get el(){return this}static get watchers(){return{size:["sizeChanged"]}}static get style(){return{ios:":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}:host{inset-inline-start: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)}}",md:":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}"}}},[33,"ion-title",{color:[513],size:[1]},void 0,{size:["sizeChanged"]}]),af=(0,eN.GH)(class extends eN.mv{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionChange=(0,eN.yM)(this,"ionChange",7),this.ionFocus=(0,eN.yM)(this,"ionFocus",7),this.ionBlur=(0,eN.yM)(this,"ionBlur",7),this.inputId=`ion-tg-${ag++}`,this.lastDrag=0,this.inheritedAttributes={},this.didLoad=!1,this.setupGesture=async()=>{let{toggleTrack:e}=this;e&&(this.gesture=(await Promise.resolve().then(n.bind(n,19341))).createGesture({el:e,gestureName:"toggle",gesturePriority:100,threshold:5,passive:!1,onStart:()=>this.onStart(),onMove:e=>this.onMove(e),onEnd:e=>this.onEnd(e)}),this.disabledChanged())},this.onClick=e=>{!this.disabled&&(e.preventDefault(),this.lastDrag+300<Date.now()&&this.toggleChecked())},this.onFocus=()=>{this.ionFocus.emit()},this.onBlur=()=>{this.ionBlur.emit()},this.getSwitchLabelIcon=(e,t)=>"md"===e?t?"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path stroke-linecap='round' stroke-linejoin='round' d='M416 128L192 384l-96-96' class='ionicon-fill-none ionicon-stroke-width'/></svg>":eq:t?eq:"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><circle cx='256' cy='256' r='192' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/></svg>",this.activated=!1,this.color=void 0,this.name=this.inputId,this.checked=!1,this.disabled=!1,this.value="on",this.enableOnOffLabels=p.c.get("toggleOnOffLabels"),this.labelPlacement="start",this.justify="space-between",this.alignment="center"}disabledChanged(){this.gesture&&this.gesture.enable(!this.disabled)}toggleChecked(){let{checked:e,value:t}=this,n=!e;this.checked=n,this.ionChange.emit({checked:n,value:t})}async connectedCallback(){this.didLoad&&this.setupGesture()}componentDidLoad(){this.setupGesture(),this.didLoad=!0}disconnectedCallback(){this.gesture&&(this.gesture.destroy(),this.gesture=void 0)}componentWillLoad(){this.inheritedAttributes=Object.assign({},(0,f.i)(this.el))}onStart(){this.activated=!0,this.setFocus()}onMove(e){am((0,t$.i)(this.el),this.checked,e.deltaX,-10)&&(this.toggleChecked(),n4())}onEnd(e){this.activated=!1,this.lastDrag=Date.now(),e.event.preventDefault(),e.event.stopImmediatePropagation()}getValue(){return this.value||""}setFocus(){this.focusEl&&this.focusEl.focus()}renderOnOffSwitchLabels(e,t){let n=this.getSwitchLabelIcon(e,t);return(0,eN.h)("ion-icon",{class:{"toggle-switch-icon":!0,"toggle-switch-icon-checked":t},icon:n,"aria-hidden":"true"})}renderToggleControl(){let e=(0,p.b)(this),{enableOnOffLabels:t,checked:n}=this;return(0,eN.h)("div",{class:"toggle-icon",part:"track",ref:e=>this.toggleTrack=e},t&&"ios"===e&&[this.renderOnOffSwitchLabels(e,!0),this.renderOnOffSwitchLabels(e,!1)],(0,eN.h)("div",{class:"toggle-icon-wrapper"},(0,eN.h)("div",{class:"toggle-inner",part:"handle"},t&&"md"===e&&this.renderOnOffSwitchLabels(e,n))))}get hasLabel(){return""!==this.el.textContent}render(){let{activated:e,color:t,checked:n,disabled:i,el:r,justify:o,labelPlacement:a,inputId:s,name:l,alignment:c}=this,d=(0,p.b)(this),u=this.getValue(),h=(0,t$.i)(r)?"rtl":"ltr";return(0,f.e)(!0,r,l,n?u:"",i),(0,eN.h)(eN.AA,{key:"b0d648e071bc8095998b519ce4dcdd0ea91575c0",onClick:this.onClick,class:eP(t,{[d]:!0,"in-item":eC("ion-item",r),"toggle-activated":e,"toggle-checked":n,"toggle-disabled":i,[`toggle-justify-${o}`]:!0,[`toggle-alignment-${c}`]:!0,[`toggle-label-placement-${a}`]:!0,[`toggle-${h}`]:!0})},(0,eN.h)("label",{key:"9a2fe1d16dba66a9dfef450efebf2e5cbe3dcd00",class:"toggle-wrapper"},(0,eN.h)("input",Object.assign({key:"4358d18cb86da768155c17f9da3aac641296c256",type:"checkbox",role:"switch","aria-checked":`${n}`,checked:n,disabled:i,id:s,onFocus:()=>this.onFocus(),onBlur:()=>this.onBlur(),ref:e=>this.focusEl=e},this.inheritedAttributes)),(0,eN.h)("div",{key:"0ec99e452164d7059cc4f93d09e5b918f82c022a",class:{"label-text-wrapper":!0,"label-text-wrapper-hidden":!this.hasLabel},part:"label"},(0,eN.h)("slot",{key:"1c5cbc99905a79e842e9487eb3ca654e1bab3c66"})),(0,eN.h)("div",{key:"ca8196423b429899febd11c7337d768ff05df6f4",class:"native-wrapper"},this.renderToggleControl())))}get el(){return this}static get watchers(){return{disabled:["disabledChanged"]}}static get style(){return{ios:":host{-webkit-box-sizing:content-box !important;box-sizing:content-box !important;display:inline-block;position:relative;max-width:100%;outline:none;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:2}:host(.in-item){-ms-flex:1 1 0px;flex:1 1 0;width:100%;height:100%}:host([slot=start]),:host([slot=end]){-ms-flex:initial;flex:initial;width:auto}:host(.ion-focused) input{border:2px solid #5e9ed6}:host(.toggle-disabled){pointer-events: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}.toggle-wrapper{display:-ms-flexbox;display:flex;position:relative;-ms-flex-positive:1;flex-grow:1;height:inherit;-webkit-transition:background-color 15ms linear;transition:background-color 15ms linear;cursor:inherit}.label-text-wrapper{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}:host(.in-item) .label-text-wrapper{margin-top:10px;margin-bottom:10px}:host(.in-item.toggle-label-placement-stacked) .label-text-wrapper{margin-top:10px;margin-bottom:16px}:host(.in-item.toggle-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(.toggle-justify-space-between) .toggle-wrapper{-ms-flex-pack:justify;justify-content:space-between}:host(.toggle-justify-start) .toggle-wrapper{-ms-flex-pack:start;justify-content:start}:host(.toggle-justify-end) .toggle-wrapper{-ms-flex-pack:end;justify-content:end}:host(.toggle-alignment-start) .toggle-wrapper{-ms-flex-align:start;align-items:start}:host(.toggle-alignment-center) .toggle-wrapper{-ms-flex-align:center;align-items:center}:host(.toggle-label-placement-start) .toggle-wrapper{-ms-flex-direction:row;flex-direction:row}:host(.toggle-label-placement-start) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px}:host(.toggle-label-placement-end) .toggle-wrapper{-ms-flex-direction:row-reverse;flex-direction:row-reverse}:host(.toggle-label-placement-end) .label-text-wrapper{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0}:host(.toggle-label-placement-fixed) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px}:host(.toggle-label-placement-fixed) .label-text-wrapper{-ms-flex:0 0 100px;flex:0 0 100px;width:100px;min-width:100px;max-width:200px}:host(.toggle-label-placement-stacked) .toggle-wrapper{-ms-flex-direction:column;flex-direction:column}:host(.toggle-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(.toggle-label-placement-stacked.toggle-alignment-start) .label-text-wrapper{-webkit-transform-origin:left top;transform-origin:left top}:host-context([dir=rtl]):host(.toggle-label-placement-stacked.toggle-alignment-start) .label-text-wrapper,:host-context([dir=rtl]).toggle-label-placement-stacked.toggle-alignment-start .label-text-wrapper{-webkit-transform-origin:right top;transform-origin:right top}@supports selector(:dir(rtl)){:host(.toggle-label-placement-stacked.toggle-alignment-start:dir(rtl)) .label-text-wrapper{-webkit-transform-origin:right top;transform-origin:right top}}:host(.toggle-label-placement-stacked.toggle-alignment-center) .label-text-wrapper{-webkit-transform-origin:center top;transform-origin:center top}:host-context([dir=rtl]):host(.toggle-label-placement-stacked.toggle-alignment-center) .label-text-wrapper,:host-context([dir=rtl]).toggle-label-placement-stacked.toggle-alignment-center .label-text-wrapper{-webkit-transform-origin:calc(100% - center) top;transform-origin:calc(100% - center) top}@supports selector(:dir(rtl)){:host(.toggle-label-placement-stacked.toggle-alignment-center:dir(rtl)) .label-text-wrapper{-webkit-transform-origin:calc(100% - center) top;transform-origin:calc(100% - center) top}}.toggle-icon-wrapper{display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;width:100%;height:100%;-webkit-transition:var(--handle-transition);transition:var(--handle-transition);will-change:transform}.toggle-icon{border-radius:var(--border-radius);display:block;position:relative;width:100%;height:100%;background:var(--track-background);overflow:inherit}:host(.toggle-checked) .toggle-icon{background:var(--track-background-checked)}.toggle-inner{border-radius:var(--handle-border-radius);position:absolute;left:var(--handle-spacing);width:var(--handle-width);height:var(--handle-height);max-height:var(--handle-max-height);-webkit-transition:var(--handle-transition);transition:var(--handle-transition);background:var(--handle-background);-webkit-box-shadow:var(--handle-box-shadow);box-shadow:var(--handle-box-shadow);contain:strict}:host(.toggle-ltr) .toggle-inner{left:var(--handle-spacing)}:host(.toggle-rtl) .toggle-inner{right:var(--handle-spacing)}:host(.toggle-ltr.toggle-checked) .toggle-icon-wrapper{-webkit-transform:translate3d(calc(100% - var(--handle-width)), 0, 0);transform:translate3d(calc(100% - var(--handle-width)), 0, 0)}:host(.toggle-rtl.toggle-checked) .toggle-icon-wrapper{-webkit-transform:translate3d(calc(-100% + var(--handle-width)), 0, 0);transform:translate3d(calc(-100% + var(--handle-width)), 0, 0)}:host(.toggle-checked) .toggle-inner{background:var(--handle-background-checked)}:host(.toggle-ltr.toggle-checked) .toggle-inner{-webkit-transform:translate3d(calc(var(--handle-spacing) * -2), 0, 0);transform:translate3d(calc(var(--handle-spacing) * -2), 0, 0)}:host(.toggle-rtl.toggle-checked) .toggle-inner{-webkit-transform:translate3d(calc(var(--handle-spacing) * 2), 0, 0);transform:translate3d(calc(var(--handle-spacing) * 2), 0, 0)}:host{--track-background:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.088);--track-background-checked:var(--ion-color-primary, #0054e9);--border-radius:15.5px;--handle-background:#ffffff;--handle-background-checked:#ffffff;--handle-border-radius:25.5px;--handle-box-shadow:0 3px 4px rgba(0, 0, 0, 0.06), 0 3px 8px rgba(0, 0, 0, 0.06);--handle-height:calc(31px - (2px * 2));--handle-max-height:calc(100% - var(--handle-spacing) * 2);--handle-width:calc(31px - (2px * 2));--handle-spacing:2px;--handle-transition:transform 300ms, width 120ms ease-in-out 80ms, left 110ms ease-in-out 80ms, right 110ms ease-in-out 80ms}.native-wrapper .toggle-icon{width:51px;height:31px;overflow:hidden}:host(.ion-color.toggle-checked) .toggle-icon{background:var(--ion-color-base)}:host(.toggle-activated) .toggle-switch-icon{opacity:0}.toggle-icon{-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);-webkit-transition:background-color 300ms;transition:background-color 300ms}.toggle-inner{will-change:transform}.toggle-switch-icon{position:absolute;top:50%;width:11px;height:11px;-webkit-transform:translateY(-50%);transform:translateY(-50%);-webkit-transition:opacity 300ms, color 300ms;transition:opacity 300ms, color 300ms}.toggle-switch-icon{position:absolute;color:var(--ion-color-dark, #222428)}:host(.toggle-ltr) .toggle-switch-icon{right:6px}:host(.toggle-rtl) .toggle-switch-icon{right:initial;left:6px;}:host(.toggle-checked) .toggle-switch-icon.toggle-switch-icon-checked{color:var(--ion-color-contrast, #fff)}:host(.toggle-checked) .toggle-switch-icon:not(.toggle-switch-icon-checked){opacity:0}.toggle-switch-icon-checked{position:absolute;width:15px;height:15px;-webkit-transform:translateY(-50%) rotate(90deg);transform:translateY(-50%) rotate(90deg)}:host(.toggle-ltr) .toggle-switch-icon-checked{right:initial;left:4px;}:host(.toggle-rtl) .toggle-switch-icon-checked{right:4px}:host(.toggle-activated) .toggle-icon::before,:host(.toggle-checked) .toggle-icon::before{-webkit-transform:scale3d(0, 0, 0);transform:scale3d(0, 0, 0)}:host(.toggle-activated.toggle-checked) .toggle-inner::before{-webkit-transform:scale3d(0, 0, 0);transform:scale3d(0, 0, 0)}:host(.toggle-activated) .toggle-inner{width:calc(var(--handle-width) + 6px)}:host(.toggle-ltr.toggle-activated.toggle-checked) .toggle-icon-wrapper{-webkit-transform:translate3d(calc(100% - var(--handle-width) - 6px), 0, 0);transform:translate3d(calc(100% - var(--handle-width) - 6px), 0, 0)}:host(.toggle-rtl.toggle-activated.toggle-checked) .toggle-icon-wrapper{-webkit-transform:translate3d(calc(-100% + var(--handle-width) + 6px), 0, 0);transform:translate3d(calc(-100% + var(--handle-width) + 6px), 0, 0)}:host(.toggle-disabled){opacity:0.3}",md:":host{-webkit-box-sizing:content-box !important;box-sizing:content-box !important;display:inline-block;position:relative;max-width:100%;outline:none;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:2}:host(.in-item){-ms-flex:1 1 0px;flex:1 1 0;width:100%;height:100%}:host([slot=start]),:host([slot=end]){-ms-flex:initial;flex:initial;width:auto}:host(.ion-focused) input{border:2px solid #5e9ed6}:host(.toggle-disabled){pointer-events: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}.toggle-wrapper{display:-ms-flexbox;display:flex;position:relative;-ms-flex-positive:1;flex-grow:1;height:inherit;-webkit-transition:background-color 15ms linear;transition:background-color 15ms linear;cursor:inherit}.label-text-wrapper{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}:host(.in-item) .label-text-wrapper{margin-top:10px;margin-bottom:10px}:host(.in-item.toggle-label-placement-stacked) .label-text-wrapper{margin-top:10px;margin-bottom:16px}:host(.in-item.toggle-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(.toggle-justify-space-between) .toggle-wrapper{-ms-flex-pack:justify;justify-content:space-between}:host(.toggle-justify-start) .toggle-wrapper{-ms-flex-pack:start;justify-content:start}:host(.toggle-justify-end) .toggle-wrapper{-ms-flex-pack:end;justify-content:end}:host(.toggle-alignment-start) .toggle-wrapper{-ms-flex-align:start;align-items:start}:host(.toggle-alignment-center) .toggle-wrapper{-ms-flex-align:center;align-items:center}:host(.toggle-label-placement-start) .toggle-wrapper{-ms-flex-direction:row;flex-direction:row}:host(.toggle-label-placement-start) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px}:host(.toggle-label-placement-end) .toggle-wrapper{-ms-flex-direction:row-reverse;flex-direction:row-reverse}:host(.toggle-label-placement-end) .label-text-wrapper{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0}:host(.toggle-label-placement-fixed) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px}:host(.toggle-label-placement-fixed) .label-text-wrapper{-ms-flex:0 0 100px;flex:0 0 100px;width:100px;min-width:100px;max-width:200px}:host(.toggle-label-placement-stacked) .toggle-wrapper{-ms-flex-direction:column;flex-direction:column}:host(.toggle-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(.toggle-label-placement-stacked.toggle-alignment-start) .label-text-wrapper{-webkit-transform-origin:left top;transform-origin:left top}:host-context([dir=rtl]):host(.toggle-label-placement-stacked.toggle-alignment-start) .label-text-wrapper,:host-context([dir=rtl]).toggle-label-placement-stacked.toggle-alignment-start .label-text-wrapper{-webkit-transform-origin:right top;transform-origin:right top}@supports selector(:dir(rtl)){:host(.toggle-label-placement-stacked.toggle-alignment-start:dir(rtl)) .label-text-wrapper{-webkit-transform-origin:right top;transform-origin:right top}}:host(.toggle-label-placement-stacked.toggle-alignment-center) .label-text-wrapper{-webkit-transform-origin:center top;transform-origin:center top}:host-context([dir=rtl]):host(.toggle-label-placement-stacked.toggle-alignment-center) .label-text-wrapper,:host-context([dir=rtl]).toggle-label-placement-stacked.toggle-alignment-center .label-text-wrapper{-webkit-transform-origin:calc(100% - center) top;transform-origin:calc(100% - center) top}@supports selector(:dir(rtl)){:host(.toggle-label-placement-stacked.toggle-alignment-center:dir(rtl)) .label-text-wrapper{-webkit-transform-origin:calc(100% - center) top;transform-origin:calc(100% - center) top}}.toggle-icon-wrapper{display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;width:100%;height:100%;-webkit-transition:var(--handle-transition);transition:var(--handle-transition);will-change:transform}.toggle-icon{border-radius:var(--border-radius);display:block;position:relative;width:100%;height:100%;background:var(--track-background);overflow:inherit}:host(.toggle-checked) .toggle-icon{background:var(--track-background-checked)}.toggle-inner{border-radius:var(--handle-border-radius);position:absolute;left:var(--handle-spacing);width:var(--handle-width);height:var(--handle-height);max-height:var(--handle-max-height);-webkit-transition:var(--handle-transition);transition:var(--handle-transition);background:var(--handle-background);-webkit-box-shadow:var(--handle-box-shadow);box-shadow:var(--handle-box-shadow);contain:strict}:host(.toggle-ltr) .toggle-inner{left:var(--handle-spacing)}:host(.toggle-rtl) .toggle-inner{right:var(--handle-spacing)}:host(.toggle-ltr.toggle-checked) .toggle-icon-wrapper{-webkit-transform:translate3d(calc(100% - var(--handle-width)), 0, 0);transform:translate3d(calc(100% - var(--handle-width)), 0, 0)}:host(.toggle-rtl.toggle-checked) .toggle-icon-wrapper{-webkit-transform:translate3d(calc(-100% + var(--handle-width)), 0, 0);transform:translate3d(calc(-100% + var(--handle-width)), 0, 0)}:host(.toggle-checked) .toggle-inner{background:var(--handle-background-checked)}:host(.toggle-ltr.toggle-checked) .toggle-inner{-webkit-transform:translate3d(calc(var(--handle-spacing) * -2), 0, 0);transform:translate3d(calc(var(--handle-spacing) * -2), 0, 0)}:host(.toggle-rtl.toggle-checked) .toggle-inner{-webkit-transform:translate3d(calc(var(--handle-spacing) * 2), 0, 0);transform:translate3d(calc(var(--handle-spacing) * 2), 0, 0)}:host{--track-background:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.39);--track-background-checked:rgba(var(--ion-color-primary-rgb, 0, 84, 233), 0.5);--border-radius:14px;--handle-background:#ffffff;--handle-background-checked:var(--ion-color-primary, #0054e9);--handle-border-radius:50%;--handle-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);--handle-width:20px;--handle-height:20px;--handle-max-height:calc(100% + 6px);--handle-spacing:0;--handle-transition:transform 160ms cubic-bezier(0.4, 0, 0.2, 1), background-color 160ms cubic-bezier(0.4, 0, 0.2, 1)}.native-wrapper .toggle-icon{width:36px;height:14px}:host(.ion-color.toggle-checked) .toggle-icon{background:rgba(var(--ion-color-base-rgb), 0.5)}:host(.ion-color.toggle-checked) .toggle-inner{background:var(--ion-color-base)}:host(.toggle-checked) .toggle-inner{color:var(--ion-color-contrast, #fff)}.toggle-icon{-webkit-transition:background-color 160ms;transition:background-color 160ms}.toggle-inner{will-change:background-color, transform;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;color:#000}.toggle-inner .toggle-switch-icon{-webkit-padding-start:1px;padding-inline-start:1px;-webkit-padding-end:1px;padding-inline-end:1px;padding-top:1px;padding-bottom:1px;width:100%;height:100%}:host(.toggle-disabled){opacity:0.38}"}}},[33,"ion-toggle",{color:[513],name:[1],checked:[1028],disabled:[4],value:[1],enableOnOffLabels:[4,"enable-on-off-labels"],labelPlacement:[1,"label-placement"],justify:[1],alignment:[1],activated:[32]},void 0,{disabled:["disabledChanged"]}]),am=(e,t,n,i)=>t?!e&&i>n||e&&-i<n:!e&&-i<n||e&&i>n,ag=0,ab=(0,eN.GH)(class extends eN.mv{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.childrenStyles=new Map,this.color=void 0}componentWillLoad(){let e=Array.from(this.el.querySelectorAll("ion-buttons")),t=e.find(e=>"start"===e.slot);t&&t.classList.add("buttons-first-slot");let n=e.reverse(),i=n.find(e=>"end"===e.slot)||n.find(e=>"primary"===e.slot)||n.find(e=>"secondary"===e.slot);i&&i.classList.add("buttons-last-slot")}childrenStyle(e){e.stopPropagation();let t=e.target.tagName,n=e.detail,i={},r=this.childrenStyles.get(t)||{},o=!1;Object.keys(n).forEach(e=>{let t=`toolbar-${e}`,a=n[e];a!==r[t]&&(o=!0),a&&(i[t]=!0)}),o&&(this.childrenStyles.set(t,i),(0,eN.xE)(this))}render(){let e=(0,p.b)(this),t={};return this.childrenStyles.forEach(e=>{Object.assign(t,e)}),(0,eN.h)(eN.AA,{key:"4bb3a55001408a3bdf033af76b9196cb96c07c09",class:Object.assign(Object.assign({},t),eP(this.color,{[e]:!0,"in-toolbar":eC("ion-toolbar",this.el)}))},(0,eN.h)("div",{key:"0891db157d6e028c6d03696f13fb510ea91b0296",class:"toolbar-background"}),(0,eN.h)("div",{key:"95fbc870d808f74af4bb18cd8f8ec8c7828a9e0b",class:"toolbar-container"},(0,eN.h)("slot",{key:"84d4a9644660fe00ca085055ca8d12f3647531ad",name:"start"}),(0,eN.h)("slot",{key:"fd361dc9c9979f59aed2fedcf94629506fae62b0",name:"secondary"}),(0,eN.h)("div",{key:"54d2b28616a4627c55766f66dc453707752758a6",class:"toolbar-content"},(0,eN.h)("slot",{key:"8f65e0830cce7135640b90eb694e282cb7e5efd2"})),(0,eN.h)("slot",{key:"c78be11a207c8674f222543646398636956087e6",name:"primary"}),(0,eN.h)("slot",{key:"ab25e1601ccaa8cb0d81921b849bcb7402aa7826",name:"end"})))}get el(){return this}static get style(){return{ios:":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, var(--ion-background-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, var(--ion-background-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%}",md:":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, var(--ion-background-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}"}}},[33,"ion-toolbar",{color:[513]},[[0,"ionStyle","childrenStyle"]]]),av=(0,eN.GH)(class extends eN.mv{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionFocus=(0,eN.yM)(this,"ionFocus",7),this.ionBlur=(0,eN.yM)(this,"ionBlur",7),this.collapsedClick=(0,eN.yM)(this,"collapsedClick",7),this.inheritedAttributes={},this.onFocus=()=>{this.ionFocus.emit()},this.onBlur=()=>{this.ionBlur.emit()},this.collapsedIndicatorClick=()=>{this.collapsedClick.emit({ionShadowTarget:this.collapsedRef})},this.collapsed=!1,this.last=void 0,this.showCollapsedIndicator=void 0,this.color=void 0,this.active=!1,this.disabled=!1,this.download=void 0,this.href=void 0,this.rel=void 0,this.separator=void 0,this.target=void 0,this.routerDirection="forward",this.routerAnimation=void 0}componentWillLoad(){this.inheritedAttributes=(0,f.i)(this.el)}isClickable(){return void 0!==this.href}render(){let{color:e,active:t,collapsed:n,disabled:i,download:r,el:o,inheritedAttributes:a,last:s,routerAnimation:l,routerDirection:c,separator:d,showCollapsedIndicator:u,target:h}=this,f=this.isClickable(),m=void 0===this.href?"span":"a",g=i?void 0:this.href,b=(0,p.b)(this),v="span"===m?{}:{download:r,href:g,target:h};return(0,eN.h)(eN.AA,{key:"dfe55ad57f23e5da5f2e2c51fea99964812472e3",onClick:e=>eI(g,e,c,l),"aria-disabled":i?"true":null,class:eP(e,{[b]:!0,"breadcrumb-active":t,"breadcrumb-collapsed":n,"breadcrumb-disabled":i,"in-breadcrumbs-color":eC("ion-breadcrumbs[color]",o),"in-toolbar":eC("ion-toolbar",this.el),"in-toolbar-color":eC("ion-toolbar[color]",this.el),"ion-activatable":f,"ion-focusable":f})},(0,eN.h)(m,Object.assign({key:"e361b1f0e7de6dd5c5dd4f6deae72c2c8210466d"},v,{class:"breadcrumb-native",part:"native",disabled:i,onFocus:this.onFocus,onBlur:this.onBlur},a),(0,eN.h)("slot",{key:"9daeb45a8a28c89f3ad5751f71b8412197846371",name:"start"}),(0,eN.h)("slot",{key:"4849e63cdffd6c712292745138b68730442c8b0d"}),(0,eN.h)("slot",{key:"6edf9bac5aec06ccec2844efac2d9afa1d24cf57",name:"end"})),u&&(0,eN.h)("button",{key:"de7f5faea75b44011b289d259265e2435a65874f",part:"collapsed-indicator","aria-label":"Show more breadcrumbs",onClick:()=>this.collapsedIndicatorClick(),ref:e=>this.collapsedRef=e,class:{"breadcrumbs-collapsed-indicator":!0}},(0,eN.h)("ion-icon",{key:"957d8851af9c99dda263f34eff0b35a0fc212c32","aria-hidden":"true",icon:"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><circle cx='256' cy='256' r='48'/><circle cx='416' cy='256' r='48'/><circle cx='96' cy='256' r='48'/></svg>",lazy:!1})),!s&&(n?!!u&&!s:d)&&(0,eN.h)("span",{key:"97d646c37c4c41ad6b12c3a543d1146fde06fc9a",class:"breadcrumb-separator",part:"separator","aria-hidden":"true"},(0,eN.h)("slot",{key:"0429f671a986f2d7be1b1b69fc879e80806d2916",name:"separator"},"ios"===b?(0,eN.h)("ion-icon",{icon:"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path stroke-linecap='round' stroke-linejoin='round' stroke-width='48' d='M184 112l144 144-144 144' class='ionicon-fill-none'/></svg>",lazy:!1,"flip-rtl":!0}):(0,eN.h)("span",null,"/"))))}get el(){return this}static get style(){return{ios:":host{display:-ms-flexbox;display:flex;-ms-flex:0 0 auto;flex:0 0 auto;-ms-flex-align:center;align-items:center;color:var(--color);font-size:1rem;font-weight:400;line-height:1.5}.breadcrumb-native{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-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;width:100%;outline:none;background:inherit}:host(.breadcrumb-disabled){cursor:default;opacity:0.5;pointer-events:none}:host(.breadcrumb-active){color:var(--color-active)}:host(.ion-focused){color:var(--color-focused)}:host(.ion-focused) .breadcrumb-native{background:var(--background-focused)}@media (any-hover: hover){:host(.ion-activatable:hover){color:var(--color-hover)}:host(.ion-activatable.in-breadcrumbs-color:hover),:host(.ion-activatable.ion-color:hover){color:var(--ion-color-shade)}}.breadcrumb-separator{display:-ms-inline-flexbox;display:inline-flex}:host(.breadcrumb-collapsed) .breadcrumb-native{display:none}:host(.in-breadcrumbs-color),:host(.in-breadcrumbs-color.breadcrumb-active){color:var(--ion-color-base)}:host(.in-breadcrumbs-color) .breadcrumb-separator{color:var(--ion-color-base)}:host(.ion-color){color:var(--ion-color-base)}:host(.in-toolbar-color),:host(.in-toolbar-color) .breadcrumb-separator{color:rgba(var(--ion-color-contrast-rgb), 0.8)}:host(.in-toolbar-color.breadcrumb-active){color:var(--ion-color-contrast)}.breadcrumbs-collapsed-indicator{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;-webkit-margin-start:14px;margin-inline-start:14px;-webkit-margin-end:14px;margin-inline-end:14px;margin-top:0;margin-bottom:0;display:-ms-flexbox;display:flex;-ms-flex:1 1 100%;flex:1 1 100%;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:32px;height:18px;border:0;outline:none;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none}.breadcrumbs-collapsed-indicator ion-icon{margin-top:1px;font-size:1.375rem}:host{--color:var(--ion-color-step-850, var(--ion-text-color-step-150, #2d4665));--color-active:var(--ion-text-color, #03060b);--color-hover:var(--ion-text-color, #03060b);--color-focused:var(--color-active);--background-focused:var(--ion-color-step-50, var(--ion-background-color-step-50, rgba(233, 237, 243, 0.7)));font-size:clamp(16px, 1rem, 22px)}:host(.breadcrumb-active){font-weight:600}.breadcrumb-native{border-radius:4px;-webkit-padding-start:12px;padding-inline-start:12px;-webkit-padding-end:12px;padding-inline-end:12px;padding-top:5px;padding-bottom:5px;border:1px solid transparent}:host(.ion-focused) .breadcrumb-native{border-radius:8px}:host(.in-breadcrumbs-color.ion-focused) .breadcrumb-native,:host(.ion-color.ion-focused) .breadcrumb-native{background:rgba(var(--ion-color-base-rgb), 0.1);color:var(--ion-color-base)}:host(.ion-focused) ::slotted(ion-icon),:host(.in-breadcrumbs-color.ion-focused) ::slotted(ion-icon),:host(.ion-color.ion-focused) ::slotted(ion-icon){color:var(--ion-color-step-750, var(--ion-text-color-step-250, #445b78))}.breadcrumb-separator{color:var(--ion-color-step-550, var(--ion-text-color-step-450, #73849a))}::slotted(ion-icon){color:var(--ion-color-step-400, var(--ion-text-color-step-600, #92a0b3));font-size:min(1.125rem, 21.6px)}::slotted(ion-icon[slot=start]){-webkit-margin-end:8px;margin-inline-end:8px}::slotted(ion-icon[slot=end]){-webkit-margin-start:8px;margin-inline-start:8px}:host(.breadcrumb-active) ::slotted(ion-icon){color:var(--ion-color-step-850, var(--ion-text-color-step-150, #242d39))}.breadcrumbs-collapsed-indicator{border-radius:4px;background:var(--ion-color-step-100, var(--ion-background-color-step-100, #e9edf3));color:var(--ion-color-step-550, var(--ion-text-color-step-450, #73849a))}.breadcrumbs-collapsed-indicator:hover{opacity:0.45}.breadcrumbs-collapsed-indicator:focus{background:var(--ion-color-step-150, var(--ion-background-color-step-150, #d9e0ea))}.breadcrumbs-collapsed-indicator ion-icon{font-size:min(1.375rem, 22px)}",md:":host{display:-ms-flexbox;display:flex;-ms-flex:0 0 auto;flex:0 0 auto;-ms-flex-align:center;align-items:center;color:var(--color);font-size:1rem;font-weight:400;line-height:1.5}.breadcrumb-native{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-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;width:100%;outline:none;background:inherit}:host(.breadcrumb-disabled){cursor:default;opacity:0.5;pointer-events:none}:host(.breadcrumb-active){color:var(--color-active)}:host(.ion-focused){color:var(--color-focused)}:host(.ion-focused) .breadcrumb-native{background:var(--background-focused)}@media (any-hover: hover){:host(.ion-activatable:hover){color:var(--color-hover)}:host(.ion-activatable.in-breadcrumbs-color:hover),:host(.ion-activatable.ion-color:hover){color:var(--ion-color-shade)}}.breadcrumb-separator{display:-ms-inline-flexbox;display:inline-flex}:host(.breadcrumb-collapsed) .breadcrumb-native{display:none}:host(.in-breadcrumbs-color),:host(.in-breadcrumbs-color.breadcrumb-active){color:var(--ion-color-base)}:host(.in-breadcrumbs-color) .breadcrumb-separator{color:var(--ion-color-base)}:host(.ion-color){color:var(--ion-color-base)}:host(.in-toolbar-color),:host(.in-toolbar-color) .breadcrumb-separator{color:rgba(var(--ion-color-contrast-rgb), 0.8)}:host(.in-toolbar-color.breadcrumb-active){color:var(--ion-color-contrast)}.breadcrumbs-collapsed-indicator{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;-webkit-margin-start:14px;margin-inline-start:14px;-webkit-margin-end:14px;margin-inline-end:14px;margin-top:0;margin-bottom:0;display:-ms-flexbox;display:flex;-ms-flex:1 1 100%;flex:1 1 100%;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:32px;height:18px;border:0;outline:none;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none}.breadcrumbs-collapsed-indicator ion-icon{margin-top:1px;font-size:1.375rem}:host{--color:var(--ion-color-step-600, var(--ion-text-color-step-400, #677483));--color-active:var(--ion-text-color, #03060b);--color-hover:var(--ion-text-color, #03060b);--color-focused:var(--ion-color-step-800, var(--ion-text-color-step-200, #35404e));--background-focused:var(--ion-color-step-50, var(--ion-background-color-step-50, #fff))}:host(.breadcrumb-active){font-weight:500}.breadcrumb-native{-webkit-padding-start:12px;padding-inline-start:12px;-webkit-padding-end:12px;padding-inline-end:12px;padding-top:6px;padding-bottom:6px}.breadcrumb-separator{-webkit-margin-start:10px;margin-inline-start:10px;-webkit-margin-end:10px;margin-inline-end:10px;margin-top:-1px}:host(.ion-focused) .breadcrumb-native{border-radius:4px;-webkit-box-shadow:0px 1px 2px rgba(0, 0, 0, 0.2), 0px 2px 8px rgba(0, 0, 0, 0.12);box-shadow:0px 1px 2px rgba(0, 0, 0, 0.2), 0px 2px 8px rgba(0, 0, 0, 0.12)}.breadcrumb-separator{color:var(--ion-color-step-550, var(--ion-text-color-step-450, #73849a))}::slotted(ion-icon){color:var(--ion-color-step-550, var(--ion-text-color-step-450, #7d8894));font-size:1.125rem}::slotted(ion-icon[slot=start]){-webkit-margin-end:8px;margin-inline-end:8px}::slotted(ion-icon[slot=end]){-webkit-margin-start:8px;margin-inline-start:8px}:host(.breadcrumb-active) ::slotted(ion-icon){color:var(--ion-color-step-850, var(--ion-text-color-step-150, #222d3a))}.breadcrumbs-collapsed-indicator{border-radius:2px;background:var(--ion-color-step-100, var(--ion-background-color-step-100, #eef1f3));color:var(--ion-color-step-550, var(--ion-text-color-step-450, #73849a))}.breadcrumbs-collapsed-indicator:hover{opacity:0.7}.breadcrumbs-collapsed-indicator:focus{background:var(--ion-color-step-150, var(--ion-background-color-step-150, #dfe5e8))}"}}},[33,"ion-breadcrumb",{collapsed:[4],last:[4],showCollapsedIndicator:[4,"show-collapsed-indicator"],color:[1],active:[4],disabled:[4],download:[1],href:[1],rel:[1],separator:[4],target:[1],routerDirection:[1,"router-direction"],routerAnimation:[16]}]),ay=(0,eN.GH)(class extends eN.mv{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.inheritedAriaAttributes={},this.color=void 0,this.button=!1,this.type="button",this.disabled=!1,this.download=void 0,this.href=void 0,this.rel=void 0,this.routerDirection="forward",this.routerAnimation=void 0,this.target=void 0}componentWillLoad(){this.inheritedAriaAttributes=(0,f.d)(this.el,["aria-label"])}isClickable(){return void 0!==this.href||this.button}renderCard(e){let t=this.isClickable();if(!t)return[(0,eN.h)("slot",null)];let{href:n,routerAnimation:i,routerDirection:r,inheritedAriaAttributes:o}=this,a=t?void 0===n?"button":"a":"div",s="button"===a?{type:this.type}:{download:this.download,href:this.href,rel:this.rel,target:this.target};return(0,eN.h)(a,Object.assign({},s,o,{class:"card-native",part:"native",disabled:this.disabled,onClick:e=>eI(n,e,r,i)}),(0,eN.h)("slot",null),t&&"md"===e&&(0,eN.h)("ion-ripple-effect",null))}render(){let e=(0,p.b)(this);return(0,eN.h)(eN.AA,{key:"8584300522f382ee8891c039d71da82533dfa36a",class:eP(this.color,{[e]:!0,"card-disabled":this.disabled,"ion-activatable":this.isClickable()})},this.renderCard(e))}get el(){return this}static get style(){return{ios:":host{--ion-safe-area-left:0px;--ion-safe-area-right:0px;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:block;position:relative;background:var(--background);color:var(--color);font-family:var(--ion-font-family, inherit);contain:content;overflow:hidden}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(.card-disabled){cursor:default;opacity:0.3;pointer-events:none}.card-native{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-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:block;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:inherit}.card-native::-moz-focus-inner{border:0}button,a{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-drag:none}ion-ripple-effect{color:var(--ripple-color)}:host{--background:var(--ion-card-background, var(--ion-item-background, var(--ion-background-color, #fff)));--color:var(--ion-card-color, var(--ion-item-color, var(--ion-color-step-600, var(--ion-text-color-step-400, #666666))));-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:24px;margin-bottom:24px;border-radius:8px;-webkit-transition:-webkit-transform 500ms cubic-bezier(0.12, 0.72, 0.29, 1);transition:-webkit-transform 500ms cubic-bezier(0.12, 0.72, 0.29, 1);transition:transform 500ms cubic-bezier(0.12, 0.72, 0.29, 1);transition:transform 500ms cubic-bezier(0.12, 0.72, 0.29, 1), -webkit-transform 500ms cubic-bezier(0.12, 0.72, 0.29, 1);font-size:0.875rem;-webkit-box-shadow:0 4px 16px rgba(0, 0, 0, 0.12);box-shadow:0 4px 16px rgba(0, 0, 0, 0.12)}:host(.ion-activated){-webkit-transform:scale3d(0.97, 0.97, 1);transform:scale3d(0.97, 0.97, 1)}",md:":host{--ion-safe-area-left:0px;--ion-safe-area-right:0px;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:block;position:relative;background:var(--background);color:var(--color);font-family:var(--ion-font-family, inherit);contain:content;overflow:hidden}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(.card-disabled){cursor:default;opacity:0.3;pointer-events:none}.card-native{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-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:block;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:inherit}.card-native::-moz-focus-inner{border:0}button,a{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-drag:none}ion-ripple-effect{color:var(--ripple-color)}:host{--background:var(--ion-card-background, var(--ion-item-background, var(--ion-background-color, #fff)));--color:var(--ion-card-color, var(--ion-item-color, var(--ion-color-step-550, var(--ion-text-color-step-450, #737373))));-webkit-margin-start:10px;margin-inline-start:10px;-webkit-margin-end:10px;margin-inline-end:10px;margin-top:10px;margin-bottom:10px;border-radius:4px;font-size:0.875rem;-webkit-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);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)}"}}},[33,"ion-card",{color:[513],button:[4],type:[1],disabled:[4],download:[1],href:[1],rel:[1],routerDirection:[1,"router-direction"],routerAnimation:[16],target:[1]}]),ax=(0,eN.GH)(class extends eN.mv{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionFocus=(0,eN.yM)(this,"ionFocus",7),this.ionBlur=(0,eN.yM)(this,"ionBlur",7),this.fab=null,this.inheritedAttributes={},this.onFocus=()=>{this.ionFocus.emit()},this.onBlur=()=>{this.ionBlur.emit()},this.onClick=()=>{let{fab:e}=this;e&&e.toggle()},this.color=void 0,this.activated=!1,this.disabled=!1,this.download=void 0,this.href=void 0,this.rel=void 0,this.routerDirection="forward",this.routerAnimation=void 0,this.target=void 0,this.show=!1,this.translucent=!1,this.type="button",this.size=void 0,this.closeIcon="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path d='M289.94 256l95-95A24 24 0 00351 127l-95 95-95-95a24 24 0 00-34 34l95 95-95 95a24 24 0 1034 34l95-95 95 95a24 24 0 0034-34z'/></svg>"}connectedCallback(){this.fab=this.el.closest("ion-fab")}componentWillLoad(){this.inheritedAttributes=(0,f.i)(this.el)}render(){let{el:e,disabled:t,color:n,href:i,activated:r,show:o,translucent:a,size:s,inheritedAttributes:l}=this,c=eC("ion-fab-list",e),d=(0,p.b)(this),u=void 0===i?"button":"a",h="button"===u?{type:this.type}:{download:this.download,href:i,rel:this.rel,target:this.target};return(0,eN.h)(eN.AA,{key:"eb347f7d6749c40637540d84778eb8d1b667a947",onClick:this.onClick,"aria-disabled":t?"true":null,class:eP(n,{[d]:!0,"fab-button-in-list":c,"fab-button-translucent-in-list":c&&a,"fab-button-close-active":r,"fab-button-show":o,"fab-button-disabled":t,"fab-button-translucent":a,"ion-activatable":!0,"ion-focusable":!0,[`fab-button-${s}`]:void 0!==s})},(0,eN.h)(u,Object.assign({key:"83e853c8815f41543c848eb2e05ec2bb1716110a"},h,{class:"button-native",part:"native",disabled:t,onFocus:this.onFocus,onBlur:this.onBlur,onClick:e=>eI(i,e,this.routerDirection,this.routerAnimation)},l),(0,eN.h)("ion-icon",{key:"798deede94de658e4345acf7c2aafe2ab2567b0b","aria-hidden":"true",icon:this.closeIcon,part:"close-icon",class:"close-icon",lazy:!1}),(0,eN.h)("span",{key:"99252fde6de1aca73fc240a6da7e29acac9acb18",class:"button-inner"},(0,eN.h)("slot",{key:"dc73e9b41bf1f0e385e5784f975dfb81e37c8dfb"})),"md"===d&&(0,eN.h)("ion-ripple-effect",{key:"8413e162f44a0350f54dff06cff7aad101de3549"})))}get el(){return this}static get style(){return{ios:':host{--color-activated:var(--color);--color-focused:var(--color);--color-hover:var(--color);--background-hover:var(--ion-color-primary-contrast, #fff);--background-hover-opacity:.08;--transition:background-color, opacity 100ms linear;--ripple-color:currentColor;--border-radius:50%;--border-width:0;--border-style:none;--border-color:initial;--padding-top:0;--padding-end:0;--padding-bottom:0;--padding-start:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:block;width:56px;height:56px;font-size:14px;text-align:center;text-overflow:ellipsis;text-transform:none;white-space:nowrap;-webkit-font-kerning:none;font-kerning:none}.button-native{border-radius:var(--border-radius);-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:block;position:relative;width:100%;height:100%;-webkit-transform:var(--transform);transform:var(--transform);-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);background-clip:padding-box;color:var(--color);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);contain:strict;cursor:pointer;overflow:hidden;z-index:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-box-sizing:border-box;box-sizing:border-box}::slotted(ion-icon){line-height:1}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}.button-inner{left:0;right:0;top:0;display:-ms-flexbox;display:flex;position:absolute;-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;height:100%;-webkit-transition:all ease-in-out 300ms;transition:all ease-in-out 300ms;-webkit-transition-property:opacity, -webkit-transform;transition-property:opacity, -webkit-transform;transition-property:transform, opacity;transition-property:transform, opacity, -webkit-transform;z-index:1}:host(.fab-button-disabled){cursor:default;opacity:0.5;pointer-events:none}@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)}}:host(.ion-focused) .button-native{color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}:host(.ion-activated) .button-native{color:var(--color-activated)}:host(.ion-activated) .button-native::after{background:var(--background-activated);opacity:var(--background-activated-opacity)}::slotted(ion-icon){line-height:1}:host(.fab-button-small){-webkit-margin-start:8px;margin-inline-start:8px;-webkit-margin-end:8px;margin-inline-end:8px;margin-top:8px;margin-bottom:8px;width:40px;height:40px}.close-icon{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:0;margin-bottom:0;left:0;right:0;top:0;position:absolute;height:100%;-webkit-transform:scale(0.4) rotateZ(-45deg);transform:scale(0.4) rotateZ(-45deg);-webkit-transition:all ease-in-out 300ms;transition:all ease-in-out 300ms;-webkit-transition-property:opacity, -webkit-transform;transition-property:opacity, -webkit-transform;transition-property:transform, opacity;transition-property:transform, opacity, -webkit-transform;font-size:var(--close-icon-font-size);opacity:0;z-index:1}:host(.fab-button-close-active) .close-icon{-webkit-transform:scale(1) rotateZ(0deg);transform:scale(1) rotateZ(0deg);opacity:1}:host(.fab-button-close-active) .button-inner{-webkit-transform:scale(0.4) rotateZ(45deg);transform:scale(0.4) rotateZ(45deg);opacity:0}ion-ripple-effect{color:var(--ripple-color)}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){:host(.fab-button-translucent) .button-native{-webkit-backdrop-filter:var(--backdrop-filter);backdrop-filter:var(--backdrop-filter)}}:host(.ion-color) .button-native{background:var(--ion-color-base);color:var(--ion-color-contrast)}:host{--background:var(--ion-color-primary, #0054e9);--background-activated:var(--ion-color-primary-shade, #004acd);--background-focused:var(--ion-color-primary-shade, #004acd);--background-hover:var(--ion-color-primary-tint, #1a65eb);--background-activated-opacity:1;--background-focused-opacity:1;--background-hover-opacity:1;--color:var(--ion-color-primary-contrast, #fff);--box-shadow:0 4px 16px rgba(0, 0, 0, 0.12);--transition:0.2s transform cubic-bezier(0.25, 1.11, 0.78, 1.59);--close-icon-font-size:28px}:host(.ion-activated){--box-shadow:0 4px 16px rgba(0, 0, 0, 0.12);--transform:scale(1.1);--transition:0.2s transform ease-out}::slotted(ion-icon){font-size:28px}:host(.fab-button-in-list){--background:var(--ion-color-light, #f4f5f8);--background-activated:var(--ion-color-light-shade, #d7d8da);--background-focused:var(--background-activated);--background-hover:var(--ion-color-light-tint, #f5f6f9);--color:var(--ion-color-light-contrast, #000);--color-activated:var(--ion-color-light-contrast, #000);--color-focused:var(--color-activated);--transition:transform 200ms ease 10ms, opacity 200ms ease 10ms}:host(.fab-button-in-list) ::slotted(ion-icon){font-size:18px}:host(.ion-color.ion-focused) .button-native::after{background:var(--ion-color-shade)}:host(.ion-color.ion-focused) .button-native,:host(.ion-color.ion-activated) .button-native{color:var(--ion-color-contrast)}:host(.ion-color.ion-focused) .button-native::after,:host(.ion-color.ion-activated) .button-native::after{background:var(--ion-color-shade)}@media (any-hover: hover){:host(.ion-color:hover) .button-native{color:var(--ion-color-contrast)}:host(.ion-color:hover) .button-native::after{background:var(--ion-color-tint)}}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){:host(.fab-button-translucent){--background:rgba(var(--ion-color-primary-rgb, 0, 84, 233), 0.9);--background-hover:rgba(var(--ion-color-primary-rgb, 0, 84, 233), 0.8);--background-focused:rgba(var(--ion-color-primary-rgb, 0, 84, 233), 0.82);--backdrop-filter:saturate(180%) blur(20px)}:host(.fab-button-translucent-in-list){--background:rgba(var(--ion-color-light-rgb, 244, 245, 248), 0.9);--background-hover:rgba(var(--ion-color-light-rgb, 244, 245, 248), 0.8);--background-focused:rgba(var(--ion-color-light-rgb, 244, 245, 248), 0.82)}}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){@media (any-hover: hover){:host(.fab-button-translucent.ion-color:hover) .button-native{background:rgba(var(--ion-color-base-rgb), 0.8)}}:host(.ion-color.fab-button-translucent) .button-native{background:rgba(var(--ion-color-base-rgb), 0.9)}:host(.ion-color.ion-focused.fab-button-translucent) .button-native,:host(.ion-color.ion-activated.fab-button-translucent) .button-native{background:var(--ion-color-base)}}',md:':host{--color-activated:var(--color);--color-focused:var(--color);--color-hover:var(--color);--background-hover:var(--ion-color-primary-contrast, #fff);--background-hover-opacity:.08;--transition:background-color, opacity 100ms linear;--ripple-color:currentColor;--border-radius:50%;--border-width:0;--border-style:none;--border-color:initial;--padding-top:0;--padding-end:0;--padding-bottom:0;--padding-start:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:block;width:56px;height:56px;font-size:14px;text-align:center;text-overflow:ellipsis;text-transform:none;white-space:nowrap;-webkit-font-kerning:none;font-kerning:none}.button-native{border-radius:var(--border-radius);-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:block;position:relative;width:100%;height:100%;-webkit-transform:var(--transform);transform:var(--transform);-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);background-clip:padding-box;color:var(--color);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);contain:strict;cursor:pointer;overflow:hidden;z-index:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-box-sizing:border-box;box-sizing:border-box}::slotted(ion-icon){line-height:1}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}.button-inner{left:0;right:0;top:0;display:-ms-flexbox;display:flex;position:absolute;-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;height:100%;-webkit-transition:all ease-in-out 300ms;transition:all ease-in-out 300ms;-webkit-transition-property:opacity, -webkit-transform;transition-property:opacity, -webkit-transform;transition-property:transform, opacity;transition-property:transform, opacity, -webkit-transform;z-index:1}:host(.fab-button-disabled){cursor:default;opacity:0.5;pointer-events:none}@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)}}:host(.ion-focused) .button-native{color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}:host(.ion-activated) .button-native{color:var(--color-activated)}:host(.ion-activated) .button-native::after{background:var(--background-activated);opacity:var(--background-activated-opacity)}::slotted(ion-icon){line-height:1}:host(.fab-button-small){-webkit-margin-start:8px;margin-inline-start:8px;-webkit-margin-end:8px;margin-inline-end:8px;margin-top:8px;margin-bottom:8px;width:40px;height:40px}.close-icon{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:0;margin-bottom:0;left:0;right:0;top:0;position:absolute;height:100%;-webkit-transform:scale(0.4) rotateZ(-45deg);transform:scale(0.4) rotateZ(-45deg);-webkit-transition:all ease-in-out 300ms;transition:all ease-in-out 300ms;-webkit-transition-property:opacity, -webkit-transform;transition-property:opacity, -webkit-transform;transition-property:transform, opacity;transition-property:transform, opacity, -webkit-transform;font-size:var(--close-icon-font-size);opacity:0;z-index:1}:host(.fab-button-close-active) .close-icon{-webkit-transform:scale(1) rotateZ(0deg);transform:scale(1) rotateZ(0deg);opacity:1}:host(.fab-button-close-active) .button-inner{-webkit-transform:scale(0.4) rotateZ(45deg);transform:scale(0.4) rotateZ(45deg);opacity:0}ion-ripple-effect{color:var(--ripple-color)}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){:host(.fab-button-translucent) .button-native{-webkit-backdrop-filter:var(--backdrop-filter);backdrop-filter:var(--backdrop-filter)}}:host(.ion-color) .button-native{background:var(--ion-color-base);color:var(--ion-color-contrast)}:host{--background:var(--ion-color-primary, #0054e9);--background-activated:transparent;--background-focused:currentColor;--background-hover:currentColor;--background-activated-opacity:0;--background-focused-opacity:.24;--background-hover-opacity:.08;--color:var(--ion-color-primary-contrast, #fff);--box-shadow:0 3px 5px -1px rgba(0, 0, 0, 0.2), 0 6px 10px 0 rgba(0, 0, 0, 0.14), 0 1px 18px 0 rgba(0, 0, 0, 0.12);--transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1), background-color 280ms cubic-bezier(0.4, 0, 0.2, 1), color 280ms cubic-bezier(0.4, 0, 0.2, 1), opacity 15ms linear 30ms, transform 270ms cubic-bezier(0, 0, 0.2, 1) 0ms;--close-icon-font-size:24px}:host(.ion-activated){--box-shadow:0 7px 8px -4px rgba(0, 0, 0, 0.2), 0 12px 17px 2px rgba(0, 0, 0, 0.14), 0 5px 22px 4px rgba(0, 0, 0, 0.12)}::slotted(ion-icon){font-size:24px}:host(.fab-button-in-list){--color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.54);--color-activated:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.54);--color-focused:var(--color-activated);--background:var(--ion-color-light, #f4f5f8);--background-activated:transparent;--background-focused:var(--ion-color-light-shade, #d7d8da);--background-hover:var(--ion-color-light-tint, #f5f6f9)}:host(.fab-button-in-list) ::slotted(ion-icon){font-size:18px}:host(.ion-color.ion-focused) .button-native{color:var(--ion-color-contrast)}:host(.ion-color.ion-focused) .button-native::after{background:var(--ion-color-contrast)}:host(.ion-color.ion-activated) .button-native{color:var(--ion-color-contrast)}:host(.ion-color.ion-activated) .button-native::after{background:transparent}@media (any-hover: hover){:host(.ion-color:hover) .button-native{color:var(--ion-color-contrast)}:host(.ion-color:hover) .button-native::after{background:var(--ion-color-contrast)}}'}}},[33,"ion-fab-button",{color:[513],activated:[4],disabled:[4],download:[1],href:[1],rel:[1],routerDirection:[1,"router-direction"],routerAnimation:[16],target:[1],show:[4],translucent:[4],type:[1],size:[1],closeIcon:[1,"close-icon"]}]),aw=(0,eN.GH)(class extends eN.mv{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.onClick=e=>{let t=e.target.closest("ion-item-option");t&&e.preventDefault()},this.color=void 0,this.disabled=!1,this.download=void 0,this.expandable=!1,this.href=void 0,this.rel=void 0,this.target=void 0,this.type="button"}render(){let{disabled:e,expandable:t,href:n}=this,i=void 0===n?"button":"a",r=(0,p.b)(this),o="button"===i?{type:this.type}:{download:this.download,href:this.href,target:this.target};return(0,eN.h)(eN.AA,{key:"1900e015f593fefd710478a2088e052399c957eb",onClick:this.onClick,class:eP(this.color,{[r]:!0,"item-option-disabled":e,"item-option-expandable":t,"ion-activatable":!0})},(0,eN.h)(i,Object.assign({key:"5db2bb9bc72b7b00c324e4189cd1b5f862680ebb"},o,{class:"button-native",part:"native",disabled:e}),(0,eN.h)("span",{key:"6927e812ad001c5e7bd17f440d82c3830c58957b",class:"button-inner"},(0,eN.h)("slot",{key:"0fde4333def94c55d1318868c2bc71e780d5876a",name:"top"}),(0,eN.h)("div",{key:"7ecc9ae8ddf66d7ed5d9f30becc9faf820e1c62e",class:"horizontal-wrapper"},(0,eN.h)("slot",{key:"a15567fd4bd91080e9fbb6bb0c9b0e67d8a67051",name:"start"}),(0,eN.h)("slot",{key:"7f86cdd28063e23f9d78997623333c5037c4f364",name:"icon-only"}),(0,eN.h)("slot",{key:"4abb69ce3ad6c4917dd87b7b1eb0fa1c69917d73"}),(0,eN.h)("slot",{key:"8b35a29f48722040465f182679ac17209937578d",name:"end"})),(0,eN.h)("slot",{key:"fa15a00891b41d66a4ccb51575dec54b72d0059e",name:"bottom"})),"md"===r&&(0,eN.h)("ion-ripple-effect",{key:"0c071910c90fafca8026f59d78f4d9d5224d150a"})))}get el(){return this}static get style(){return{ios:":host{--background:var(--ion-color-primary, #0054e9);--color:var(--ion-color-primary-contrast, #fff);background:var(--background);color:var(--color);font-family:var(--ion-font-family, inherit)}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}.button-native{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;-webkit-padding-start:0.7em;padding-inline-start:0.7em;-webkit-padding-end:0.7em;padding-inline-end:0.7em;padding-top:0;padding-bottom:0;display:inline-block;position:relative;width:100%;height:100%;border:0;outline:none;background:transparent;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-box-sizing:border-box;box-sizing:border-box}.button-inner{display:-ms-flexbox;display:flex;-ms-flex-flow:column nowrap;flex-flow:column 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%}.horizontal-wrapper{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%}::slotted(*){-ms-flex-negative:0;flex-shrink:0}::slotted([slot=start]){-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:5px;margin-inline-end:5px;margin-top:0;margin-bottom:0}::slotted([slot=end]){-webkit-margin-start:5px;margin-inline-start:5px;-webkit-margin-end:0;margin-inline-end:0;margin-top:0;margin-bottom:0}::slotted([slot=icon-only]){padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;-webkit-margin-start:10px;margin-inline-start:10px;-webkit-margin-end:10px;margin-inline-end:10px;margin-top:0;margin-bottom:0;min-width:0.9em;font-size:1.8em}:host(.item-option-expandable){-ms-flex-negative:0;flex-shrink:0;-webkit-transition-duration:0;transition-duration:0;-webkit-transition-property:none;transition-property:none;-webkit-transition-timing-function:cubic-bezier(0.65, 0.05, 0.36, 1);transition-timing-function:cubic-bezier(0.65, 0.05, 0.36, 1)}:host(.item-option-disabled){pointer-events:none}:host(.item-option-disabled) .button-native{cursor:default;opacity:0.5;pointer-events:none}:host{font-size:clamp(16px, 1rem, 35.2px)}:host(.ion-activated){background:var(--ion-color-primary-shade, #004acd)}:host(.ion-color.ion-activated){background:var(--ion-color-shade)}",md:":host{--background:var(--ion-color-primary, #0054e9);--color:var(--ion-color-primary-contrast, #fff);background:var(--background);color:var(--color);font-family:var(--ion-font-family, inherit)}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}.button-native{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;-webkit-padding-start:0.7em;padding-inline-start:0.7em;-webkit-padding-end:0.7em;padding-inline-end:0.7em;padding-top:0;padding-bottom:0;display:inline-block;position:relative;width:100%;height:100%;border:0;outline:none;background:transparent;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-box-sizing:border-box;box-sizing:border-box}.button-inner{display:-ms-flexbox;display:flex;-ms-flex-flow:column nowrap;flex-flow:column 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%}.horizontal-wrapper{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%}::slotted(*){-ms-flex-negative:0;flex-shrink:0}::slotted([slot=start]){-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:5px;margin-inline-end:5px;margin-top:0;margin-bottom:0}::slotted([slot=end]){-webkit-margin-start:5px;margin-inline-start:5px;-webkit-margin-end:0;margin-inline-end:0;margin-top:0;margin-bottom:0}::slotted([slot=icon-only]){padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;-webkit-margin-start:10px;margin-inline-start:10px;-webkit-margin-end:10px;margin-inline-end:10px;margin-top:0;margin-bottom:0;min-width:0.9em;font-size:1.8em}:host(.item-option-expandable){-ms-flex-negative:0;flex-shrink:0;-webkit-transition-duration:0;transition-duration:0;-webkit-transition-property:none;transition-property:none;-webkit-transition-timing-function:cubic-bezier(0.65, 0.05, 0.36, 1);transition-timing-function:cubic-bezier(0.65, 0.05, 0.36, 1)}:host(.item-option-disabled){pointer-events:none}:host(.item-option-disabled) .button-native{cursor:default;opacity:0.5;pointer-events:none}:host{font-size:0.875rem;font-weight:500;text-transform:uppercase}"}}},[33,"ion-item-option",{color:[513],disabled:[4],download:[1],expandable:[4],href:[1],rel:[1],target:[1],type:[1]}]),ak=(0,eN.GH)(class extends eN.mv{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.onClick=e=>{eI(this.href,e,this.routerDirection,this.routerAnimation)},this.color=void 0,this.href=void 0,this.rel=void 0,this.routerDirection="forward",this.routerAnimation=void 0,this.target=void 0}render(){let e=(0,p.b)(this),t={href:this.href,rel:this.rel,target:this.target};return(0,eN.h)(eN.AA,{key:"f876442cab5b14b7e83c6d6ad2c2d878a9c57439",onClick:this.onClick,class:eP(this.color,{[e]:!0,"ion-activatable":!0})},(0,eN.h)("a",Object.assign({key:"c44b78ec1fd10a40c23bfe548860ac2b346646a8"},t),(0,eN.h)("slot",{key:"d32180a567613f79f89885135bd0d776ffc1eb8e"})))}static get style(){return":host{--background:transparent;--color:var(--ion-color-primary, #0054e9);background:var(--background);color:var(--color)}:host(.ion-color){color:var(--ion-color-base)}a{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}"}},[1,"ion-router-link",{color:[513],href:[1],rel:[1],routerDirection:[1,"router-direction"],routerAnimation:[16],target:[1]}]),a_=e=>{let t=(0,m.c)(),n=(0,m.c)(),i=(0,m.c)();return n.addElement(e.querySelector("ion-backdrop")).fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),i.addElement(e.querySelector(".loading-wrapper")).keyframes([{offset:0,opacity:.01,transform:"scale(1.1)"},{offset:1,opacity:1,transform:"scale(1)"}]),t.addElement(e).easing("ease-in-out").duration(200).addAnimation([n,i])},aE=e=>{let t=(0,m.c)(),n=(0,m.c)(),i=(0,m.c)();return n.addElement(e.querySelector("ion-backdrop")).fromTo("opacity","var(--backdrop-opacity)",0),i.addElement(e.querySelector(".loading-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])},aS=e=>{let t=(0,m.c)(),n=(0,m.c)(),i=(0,m.c)();return n.addElement(e.querySelector("ion-backdrop")).fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),i.addElement(e.querySelector(".loading-wrapper")).keyframes([{offset:0,opacity:.01,transform:"scale(1.1)"},{offset:1,opacity:1,transform:"scale(1)"}]),t.addElement(e).easing("ease-in-out").duration(200).addAnimation([n,i])},aC=e=>{let t=(0,m.c)(),n=(0,m.c)(),i=(0,m.c)();return n.addElement(e.querySelector("ion-backdrop")).fromTo("opacity","var(--backdrop-opacity)",0),i.addElement(e.querySelector(".loading-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])},aP=(0,eN.GH)(class extends eN.mv{constructor(){super(),this.__registerHost(),this.didPresent=(0,eN.yM)(this,"ionLoadingDidPresent",7),this.willPresent=(0,eN.yM)(this,"ionLoadingWillPresent",7),this.willDismiss=(0,eN.yM)(this,"ionLoadingWillDismiss",7),this.didDismiss=(0,eN.yM)(this,"ionLoadingDidDismiss",7),this.didPresentShorthand=(0,eN.yM)(this,"didPresent",7),this.willPresentShorthand=(0,eN.yM)(this,"willPresent",7),this.willDismissShorthand=(0,eN.yM)(this,"willDismiss",7),this.didDismissShorthand=(0,eN.yM)(this,"didDismiss",7),this.delegateController=el(this),this.lockController=ia(),this.triggerController=ec(),this.customHTMLEnabled=p.c.get("innerHTMLTemplatesEnabled",!1),this.presented=!1,this.onBackdropTap=()=>{this.dismiss(void 0,ea)},this.overlayIndex=void 0,this.delegate=void 0,this.hasController=!1,this.keyboardClose=!0,this.enterAnimation=void 0,this.leaveAnimation=void 0,this.message=void 0,this.cssClass=void 0,this.duration=0,this.backdropDismiss=!1,this.showBackdrop=!0,this.spinner=void 0,this.translucent=!1,this.animated=!0,this.htmlAttributes=void 0,this.isOpen=!1,this.trigger=void 0}onIsOpenChange(e,t){!0===e&&!1===t?this.present():!1===e&&!0===t&&this.dismiss()}triggerChanged(){let{trigger:e,el:t,triggerController:n}=this;e&&n.addClickListener(t,e)}connectedCallback(){N(this.el),this.triggerChanged()}componentWillLoad(){var e;if(void 0===this.spinner){let e=(0,p.b)(this);this.spinner=p.c.get("loadingSpinner",p.c.get("spinner","ios"===e?"lines":"crescent"))}(null===(e=this.htmlAttributes)||void 0===e?void 0:e.id)||F(this.el)}componentDidLoad(){!0===this.isOpen&&(0,f.r)(()=>this.present()),this.triggerChanged()}disconnectedCallback(){this.triggerController.removeClickListener()}async present(){let e=await this.lockController.lock();await this.delegateController.attachViewToDom(),await K(this,"loadingEnter",a_,aS),this.duration>0&&(this.durationTimeout=setTimeout(()=>this.dismiss(),this.duration+10)),e()}async dismiss(e,t){let n=await this.lockController.lock();this.durationTimeout&&clearTimeout(this.durationTimeout);let i=await Z(this,e,t,"loadingLeave",aE,aC);return i&&this.delegateController.removeViewFromDom(),n(),i}onDidDismiss(){return et(this.el,"ionLoadingDidDismiss")}onWillDismiss(){return et(this.el,"ionLoadingWillDismiss")}renderLoadingMessage(e){let{customHTMLEnabled:t,message:n}=this;return t?(0,eN.h)("div",{class:"loading-content",id:e,innerHTML:ef(n)}):(0,eN.h)("div",{class:"loading-content",id:e},n)}render(){let{message:e,spinner:t,htmlAttributes:n,overlayIndex:i}=this,r=(0,p.b)(this),o=`loading-${i}-msg`,a=void 0!==e?o:null;return(0,eN.h)(eN.AA,Object.assign({key:"fb3d2cd7cd0539ed6540d8be50e243c7916b3ca2",role:"dialog","aria-modal":"true","aria-labelledby":a,tabindex:"-1"},n,{style:{zIndex:`${4e4+this.overlayIndex}`},onIonBackdropTap:this.onBackdropTap,class:Object.assign(Object.assign({},eO(this.cssClass)),{[r]:!0,"overlay-hidden":!0,"loading-translucent":this.translucent})}),(0,eN.h)("ion-backdrop",{key:"c8bd30782f3040b1b80e88aa924861e439d40754",visible:this.showBackdrop,tappable:this.backdropDismiss}),(0,eN.h)("div",{key:"4ebfbb67c92e8eb56c27dd7c199b35bf6be1cf63",tabindex:"0"}),(0,eN.h)("div",{key:"9492723cd87f1ef75534e449d4bc2b2deb0cb3cc",class:"loading-wrapper ion-overlay-wrapper"},t&&(0,eN.h)("div",{key:"d9eb42454e48c82704d974a68b80ceb4de990417",class:"loading-spinner"},(0,eN.h)("ion-spinner",{key:"cdb046bad89872f4208ae466979315652766bf3a",name:t,"aria-hidden":"true"})),void 0!==e&&this.renderLoadingMessage(o)),(0,eN.h)("div",{key:"412d1bb537dafa6e6863d07ddc15f5969fe0617d",tabindex:"0"}))}get el(){return this}static get watchers(){return{isOpen:["onIsOpenChange"],trigger:["triggerChanged"]}}static get style(){return{ios:".sc-ion-loading-ios-h{--min-width:auto;--width:auto;--min-height:auto;--height:auto;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;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;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-loading-ios-h{display:none}.loading-wrapper.sc-ion-loading-ios{display:-ms-flexbox;display:flex;-ms-flex-align:inherit;align-items:inherit;-ms-flex-pack:inherit;justify-content:inherit;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);opacity:0;z-index:10}ion-spinner.sc-ion-loading-ios{color:var(--spinner-color)}.sc-ion-loading-ios-h{--background:var(--ion-overlay-background-color, var(--ion-color-step-100, var(--ion-background-color-step-100, #f9f9f9)));--max-width:270px;--max-height:90%;--spinner-color:var(--ion-color-step-600, var(--ion-text-color-step-400, #666666));--backdrop-opacity:var(--ion-backdrop-opacity, 0.3);color:var(--ion-text-color, #000);font-size:0.875rem}.loading-wrapper.sc-ion-loading-ios{border-radius:8px;-webkit-padding-start:34px;padding-inline-start:34px;-webkit-padding-end:34px;padding-inline-end:34px;padding-top:24px;padding-bottom:24px}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){.loading-translucent.sc-ion-loading-ios-h .loading-wrapper.sc-ion-loading-ios{background-color:rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8);-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px)}}.loading-content.sc-ion-loading-ios{font-weight:bold}.loading-spinner.sc-ion-loading-ios+.loading-content.sc-ion-loading-ios{-webkit-margin-start:16px;margin-inline-start:16px}",md:".sc-ion-loading-md-h{--min-width:auto;--width:auto;--min-height:auto;--height:auto;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;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;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-loading-md-h{display:none}.loading-wrapper.sc-ion-loading-md{display:-ms-flexbox;display:flex;-ms-flex-align:inherit;align-items:inherit;-ms-flex-pack:inherit;justify-content:inherit;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);opacity:0;z-index:10}ion-spinner.sc-ion-loading-md{color:var(--spinner-color)}.sc-ion-loading-md-h{--background:var(--ion-color-step-50, var(--ion-background-color-step-50, #f2f2f2));--max-width:280px;--max-height:90%;--spinner-color:var(--ion-color-primary, #0054e9);--backdrop-opacity:var(--ion-backdrop-opacity, 0.32);color:var(--ion-color-step-850, var(--ion-text-color-step-150, #262626));font-size:0.875rem}.loading-wrapper.sc-ion-loading-md{border-radius:2px;-webkit-padding-start:24px;padding-inline-start:24px;-webkit-padding-end:24px;padding-inline-end:24px;padding-top:24px;padding-bottom:24px;-webkit-box-shadow:0 16px 20px rgba(0, 0, 0, 0.4);box-shadow:0 16px 20px rgba(0, 0, 0, 0.4)}.loading-spinner.sc-ion-loading-md+.loading-content.sc-ion-loading-md{-webkit-margin-start:16px;margin-inline-start:16px}"}}},[34,"ion-loading",{overlayIndex:[2,"overlay-index"],delegate:[16],hasController:[4,"has-controller"],keyboardClose:[4,"keyboard-close"],enterAnimation:[16],leaveAnimation:[16],message:[1],cssClass:[1,"css-class"],duration:[2],backdropDismiss:[4,"backdrop-dismiss"],showBackdrop:[4,"show-backdrop"],spinner:[1025],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"]}]),aT=function(){"undefined"!=typeof customElements&&["ion-loading","ion-backdrop","ion-spinner"].forEach(e=>{switch(e){case"ion-loading":customElements.get(e)||customElements.define(e,aP);break;case"ion-backdrop":customElements.get(e)||tc();break;case"ion-spinner":customElements.get(e)||rm()}})},aO=(e,t)=>Math.floor(e/2-t/2),aA=(e,t)=>{let n=(0,m.c)(),i=(0,m.c)(),{position:r,top:o,bottom:a}=t,s=(0,f.g)(e),l=s.querySelector(".toast-wrapper");switch(i.addElement(l),r){case"top":i.fromTo("transform","translateY(-100%)",`translateY(${o})`);break;case"middle":let c=aO(e.clientHeight,l.clientHeight);l.style.top=`${c}px`,i.fromTo("opacity",.01,1);break;default:i.fromTo("transform","translateY(100%)",`translateY(${a})`)}return n.easing("cubic-bezier(.155,1.105,.295,1.12)").duration(400).addAnimation(i)},aI=(e,t)=>{let n=(0,m.c)(),i=(0,m.c)(),{position:r,top:o,bottom:a}=t,s=(0,f.g)(e),l=s.querySelector(".toast-wrapper");switch(i.addElement(l),r){case"top":i.fromTo("transform",`translateY(${o})`,"translateY(-100%)");break;case"middle":i.fromTo("opacity",.99,0);break;default:i.fromTo("transform",`translateY(${a})`,"translateY(100%)")}return n.easing("cubic-bezier(.36,.66,.04,1)").duration(300).addAnimation(i)},aR=(e,t)=>{let n=(0,m.c)(),i=(0,m.c)(),{position:r,top:o,bottom:a}=t,s=(0,f.g)(e),l=s.querySelector(".toast-wrapper");switch(i.addElement(l),r){case"top":l.style.setProperty("transform",`translateY(${o})`),i.fromTo("opacity",.01,1);break;case"middle":let c=aO(e.clientHeight,l.clientHeight);l.style.top=`${c}px`,i.fromTo("opacity",.01,1);break;default:l.style.setProperty("transform",`translateY(${a})`),i.fromTo("opacity",.01,1)}return n.easing("cubic-bezier(.36,.66,.04,1)").duration(400).addAnimation(i)},a$=e=>{let t=(0,m.c)(),n=(0,m.c)(),i=(0,f.g)(e),r=i.querySelector(".toast-wrapper");return n.addElement(r).fromTo("opacity",.99,0),t.easing("cubic-bezier(.36,.66,.04,1)").duration(300).addAnimation(n)},aL=(e,t,n)=>{let i=eN.Z5.isTesting?document.createElement("div"):(0,f.g)(e).querySelector(".toast-wrapper"),r=e.clientHeight,o=i.getBoundingClientRect(),a=0,s="middle"===e.position?.5:0,l="top"===e.position?-1:1,c=aO(r,o.height),d=[{offset:0,transform:`translateY(-${c+o.height}px)`},{offset:.5,transform:"translateY(0px)"},{offset:1,transform:`translateY(${c+o.height}px)`}],u=(0,m.c)("toast-swipe-to-dismiss-animation").addElement(i).duration(100);switch(e.position){case"middle":a=r+o.height,u.keyframes(d),u.progressStart(!0,.5);break;case"top":a=o.bottom,u.keyframes([{offset:0,transform:`translateY(${t.top})`},{offset:1,transform:"translateY(-100%)"}]),u.progressStart(!0,0);break;default:a=r-o.top,u.keyframes([{offset:0,transform:`translateY(${t.bottom})`},{offset:1,transform:"translateY(100%)"}]),u.progressStart(!0,0)}let h=e=>e*l/a,p=(0,eR.createGesture)({el:i,gestureName:"toast-swipe-to-dismiss",gesturePriority:39,direction:"y",onMove:e=>{let t=s+h(e.deltaY);u.progressStep(t)},onEnd:t=>{let r=t.velocityY,o=(t.deltaY+1e3*r)/a*l;p.enable(!1);let s=!0,f=1,m=0,g=0;if("middle"===e.position){s=o>=.25||o<=-.25,f=1,m=0;let e=i.getBoundingClientRect(),n=e.top-c,r=`${n}px`,a=t.deltaY<=0?-1:1,l=(c+e.height)*a,d=s?`${l}px`:"0px",h=[{offset:0,transform:`translateY(${r})`},{offset:1,transform:`translateY(${d})`}];u.keyframes(h),g=l-n}else{f=(s=o>=.5)?1:0,m=h(t.deltaY);let e=s?1-m:m;g=e*a}let b=Math.min(Math.abs(g)/Math.abs(r),200);u.onFinish(()=>{s?(n(),u.destroy()):("middle"===e.position?u.keyframes(d).progressStart(!0,.5):u.progressStart(!0,0),p.enable(!0))},{oneTimeCallback:!0}).progressEnd(f,m,b)}});return p},aM=(0,eN.GH)(class extends eN.mv{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.didPresent=(0,eN.yM)(this,"ionToastDidPresent",7),this.willPresent=(0,eN.yM)(this,"ionToastWillPresent",7),this.willDismiss=(0,eN.yM)(this,"ionToastWillDismiss",7),this.didDismiss=(0,eN.yM)(this,"ionToastDidDismiss",7),this.didPresentShorthand=(0,eN.yM)(this,"didPresent",7),this.willPresentShorthand=(0,eN.yM)(this,"willPresent",7),this.willDismissShorthand=(0,eN.yM)(this,"willDismiss",7),this.didDismissShorthand=(0,eN.yM)(this,"didDismiss",7),this.delegateController=el(this),this.lockController=ia(),this.triggerController=ec(),this.customHTMLEnabled=p.c.get("innerHTMLTemplatesEnabled",!1),this.presented=!1,this.dispatchCancelHandler=e=>{let t=e.detail.role;if(ei(t)){let e=this.getButtons().find(e=>"cancel"===e.role);this.callButtonHandler(e)}},this.createSwipeGesture=e=>{let t=this.gesture=aL(this.el,e,()=>{this.dismiss(void 0,es)});t.enable(!0)},this.destroySwipeGesture=()=>{let{gesture:e}=this;void 0!==e&&(e.destroy(),this.gesture=void 0)},this.prefersSwipeGesture=()=>{let{swipeGesture:e}=this;return"vertical"===e},this.revealContentToScreenReader=!1,this.overlayIndex=void 0,this.delegate=void 0,this.hasController=!1,this.color=void 0,this.enterAnimation=void 0,this.leaveAnimation=void 0,this.cssClass=void 0,this.duration=p.c.getNumber("toastDuration",0),this.header=void 0,this.layout="baseline",this.message=void 0,this.keyboardClose=!1,this.position="bottom",this.positionAnchor=void 0,this.buttons=void 0,this.translucent=!1,this.animated=!0,this.icon=void 0,this.htmlAttributes=void 0,this.swipeGesture=void 0,this.isOpen=!1,this.trigger=void 0}swipeGestureChanged(){this.destroySwipeGesture(),this.presented&&this.prefersSwipeGesture()&&this.createSwipeGesture(this.lastPresentedPosition)}onIsOpenChange(e,t){!0===e&&!1===t?this.present():!1===e&&!0===t&&this.dismiss()}triggerChanged(){let{trigger:e,el:t,triggerController:n}=this;e&&n.addClickListener(t,e)}connectedCallback(){N(this.el),this.triggerChanged()}disconnectedCallback(){this.triggerController.removeClickListener()}componentWillLoad(){var e;(null===(e=this.htmlAttributes)||void 0===e?void 0:e.id)||F(this.el)}componentDidLoad(){!0===this.isOpen&&(0,f.r)(()=>this.present()),this.triggerChanged()}async present(){let e=await this.lockController.lock();await this.delegateController.attachViewToDom();let{el:t,position:n}=this,i=this.getAnchorElement(),r=/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */function(e,t,n,i){let r;if(r="md"===n?"top"===e?8:-8:"top"===e?10:-10,!t||!g.w)return{top:`calc(${r}px + var(--ion-safe-area-top, 0px))`,bottom:`calc(${r}px - var(--ion-safe-area-bottom, 0px))`};{null===t.offsetParent&&(0,k.p)("The positionAnchor element for ion-toast was found in the DOM, but appears to be hidden. This may lead to unexpected positioning of the toast.",i);let n=t.getBoundingClientRect();return"top"===e?r+=n.bottom:"bottom"===e&&(r-=g.w.innerHeight-n.top),{top:`${r}px`,bottom:`${r}px`}}}(n,i,(0,p.b)(this),t);this.lastPresentedPosition=r,await K(this,"toastEnter",aA,aR,{position:n,top:r.top,bottom:r.bottom}),this.revealContentToScreenReader=!0,this.duration>0&&(this.durationTimeout=setTimeout(()=>this.dismiss(void 0,"timeout"),this.duration)),this.prefersSwipeGesture()&&this.createSwipeGesture(r),e()}async dismiss(e,t){var n,i;let r=await this.lockController.lock(),{durationTimeout:o,position:a,lastPresentedPosition:s}=this;o&&clearTimeout(o);let l=await Z(this,e,t,"toastLeave",aI,a$,{position:a,top:null!==(n=null==s?void 0:s.top)&&void 0!==n?n:"",bottom:null!==(i=null==s?void 0:s.bottom)&&void 0!==i?i:""});return l&&(this.delegateController.removeViewFromDom(),this.revealContentToScreenReader=!1),this.lastPresentedPosition=void 0,this.destroySwipeGesture(),r(),l}onDidDismiss(){return et(this.el,"ionToastDidDismiss")}onWillDismiss(){return et(this.el,"ionToastWillDismiss")}getButtons(){let e=this.buttons?this.buttons.map(e=>"string"==typeof e?{text:e}:e):[];return e}getAnchorElement(){let{position:e,positionAnchor:t,el:n}=this;if(void 0!==t){if("middle"===e&&void 0!==t){(0,k.p)('The positionAnchor property is ignored when using position="middle".',this.el);return}if("string"==typeof t){let e=document.getElementById(t);if(null===e){(0,k.p)(`An anchor element with an ID of "${t}" was not found in the DOM.`,n);return}return e}if(t instanceof eN.mv)return t;(0,k.p)("Invalid positionAnchor value:",t,n)}}async buttonClick(e){let t=e.role;if(ei(t))return this.dismiss(void 0,t);let n=await this.callButtonHandler(e);return n?this.dismiss(void 0,t):Promise.resolve()}async callButtonHandler(e){if(null==e?void 0:e.handler)try{let t=await eo(e.handler);if(!1===t)return!1}catch(e){console.error(e)}return!0}renderButtons(e,t){if(0===e.length)return;let n=(0,p.b)(this),i={"toast-button-group":!0,[`toast-button-group-${t}`]:!0};return(0,eN.h)("div",{class:i},e.map(e=>(0,eN.h)("button",Object.assign({},e.htmlAttributes,{type:"button",class:aj(e),tabIndex:0,onClick:()=>this.buttonClick(e),part:aD(e)}),(0,eN.h)("div",{class:"toast-button-inner"},e.icon&&(0,eN.h)("ion-icon",{"aria-hidden":"true",icon:e.icon,slot:void 0===e.text?"icon-only":void 0,class:"toast-button-icon"}),e.text),"md"===n&&(0,eN.h)("ion-ripple-effect",{type:void 0!==e.icon&&void 0===e.text?"unbounded":"bounded"}))))}renderToastMessage(e,t=null){let{customHTMLEnabled:n,message:i}=this;return n?(0,eN.h)("div",{key:e,"aria-hidden":t,class:"toast-message",part:"message",innerHTML:ef(i)}):(0,eN.h)("div",{key:e,"aria-hidden":t,class:"toast-message",part:"message"},i)}renderHeader(e,t=null){return(0,eN.h)("div",{key:e,class:"toast-header","aria-hidden":t,part:"header"},this.header)}render(){let{layout:e,el:t,revealContentToScreenReader:n,header:i,message:r}=this,o=this.getButtons(),a=o.filter(e=>"start"===e.side),s=o.filter(e=>"start"!==e.side),l=(0,p.b)(this),c={"toast-wrapper":!0,[`toast-${this.position}`]:!0,[`toast-layout-${e}`]:!0};return"stacked"===e&&a.length>0&&s.length>0&&(0,k.p)("This toast is using start and end buttons with the stacked toast layout. We recommend following the best practice of using either start or end buttons with the stacked toast layout.",t),(0,eN.h)(eN.AA,Object.assign({key:"68c336f80af04ba484ca9899bae8f40c0d9b7691",tabindex:"-1"},this.htmlAttributes,{style:{zIndex:`${6e4+this.overlayIndex}`},class:eP(this.color,Object.assign(Object.assign({[l]:!0},eO(this.cssClass)),{"overlay-hidden":!0,"toast-translucent":this.translucent})),onIonToastWillDismiss:this.dispatchCancelHandler}),(0,eN.h)("div",{key:"3483b188f14b700964a123997a60a43a2023a1b6",class:c},(0,eN.h)("div",{key:"1b88544a9b87253b364cbec6285625388979b560",class:"toast-container",part:"container"},this.renderButtons(a,"start"),void 0!==this.icon&&(0,eN.h)("ion-icon",{key:"bd1c42e3b14af66b880dfe283e3ae910075c0f70",class:"toast-icon",part:"icon",icon:this.icon,lazy:!1,"aria-hidden":"true"}),(0,eN.h)("div",{key:"a5ef6cdabc1f7c70d11a5f2a0abf8737fe7550e8",class:"toast-content",role:"status","aria-atomic":"true","aria-live":"polite"},!n&&void 0!==i&&this.renderHeader("oldHeader","true"),!n&&void 0!==r&&this.renderToastMessage("oldMessage","true"),n&&void 0!==i&&this.renderHeader("header"),n&&void 0!==r&&this.renderToastMessage("header")),this.renderButtons(s,"end"))))}get el(){return this}static get watchers(){return{swipeGesture:["swipeGestureChanged"],isOpen:["onIsOpenChange"],trigger:["triggerChanged"]}}static get style(){return{ios:":host{--border-width:0;--border-style:none;--border-color:initial;--box-shadow:none;--min-width:auto;--width:auto;--min-height:auto;--height:auto;--max-height:auto;--white-space:normal;top:0;display:block;position:absolute;width:100%;height:100%;outline:none;color:var(--color);font-family:var(--ion-font-family, inherit);contain:strict;z-index:1001;pointer-events:none}:host{inset-inline-start:0}:host(.overlay-hidden){display:none}:host(.ion-color){--button-color:inherit;color:var(--ion-color-contrast)}:host(.ion-color) .toast-button-cancel{color:inherit}:host(.ion-color) .toast-wrapper{background:var(--ion-color-base)}.toast-wrapper{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)}.toast-wrapper{inset-inline-start:var(--start);inset-inline-end:var(--end)}.toast-wrapper.toast-top{-webkit-transform:translate3d(0,  -100%,  0);transform:translate3d(0,  -100%,  0);top:0}.toast-wrapper.toast-bottom{-webkit-transform:translate3d(0,  100%,  0);transform:translate3d(0,  100%,  0);bottom:0}.toast-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;pointer-events:auto;height:inherit;min-height:inherit;max-height:inherit;contain:content}.toast-layout-stacked .toast-container{-ms-flex-wrap:wrap;flex-wrap:wrap}.toast-layout-baseline .toast-content{display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center}.toast-icon{-webkit-margin-start:16px;margin-inline-start:16px}.toast-content{min-width:0}.toast-message{-ms-flex:1;flex:1;white-space:var(--white-space)}.toast-button-group{display:-ms-flexbox;display:flex}.toast-layout-stacked .toast-button-group{-ms-flex-pack:end;justify-content:end;width:100%}.toast-button{border:0;outline:none;color:var(--button-color);z-index:0}.toast-icon,.toast-button-icon{font-size:1.4em}.toast-button-inner{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}@media (any-hover: hover){.toast-button:hover{cursor:pointer}}:host{--background:var(--ion-color-step-50, var(--ion-background-color-step-50, #f2f2f2));--border-radius:14px;--button-color:var(--ion-color-primary, #0054e9);--color:var(--ion-color-step-850, var(--ion-text-color-step-150, #262626));--max-width:700px;--max-height:478px;--start:10px;--end:10px;font-size:clamp(14px, 0.875rem, 43.4px)}.toast-wrapper{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:auto;margin-bottom:auto;display:block;position:absolute;z-index:10}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){:host(.toast-translucent) .toast-wrapper{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)}:host(.ion-color.toast-translucent) .toast-wrapper{background:rgba(var(--ion-color-base-rgb), 0.8)}}.toast-wrapper.toast-middle{opacity:0.01}.toast-content{-webkit-padding-start:15px;padding-inline-start:15px;-webkit-padding-end:15px;padding-inline-end:15px;padding-top:15px;padding-bottom:15px}.toast-header{margin-bottom:2px;font-weight:500}.toast-button{-webkit-padding-start:15px;padding-inline-start:15px;-webkit-padding-end:15px;padding-inline-end:15px;padding-top:10px;padding-bottom:10px;min-height:44px;-webkit-transition:background-color, opacity 100ms linear;transition:background-color, opacity 100ms linear;border:0;background-color:transparent;font-family:var(--ion-font-family);font-size:clamp(17px, 1.0625rem, 21.998px);font-weight:500;overflow:hidden}.toast-button.ion-activated{opacity:0.4}@media (any-hover: hover){.toast-button:hover{opacity:0.6}}",md:":host{--border-width:0;--border-style:none;--border-color:initial;--box-shadow:none;--min-width:auto;--width:auto;--min-height:auto;--height:auto;--max-height:auto;--white-space:normal;top:0;display:block;position:absolute;width:100%;height:100%;outline:none;color:var(--color);font-family:var(--ion-font-family, inherit);contain:strict;z-index:1001;pointer-events:none}:host{inset-inline-start:0}:host(.overlay-hidden){display:none}:host(.ion-color){--button-color:inherit;color:var(--ion-color-contrast)}:host(.ion-color) .toast-button-cancel{color:inherit}:host(.ion-color) .toast-wrapper{background:var(--ion-color-base)}.toast-wrapper{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)}.toast-wrapper{inset-inline-start:var(--start);inset-inline-end:var(--end)}.toast-wrapper.toast-top{-webkit-transform:translate3d(0,  -100%,  0);transform:translate3d(0,  -100%,  0);top:0}.toast-wrapper.toast-bottom{-webkit-transform:translate3d(0,  100%,  0);transform:translate3d(0,  100%,  0);bottom:0}.toast-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;pointer-events:auto;height:inherit;min-height:inherit;max-height:inherit;contain:content}.toast-layout-stacked .toast-container{-ms-flex-wrap:wrap;flex-wrap:wrap}.toast-layout-baseline .toast-content{display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center}.toast-icon{-webkit-margin-start:16px;margin-inline-start:16px}.toast-content{min-width:0}.toast-message{-ms-flex:1;flex:1;white-space:var(--white-space)}.toast-button-group{display:-ms-flexbox;display:flex}.toast-layout-stacked .toast-button-group{-ms-flex-pack:end;justify-content:end;width:100%}.toast-button{border:0;outline:none;color:var(--button-color);z-index:0}.toast-icon,.toast-button-icon{font-size:1.4em}.toast-button-inner{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}@media (any-hover: hover){.toast-button:hover{cursor:pointer}}:host{--background:var(--ion-color-step-800, var(--ion-background-color-step-800, #333333));--border-radius:4px;--box-shadow:0 3px 5px -1px rgba(0, 0, 0, 0.2), 0 6px 10px 0 rgba(0, 0, 0, 0.14), 0 1px 18px 0 rgba(0, 0, 0, 0.12);--button-color:var(--ion-color-primary, #0054e9);--color:var(--ion-color-step-50, var(--ion-text-color-step-950, #f2f2f2));--max-width:700px;--start:8px;--end:8px;font-size:0.875rem}.toast-wrapper{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:auto;margin-bottom:auto;display:block;position:absolute;opacity:0.01;z-index:10}.toast-content{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:14px;padding-bottom:14px}.toast-header{margin-bottom:2px;font-weight:500;line-height:1.25rem}.toast-message{line-height:1.25rem}.toast-layout-baseline .toast-button-group-start{-webkit-margin-start:8px;margin-inline-start:8px}.toast-layout-stacked .toast-button-group-start{-webkit-margin-end:8px;margin-inline-end:8px;margin-top:8px}.toast-layout-baseline .toast-button-group-end{-webkit-margin-end:8px;margin-inline-end:8px}.toast-layout-stacked .toast-button-group-end{-webkit-margin-end:8px;margin-inline-end:8px;margin-bottom:8px}.toast-button{-webkit-padding-start:15px;padding-inline-start:15px;-webkit-padding-end:15px;padding-inline-end:15px;padding-top:10px;padding-bottom:10px;position:relative;background-color:transparent;font-family:var(--ion-font-family);font-size:0.875rem;font-weight:500;letter-spacing:0.84px;text-transform:uppercase;overflow:hidden}.toast-button-cancel{color:var(--ion-color-step-100, var(--ion-text-color-step-900, #e6e6e6))}.toast-button-icon-only{border-radius:50%;-webkit-padding-start:9px;padding-inline-start:9px;-webkit-padding-end:9px;padding-inline-end:9px;padding-top:9px;padding-bottom:9px;width:36px;height:36px}@media (any-hover: hover){.toast-button:hover{background-color:rgba(var(--ion-color-primary-rgb, 0, 84, 233), 0.08)}.toast-button-cancel:hover{background-color:rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.08)}}"}}},[33,"ion-toast",{overlayIndex:[2,"overlay-index"],delegate:[16],hasController:[4,"has-controller"],color:[513],enterAnimation:[16],leaveAnimation:[16],cssClass:[1,"css-class"],duration:[2],header:[1],layout:[1],message:[1],keyboardClose:[4,"keyboard-close"],position:[1],positionAnchor:[1,"position-anchor"],buttons:[16],translucent:[4],animated:[4],icon:[1],htmlAttributes:[16],swipeGesture:[1,"swipe-gesture"],isOpen:[4,"is-open"],trigger:[1],revealContentToScreenReader:[32],present:[64],dismiss:[64],onDidDismiss:[64],onWillDismiss:[64]},void 0,{swipeGesture:["swipeGestureChanged"],isOpen:["onIsOpenChange"],trigger:["triggerChanged"]}]),aj=e=>({"toast-button":!0,"toast-button-icon-only":void 0!==e.icon&&void 0===e.text,[`toast-button-${e.role}`]:void 0!==e.role,"ion-focusable":!0,"ion-activatable":!0}),aD=e=>ei(e.role)?"button cancel":"button",aN=function(){"undefined"!=typeof customElements&&["ion-toast","ion-icon","ion-ripple-effect"].forEach(e=>{switch(e){case"ion-toast":customElements.get(e)||customElements.define(e,aM);break;case"ion-icon":customElements.get(e)||ti();break;case"ion-ripple-effect":customElements.get(e)||tS()}})},aF=(0,eN.GH)(class extends eN.mv{constructor(){super(),this.__registerHost(),this.ionPickerColChange=(0,eN.yM)(this,"ionPickerColChange",7),this.optHeight=0,this.rotateFactor=0,this.scaleFactor=1,this.velocity=0,this.y=0,this.noAnimate=!0,this.colDidChange=!1,this.col=void 0}colChanged(){this.colDidChange=!0}async connectedCallback(){let e=0,t=.81,i=(0,p.b)(this);"ios"===i&&(e=-.46,t=1),this.rotateFactor=e,this.scaleFactor=t,this.gesture=(await Promise.resolve().then(n.bind(n,19341))).createGesture({el:this.el,gestureName:"picker-swipe",gesturePriority:100,threshold:0,passive:!1,onStart:e=>this.onStart(e),onMove:e=>this.onMove(e),onEnd:e=>this.onEnd(e)}),this.gesture.enable(),this.tmrId=setTimeout(()=>{this.noAnimate=!1,this.refresh(!0)},250)}componentDidLoad(){this.onDomChange()}componentDidUpdate(){this.colDidChange&&(this.onDomChange(!0,!1),this.colDidChange=!1)}disconnectedCallback(){void 0!==this.rafId&&cancelAnimationFrame(this.rafId),this.tmrId&&clearTimeout(this.tmrId),this.gesture&&(this.gesture.destroy(),this.gesture=void 0)}emitColChange(){this.ionPickerColChange.emit(this.col)}setSelected(e,t){let n=e>-1?-(e*this.optHeight):0;this.velocity=0,void 0!==this.rafId&&cancelAnimationFrame(this.rafId),this.update(n,t,!0),this.emitColChange()}update(e,t,n){if(!this.optsEl)return;let i=0,r=0,{col:o,rotateFactor:a}=this,s=o.selectedIndex,l=o.selectedIndex=this.indexForY(-e),c=0===t?"":t+"ms",d=`scale(${this.scaleFactor})`,u=this.optsEl.children;for(let n=0;n<u.length;n++){let s=u[n],h=o.options[n],p=n*this.optHeight+e,f="";if(0!==a){let e=p*a;90>=Math.abs(e)?(i=0,r=90,f=`rotateX(${e}deg) `):i=-9999}else r=0,i=p;let m=l===n;f+=`translate3d(0px,${i}px,${r}px) `,1===this.scaleFactor||m||(f+=d),this.noAnimate?(h.duration=0,s.style.transitionDuration=""):t!==h.duration&&(h.duration=t,s.style.transitionDuration=c),f!==h.transform&&(h.transform=f),s.style.transform=f,h.selected=m,m?s.classList.add(az):s.classList.remove(az)}this.col.prevSelected=s,n&&(this.y=e),this.lastIndex!==l&&(n8(),this.lastIndex=l)}decelerate(){if(0!==this.velocity){this.velocity*=aB,this.velocity=this.velocity>0?Math.max(this.velocity,1):Math.min(this.velocity,-1);let e=this.y+this.velocity;e>this.minY?(e=this.minY,this.velocity=0):e<this.maxY&&(e=this.maxY,this.velocity=0),this.update(e,0,!0);let t=Math.round(e)%this.optHeight!=0||Math.abs(this.velocity)>1;t?this.rafId=requestAnimationFrame(()=>this.decelerate()):(this.velocity=0,this.emitColChange(),n9())}else if(this.y%this.optHeight!=0){let e=Math.abs(this.y%this.optHeight);this.velocity=e>this.optHeight/2?1:-1,this.decelerate()}}indexForY(e){return Math.min(Math.max(Math.abs(Math.round(e/this.optHeight)),0),this.col.options.length-1)}onStart(e){e.event.cancelable&&e.event.preventDefault(),e.event.stopPropagation(),n6(),void 0!==this.rafId&&cancelAnimationFrame(this.rafId);let t=this.col.options,n=t.length-1,i=0;for(let e=0;e<t.length;e++)t[e].disabled||(n=Math.min(n,e),i=Math.max(i,e));this.minY=-(n*this.optHeight),this.maxY=-(i*this.optHeight)}onMove(e){e.event.cancelable&&e.event.preventDefault(),e.event.stopPropagation();let t=this.y+e.deltaY;t>this.minY?(t=Math.pow(t,.8),this.bounceFrom=t):t<this.maxY?(t+=Math.pow(this.maxY-t,.9),this.bounceFrom=t):this.bounceFrom=0,this.update(t,0,!1)}onEnd(e){if(this.bounceFrom>0){this.update(this.minY,100,!0),this.emitColChange();return}if(this.bounceFrom<0){this.update(this.maxY,100,!0),this.emitColChange();return}if(this.velocity=(0,f.k)(-aH,23*e.velocityY,aH),0===this.velocity&&0===e.deltaY){let t=e.event.target.closest(".picker-opt");(null==t?void 0:t.hasAttribute("opt-index"))&&this.setSelected(parseInt(t.getAttribute("opt-index"),10),aU)}else{if(this.y+=e.deltaY,.05>Math.abs(e.velocityY)){let t=e.deltaY>0,n=Math.abs(this.y)%this.optHeight/this.optHeight;t&&n>.5?this.velocity=-1*Math.abs(this.velocity):!t&&n<=.5&&(this.velocity=Math.abs(this.velocity))}this.decelerate()}}refresh(e,t){var n;let i=this.col.options.length-1,r=0,o=this.col.options;for(let e=0;e<o.length;e++)o[e].disabled||(i=Math.min(i,e),r=Math.max(r,e));if(0!==this.velocity)return;let a=(0,f.k)(i,null!==(n=this.col.selectedIndex)&&void 0!==n?n:0,r);if(this.col.prevSelected!==a||e){let e=-(a*this.optHeight*1);this.velocity=0,this.update(e,t?aU:0,!0)}}onDomChange(e,t){let n=this.optsEl;n&&(this.optHeight=n.firstElementChild?n.firstElementChild.clientHeight:0),this.refresh(e,t)}render(){let e=this.col,t=(0,p.b)(this);return(0,eN.h)(eN.AA,{key:"56289a294e5c580f3e7fe5fc12777aa7f80ad19b",class:Object.assign({[t]:!0,"picker-col":!0,"picker-opts-left":"left"===this.col.align,"picker-opts-right":"right"===this.col.align},eO(e.cssClass)),style:{"max-width":this.col.columnWidth}},e.prefix&&(0,eN.h)("div",{key:"d21f44667b5df567d6879723fe643ea7c2c60bef",class:"picker-prefix",style:{width:e.prefixWidth}},e.prefix),(0,eN.h)("div",{key:"bb427e5f24fd832703926e0e847ad05567597262",class:"picker-opts",style:{maxWidth:e.optionsWidth},ref:e=>this.optsEl=e},e.options.map((e,t)=>(0,eN.h)("button",{"aria-label":e.ariaLabel,class:{"picker-opt":!0,"picker-opt-disabled":!!e.disabled},"opt-index":t},e.text))),e.suffix&&(0,eN.h)("div",{key:"0413f7c074b6534b8967387ecb9957a79a267aff",class:"picker-suffix",style:{width:e.suffixWidth}},e.suffix))}get el(){return this}static get watchers(){return{col:["colChanged"]}}static get style(){return{ios:".picker-col{display:-ms-flexbox;display:flex;position:relative;-ms-flex:1;flex:1;-ms-flex-pack:center;justify-content:center;height:100%;-webkit-box-sizing:content-box;box-sizing:content-box;contain:content}.picker-opts{position:relative;-ms-flex:1;flex:1;max-width:100%}.picker-opt{top:0;display:block;position:absolute;width:100%;border:0;text-align:center;text-overflow:ellipsis;white-space:nowrap;contain:strict;overflow:hidden;will-change:transform}.picker-opt{inset-inline-start:0}.picker-opt.picker-opt-disabled{pointer-events:none}.picker-opt-disabled{opacity:0}.picker-opts-left{-ms-flex-pack:start;justify-content:flex-start}.picker-opts-right{-ms-flex-pack:end;justify-content:flex-end}.picker-opt:active,.picker-opt:focus{outline:none}.picker-prefix{position:relative;-ms-flex:1;flex:1;text-align:end;white-space:nowrap}.picker-suffix{position:relative;-ms-flex:1;flex:1;text-align:start;white-space:nowrap}.picker-col{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:4px;padding-inline-end:4px;padding-top:0;padding-bottom:0;-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.picker-prefix,.picker-suffix,.picker-opts{top:77px;-webkit-transform-style:preserve-3d;transform-style:preserve-3d;color:inherit;font-size:20px;line-height:42px;pointer-events:none}.picker-opt{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-transform-origin:center center;transform-origin:center center;height:46px;-webkit-transform-style:preserve-3d;transform-style:preserve-3d;-webkit-transition-timing-function:ease-out;transition-timing-function:ease-out;background:transparent;color:inherit;font-size:20px;line-height:42px;-webkit-backface-visibility:hidden;backface-visibility:hidden;pointer-events:auto}:host-context([dir=rtl]) .picker-opt{-webkit-transform-origin:calc(100% - center) center;transform-origin:calc(100% - center) center}[dir=rtl] .picker-opt{-webkit-transform-origin:calc(100% - center) center;transform-origin:calc(100% - center) center}@supports selector(:dir(rtl)){.picker-opt:dir(rtl){-webkit-transform-origin:calc(100% - center) center;transform-origin:calc(100% - center) center}}",md:".picker-col{display:-ms-flexbox;display:flex;position:relative;-ms-flex:1;flex:1;-ms-flex-pack:center;justify-content:center;height:100%;-webkit-box-sizing:content-box;box-sizing:content-box;contain:content}.picker-opts{position:relative;-ms-flex:1;flex:1;max-width:100%}.picker-opt{top:0;display:block;position:absolute;width:100%;border:0;text-align:center;text-overflow:ellipsis;white-space:nowrap;contain:strict;overflow:hidden;will-change:transform}.picker-opt{inset-inline-start:0}.picker-opt.picker-opt-disabled{pointer-events:none}.picker-opt-disabled{opacity:0}.picker-opts-left{-ms-flex-pack:start;justify-content:flex-start}.picker-opts-right{-ms-flex-pack:end;justify-content:flex-end}.picker-opt:active,.picker-opt:focus{outline:none}.picker-prefix{position:relative;-ms-flex:1;flex:1;text-align:end;white-space:nowrap}.picker-suffix{position:relative;-ms-flex:1;flex:1;text-align:start;white-space:nowrap}.picker-col{-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px;padding-top:0;padding-bottom:0;-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.picker-prefix,.picker-suffix,.picker-opts{top:77px;-webkit-transform-style:preserve-3d;transform-style:preserve-3d;color:inherit;font-size:22px;line-height:42px;pointer-events:none}.picker-opt{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;height:43px;-webkit-transition-timing-function:ease-out;transition-timing-function:ease-out;background:transparent;color:inherit;font-size:22px;line-height:42px;-webkit-backface-visibility:hidden;backface-visibility:hidden;pointer-events:auto}.picker-prefix,.picker-suffix,.picker-opt.picker-opt-selected{color:var(--ion-color-primary, #0054e9)}"}}},[32,"ion-picker-legacy-column",{col:[16]},void 0,{col:["colChanged"]}]),az="picker-opt-selected",aB=.97,aH=90,aU=150,aV=e=>{let t=(0,m.c)(),n=(0,m.c)(),i=(0,m.c)();return n.addElement(e.querySelector("ion-backdrop")).fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),i.addElement(e.querySelector(".picker-wrapper")).fromTo("transform","translateY(100%)","translateY(0%)"),t.addElement(e).easing("cubic-bezier(.36,.66,.04,1)").duration(400).addAnimation([n,i])},aW=e=>{let t=(0,m.c)(),n=(0,m.c)(),i=(0,m.c)();return n.addElement(e.querySelector("ion-backdrop")).fromTo("opacity","var(--backdrop-opacity)",.01),i.addElement(e.querySelector(".picker-wrapper")).fromTo("transform","translateY(0%)","translateY(100%)"),t.addElement(e).easing("cubic-bezier(.36,.66,.04,1)").duration(400).addAnimation([n,i])},aq=(0,eN.GH)(class extends eN.mv{constructor(){super(),this.__registerHost(),this.didPresent=(0,eN.yM)(this,"ionPickerDidPresent",7),this.willPresent=(0,eN.yM)(this,"ionPickerWillPresent",7),this.willDismiss=(0,eN.yM)(this,"ionPickerWillDismiss",7),this.didDismiss=(0,eN.yM)(this,"ionPickerDidDismiss",7),this.didPresentShorthand=(0,eN.yM)(this,"didPresent",7),this.willPresentShorthand=(0,eN.yM)(this,"willPresent",7),this.willDismissShorthand=(0,eN.yM)(this,"willDismiss",7),this.didDismissShorthand=(0,eN.yM)(this,"didDismiss",7),this.delegateController=el(this),this.lockController=ia(),this.triggerController=ec(),this.onBackdropTap=()=>{this.dismiss(void 0,ea)},this.dispatchCancelHandler=e=>{let t=e.detail.role;if(ei(t)){let e=this.buttons.find(e=>"cancel"===e.role);this.callButtonHandler(e)}},this.presented=!1,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.columns=[],this.cssClass=void 0,this.duration=0,this.showBackdrop=!0,this.backdropDismiss=!0,this.animated=!0,this.htmlAttributes=void 0,this.isOpen=!1,this.trigger=void 0}onIsOpenChange(e,t){!0===e&&!1===t?this.present():!1===e&&!0===t&&this.dismiss()}triggerChanged(){let{trigger:e,el:t,triggerController:n}=this;e&&n.addClickListener(t,e)}connectedCallback(){N(this.el),this.triggerChanged()}disconnectedCallback(){this.triggerController.removeClickListener()}componentWillLoad(){var e;(null===(e=this.htmlAttributes)||void 0===e?void 0:e.id)||F(this.el)}componentDidLoad(){(0,k.p)("ion-picker-legacy and ion-picker-legacy-column have been deprecated in favor of new versions of the ion-picker and ion-picker-column components. These new components display inline with your page content allowing for more presentation flexibility than before.",this.el),!0===this.isOpen&&(0,f.r)(()=>this.present()),this.triggerChanged()}async present(){let e=await this.lockController.lock();await this.delegateController.attachViewToDom(),await K(this,"pickerEnter",aV,aV,void 0),this.duration>0&&(this.durationTimeout=setTimeout(()=>this.dismiss(),this.duration)),e()}async dismiss(e,t){let n=await this.lockController.lock();this.durationTimeout&&clearTimeout(this.durationTimeout);let i=await Z(this,e,t,"pickerLeave",aW,aW);return i&&this.delegateController.removeViewFromDom(),n(),i}onDidDismiss(){return et(this.el,"ionPickerDidDismiss")}onWillDismiss(){return et(this.el,"ionPickerWillDismiss")}getColumn(e){return Promise.resolve(this.columns.find(t=>t.name===e))}async buttonClick(e){let t=e.role;if(ei(t))return this.dismiss(void 0,t);let n=await this.callButtonHandler(e);return n?this.dismiss(this.getSelected(),e.role):Promise.resolve()}async callButtonHandler(e){if(e){let t=await eo(e.handler,this.getSelected());if(!1===t)return!1}return!0}getSelected(){let e={};return this.columns.forEach((t,n)=>{let i=void 0!==t.selectedIndex?t.options[t.selectedIndex]:void 0;e[t.name]={text:i?i.text:void 0,value:i?i.value:void 0,columnIndex:n}}),e}render(){let{htmlAttributes:e}=this,t=(0,p.b)(this);return(0,eN.h)(eN.AA,Object.assign({key:"3b163ca87354a3a4f302ff016d5affd0dc97bccc","aria-modal":"true",tabindex:"-1"},e,{style:{zIndex:`${2e4+this.overlayIndex}`},class:Object.assign({[t]:!0,[`picker-${t}`]:!0,"overlay-hidden":!0},eO(this.cssClass)),onIonBackdropTap:this.onBackdropTap,onIonPickerWillDismiss:this.dispatchCancelHandler}),(0,eN.h)("ion-backdrop",{key:"da4224447bdbcfbadd1bd63ebe7a7bfdb8aa3129",visible:this.showBackdrop,tappable:this.backdropDismiss}),(0,eN.h)("div",{key:"211475c859b7acf4d64556905c45993201d92d43",tabindex:"0"}),(0,eN.h)("div",{key:"c3b3674038155809caea84ae6348ff0d66897a64",class:"picker-wrapper ion-overlay-wrapper",role:"dialog"},(0,eN.h)("div",{key:"a21757da70dc7864945a5751d9da3ca4bf87897b",class:"picker-toolbar"},this.buttons.map(e=>(0,eN.h)("div",{class:aG(e)},(0,eN.h)("button",{type:"button",onClick:()=>this.buttonClick(e),class:aX(e)},e.text)))),(0,eN.h)("div",{key:"0220da1854d09ef22d2d9a32eaa3c3b222be5a0a",class:"picker-columns"},(0,eN.h)("div",{key:"55757c165ba9e38e56b4dee76a9b13d3ff8b21e6",class:"picker-above-highlight"}),this.presented&&this.columns.map(e=>(0,eN.h)("ion-picker-legacy-column",{col:e})),(0,eN.h)("div",{key:"160092a46a48287bf75e5dfe3502f1755a2d0c70",class:"picker-below-highlight"}))),(0,eN.h)("div",{key:"e212db6cca7d75fc0eda0baf4312dd51b9b7a4ef",tabindex:"0"}))}get el(){return this}static get watchers(){return{isOpen:["onIsOpenChange"],trigger:["triggerChanged"]}}static get style(){return{ios:".sc-ion-picker-legacy-ios-h{--border-radius:0;--border-style:solid;--min-width:auto;--width:100%;--max-width:500px;--min-height:auto;--max-height:auto;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;top:0;display:block;position:absolute;width:100%;height:100%;outline:none;font-family:var(--ion-font-family, inherit);contain:strict;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:1001}.sc-ion-picker-legacy-ios-h{inset-inline-start:0}.overlay-hidden.sc-ion-picker-legacy-ios-h{display:none}.picker-wrapper.sc-ion-picker-legacy-ios{border-radius:var(--border-radius);left:0;right:0;bottom:0;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:auto;margin-bottom:auto;-webkit-transform:translate3d(0,  100%,  0);transform:translate3d(0,  100%,  0);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);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);contain:strict;overflow:hidden;z-index:10}.picker-toolbar.sc-ion-picker-legacy-ios{width:100%;background:transparent;contain:strict;z-index:1}.picker-button.sc-ion-picker-legacy-ios{border:0;font-family:inherit}.picker-button.sc-ion-picker-legacy-ios:active,.picker-button.sc-ion-picker-legacy-ios:focus{outline:none}.picker-columns.sc-ion-picker-legacy-ios{display:-ms-flexbox;display:flex;position:relative;-ms-flex-pack:center;justify-content:center;margin-bottom:var(--ion-safe-area-bottom, 0);contain:strict;overflow:hidden}.picker-above-highlight.sc-ion-picker-legacy-ios,.picker-below-highlight.sc-ion-picker-legacy-ios{display:none;pointer-events:none}.sc-ion-picker-legacy-ios-h{--background:var(--ion-background-color, #fff);--border-width:1px 0 0;--border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-250, var(--ion-background-color-step-250, #c8c7cc))));--height:260px;--backdrop-opacity:var(--ion-backdrop-opacity, 0.26);color:var(--ion-item-color, var(--ion-text-color, #000))}.picker-toolbar.sc-ion-picker-legacy-ios{display:-ms-flexbox;display:flex;height:44px;border-bottom:0.55px solid var(--border-color)}.picker-toolbar-button.sc-ion-picker-legacy-ios{-ms-flex:1;flex:1;text-align:end}.picker-toolbar-button.sc-ion-picker-legacy-ios:last-child .picker-button.sc-ion-picker-legacy-ios{font-weight:600}.picker-toolbar-button.sc-ion-picker-legacy-ios:first-child{font-weight:normal;text-align:start}.picker-button.sc-ion-picker-legacy-ios,.picker-button.ion-activated.sc-ion-picker-legacy-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-padding-start:1em;padding-inline-start:1em;-webkit-padding-end:1em;padding-inline-end:1em;padding-top:0;padding-bottom:0;height:44px;background:transparent;color:var(--ion-color-primary, #0054e9);font-size:16px}.picker-columns.sc-ion-picker-legacy-ios{height:215px;-webkit-perspective:1000px;perspective:1000px}.picker-above-highlight.sc-ion-picker-legacy-ios{top:0;-webkit-transform:translate3d(0,  0,  90px);transform:translate3d(0,  0,  90px);display:block;position:absolute;width:100%;height:81px;border-bottom:1px solid var(--border-color);background:-webkit-gradient(linear, left top, left bottom, color-stop(20%, var(--background, var(--ion-background-color, #fff))), to(rgba(var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255)), 0.8)));background:linear-gradient(to bottom, var(--background, var(--ion-background-color, #fff)) 20%, rgba(var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255)), 0.8) 100%);z-index:10}.picker-above-highlight.sc-ion-picker-legacy-ios{inset-inline-start:0}.picker-below-highlight.sc-ion-picker-legacy-ios{top:115px;-webkit-transform:translate3d(0,  0,  90px);transform:translate3d(0,  0,  90px);display:block;position:absolute;width:100%;height:119px;border-top:1px solid var(--border-color);background:-webkit-gradient(linear, left bottom, left top, color-stop(30%, var(--background, var(--ion-background-color, #fff))), to(rgba(var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255)), 0.8)));background:linear-gradient(to top, var(--background, var(--ion-background-color, #fff)) 30%, rgba(var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255)), 0.8) 100%);z-index:11}.picker-below-highlight.sc-ion-picker-legacy-ios{inset-inline-start:0}",md:".sc-ion-picker-legacy-md-h{--border-radius:0;--border-style:solid;--min-width:auto;--width:100%;--max-width:500px;--min-height:auto;--max-height:auto;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;top:0;display:block;position:absolute;width:100%;height:100%;outline:none;font-family:var(--ion-font-family, inherit);contain:strict;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:1001}.sc-ion-picker-legacy-md-h{inset-inline-start:0}.overlay-hidden.sc-ion-picker-legacy-md-h{display:none}.picker-wrapper.sc-ion-picker-legacy-md{border-radius:var(--border-radius);left:0;right:0;bottom:0;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:auto;margin-bottom:auto;-webkit-transform:translate3d(0,  100%,  0);transform:translate3d(0,  100%,  0);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);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);contain:strict;overflow:hidden;z-index:10}.picker-toolbar.sc-ion-picker-legacy-md{width:100%;background:transparent;contain:strict;z-index:1}.picker-button.sc-ion-picker-legacy-md{border:0;font-family:inherit}.picker-button.sc-ion-picker-legacy-md:active,.picker-button.sc-ion-picker-legacy-md:focus{outline:none}.picker-columns.sc-ion-picker-legacy-md{display:-ms-flexbox;display:flex;position:relative;-ms-flex-pack:center;justify-content:center;margin-bottom:var(--ion-safe-area-bottom, 0);contain:strict;overflow:hidden}.picker-above-highlight.sc-ion-picker-legacy-md,.picker-below-highlight.sc-ion-picker-legacy-md{display:none;pointer-events:none}.sc-ion-picker-legacy-md-h{--background:var(--ion-background-color, #fff);--border-width:0.55px 0 0;--border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-150, var(--ion-background-color-step-150, rgba(0, 0, 0, 0.13)))));--height:260px;--backdrop-opacity:var(--ion-backdrop-opacity, 0.26);color:var(--ion-item-color, var(--ion-text-color, #000))}.picker-toolbar.sc-ion-picker-legacy-md{display:-ms-flexbox;display:flex;-ms-flex-pack:end;justify-content:flex-end;height:44px}.picker-button.sc-ion-picker-legacy-md,.picker-button.ion-activated.sc-ion-picker-legacy-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-padding-start:1.1em;padding-inline-start:1.1em;-webkit-padding-end:1.1em;padding-inline-end:1.1em;padding-top:0;padding-bottom:0;height:44px;background:transparent;color:var(--ion-color-primary, #0054e9);font-size:14px;font-weight:500;text-transform:uppercase;-webkit-box-shadow:none;box-shadow:none}.picker-columns.sc-ion-picker-legacy-md{height:216px;-webkit-perspective:1800px;perspective:1800px}.picker-above-highlight.sc-ion-picker-legacy-md{top:0;-webkit-transform:translate3d(0,  0,  90px);transform:translate3d(0,  0,  90px);position:absolute;width:100%;height:81px;border-bottom:1px solid var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-150, var(--ion-background-color-step-150, rgba(0, 0, 0, 0.13)))));background:-webkit-gradient(linear, left top, left bottom, color-stop(20%, var(--ion-background-color, #fff)), to(rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8)));background:linear-gradient(to bottom, var(--ion-background-color, #fff) 20%, rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8) 100%);z-index:10}.picker-above-highlight.sc-ion-picker-legacy-md{inset-inline-start:0}.picker-below-highlight.sc-ion-picker-legacy-md{top:115px;-webkit-transform:translate3d(0,  0,  90px);transform:translate3d(0,  0,  90px);position:absolute;width:100%;height:119px;border-top:1px solid var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-150, var(--ion-background-color-step-150, rgba(0, 0, 0, 0.13)))));background:-webkit-gradient(linear, left bottom, left top, color-stop(30%, var(--ion-background-color, #fff)), to(rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8)));background:linear-gradient(to top, var(--ion-background-color, #fff) 30%, rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8) 100%);z-index:11}.picker-below-highlight.sc-ion-picker-legacy-md{inset-inline-start:0}"}}},[34,"ion-picker-legacy",{overlayIndex:[2,"overlay-index"],delegate:[16],hasController:[4,"has-controller"],keyboardClose:[4,"keyboard-close"],enterAnimation:[16],leaveAnimation:[16],buttons:[16],columns:[16],cssClass:[1,"css-class"],duration:[2],showBackdrop:[4,"show-backdrop"],backdropDismiss:[4,"backdrop-dismiss"],animated:[4],htmlAttributes:[16],isOpen:[4,"is-open"],trigger:[1],presented:[32],present:[64],dismiss:[64],onDidDismiss:[64],onWillDismiss:[64],getColumn:[64]},void 0,{isOpen:["onIsOpenChange"],trigger:["triggerChanged"]}]),aG=e=>({[`picker-toolbar-${e.role}`]:void 0!==e.role,"picker-toolbar-button":!0}),aX=e=>Object.assign({"picker-button":!0,"ion-activatable":!0},eO(e.cssClass)),aY=function(){"undefined"!=typeof customElements&&["ion-picker-legacy","ion-backdrop","ion-picker-legacy-column"].forEach(e=>{switch(e){case"ion-picker-legacy":customElements.get(e)||customElements.define(e,aq);break;case"ion-backdrop":customElements.get(e)||tc();break;case"ion-picker-legacy-column":customElements.get(e)||"undefined"!=typeof customElements&&["ion-picker-legacy-column"].forEach(e=>{"ion-picker-legacy-column"===e&&(customElements.get(e)||customElements.define(e,aF))})}})};var aK=n(75781);(l=u||(u={})).Dark="DARK",l.Light="LIGHT",l.Default="DEFAULT";let aJ={getEngine(){let e=(0,n2.g)();if(null==e?void 0:e.isPluginAvailable("StatusBar"))return e.Plugins.StatusBar},setStyle(e){let t=this.getEngine();t&&t.setStyle(e)},getStyle:async function(){let e=this.getEngine();if(!e)return u.Default;let{style:t}=await e.getInfo();return t}},aZ=(e,t)=>{if(1===t)return 0;let n=1/(1-t);return e*n+-(t*n)},aQ=()=>{g.w&&!(g.w.innerWidth>=768)&&aJ.setStyle({style:u.Dark})},a0=(e=u.Default)=>{g.w&&!(g.w.innerWidth>=768)&&aJ.setStyle({style:e})},a1=async(e,t)=>{if("function"!=typeof e.canDismiss)return;let n=await e.canDismiss(void 0,es);n&&(t.isRunning()?t.onFinish(()=>{e.dismiss(void 0,"handler")},{oneTimeCallback:!0}):e.dismiss(void 0,"handler"))},a2=e=>.00255275*2.71828**(-14.9619*e)-1.00255*2.71828**(-.0380968*e)+1,a5={MIN_PRESENTING_SCALE:.915},a3=(e,t,n,i)=>{let r=e.offsetHeight,o=!1,a=!1,s=null,l=null,c=!0,d=0,u=()=>!(s&&(0,i0.i)(s))||s.scrollY,h=(0,eR.createGesture)({el:e,gestureName:"modalSwipeToClose",gesturePriority:39,direction:"y",threshold:10,canStart:e=>{let t=e.event.target;if(null===t||!t.closest)return!0;if(s=(0,i0.a)(t)){if((0,i0.i)(s)){let e=(0,f.g)(s);l=e.querySelector(".inner-scroll")}else l=s;let e=!!s.querySelector("ion-refresher");return!e&&0===l.scrollTop}let n=t.closest("ion-footer");return null===n},onStart:n=>{let{deltaY:i}=n;c=u(),a=void 0!==e.canDismiss&&!0!==e.canDismiss,i>0&&s&&(0,i0.d)(s),t.progressStart(!0,o?1:0)},onMove:e=>{let{deltaY:i}=e;i>0&&s&&(0,i0.d)(s);let o=e.deltaY/r,l=o>=0&&a,c=l?.2:.9999,u=l?a2(o/c):o,h=(0,f.k)(1e-4,u,c);t.progressStep(h),h>=.5&&d<.5?a0(n):h<.5&&d>=.5&&aQ(),d=h},onEnd:n=>{let l=n.velocityY,d=n.deltaY/r,u=d>=0&&a,p=u?.2:.9999,m=u?a2(d/p):d,g=(0,f.k)(1e-4,m,p),b=(n.deltaY+1e3*l)/r,v=!u&&b>=.5,y=v?-.001:.001;v?(t.easing("cubic-bezier(0.32, 0.72, 0, 1)"),y+=ew([0,0],[.32,.72],[0,1],[1,1],g)[0]):(t.easing("cubic-bezier(1, 0, 0.68, 0.28)"),y+=ew([0,0],[1,0],[.68,.28],[1,1],g)[0]);let x=v?a4(d*r,l):a4((1-g)*r,l);o=v,h.enable(!1),s&&(0,i0.r)(s,c),t.onFinish(()=>{v||h.enable(!0)}).progressEnd(v?1:0,y,x),u&&g>p/4?a1(e,t):v&&i()}});return h},a4=(e,t)=>(0,f.k)(400,e/Math.abs(1.1*t),500),a6=e=>{let{currentBreakpoint:t,backdropBreakpoint:n}=e,i=void 0===n||n<t,r=i?`calc(var(--backdrop-opacity) * ${t})`:"0",o=(0,m.c)("backdropAnimation").fromTo("opacity",0,r);i&&o.beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]);let a=(0,m.c)("wrapperAnimation").keyframes([{offset:0,opacity:1,transform:"translateY(100%)"},{offset:1,opacity:1,transform:`translateY(${100-100*t}%)`}]);return{wrapperAnimation:a,backdropAnimation:o}},a8=e=>{let{currentBreakpoint:t,backdropBreakpoint:n}=e,i=`calc(var(--backdrop-opacity) * ${aZ(t,n)})`,r=(0,m.c)("backdropAnimation").keyframes(0!==n?[{offset:0,opacity:i},{offset:n,opacity:0},{offset:1,opacity:0}]:[{offset:0,opacity:i},{offset:1,opacity:0}]),o=(0,m.c)("wrapperAnimation").keyframes([{offset:0,opacity:1,transform:`translateY(${100-100*t}%)`},{offset:1,opacity:1,transform:"translateY(100%)"}]);return{wrapperAnimation:o,backdropAnimation:r}},a9=()=>{let e=(0,m.c)().fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),t=(0,m.c)().fromTo("transform","translateY(100vh)","translateY(0vh)");return{backdropAnimation:e,wrapperAnimation:t}},a7=(e,t)=>{let{presentingEl:n,currentBreakpoint:i}=t,r=(0,f.g)(e),{wrapperAnimation:o,backdropAnimation:a}=void 0!==i?a6(t):a9();a.addElement(r.querySelector("ion-backdrop")),o.addElement(r.querySelectorAll(".modal-wrapper, .modal-shadow")).beforeStyles({opacity:1});let s=(0,m.c)("entering-base").addElement(e).easing("cubic-bezier(0.32,0.72,0,1)").duration(500).addAnimation(o);if(n){let e=window.innerWidth<768,t="ION-MODAL"===n.tagName&&void 0!==n.presentingElement,i=(0,f.g)(n),r=(0,m.c)().beforeStyles({transform:"translateY(0)","transform-origin":"top center",overflow:"hidden"}),l=document.body;if(e){let e=CSS.supports("width","max(0px, 1px)")?"max(30px, var(--ion-safe-area-top))":"30px",i=a5.MIN_PRESENTING_SCALE,o=`translateY(${t?"-10px":e}) scale(${i})`;r.afterStyles({transform:o}).beforeAddWrite(()=>l.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:o,borderRadius:"10px 10px 0 0"}]),s.addAnimation(r)}else if(s.addAnimation(a),t){let e=t?a5.MIN_PRESENTING_SCALE:1,n=`translateY(-10px) scale(${e})`;r.afterStyles({transform:n}).addElement(i.querySelector(".modal-wrapper")).keyframes([{offset:0,filter:"contrast(1)",transform:"translateY(0) scale(1)"},{offset:1,filter:"contrast(0.85)",transform:n}]);let o=(0,m.c)().afterStyles({transform:n}).addElement(i.querySelector(".modal-shadow")).keyframes([{offset:0,opacity:"1",transform:"translateY(0) scale(1)"},{offset:1,opacity:"0",transform:n}]);s.addAnimation([r,o])}else o.fromTo("opacity","0","1")}else s.addAnimation(a);return s},se=()=>{let e=(0,m.c)().fromTo("opacity","var(--backdrop-opacity)",0),t=(0,m.c)().fromTo("transform","translateY(0vh)","translateY(100vh)");return{backdropAnimation:e,wrapperAnimation:t}},st=(e,t,n=500)=>{let{presentingEl:i,currentBreakpoint:r}=t,o=(0,f.g)(e),{wrapperAnimation:a,backdropAnimation:s}=void 0!==r?a8(t):se();s.addElement(o.querySelector("ion-backdrop")),a.addElement(o.querySelectorAll(".modal-wrapper, .modal-shadow")).beforeStyles({opacity:1});let l=(0,m.c)("leaving-base").addElement(e).easing("cubic-bezier(0.32,0.72,0,1)").duration(n).addAnimation(a);if(i){let e=window.innerWidth<768,t="ION-MODAL"===i.tagName&&void 0!==i.presentingElement,n=(0,f.g)(i),r=(0,m.c)().beforeClearStyles(["transform"]).afterClearStyles(["transform"]).onFinish(e=>{if(1!==e)return;i.style.setProperty("overflow","");let t=Array.from(o.querySelectorAll("ion-modal:not(.overlay-hidden)")).filter(e=>void 0!==e.presentingElement).length;t<=1&&o.style.setProperty("background-color","")}),o=document.body;if(e){let e=CSS.supports("width","max(0px, 1px)")?"max(30px, var(--ion-safe-area-top))":"30px",n=a5.MIN_PRESENTING_SCALE,o=`translateY(${t?"-10px":e}) scale(${n})`;r.addElement(i).keyframes([{offset:0,filter:"contrast(0.85)",transform:o,borderRadius:"10px 10px 0 0"},{offset:1,filter:"contrast(1)",transform:"translateY(0px) scale(1)",borderRadius:"0px"}]),l.addAnimation(r)}else if(l.addAnimation(s),t){let e=t?a5.MIN_PRESENTING_SCALE:1,i=`translateY(-10px) scale(${e})`;r.addElement(n.querySelector(".modal-wrapper")).afterStyles({transform:"translate3d(0, 0, 0)"}).keyframes([{offset:0,filter:"contrast(0.85)",transform:i},{offset:1,filter:"contrast(1)",transform:"translateY(0) scale(1)"}]);let o=(0,m.c)().addElement(n.querySelector(".modal-shadow")).afterStyles({transform:"translateY(0) scale(1)"}).keyframes([{offset:0,opacity:"0",transform:i},{offset:1,opacity:"1",transform:"translateY(0) scale(1)"}]);l.addAnimation([r,o])}else a.fromTo("opacity","1","0")}else l.addAnimation(s);return l},sn=()=>{let e=(0,m.c)().fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),t=(0,m.c)().keyframes([{offset:0,opacity:.01,transform:"translateY(40px)"},{offset:1,opacity:1,transform:"translateY(0px)"}]);return{backdropAnimation:e,wrapperAnimation:t}},si=(e,t)=>{let{currentBreakpoint:n}=t,i=(0,f.g)(e),{wrapperAnimation:r,backdropAnimation:o}=void 0!==n?a6(t):sn();return o.addElement(i.querySelector("ion-backdrop")),r.addElement(i.querySelector(".modal-wrapper")),(0,m.c)().addElement(e).easing("cubic-bezier(0.36,0.66,0.04,1)").duration(280).addAnimation([o,r])},sr=()=>{let e=(0,m.c)().fromTo("opacity","var(--backdrop-opacity)",0),t=(0,m.c)().keyframes([{offset:0,opacity:.99,transform:"translateY(0px)"},{offset:1,opacity:0,transform:"translateY(40px)"}]);return{backdropAnimation:e,wrapperAnimation:t}},so=(e,t)=>{let{currentBreakpoint:n}=t,i=(0,f.g)(e),{wrapperAnimation:r,backdropAnimation:o}=void 0!==n?a8(t):sr();return o.addElement(i.querySelector("ion-backdrop")),r.addElement(i.querySelector(".modal-wrapper")),(0,m.c)().easing("cubic-bezier(0.47,0,0.745,0.715)").duration(200).addAnimation([o,r])},sa=(e,t,n,i,r,o,a=[],s,l,c)=>{let d=[{offset:0,opacity:"var(--backdrop-opacity)"},{offset:1-r,opacity:0},{offset:1,opacity:0}],u={WRAPPER_KEYFRAMES:[{offset:0,transform:"translateY(0%)"},{offset:1,transform:"translateY(100%)"}],BACKDROP_KEYFRAMES:0!==r?d:[{offset:0,opacity:"var(--backdrop-opacity)"},{offset:1,opacity:.01}]},h=e.querySelector("ion-content"),p=n.clientHeight,m=i,g=0,b=!1,v=o.childAnimations.find(e=>"wrapperAnimation"===e.id),y=o.childAnimations.find(e=>"backdropAnimation"===e.id),x=a[a.length-1],w=a[0],k=()=>{e.style.setProperty("pointer-events","auto"),t.style.setProperty("pointer-events","auto"),e.classList.remove(eh)},_=()=>{e.style.setProperty("pointer-events","none"),t.style.setProperty("pointer-events","none"),e.classList.add(eh)};if(v&&y){v.keyframes([...u.WRAPPER_KEYFRAMES]),y.keyframes([...u.BACKDROP_KEYFRAMES]),o.progressStart(!0,1-m);let e=m>r;e?k():_()}h&&m!==x&&(h.scrollY=!1);let E=t=>{let{breakpoint:n,canDismiss:i,breakpointOffset:s,animated:d}=t,p=i&&0===n,g=p?m:n,b=0!==g;return m=0,v&&y&&(v.keyframes([{offset:0,transform:`translateY(${100*s}%)`},{offset:1,transform:`translateY(${(1-g)*100}%)`}]),y.keyframes([{offset:0,opacity:`calc(var(--backdrop-opacity) * ${aZ(1-s,r)})`},{offset:1,opacity:`calc(var(--backdrop-opacity) * ${aZ(g,r)})`}]),o.progressStep(0)),S.enable(!1),p?a1(e,o):b||l(),h&&g===a[a.length-1]&&(h.scrollY=!0),new Promise(e=>{o.onFinish(()=>{b?v&&y?(0,f.r)(()=>{v.keyframes([...u.WRAPPER_KEYFRAMES]),y.keyframes([...u.BACKDROP_KEYFRAMES]),o.progressStart(!0,1-g),c(m=g);let t=m>r;t?k():_(),S.enable(!0),e()}):(S.enable(!0),e()):e()},{oneTimeCallback:!0}).progressEnd(1,0,d?500:0)})},S=(0,eR.createGesture)({el:n,gestureName:"modalSheet",gesturePriority:40,direction:"y",threshold:10,canStart:e=>{let t=(0,i0.a)(e.event.target);if(1===(m=s())&&t){let e=(0,i0.i)(t)?(0,f.g)(t).querySelector(".inner-scroll"):t,n=!!t.querySelector("ion-refresher");return!n&&0===e.scrollTop}return!0},onStart:t=>{b=void 0!==e.canDismiss&&!0!==e.canDismiss&&0===w,t.deltaY>0&&h&&(h.scrollY=!1),(0,f.r)(()=>{e.focus()}),o.progressStart(!0,1-m)},onMove:e=>{e.deltaY>0&&h&&(h.scrollY=!1);let t=1-m,n=a.length>1?1-a[1]:void 0,i=t+e.deltaY/p,r=void 0!==n&&i>=n&&b,s=r?.95:.9999,l=r&&void 0!==n?n+a2((i-n)/(s-n)):i;g=(0,f.k)(1e-4,l,s),o.progressStep(g)},onEnd:e=>{let t=e.velocityY,n=(e.deltaY+350*t)/p,i=m-n,r=a.reduce((e,t)=>Math.abs(t-i)<Math.abs(e-i)?t:e);E({breakpoint:r,breakpointOffset:g,canDismiss:b,animated:!0})}});return{gesture:S,moveSheetToBreakpoint:E}},ss=(0,eN.GH)(class extends eN.mv{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.didPresent=(0,eN.yM)(this,"ionModalDidPresent",7),this.willPresent=(0,eN.yM)(this,"ionModalWillPresent",7),this.willDismiss=(0,eN.yM)(this,"ionModalWillDismiss",7),this.didDismiss=(0,eN.yM)(this,"ionModalDidDismiss",7),this.ionBreakpointDidChange=(0,eN.yM)(this,"ionBreakpointDidChange",7),this.didPresentShorthand=(0,eN.yM)(this,"didPresent",7),this.willPresentShorthand=(0,eN.yM)(this,"willPresent",7),this.willDismissShorthand=(0,eN.yM)(this,"willDismiss",7),this.didDismissShorthand=(0,eN.yM)(this,"didDismiss",7),this.ionMount=(0,eN.yM)(this,"ionMount",7),this.lockController=ia(),this.triggerController=ec(),this.coreDelegate=x(),this.isSheetModal=!1,this.inheritedAttributes={},this.inline=!1,this.gestureAnimationDismissing=!1,this.onHandleClick=()=>{let{sheetTransition:e,handleBehavior:t}=this;"cycle"===t&&void 0===e&&this.moveToNextBreakpoint()},this.onBackdropTap=()=>{let{sheetTransition:e}=this;void 0===e&&this.dismiss(void 0,ea)},this.onLifecycle=e=>{let t=this.usersElement,n=sl[e.type];if(t&&n){let i=new CustomEvent(n,{bubbles:!1,cancelable:!1,detail:e.detail});t.dispatchEvent(i)}},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.focusTrap=!0,this.canDismiss=!0}onIsOpenChange(e,t){!0===e&&!1===t?this.present():!1===e&&!0===t&&this.dismiss()}triggerChanged(){let{trigger:e,el:t,triggerController:n}=this;e&&n.addClickListener(t,e)}breakpointsChanged(e){void 0!==e&&(this.sortedBreakpoints=e.sort((e,t)=>e-t))}connectedCallback(){let{el:e}=this;N(e),this.triggerChanged()}disconnectedCallback(){this.triggerController.removeClickListener()}componentWillLoad(){var e;let{breakpoints:t,initialBreakpoint:n,el:i,htmlAttributes:r}=this,o=this.isSheetModal=void 0!==t&&void 0!==n,a=["aria-label","role"];this.inheritedAttributes=(0,f.d)(i,a),void 0!==r&&a.forEach(e=>{let t=r[e];t&&(this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[e]:r[e]}),delete r[e])}),o&&(this.currentBreakpoint=this.initialBreakpoint),void 0===t||void 0===n||t.includes(n)||(0,k.p)("Your breakpoints array must include the initialBreakpoint value."),(null===(e=this.htmlAttributes)||void 0===e?void 0:e.id)||F(this.el)}componentDidLoad(){!0===this.isOpen&&(0,f.r)(()=>this.present()),this.breakpointsChanged(this.breakpoints),this.triggerChanged()}getDelegate(e=!1){if(this.workingDelegate&&!e)return{delegate:this.workingDelegate,inline:this.inline};let t=this.el.parentNode,n=this.inline=null!==t&&!this.hasController,i=this.workingDelegate=n?this.delegate||this.coreDelegate:this.delegate;return{inline:n,delegate:i}}async checkCanDismiss(e,t){let{canDismiss:n}=this;return"function"==typeof n?n(e,t):n}async present(){let e=await this.lockController.lock();if(this.presented){e();return}let{presentingElement:t,el:n}=this;this.currentBreakpoint=this.initialBreakpoint;let{inline:i,delegate:r}=this.getDelegate(!0);this.ionMount.emit(),this.usersElement=await v(r,n,this.component,["ion-page"],this.componentProps,i),(0,f.j)(n)?await (0,e$.e)(this.usersElement):this.keepContentsMounted||await (0,e$.w)(),(0,eN.Iu)(()=>this.el.classList.add("show-modal"));let o=void 0!==t;o&&"ios"===(0,p.b)(this)&&(this.statusBarStyle=await aJ.getStyle(),aQ()),await K(this,"modalEnter",a7,si,{presentingEl:t,currentBreakpoint:this.initialBreakpoint,backdropBreakpoint:this.backdropBreakpoint}),"undefined"!=typeof window&&(this.keyboardOpenCallback=()=>{this.gesture&&(this.gesture.enable(!1),(0,f.r)(()=>{this.gesture&&this.gesture.enable(!0)}))},window.addEventListener(aK.KEYBOARD_DID_OPEN,this.keyboardOpenCallback)),this.isSheetModal?this.initSheetGesture():o&&this.initSwipeToClose(),e()}initSwipeToClose(){var e;if("ios"!==(0,p.b)(this))return;let{el:t}=this,n=this.leaveAnimation||p.c.get("modalLeave",st),i=this.animation=n(t,{presentingEl:this.presentingElement}),r=(0,i0.f)(t);if(!r){(0,i0.p)(t);return}let o=null!==(e=this.statusBarStyle)&&void 0!==e?e:u.Default;this.gesture=a3(t,i,o,()=>{this.gestureAnimationDismissing=!0,a0(this.statusBarStyle),this.animation.onFinish(async()=>{await this.dismiss(void 0,es),this.gestureAnimationDismissing=!1})}),this.gesture.enable(!0)}initSheetGesture(){let{wrapperEl:e,initialBreakpoint:t,backdropBreakpoint:n}=this;if(!e||void 0===t)return;let i=this.enterAnimation||p.c.get("modalEnter",a7),r=this.animation=i(this.el,{presentingEl:this.presentingElement,currentBreakpoint:t,backdropBreakpoint:n});r.progressStart(!0,1);let{gesture:o,moveSheetToBreakpoint:a}=sa(this.el,this.backdropEl,e,t,n,r,this.sortedBreakpoints,()=>{var e;return null!==(e=this.currentBreakpoint)&&void 0!==e?e:0},()=>this.sheetOnDismiss(),e=>{this.currentBreakpoint!==e&&(this.currentBreakpoint=e,this.ionBreakpointDidChange.emit({breakpoint:e}))});this.gesture=o,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,es),this.gestureAnimationDismissing=!1})}async dismiss(e,t){var n;if(this.gestureAnimationDismissing&&t!==es)return!1;let i=await this.lockController.lock();if("handler"!==t&&!await this.checkCanDismiss(e,t))return i(),!1;let{presentingElement:r}=this,o=void 0!==r;o&&"ios"===(0,p.b)(this)&&a0(this.statusBarStyle),"undefined"!=typeof window&&this.keyboardOpenCallback&&(window.removeEventListener(aK.KEYBOARD_DID_OPEN,this.keyboardOpenCallback),this.keyboardOpenCallback=void 0);let a=await Z(this,e,t,"modalLeave",st,so,{presentingEl:r,currentBreakpoint:null!==(n=this.currentBreakpoint)&&void 0!==n?n:this.initialBreakpoint,backdropBreakpoint:this.backdropBreakpoint});if(a){let{delegate:e}=this.getDelegate();await y(e,this.usersElement),(0,eN.Iu)(()=>this.el.classList.remove("show-modal")),this.animation&&this.animation.destroy(),this.gesture&&this.gesture.destroy()}return this.currentBreakpoint=void 0,this.animation=void 0,i(),a}onDidDismiss(){return et(this.el,"ionModalDidDismiss")}onWillDismiss(){return et(this.el,"ionModalWillDismiss")}async setCurrentBreakpoint(e){if(!this.isSheetModal){(0,k.p)("setCurrentBreakpoint is only supported on sheet modals.");return}if(!this.breakpoints.includes(e)){(0,k.p)(`Attempted to set invalid breakpoint value ${e}. Please double check that the breakpoint value is part of your defined breakpoints.`);return}let{currentBreakpoint:t,moveSheetToBreakpoint:n,canDismiss:i,breakpoints:r,animated:o}=this;t!==e&&n&&(this.sheetTransition=n({breakpoint:e,breakpointOffset:1-t,canDismiss:void 0!==i&&!0!==i&&0===r[0],animated:o}),await this.sheetTransition,this.sheetTransition=void 0)}async getCurrentBreakpoint(){return this.currentBreakpoint}async moveToNextBreakpoint(){let{breakpoints:e,currentBreakpoint:t}=this;if(!e||null==t)return!1;let n=e.filter(e=>0!==e),i=n.indexOf(t),r=(i+1)%n.length,o=n[r];return await this.setCurrentBreakpoint(o),!0}render(){let{handle:e,isSheetModal:t,presentingElement:n,htmlAttributes:i,handleBehavior:r,inheritedAttributes:o,focusTrap:a}=this,s=!1!==e&&t,l=(0,p.b)(this),c=void 0!==n&&"ios"===l,d="cycle"===r;return(0,eN.h)(eN.AA,Object.assign({key:"013ba4864ca4d2c1052c512f6a4b0732b8decff7","no-router":!0,tabindex:"-1"},i,{style:{zIndex:`${2e4+this.overlayIndex}`},class:Object.assign({[l]:!0,"modal-default":!c&&!t,"modal-card":c,"modal-sheet":t,"overlay-hidden":!0,[eh]:!1===a},eO(this.cssClass)),onIonBackdropTap:this.onBackdropTap,onIonModalDidPresent:this.onLifecycle,onIonModalWillPresent:this.onLifecycle,onIonModalWillDismiss:this.onLifecycle,onIonModalDidDismiss:this.onLifecycle}),(0,eN.h)("ion-backdrop",{key:"498b1c0a03836d6799dcf3b8e9315805c70f6480",ref:e=>this.backdropEl=e,visible:this.showBackdrop,tappable:this.backdropDismiss,part:"backdrop"}),"ios"===l&&(0,eN.h)("div",{key:"ce22e4caf1096e87248926fe2477f0d5a4c8a5cf",class:"modal-shadow"}),(0,eN.h)("div",Object.assign({key:"540e47b15d8290166c39b022c725182114a75682",role:"dialog"},o,{"aria-modal":"true",class:"modal-wrapper ion-overlay-wrapper",part:"content",ref:e=>this.wrapperEl=e}),s&&(0,eN.h)("button",{key:"f3b352ec9a63a7ec801462aacfd8295b4302d115",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"}),(0,eN.h)("slot",{key:"31a3f58f4c733ffdf736523c154200874a96b1d0"})))}get el(){return this}static get watchers(){return{isOpen:["onIsOpenChange"],trigger:["triggerChanged"]}}static get style(){return{ios:':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, var(--ion-background-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-start-start-radius:var(--border-radius);border-start-end-radius:var(--border-radius);border-end-end-radius:0;border-end-start-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-start-start-radius:var(--border-radius);border-start-end-radius:var(--border-radius);border-end-end-radius:0;border-end-start-radius:0}',md:':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, var(--ion-background-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}'}}},[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"],focusTrap:[4,"focus-trap"],canDismiss:[4,"can-dismiss"],presented:[32],present:[64],dismiss:[64],onDidDismiss:[64],onWillDismiss:[64],setCurrentBreakpoint:[64],getCurrentBreakpoint:[64]},void 0,{isOpen:["onIsOpenChange"],trigger:["triggerChanged"]}]),sl={ionModalDidPresent:"ionViewDidEnter",ionModalWillPresent:"ionViewWillEnter",ionModalWillDismiss:"ionViewWillLeave",ionModalDidDismiss:"ionViewDidLeave"},sc=function(){"undefined"!=typeof customElements&&["ion-modal","ion-backdrop"].forEach(e=>{switch(e){case"ion-modal":customElements.get(e)||customElements.define(e,ss);break;case"ion-backdrop":customElements.get(e)||tc()}})},sd=(0,eN.GH)(class extends eN.mv{constructor(){super(),this.__registerHost()}componentDidLoad(){eN.Z5.isBrowser&&sh(async()=>{let e=(0,p.a)(window,"hybrid");if(p.c.getBoolean("_testing")||n.e(1367).then(n.bind(n,1367)).then(e=>e.startTapClick(p.c)),p.c.getBoolean("statusTap",e)&&n.e(7014).then(n.bind(n,67014)).then(e=>e.startStatusTap()),p.c.getBoolean("inputShims",su())){let e=(0,p.a)(window,"ios")?"ios":"android";n.e(6289).then(n.bind(n,96289)).then(t=>t.startInputShims(p.c,e))}let t=await Promise.resolve().then(n.bind(n,43804)),i=e||(0,b.shouldUseCloseWatcher)();p.c.getBoolean("hardwareBackButton",i)?t.startHardwareBackButton():((0,b.shouldUseCloseWatcher)()&&(0,k.p)("experimentalCloseWatcher was set to `true`, but hardwareBackButton was set to `false`. Both config options must be `true` for the Close Watcher API to be used."),t.blockHardwareBackButton()),"undefined"!=typeof window&&Promise.resolve().then(n.bind(n,75781)).then(e=>e.startKeyboardAssist(window)),Promise.resolve().then(n.bind(n,80846)).then(e=>this.focusVisible=e.startFocusVisible())})}async setFocus(e){this.focusVisible&&this.focusVisible.setFocus(e)}render(){let e=(0,p.b)(this);return(0,eN.h)(eN.AA,{key:"a562850f242d9d45573e35efdd4bd178254677ef",class:{[e]:!0,"ion-page":!0,"force-statusbar-padding":p.c.getBoolean("_forceStatusbarPadding")}})}get el(){return this}static get style(){return"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}"}},[0,"ion-app",{setFocus:[64]}]),su=()=>{let e=(0,p.a)(window,"ios")&&(0,p.a)(window,"mobile");if(e)return!0;let t=(0,p.a)(window,"android")&&(0,p.a)(window,"mobileweb");return!!t},sh=e=>{"requestIdleCallback"in window?window.requestIdleCallback(e):setTimeout(e,32)},sp=(0,eN.GH)(class extends eN.mv{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.inheritedAttributes={},this.onClick=async e=>{let t=this.el.closest("ion-nav");return(e.preventDefault(),t&&await t.canGoBack())?t.pop({animationBuilder:this.routerAnimation,skipIfBusy:!0}):eI(this.defaultHref,e,"back",this.routerAnimation)},this.color=void 0,this.defaultHref=void 0,this.disabled=!1,this.icon=void 0,this.text=void 0,this.type="button",this.routerAnimation=void 0}componentWillLoad(){this.inheritedAttributes=(0,f.i)(this.el),void 0===this.defaultHref&&(this.defaultHref=p.c.get("backButtonDefaultHref"))}get backButtonIcon(){let e=this.icon;return null!=e?e:"ios"===(0,p.b)(this)?p.c.get("backButtonIcon",eB):p.c.get("backButtonIcon",eF)}get backButtonText(){let e="ios"===(0,p.b)(this)?"Back":null;return null!=this.text?this.text:p.c.get("backButtonText",e)}get hasIconOnly(){return this.backButtonIcon&&!this.backButtonText}get rippleType(){return this.hasIconOnly?"unbounded":"bounded"}render(){let{color:e,defaultHref:t,disabled:n,type:i,hasIconOnly:r,backButtonIcon:o,backButtonText:a,icon:s,inheritedAttributes:l}=this,c=(0,p.b)(this),d=l["aria-label"]||a||"back";return(0,eN.h)(eN.AA,{key:"8351c93a1812c94c979fb115f07a9ad7b3152188",onClick:this.onClick,class:eP(e,{[c]:!0,button:!0,"back-button-disabled":n,"back-button-has-icon-only":r,"in-toolbar":eC("ion-toolbar",this.el),"in-toolbar-color":eC("ion-toolbar[color]",this.el),"ion-activatable":!0,"ion-focusable":!0,"show-back-button":void 0!==t})},(0,eN.h)("button",{key:"991b8baa784dbfbdf8d3581cbbf6a858ac1f1e6e",type:i,disabled:n,class:"button-native",part:"native","aria-label":d},(0,eN.h)("span",{key:"929fcd83a4fdb00cf97ca803f234719171602a5e",class:"button-inner"},o&&(0,eN.h)("ion-icon",{key:"0c10d412ae8342d96f221e626b421c9abadac748",part:"icon",icon:o,"aria-hidden":"true",lazy:!1,"flip-rtl":void 0===s}),a&&(0,eN.h)("span",{key:"96f505880a80f36ee8b8c78268b450f3629ee613",part:"text","aria-hidden":"true",class:"button-text"},a)),"md"===c&&(0,eN.h)("ion-ripple-effect",{key:"0aecf5d415c608069eb1a10043530bd0929b6383",type:this.rippleType})))}get el(){return this}static get style(){return{ios:':host{--background:transparent;--color-focused:currentColor;--color-hover:currentColor;--icon-margin-top:0;--icon-margin-bottom:0;--icon-padding-top:0;--icon-padding-end:0;--icon-padding-bottom:0;--icon-padding-start:0;--margin-top:0;--margin-end:0;--margin-bottom:0;--margin-start:0;--min-width:auto;--min-height:auto;--padding-top:0;--padding-end:0;--padding-bottom:0;--padding-start:0;--opacity:1;--ripple-color:currentColor;--transition:background-color, opacity 100ms linear;display:none;min-width:var(--min-width);min-height:var(--min-height);color:var(--color);font-family:var(--ion-font-family, inherit);text-align:center;text-decoration:none;text-overflow:ellipsis;text-transform:none;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-font-kerning:none;font-kerning:none}ion-ripple-effect{color:var(--ripple-color)}:host(.ion-color) .button-native{color:var(--ion-color-base)}:host(.show-back-button){display:block}:host(.back-button-disabled){cursor:default;opacity:0.5;pointer-events:none}.button-native{border-radius:var(--border-radius);-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;-webkit-margin-start:var(--margin-start);margin-inline-start:var(--margin-start);-webkit-margin-end:var(--margin-end);margin-inline-end:var(--margin-end);margin-top:var(--margin-top);margin-bottom:var(--margin-bottom);-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:block;position:relative;width:100%;height:100%;min-height:inherit;-webkit-transition:var(--transition);transition:var(--transition);border:0;outline:none;background:var(--background);line-height:1;cursor:pointer;opacity:var(--opacity);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%;z-index:1}ion-icon{-webkit-padding-start:var(--icon-padding-start);padding-inline-start:var(--icon-padding-start);-webkit-padding-end:var(--icon-padding-end);padding-inline-end:var(--icon-padding-end);padding-top:var(--icon-padding-top);padding-bottom:var(--icon-padding-bottom);-webkit-margin-start:var(--icon-margin-start);margin-inline-start:var(--icon-margin-start);-webkit-margin-end:var(--icon-margin-end);margin-inline-end:var(--icon-margin-end);margin-top:var(--icon-margin-top);margin-bottom:var(--icon-margin-bottom);display:inherit;font-size:var(--icon-font-size);font-weight:var(--icon-font-weight);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)}}:host(.ion-color.ion-focused) .button-native{color:var(--ion-color-base)}@media (any-hover: hover){:host(.ion-color:hover) .button-native{color:var(--ion-color-base)}}:host(.in-toolbar:not(.in-toolbar-color)){color:var(--ion-toolbar-color, var(--color))}:host{--background-hover:transparent;--background-hover-opacity:1;--background-focused:currentColor;--background-focused-opacity:.1;--border-radius:4px;--color:var(--ion-color-primary, #0054e9);--icon-margin-end:1px;--icon-margin-start:-4px;--icon-font-size:1.6em;--min-height:32px;font-size:clamp(17px, 1.0625rem, 21.998px)}.button-native{-webkit-transform:translateZ(0);transform:translateZ(0);overflow:visible;z-index:99}:host(.ion-activated) .button-native{opacity:0.4}@media (any-hover: hover){:host(:hover){opacity:0.6}}',md:':host{--background:transparent;--color-focused:currentColor;--color-hover:currentColor;--icon-margin-top:0;--icon-margin-bottom:0;--icon-padding-top:0;--icon-padding-end:0;--icon-padding-bottom:0;--icon-padding-start:0;--margin-top:0;--margin-end:0;--margin-bottom:0;--margin-start:0;--min-width:auto;--min-height:auto;--padding-top:0;--padding-end:0;--padding-bottom:0;--padding-start:0;--opacity:1;--ripple-color:currentColor;--transition:background-color, opacity 100ms linear;display:none;min-width:var(--min-width);min-height:var(--min-height);color:var(--color);font-family:var(--ion-font-family, inherit);text-align:center;text-decoration:none;text-overflow:ellipsis;text-transform:none;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-font-kerning:none;font-kerning:none}ion-ripple-effect{color:var(--ripple-color)}:host(.ion-color) .button-native{color:var(--ion-color-base)}:host(.show-back-button){display:block}:host(.back-button-disabled){cursor:default;opacity:0.5;pointer-events:none}.button-native{border-radius:var(--border-radius);-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;-webkit-margin-start:var(--margin-start);margin-inline-start:var(--margin-start);-webkit-margin-end:var(--margin-end);margin-inline-end:var(--margin-end);margin-top:var(--margin-top);margin-bottom:var(--margin-bottom);-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:block;position:relative;width:100%;height:100%;min-height:inherit;-webkit-transition:var(--transition);transition:var(--transition);border:0;outline:none;background:var(--background);line-height:1;cursor:pointer;opacity:var(--opacity);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%;z-index:1}ion-icon{-webkit-padding-start:var(--icon-padding-start);padding-inline-start:var(--icon-padding-start);-webkit-padding-end:var(--icon-padding-end);padding-inline-end:var(--icon-padding-end);padding-top:var(--icon-padding-top);padding-bottom:var(--icon-padding-bottom);-webkit-margin-start:var(--icon-margin-start);margin-inline-start:var(--icon-margin-start);-webkit-margin-end:var(--icon-margin-end);margin-inline-end:var(--icon-margin-end);margin-top:var(--icon-margin-top);margin-bottom:var(--icon-margin-bottom);display:inherit;font-size:var(--icon-font-size);font-weight:var(--icon-font-weight);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)}}:host(.ion-color.ion-focused) .button-native{color:var(--ion-color-base)}@media (any-hover: hover){:host(.ion-color:hover) .button-native{color:var(--ion-color-base)}}:host(.in-toolbar:not(.in-toolbar-color)){color:var(--ion-toolbar-color, var(--color))}:host{--border-radius:4px;--background-focused:currentColor;--background-focused-opacity:.12;--background-hover:currentColor;--background-hover-opacity:0.04;--color:currentColor;--icon-margin-end:0;--icon-margin-start:0;--icon-font-size:1.5rem;--icon-font-weight:normal;--min-height:32px;--min-width:44px;--padding-start:12px;--padding-end:12px;font-size:0.875rem;font-weight:500;text-transform:uppercase}:host(.back-button-has-icon-only){--border-radius:50%;min-width:48px;min-height:48px;aspect-ratio:1/1}.button-native{-webkit-box-shadow:none;box-shadow:none}.button-text{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:4px;padding-inline-end:4px;padding-top:0;padding-bottom:0}ion-icon{line-height:0.67;text-align:start}@media (any-hover: hover){:host(.ion-color:hover) .button-native::after{background:var(--ion-color-base)}}:host(.ion-color.ion-focused) .button-native::after{background:var(--ion-color-base)}'}}},[33,"ion-back-button",{color:[513],defaultHref:[1025,"default-href"],disabled:[516],icon:[1],text:[1],type:[1],routerAnimation:[16]}]),sf=(0,eN.GH)(class extends eN.mv{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionNavWillLoad=(0,eN.yM)(this,"ionNavWillLoad",7),this.ionNavWillChange=(0,eN.yM)(this,"ionNavWillChange",3),this.ionNavDidChange=(0,eN.yM)(this,"ionNavDidChange",3),this.lockController=ia(),this.gestureOrAnimationInProgress=!1,this.mode=(0,p.b)(this),this.delegate=void 0,this.animated=!0,this.animation=void 0,this.swipeHandler=void 0}swipeHandlerChanged(){this.gesture&&this.gesture.enable(void 0!==this.swipeHandler)}async connectedCallback(){let e=()=>{this.gestureOrAnimationInProgress=!0,this.swipeHandler&&this.swipeHandler.onStart()};this.gesture=(await n.e(4613).then(n.bind(n,24613))).createSwipeBackGesture(this.el,()=>!this.gestureOrAnimationInProgress&&!!this.swipeHandler&&this.swipeHandler.canStart(),()=>e(),e=>{var t;return null===(t=this.ani)||void 0===t?void 0:t.progressStep(e)},(e,t,n)=>{if(this.ani){this.ani.onFinish(()=>{this.gestureOrAnimationInProgress=!1,this.swipeHandler&&this.swipeHandler.onEnd(e)},{oneTimeCallback:!0});let i=e?-.001:.001;e?i+=ew([0,0],[.32,.72],[0,1],[1,1],t)[0]:(this.ani.easing("cubic-bezier(1, 0, 0.68, 0.28)"),i+=ew([0,0],[1,0],[.68,.28],[1,1],t)[0]),this.ani.progressEnd(e?1:0,i,n)}else this.gestureOrAnimationInProgress=!1}),this.swipeHandlerChanged()}componentWillLoad(){this.ionNavWillLoad.emit()}disconnectedCallback(){this.gesture&&(this.gesture.destroy(),this.gesture=void 0)}async commit(e,t,n){let i=await this.lockController.lock(),r=!1;try{r=await this.transition(e,t,n)}catch(e){console.error(e)}return i(),r}async setRouteId(e,t,n,i){let r=await this.setRoot(e,t,{duration:"root"===n?0:void 0,direction:"back"===n?"back":"forward",animationBuilder:i});return{changed:r,element:this.activeEl}}async getRouteId(){let e=this.activeEl;return e?{id:e.tagName,element:e,params:this.activeParams}:void 0}async setRoot(e,t,n){if(this.activeComponent===e&&(0,f.s)(t,this.activeParams))return!1;let i=this.activeEl,r=await v(this.delegate,this.el,e,["ion-page","ion-page-invisible"],t);return this.activeComponent=e,this.activeEl=r,this.activeParams=t,await this.commit(r,i,n),await y(this.delegate,i),!0}async transition(e,t,n={}){if(t===e)return!1;this.ionNavWillChange.emit();let{el:i,mode:r}=this,o=this.animated&&p.c.getBoolean("animated",!0),a=n.animationBuilder||this.animation||p.c.get("navAnimation");return await (0,e$.t)(Object.assign(Object.assign({mode:r,animated:o,enteringEl:e,leavingEl:t,baseEl:i,deepWait:(0,f.j)(i),progressCallback:n.progressAnimation?e=>{void 0===e||this.gestureOrAnimationInProgress?this.ani=e:(this.gestureOrAnimationInProgress=!0,e.onFinish(()=>{this.gestureOrAnimationInProgress=!1,this.swipeHandler&&this.swipeHandler.onEnd(!1)},{oneTimeCallback:!0}),e.progressEnd(0,0,0))}:void 0},n),{animationBuilder:a})),this.ionNavDidChange.emit(),!0}render(){return(0,eN.h)("slot",{key:"8279a453c66a766e6e383ff59842b4ae070c13a9"})}get el(){return this}static get watchers(){return{swipeHandler:["swipeHandlerChanged"]}}static get style(){return":host{left:0;right:0;top:0;bottom:0;position:absolute;contain:layout size style;z-index:0}"}},[1,"ion-router-outlet",{mode:[1025],delegate:[16],animated:[4],animation:[16],swipeHandler:[16],commit:[64],setRouteId:[64],getRouteId:[64]},void 0,{swipeHandler:["swipeHandlerChanged"]}]),sm=(0,eN.GH)(class extends eN.mv{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionTabBarChanged=(0,eN.yM)(this,"ionTabBarChanged",7),this.ionTabBarLoaded=(0,eN.yM)(this,"ionTabBarLoaded",7),this.keyboardCtrl=null,this.keyboardVisible=!1,this.color=void 0,this.selectedTab=void 0,this.translucent=!1}selectedTabChanged(){void 0!==this.selectedTab&&this.ionTabBarChanged.emit({tab:this.selectedTab})}componentWillLoad(){this.selectedTabChanged()}async connectedCallback(){this.keyboardCtrl=await i3(async(e,t)=>{!1===e&&void 0!==t&&await t,this.keyboardVisible=e})}disconnectedCallback(){this.keyboardCtrl&&this.keyboardCtrl.destroy()}componentDidLoad(){this.ionTabBarLoaded.emit()}render(){let{color:e,translucent:t,keyboardVisible:n}=this,i=(0,p.b)(this),r=n&&"top"!==this.el.getAttribute("slot");return(0,eN.h)(eN.AA,{key:"3a8595dd83f89e8319471a7a7f9f64b2565b384c",role:"tablist","aria-hidden":r?"true":null,class:eP(e,{[i]:!0,"tab-bar-translucent":t,"tab-bar-hidden":r})},(0,eN.h)("slot",{key:"8b65eceb922f6abfa15f41046261586fb94b981f"}))}get el(){return this}static get watchers(){return{selectedTab:["selectedTabChanged"]}}static get style(){return{ios:":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, var(--ion-background-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, var(--ion-background-color-step-150, rgba(0, 0, 0, 0.2)))));--color:var(--ion-tab-bar-color, var(--ion-color-step-600, var(--ion-text-color-step-400, #666666)));--color-selected:var(--ion-tab-bar-color-selected, var(--ion-color-primary, #0054e9));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)}}",md:":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, var(--ion-background-color-step-150, rgba(0, 0, 0, 0.07)))));--color:var(--ion-tab-bar-color, var(--ion-color-step-650, var(--ion-text-color-step-350, #595959)));--color-selected:var(--ion-tab-bar-color-selected, var(--ion-color-primary, #0054e9));height:56px}"}}},[33,"ion-tab-bar",{color:[513],selectedTab:[1,"selected-tab"],translucent:[4],keyboardVisible:[32]},void 0,{selectedTab:["selectedTabChanged"]}]),sg=(0,eN.GH)(class extends eN.mv{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionTabButtonClick=(0,eN.yM)(this,"ionTabButtonClick",7),this.inheritedAttributes={},this.onKeyUp=e=>{("Enter"===e.key||" "===e.key)&&this.selectTab(e)},this.onClick=e=>{this.selectTab(e)},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(e){let t=e.target,n=this.el.parentElement;(e.composedPath().includes(n)||(null==t?void 0:t.contains(this.el)))&&(this.selected=this.tab===e.detail.tab)}componentWillLoad(){this.inheritedAttributes=Object.assign({},(0,f.d)(this.el,["aria-label"])),void 0===this.layout&&(this.layout=p.c.get("tabButtonLayout","icon-top"))}selectTab(e){void 0!==this.tab&&(this.disabled||this.ionTabButtonClick.emit({tab:this.tab,href:this.href,selected:this.selected}),e.preventDefault())}get hasLabel(){return!!this.el.querySelector("ion-label")}get hasIcon(){return!!this.el.querySelector("ion-icon")}render(){let{disabled:e,hasIcon:t,hasLabel:n,href:i,rel:r,target:o,layout:a,selected:s,tab:l,inheritedAttributes:c}=this,d=(0,p.b)(this),u={download:this.download,href:i,rel:r,target:o};return(0,eN.h)(eN.AA,{key:"4b528ce31f67e10ad849e0c99bd034bba675c227",onClick:this.onClick,onKeyup:this.onKeyUp,id:void 0!==l?`tab-button-${l}`:null,class:{[d]:!0,"tab-selected":s,"tab-disabled":e,"tab-has-label":n,"tab-has-icon":t,"tab-has-label-only":n&&!t,"tab-has-icon-only":t&&!n,[`tab-layout-${a}`]:!0,"ion-activatable":!0,"ion-selectable":!0,"ion-focusable":!0}},(0,eN.h)("a",Object.assign({key:"0da8784b1b243ffaaaf04dd7adb55d6881ed0c08"},u,{class:"button-native",part:"native",role:"tab","aria-selected":s?"true":null,"aria-disabled":e?"true":null,tabindex:e?"-1":void 0},c),(0,eN.h)("span",{key:"2c628e8f1ebc129f84876c01530468cb97d8bf3a",class:"button-inner"},(0,eN.h)("slot",{key:"8052a171d197a7de1a7eb12b091c35f73ae1ee21"})),"md"===d&&(0,eN.h)("ion-ripple-effect",{key:"4186bdb5ed045ec16f495a14fa30ac864c576227",type:"unbounded"})))}get el(){return this}static get style(){return{ios:':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}::slotted(ion-badge){inset-inline-start:calc(50% + 6px)}::slotted(ion-icon){margin-top:2px;margin-bottom:2px;font-size:24px}::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}:host(.tab-layout-icon-bottom) ::slotted(ion-badge){inset-inline-start: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}:host(.tab-layout-icon-start) ::slotted(ion-badge),:host(.tab-layout-icon-end) ::slotted(ion-badge){inset-inline-start:calc(50% + 35px)}:host(.tab-layout-icon-hide) ::slotted(ion-badge),:host(.tab-has-label-only) ::slotted(ion-badge){top:10px}:host(.tab-layout-icon-hide) ::slotted(ion-badge),:host(.tab-has-label-only) ::slotted(ion-badge){inset-inline-start: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}:host(.tab-layout-label-hide) ::slotted(ion-icon),:host(.tab-has-icon-only) ::slotted(ion-icon){font-size:30px}',md:':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}::slotted(ion-badge){inset-inline-start: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}:host(.tab-layout-icon-bottom) ::slotted(ion-badge){inset-inline-start: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}:host(.tab-layout-icon-start) ::slotted(ion-badge),:host(.tab-layout-icon-end) ::slotted(ion-badge){inset-inline-start: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}:host(.tab-layout-icon-hide) ::slotted(ion-badge),:host(.tab-has-label-only) ::slotted(ion-badge){inset-inline-start: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}'}}},[33,"ion-tab-button",{disabled:[4],download:[1],href:[1],rel:[1],layout:[1025],selected:[1028],tab:[1],target:[1]},[[8,"ionTabBarChanged","onTabBarChanged"]]]);var sb=n(80682);let sv=h.createContext({onIonViewWillEnter:()=>{},ionViewWillEnter:()=>{},onIonViewDidEnter:()=>{},ionViewDidEnter:()=>{},onIonViewWillLeave:()=>{},ionViewWillLeave:()=>{},onIonViewDidLeave:()=>{},ionViewDidLeave:()=>{},cleanupIonViewWillEnter:()=>{},cleanupIonViewDidEnter:()=>{},cleanupIonViewWillLeave:()=>{},cleanupIonViewDidLeave:()=>{}}),sy=class{constructor(){this.ionViewWillEnterCallbacks=[],this.ionViewDidEnterCallbacks=[],this.ionViewWillLeaveCallbacks=[],this.ionViewDidLeaveCallbacks=[],this.ionViewWillEnterDestructorCallbacks=[],this.ionViewDidEnterDestructorCallbacks=[],this.ionViewWillLeaveDestructorCallbacks=[],this.ionViewDidLeaveDestructorCallbacks=[]}onIonViewWillEnter(e){if(e.id){let t=this.ionViewWillEnterCallbacks.findIndex(t=>t.id===e.id);t>-1?this.ionViewWillEnterCallbacks[t]=e:this.ionViewWillEnterCallbacks.push(e)}else this.ionViewWillEnterCallbacks.push(e)}teardownCallback(e,t){let n=t.filter(t=>t.id===e.id);0!==n.length&&(n.forEach(e=>{e&&"function"==typeof e.destructor&&e.destructor()}),t=t.filter(t=>t.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=>{let t=e();e.id&&this.ionViewWillEnterDestructorCallbacks.push({id:e.id,destructor:t})})}onIonViewDidEnter(e){if(e.id){let t=this.ionViewDidEnterCallbacks.findIndex(t=>t.id===e.id);t>-1?this.ionViewDidEnterCallbacks[t]=e:this.ionViewDidEnterCallbacks.push(e)}else this.ionViewDidEnterCallbacks.push(e)}ionViewDidEnter(){this.ionViewDidEnterCallbacks.forEach(e=>{let t=e();e.id&&this.ionViewDidEnterDestructorCallbacks.push({id:e.id,destructor:t})})}onIonViewWillLeave(e){if(e.id){let t=this.ionViewWillLeaveCallbacks.findIndex(t=>t.id===e.id);t>-1?this.ionViewWillLeaveCallbacks[t]=e:this.ionViewWillLeaveCallbacks.push(e)}else this.ionViewWillLeaveCallbacks.push(e)}ionViewWillLeave(){this.ionViewWillLeaveCallbacks.forEach(e=>{let t=e();e.id&&this.ionViewWillLeaveDestructorCallbacks.push({id:e.id,destructor:t})})}onIonViewDidLeave(e){if(e.id){let t=this.ionViewDidLeaveCallbacks.findIndex(t=>t.id===e.id);t>-1?this.ionViewDidLeaveCallbacks[t]=e:this.ionViewDidLeaveCallbacks.push(e)}else this.ionViewDidLeaveCallbacks.push(e)}ionViewDidLeave(){this.ionViewDidLeaveCallbacks.forEach(e=>{let t=e();e.id&&this.ionViewDidLeaveDestructorCallbacks.push({id:e.id,destructor:t})}),this.componentCanBeDestroyed()}onComponentCanBeDestroyed(e){this.componentCanBeDestroyedCallback=e}componentCanBeDestroyed(){this.componentCanBeDestroyedCallback&&this.componentCanBeDestroyedCallback()}},sx=e=>class extends h.Component{constructor(e){super(e),this.componentRef=h.createRef()}componentDidMount(){let e=this.componentRef.current;this.context.onIonViewWillEnter(()=>{e&&e.ionViewWillEnter&&e.ionViewWillEnter()}),this.context.onIonViewDidEnter(()=>{e&&e.ionViewDidEnter&&e.ionViewDidEnter()}),this.context.onIonViewWillLeave(()=>{e&&e.ionViewWillLeave&&e.ionViewWillLeave()}),this.context.onIonViewDidLeave(()=>{e&&e.ionViewDidLeave&&e.ionViewDidLeave()})}render(){return h.createElement(sv.Consumer,null,t=>(this.context=t,h.createElement(e,Object.assign({ref:this.componentRef},this.props))))}},sw=(e,t=[])=>{let n=(0,h.useContext)(sv),i=(0,h.useRef)();i.current=i.current||Math.floor(1e6*Math.random()),(0,h.useEffect)(()=>(e.id=i.current,n.onIonViewWillEnter(e),()=>{n.cleanupIonViewWillEnter(e)}),t)},sk=(e,t=[])=>{let n=(0,h.useContext)(sv),i=(0,h.useRef)();i.current=i.current||Math.floor(1e6*Math.random()),(0,h.useEffect)(()=>(e.id=i.current,n.onIonViewDidEnter(e),()=>{n.cleanupIonViewDidEnter(e)}),t)},s_=(e,t=[])=>{let n=(0,h.useContext)(sv),i=(0,h.useRef)();i.current=i.current||Math.floor(1e6*Math.random()),(0,h.useEffect)(()=>(e.id=i.current,n.onIonViewWillLeave(e),()=>{n.cleanupIonViewWillLeave(e)}),t)},sE=(e,t=[])=>{let n=(0,h.useContext)(sv),i=(0,h.useRef)();i.current=i.current||Math.floor(1e6*Math.random()),(0,h.useEffect)(()=>(e.id=i.current,n.onIonViewDidLeave(e),()=>{n.cleanupIonViewDidLeave(e)}),t)},sS=h.createContext({getIonRedirect:()=>void 0,getIonRoute:()=>void 0,getPageManager:()=>void 0,getStackManager:()=>void 0,goBack:e=>{"undefined"!=typeof window&&("string"==typeof e?window.location.pathname=e:window.history.back())},navigate:e=>{"undefined"!=typeof window&&(window.location.pathname=e)},hasIonicRouter:()=>!1,routeInfo:void 0,setCurrentTab:()=>void 0,changeTab:(e,t)=>{"undefined"!=typeof window&&(window.location.pathname=t)},resetTab:(e,t)=>{"undefined"!=typeof window&&(window.location.pathname=t)}}),sC=e=>e.toLowerCase().split("-").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(""),sP=e=>e.replace(/([A-Z])/g,e=>`-${e[0].toLowerCase()}`),sT=(e,t,n={})=>{if(e instanceof Element){let i=sO(e.classList,t,n);""!==i&&(e.className=i),Object.keys(t).forEach(n=>{if("children"!==n&&"style"!==n&&"ref"!==n&&"class"!==n&&"className"!==n&&"forwardedRef"!==n){if(0===n.indexOf("on")&&n[2]===n[2].toUpperCase()){let i=n.substring(2),r=i[0].toLowerCase()+i.substring(1);sI(r)||sR(e,r,t[n])}else{e[n]=t[n];let i=typeof t[n];"string"===i&&e.setAttribute(sP(n),t[n])}}})}},sO=(e,t,n)=>{let i=t.className||t.class,r=n.className||n.class,o=s$(e),a=s$(i?i.split(" "):[]),s=s$(r?r.split(" "):[]),l=[];return o.forEach(e=>{a.has(e)?(l.push(e),a.delete(e)):s.has(e)||l.push(e)}),a.forEach(e=>l.push(e)),l.join(" ")},sA=e=>"doubleclick"===e?"dblclick":e,sI=e=>{if("undefined"==typeof document)return!0;{let t="on"+sA(e),n=t in document;if(!n){let e=document.createElement("div");e.setAttribute(t,"return;"),n="function"==typeof e[t]}return n}},sR=(e,t,n)=>{let i=e.__events||(e.__events={}),r=i[t];r&&e.removeEventListener(t,r),e.addEventListener(t,i[t]=function(e){n&&n.call(this,e)})},s$=e=>{let t=new Map;return e.forEach(e=>t.set(e,e)),t},sL=(e,t)=>{"function"==typeof e?e(t):null!=e&&(e.current=t)},sM=(...e)=>t=>{e.forEach(e=>{sL(e,t)})},sj=(e,t)=>{let n=(t,n)=>h.createElement(e,Object.assign({},t,{forwardedRef:n}));return n.displayName=t,h.forwardRef(n)},sD=(e,t)=>{void 0===t||"undefined"==typeof customElements||customElements.get(e)||customElements.define(e,t)},sN=(e,t,n,i)=>{void 0!==i&&i();let r=sC(e),o=class extends h.Component{constructor(e){super(e),this.setComponentElRef=e=>{this.componentEl=e}}componentDidMount(){this.componentDidUpdate(this.props)}componentDidUpdate(e){sT(this.componentEl,this.props,e)}render(){let t=this.props,{children:i,forwardedRef:r,style:o,className:a,ref:s}=t,l=(0,ej._T)(t,["children","forwardedRef","style","className","ref"]),c=Object.keys(l).reduce((e,t)=>{let n=l[t];if(0===t.indexOf("on")&&t[2]===t[2].toUpperCase()){let i=t.substring(2).toLowerCase();"undefined"!=typeof document&&sI(i)&&(e[t]=n)}else{let i=typeof n;("string"===i||"boolean"===i||"number"===i)&&(e[sP(t)]=n)}return e},{});n&&(c=n(this.props,c));let d=Object.assign(Object.assign({},c),{ref:sM(r,this.setComponentElRef),style:o});return(0,h.createElement)(e,d,i)}static get displayName(){return r}};return t&&(o.contextType=t),sj(o,r)},sF=sN("ion-accordion",void 0,void 0,function(){"undefined"!=typeof customElements&&["ion-accordion","ion-icon"].forEach(e=>{switch(e){case"ion-accordion":customElements.get(e)||customElements.define(e,tr);break;case"ion-icon":customElements.get(e)||ti()}})}),sz=sN("ion-accordion-group",void 0,void 0,function(){"undefined"!=typeof customElements&&["ion-accordion-group"].forEach(e=>{"ion-accordion-group"===e&&(customElements.get(e)||customElements.define(e,ta))})}),sB=sN("ion-avatar",void 0,void 0,function(){"undefined"!=typeof customElements&&["ion-avatar"].forEach(e=>{"ion-avatar"===e&&(customElements.get(e)||customElements.define(e,ts))})}),sH=sN("ion-backdrop",void 0,void 0,tc),sU=sN("ion-badge",void 0,void 0,function(){"undefined"!=typeof customElements&&["ion-badge"].forEach(e=>{"ion-badge"===e&&(customElements.get(e)||customElements.define(e,td))})}),sV=sN("ion-breadcrumbs",void 0,void 0,function(){"undefined"!=typeof customElements&&["ion-breadcrumbs"].forEach(e=>{"ion-breadcrumbs"===e&&(customElements.get(e)||customElements.define(e,tu))})}),sW=sN("ion-buttons",void 0,void 0,tp),sq=sN("ion-card-content",void 0,void 0,function(){"undefined"!=typeof customElements&&["ion-card-content"].forEach(e=>{"ion-card-content"===e&&(customElements.get(e)||customElements.define(e,tf))})}),sG=sN("ion-card-header",void 0,void 0,function(){"undefined"!=typeof customElements&&["ion-card-header"].forEach(e=>{"ion-card-header"===e&&(customElements.get(e)||customElements.define(e,tm))})}),sX=sN("ion-card-subtitle",void 0,void 0,function(){"undefined"!=typeof customElements&&["ion-card-subtitle"].forEach(e=>{"ion-card-subtitle"===e&&(customElements.get(e)||customElements.define(e,tg))})}),sY=sN("ion-card-title",void 0,void 0,function(){"undefined"!=typeof customElements&&["ion-card-title"].forEach(e=>{"ion-card-title"===e&&(customElements.get(e)||customElements.define(e,tb))})}),sK=sN("ion-checkbox",void 0,void 0,tx),sJ=sN("ion-chip",void 0,void 0,function(){"undefined"!=typeof customElements&&["ion-chip","ion-ripple-effect"].forEach(e=>{switch(e){case"ion-chip":customElements.get(e)||customElements.define(e,tC);break;case"ion-ripple-effect":customElements.get(e)||tS()}})}),sZ=sN("ion-col",void 0,void 0,function(){"undefined"!=typeof customElements&&["ion-col"].forEach(e=>{"ion-col"===e&&(customElements.get(e)||customElements.define(e,tR))})}),sQ=sN("ion-content",void 0,void 0,function(){"undefined"!=typeof customElements&&["ion-content"].forEach(e=>{"ion-content"===e&&(customElements.get(e)||customElements.define(e,tL))})}),s0=sN("ion-datetime",void 0,void 0,function(){"undefined"!=typeof customElements&&["ion-datetime","ion-backdrop","ion-button","ion-buttons","ion-icon","ion-picker","ion-picker-column","ion-picker-column-option","ion-popover","ion-ripple-effect"].forEach(e=>{switch(e){case"ion-datetime":customElements.get(e)||customElements.define(e,iW);break;case"ion-backdrop":customElements.get(e)||tc();break;case"ion-button":customElements.get(e)||nQ();break;case"ion-buttons":customElements.get(e)||tp();break;case"ion-icon":customElements.get(e)||ti();break;case"ion-picker":customElements.get(e)||n1();break;case"ion-picker-column":customElements.get(e)||ii();break;case"ion-picker-column-option":customElements.get(e)||io();break;case"ion-popover":customElements.get(e)||iM();break;case"ion-ripple-effect":customElements.get(e)||tS()}})}),s1=sN("ion-datetime-button",void 0,void 0,function(){"undefined"!=typeof customElements&&["ion-datetime-button","ion-ripple-effect"].forEach(e=>{switch(e){case"ion-datetime-button":customElements.get(e)||customElements.define(e,iJ);break;case"ion-ripple-effect":customElements.get(e)||tS()}})}),s2=sN("ion-fab",void 0,void 0,function(){"undefined"!=typeof customElements&&["ion-fab"].forEach(e=>{"ion-fab"===e&&(customElements.get(e)||customElements.define(e,iZ))})}),s5=sN("ion-fab-list",void 0,void 0,function(){"undefined"!=typeof customElements&&["ion-fab-list"].forEach(e=>{"ion-fab-list"===e&&(customElements.get(e)||customElements.define(e,iQ))})}),s3=sN("ion-footer",void 0,void 0,function(){"undefined"!=typeof customElements&&["ion-footer"].forEach(e=>{"ion-footer"===e&&(customElements.get(e)||customElements.define(e,i6))})}),s4=sN("ion-grid",void 0,void 0,function(){"undefined"!=typeof customElements&&["ion-grid"].forEach(e=>{"ion-grid"===e&&(customElements.get(e)||customElements.define(e,i8))})}),s6=sN("ion-header",void 0,void 0,function(){"undefined"!=typeof customElements&&["ion-header"].forEach(e=>{"ion-header"===e&&(customElements.get(e)||customElements.define(e,rs))})}),s8=sN("ion-img",void 0,void 0,function(){"undefined"!=typeof customElements&&["ion-img"].forEach(e=>{"ion-img"===e&&(customElements.get(e)||customElements.define(e,rl))})}),s9=sN("ion-infinite-scroll",void 0,void 0,function(){"undefined"!=typeof customElements&&["ion-infinite-scroll"].forEach(e=>{"ion-infinite-scroll"===e&&(customElements.get(e)||customElements.define(e,rd))})}),s7=sN("ion-infinite-scroll-content",void 0,void 0,function(){"undefined"!=typeof customElements&&["ion-infinite-scroll-content","ion-spinner"].forEach(e=>{switch(e){case"ion-infinite-scroll-content":customElements.get(e)||customElements.define(e,rg);break;case"ion-spinner":customElements.get(e)||rm()}})}),le=sN("ion-input",void 0,void 0,function(){"undefined"!=typeof customElements&&["ion-input","ion-icon"].forEach(e=>{switch(e){case"ion-input":customElements.get(e)||customElements.define(e,rw);break;case"ion-icon":customElements.get(e)||ti()}})}),lt=sN("ion-input-password-toggle",void 0,void 0,function(){"undefined"!=typeof customElements&&["ion-input-password-toggle","ion-button","ion-icon","ion-ripple-effect"].forEach(e=>{switch(e){case"ion-input-password-toggle":customElements.get(e)||customElements.define(e,r_);break;case"ion-button":customElements.get(e)||nQ();break;case"ion-icon":customElements.get(e)||ti();break;case"ion-ripple-effect":customElements.get(e)||tS()}})}),ln=sN("ion-item-divider",void 0,void 0,function(){"undefined"!=typeof customElements&&["ion-item-divider"].forEach(e=>{"ion-item-divider"===e&&(customElements.get(e)||customElements.define(e,rE))})}),li=sN("ion-item-group",void 0,void 0,function(){"undefined"!=typeof customElements&&["ion-item-group"].forEach(e=>{"ion-item-group"===e&&(customElements.get(e)||customElements.define(e,rS))})}),lr=sN("ion-item-options",void 0,void 0,function(){"undefined"!=typeof customElements&&["ion-item-options"].forEach(e=>{"ion-item-options"===e&&(customElements.get(e)||customElements.define(e,rC))})}),lo=sN("ion-item-sliding",void 0,void 0,function(){"undefined"!=typeof customElements&&["ion-item-sliding"].forEach(e=>{"ion-item-sliding"===e&&(customElements.get(e)||customElements.define(e,rA))})}),la=sN("ion-label",void 0,void 0,r$),ls=sN("ion-list",void 0,void 0,rM),ll=sN("ion-list-header",void 0,void 0,rD),lc=sN("ion-menu",void 0,void 0,function(){"undefined"!=typeof customElements&&["ion-menu","ion-backdrop"].forEach(e=>{switch(e){case"ion-menu":customElements.get(e)||customElements.define(e,rU);break;case"ion-backdrop":customElements.get(e)||tc()}})}),ld=sN("ion-menu-button",void 0,void 0,function(){"undefined"!=typeof customElements&&["ion-menu-button","ion-icon","ion-ripple-effect"].forEach(e=>{switch(e){case"ion-menu-button":customElements.get(e)||customElements.define(e,rK);break;case"ion-icon":customElements.get(e)||ti();break;case"ion-ripple-effect":customElements.get(e)||tS()}})}),lu=sN("ion-menu-toggle",void 0,void 0,function(){"undefined"!=typeof customElements&&["ion-menu-toggle"].forEach(e=>{"ion-menu-toggle"===e&&(customElements.get(e)||customElements.define(e,rJ))})}),lh=sN("ion-nav-link",void 0,void 0,function(){"undefined"!=typeof customElements&&["ion-nav-link"].forEach(e=>{"ion-nav-link"===e&&(customElements.get(e)||customElements.define(e,r3))})}),lp=sN("ion-note",void 0,void 0,function(){"undefined"!=typeof customElements&&["ion-note"].forEach(e=>{"ion-note"===e&&(customElements.get(e)||customElements.define(e,r4))})}),lf=sN("ion-picker",void 0,void 0,n1),lm=sN("ion-picker-column",void 0,void 0,ii),lg=sN("ion-picker-column-option",void 0,void 0,io),lb=sN("ion-progress-bar",void 0,void 0,function(){"undefined"!=typeof customElements&&["ion-progress-bar"].forEach(e=>{"ion-progress-bar"===e&&(customElements.get(e)||customElements.define(e,r6))})}),lv=sN("ion-radio",void 0,void 0,oi),ly=sN("ion-radio-group",void 0,void 0,oa),lx=sN("ion-range",void 0,void 0,function(){"undefined"!=typeof customElements&&["ion-range"].forEach(e=>{"ion-range"===e&&(customElements.get(e)||customElements.define(e,Range))})}),lw=sN("ion-refresher",void 0,void 0,function(){"undefined"!=typeof customElements&&["ion-refresher"].forEach(e=>{"ion-refresher"===e&&(customElements.get(e)||customElements.define(e,o_))})}),lk=sN("ion-refresher-content",void 0,void 0,function(){"undefined"!=typeof customElements&&["ion-refresher-content","ion-icon","ion-spinner"].forEach(e=>{switch(e){case"ion-refresher-content":customElements.get(e)||customElements.define(e,oE);break;case"ion-icon":customElements.get(e)||ti();break;case"ion-spinner":customElements.get(e)||rm()}})}),l_=sN("ion-reorder",void 0,void 0,function(){"undefined"!=typeof customElements&&["ion-reorder","ion-icon"].forEach(e=>{switch(e){case"ion-reorder":customElements.get(e)||customElements.define(e,oS);break;case"ion-icon":customElements.get(e)||ti()}})}),lE=sN("ion-reorder-group",void 0,void 0,function(){"undefined"!=typeof customElements&&["ion-reorder-group"].forEach(e=>{"ion-reorder-group"===e&&(customElements.get(e)||customElements.define(e,oC))})}),lS=sN("ion-ripple-effect",void 0,void 0,tS),lC=sN("ion-row",void 0,void 0,function(){"undefined"!=typeof customElements&&["ion-row"].forEach(e=>{"ion-row"===e&&(customElements.get(e)||customElements.define(e,o$))})}),lP=sN("ion-searchbar",void 0,void 0,function(){"undefined"!=typeof customElements&&["ion-searchbar","ion-icon"].forEach(e=>{switch(e){case"ion-searchbar":customElements.get(e)||customElements.define(e,oL);break;case"ion-icon":customElements.get(e)||ti()}})}),lT=sN("ion-segment",void 0,void 0,function(){"undefined"!=typeof customElements&&["ion-segment"].forEach(e=>{"ion-segment"===e&&(customElements.get(e)||customElements.define(e,oj))})}),lO=sN("ion-segment-button",void 0,void 0,function(){"undefined"!=typeof customElements&&["ion-segment-button","ion-ripple-effect"].forEach(e=>{switch(e){case"ion-segment-button":customElements.get(e)||customElements.define(e,oN);break;case"ion-ripple-effect":customElements.get(e)||tS()}})}),lA=sN("ion-select",void 0,void 0,function(){"undefined"!=typeof customElements&&["ion-select","ion-action-sheet","ion-alert","ion-backdrop","ion-checkbox","ion-icon","ion-item","ion-label","ion-list","ion-list-header","ion-popover","ion-radio","ion-radio-group","ion-ripple-effect","ion-select-popover"].forEach(e=>{switch(e){case"ion-select":customElements.get(e)||customElements.define(e,o3);break;case"ion-action-sheet":customElements.get(e)||oq();break;case"ion-alert":customElements.get(e)||o0();break;case"ion-backdrop":customElements.get(e)||tc();break;case"ion-checkbox":customElements.get(e)||tx();break;case"ion-icon":customElements.get(e)||ti();break;case"ion-item":customElements.get(e)||o2();break;case"ion-label":customElements.get(e)||r$();break;case"ion-list":customElements.get(e)||rM();break;case"ion-list-header":customElements.get(e)||rD();break;case"ion-popover":customElements.get(e)||iM();break;case"ion-radio":customElements.get(e)||oi();break;case"ion-radio-group":customElements.get(e)||oa();break;case"ion-ripple-effect":customElements.get(e)||tS();break;case"ion-select-popover":customElements.get(e)||"undefined"!=typeof customElements&&["ion-select-popover","ion-checkbox","ion-icon","ion-item","ion-label","ion-list","ion-list-header","ion-radio","ion-radio-group","ion-ripple-effect"].forEach(e=>{switch(e){case"ion-select-popover":customElements.get(e)||customElements.define(e,o5);break;case"ion-checkbox":customElements.get(e)||tx();break;case"ion-icon":customElements.get(e)||ti();break;case"ion-item":customElements.get(e)||o2();break;case"ion-label":customElements.get(e)||r$();break;case"ion-list":customElements.get(e)||rM();break;case"ion-list-header":customElements.get(e)||rD();break;case"ion-radio":customElements.get(e)||oi();break;case"ion-radio-group":customElements.get(e)||oa();break;case"ion-ripple-effect":customElements.get(e)||tS()}})}})}),lI=sN("ion-select-option",void 0,void 0,function(){"undefined"!=typeof customElements&&["ion-select-option"].forEach(e=>{"ion-select-option"===e&&(customElements.get(e)||customElements.define(e,at))})}),lR=sN("ion-skeleton-text",void 0,void 0,function(){"undefined"!=typeof customElements&&["ion-skeleton-text"].forEach(e=>{"ion-skeleton-text"===e&&(customElements.get(e)||customElements.define(e,ai))})}),l$=sN("ion-spinner",void 0,void 0,rm),lL=sN("ion-split-pane",void 0,void 0,function(){"undefined"!=typeof customElements&&["ion-split-pane"].forEach(e=>{"ion-split-pane"===e&&(customElements.get(e)||customElements.define(e,as))})}),lM=sN("ion-tab",void 0,void 0,function(){"undefined"!=typeof customElements&&["ion-tab"].forEach(e=>{"ion-tab"===e&&(customElements.get(e)||customElements.define(e,ac))})}),lj=sN("ion-text",void 0,void 0,function(){"undefined"!=typeof customElements&&["ion-text"].forEach(e=>{"ion-text"===e&&(customElements.get(e)||customElements.define(e,Text))})}),lD=sN("ion-textarea",void 0,void 0,function(){"undefined"!=typeof customElements&&["ion-textarea"].forEach(e=>{"ion-textarea"===e&&(customElements.get(e)||customElements.define(e,ad))})}),lN=sN("ion-thumbnail",void 0,void 0,function(){"undefined"!=typeof customElements&&["ion-thumbnail"].forEach(e=>{"ion-thumbnail"===e&&(customElements.get(e)||customElements.define(e,ah))})}),lF=sN("ion-title",void 0,void 0,function(){"undefined"!=typeof customElements&&["ion-title"].forEach(e=>{"ion-title"===e&&(customElements.get(e)||customElements.define(e,ap))})}),lz=sN("ion-toggle",void 0,void 0,function(){"undefined"!=typeof customElements&&["ion-toggle","ion-icon"].forEach(e=>{switch(e){case"ion-toggle":customElements.get(e)||customElements.define(e,af);break;case"ion-icon":customElements.get(e)||ti()}})}),lB=sN("ion-toolbar",void 0,void 0,function(){"undefined"!=typeof customElements&&["ion-toolbar"].forEach(e=>{"ion-toolbar"===e&&(customElements.get(e)||customElements.define(e,ab))})}),lH=(e,t)=>{let n=(t,n)=>h.createElement(e,Object.assign({},t,{forwardedRef:n}));return n.displayName=t,h.forwardRef(n)},lU=e=>(0,p.a)(window,e),lV=()=>(0,p.g)(window),lW=()=>{if("undefined"!=typeof window){let e=window.Ionic;if(e&&e.config)return e.config}return null},lq=(e,t)=>{sD(e,t);let n=sC(e),i=class extends h.Component{constructor(e){super(e),this.handleClick=e=>{let{routerLink:t,routerDirection:n,routerOptions:i,routerAnimation:r}=this.props;void 0!==t&&(e.preventDefault(),this.context.navigate(t,n,void 0,r,i))},this.ref=h.createRef(),this.stableMergedRefs=sM(this.ref,this.props.forwardedRef)}componentDidMount(){this.componentDidUpdate(this.props)}componentDidUpdate(e){let t=this.ref.current;sT(t,this.props,e)}render(){let t=this.props,{children:n,forwardedRef:i,style:r,className:o,ref:a}=t,s=(0,ej._T)(t,["children","forwardedRef","style","className","ref"]),l=Object.keys(s).reduce((e,t)=>{if(0===t.indexOf("on")&&t[2]===t[2].toUpperCase()){let n=t.substring(2).toLowerCase();sI(n)&&(e[t]=s[t])}else["string","boolean","number"].includes(typeof s[t])&&(e[sP(t)]=s[t]);return e},{}),c=Object.assign(Object.assign({},l),{ref:this.stableMergedRefs,style:r});if(this.props.routerLink&&!this.props.href&&(c.href=this.props.routerLink),c.onClick){let e=c.onClick;c.onClick=t=>{e(t),t.defaultPrevented||this.handleClick(t)}}else c.onClick=this.handleClick;return(0,h.createElement)(e,c,n)}static get displayName(){return n}static get contextType(){return sS}};return lH(i,n)},lG=lq("ion-router-link",ak),lX=lq("ion-button",nZ),lY=lq("ion-card",ay),lK=lq("ion-fab-button",ax),lJ=lq("ion-item",o1),lZ=lq("ion-item-option",aw),lQ=lq("ion-breadcrumb",av),l0=(e,t)=>{e instanceof Element&&Object.keys(t).forEach(t=>{if(0===t.indexOf("on")&&t[2]===t[2].toUpperCase()){let n=t.substring(2),i=n[0].toLowerCase()+n.substring(1);sI(i)||l1(e,i)}})},l1=(e,t)=>{let n=e.__events||(e.__events={}),i=n[t];i&&(e.removeEventListener(t,i),n[t]=void 0)},l2=(e,t,n)=>{t&&t();let i=sC(e),r=class extends h.Component{constructor(e){super(e),this.handleIonMount=()=>{this.setState({isOpen:!0})},this.handleWillPresent=e=>{this.setState({isOpen:!0}),this.props.onWillPresent&&this.props.onWillPresent(e)},this.handleDidDismiss=e=>{let t=this.wrapperRef.current,n=this.ref.current;t&&n&&(n.append(t),this.setState({isOpen:!1})),this.props.onDidDismiss&&this.props.onDidDismiss(e)},this.ref=h.createRef(),this.stableMergedRefs=sM(this.ref,this.props.forwardedRef),this.state={isOpen:!1},this.wrapperRef=h.createRef()}componentDidMount(){var e,t,n;this.componentDidUpdate(this.props),null===(e=this.ref.current)||void 0===e||e.addEventListener("ionMount",this.handleIonMount),null===(t=this.ref.current)||void 0===t||t.addEventListener("willPresent",this.handleWillPresent),null===(n=this.ref.current)||void 0===n||n.addEventListener("didDismiss",this.handleDidDismiss)}componentDidUpdate(e){let t=this.ref.current,n=this.props,i=(0,ej._T)(n,["onDidDismiss","onWillPresent"]);sT(t,i,e)}componentWillUnmount(){let e=this.ref.current;e&&this.state.isOpen&&(e.removeEventListener("didDismiss",this.handleDidDismiss),e.remove(),l0(e,this.props))}render(){let t=this.props,{children:i,forwardedRef:r,style:o,className:a,ref:s}=t,l=(0,ej._T)(t,["children","forwardedRef","style","className","ref"]),c=Object.keys(l).reduce((e,t)=>{if(0===t.indexOf("on")&&t[2]===t[2].toUpperCase()){let n=t.substring(2).toLowerCase();sI(n)&&(e[t]=l[t])}else["string","boolean","number"].includes(typeof l[t])&&(e[sP(t)]=l[t]);return e},{}),d=Object.assign(Object.assign({},c),{ref:this.stableMergedRefs,style:o});return(0,h.createElement)("template",{},(0,h.createElement)(e,d,this.state.isOpen||this.props.keepContentsMounted?(0,h.createElement)("div",{ref:this.wrapperRef,className:n?`${l5} ion-page`:l5},i):null))}static get displayName(){return i}};return lH(r,i)},l5="ion-delegate-host",l3=l2("ion-alert",o0),l4=l2("ion-loading",aT),l6=l2("ion-toast",aN),l8=l2("ion-picker-legacy",aY),l9=l2("ion-action-sheet",oq),l7=l2("ion-modal",sc,!0),ce=l2("ion-popover",iM),ct=h.createContext({addOverlay:()=>{},removeOverlay:()=>{}}),cn=({onAddOverlay:e,onRemoveOverlay:t})=>{let[n,i]=(0,h.useState)({}),r=(0,h.useRef)({});(0,h.useEffect)(()=>{e(o),t(a)},[]);let o=(e,t,n)=>{let o=Object.assign({},r.current);o[e]={component:t,containerElement:n},r.current=o,i(o)},a=e=>{let t=Object.assign({},r.current);delete t[e],r.current=t,i(t)},s=Object.keys(n);return h.createElement(h.Fragment,null,s.map(e=>{let t=n[e];return eD.createPortal(t.component,t.containerElement,`overlay-${e}`)}))},ci=sN("ion-tab-button",void 0,void 0,function(){"undefined"!=typeof customElements&&["ion-tab-button","ion-ripple-effect"].forEach(e=>{switch(e){case"ion-tab-button":customElements.get(e)||customElements.define(e,sg);break;case"ion-ripple-effect":customElements.get(e)||tS()}})}),cr=sN("ion-tab-bar",void 0,void 0,function(){"undefined"!=typeof customElements&&["ion-tab-bar"].forEach(e=>{"ion-tab-bar"===e&&(customElements.get(e)||customElements.define(e,sm))})}),co=sN("ion-back-button",void 0,void 0,function(){"undefined"!=typeof customElements&&["ion-back-button","ion-icon","ion-ripple-effect"].forEach(e=>{switch(e){case"ion-back-button":customElements.get(e)||customElements.define(e,sp);break;case"ion-icon":customElements.get(e)||ti();break;case"ion-ripple-effect":customElements.get(e)||tS()}})}),ca=sN("ion-router-outlet",void 0,void 0,function(){"undefined"!=typeof customElements&&["ion-router-outlet"].forEach(e=>{"ion-router-outlet"===e&&(customElements.get(e)||customElements.define(e,sf))})}),cs=sN("ion-app",void 0,void 0,function(){"undefined"!=typeof customElements&&["ion-app"].forEach(e=>{"ion-app"===e&&(customElements.get(e)||customElements.define(e,sd))})}),cl=sN("ion-icon",void 0,void 0,sb.M),cc=class extends h.Component{constructor(e){super(e),this.ionContext={addOverlay:(e,t,n)=>{this.addOverlayCallback&&this.addOverlayCallback(e,t,n)},removeOverlay:e=>{this.removeOverlayCallback&&this.removeOverlayCallback(e)}}}render(){return h.createElement(ct.Provider,{value:this.ionContext},h.createElement(cs,Object.assign({},this.props),this.props.children),h.createElement(cn,{onAddOverlay:e=>{this.addOverlayCallback=e},onRemoveOverlay:e=>{this.removeOverlayCallback=e}}))}static get displayName(){return"IonApp"}},cd=h.createContext({registerIonPage:()=>void 0,isInOutlet:()=>!1});class cu extends h.PureComponent{constructor(e){super(e),this.ionPageElementRef=h.createRef(),this.stableMergedRefs=sM(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))}ionViewWillEnterHandler(){this.ionLifeCycleContext.ionViewWillEnter()}ionViewDidEnterHandler(){this.ionLifeCycleContext.ionViewDidEnter()}ionViewWillLeaveHandler(){this.ionLifeCycleContext.ionViewWillLeave()}ionViewDidLeaveHandler(){this.ionLifeCycleContext.ionViewDidLeave()}render(){let e=this.props,{className:t,children:n,routeInfo:i,forwardedRef:r}=e,o=(0,ej._T)(e,["className","children","routeInfo","forwardedRef"]);return h.createElement(sv.Consumer,null,e=>(this.ionLifeCycleContext=e,h.createElement("div",Object.assign({className:t?`${t} ion-page`:"ion-page",ref:this.stableMergedRefs},o),n)))}static get contextType(){return cd}}class ch extends h.Component{constructor(e){super(e)}render(){let e=this.props,{className:t,children:n,forwardedRef:i}=e,r=(0,ej._T)(e,["className","children","forwardedRef"]);return this.context.hasIonicRouter()?h.createElement(cu,Object.assign({className:t?`${t}`:"",routeInfo:this.context.routeInfo,forwardedRef:i},r),n):h.createElement("div",Object.assign({className:t?`ion-page ${t}`:"ion-page",ref:i},r),n)}static get displayName(){return"IonPage"}static get contextType(){return sS}}let cp=lH(ch,"IonPage"),cf={main:0},cm=(e="main")=>{var t;let n=(null!==(t=cf[e])&&void 0!==t?t:0)+1;return cf[e]=n,n.toString()},cg=(e,t)=>{let n=new WeakMap,i=`react-delegate-${cm()}`,r=0,o=async(t,o,a,s)=>{let l=document.createElement("div");s&&l.classList.add(...s),t.appendChild(l);let c=o(a),d=`${i}-${r++}`,u=(0,eD.createPortal)(c,l,d);return n.set(l,u),e(u),Promise.resolve(l)};return{attachViewToDom:o,removeViewFromDom:(e,i)=>{let r=n.get(i);return r&&t(r),i.remove(),Promise.resolve()}}},cb=sN("ion-nav",void 0,void 0,function(){"undefined"!=typeof customElements&&["ion-nav"].forEach(e=>{"ion-nav"===e&&(customElements.get(e)||customElements.define(e,r2))})}),cv=lH(e=>{var{children:t,forwardedRef:n}=e,i=(0,ej._T)(e,["children","forwardedRef"]);let[r,o]=(0,h.useState)([]),a=e=>o(t=>[...t,e]),s=e=>o(t=>t.filter(t=>t!==e)),l=(0,h.useMemo)(()=>cg(a,s),[]);return h.createElement(cb,Object.assign({delegate:l,ref:n},i),r)},"IonNav"),cy=h.createContext({activeTab:void 0,selectTab:()=>!1}),cx="undefined"!=typeof HTMLElement?HTMLElement:class{};class cw extends h.Component{constructor(e){super(e),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||(0,f.c)(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(){let e=this.props,{StackManager:t,children:n,routeInfo:i}=e,r=(0,ej._T)(e,["StackManager","children","routeInfo"]);return h.createElement(sv.Consumer,null,e=>(this.ionLifeCycleContext=e,h.createElement(t,{routeInfo:i},h.createElement(ca,Object.assign({setRef:e=>this.ionRouterOutlet=e},r),n))))}static get contextType(){return cd}}class ck extends h.Component{constructor(e){super(e)}render(){let e=this.context.getStackManager(),t=this.props,{children:n,forwardedRef:i}=t,r=(0,ej._T)(t,["children","forwardedRef"]);return this.context.hasIonicRouter()?r.ionPage?h.createElement(cw,Object.assign({StackManager:e,routeInfo:this.context.routeInfo},r),n):h.createElement(e,{routeInfo:this.context.routeInfo},h.createElement(ca,Object.assign({},r,{forwardedRef:i}),n)):h.createElement(ca,Object.assign({ref:i},this.props),this.props.children)}static get contextType(){return sS}}let c_=lH(ck,"IonRouterOutlet"),cE=class extends h.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(){let e=this.props,t=(0,ej._T)(e,["onClick"]);return h.createElement(ci,Object.assign({onIonTabButtonClick:this.handleIonTabButtonClick},t))}static get displayName(){return"IonTabButton"}};class cS extends h.PureComponent{constructor(e){super(e),this.setActiveTabOnContext=e=>{};let t={};h.Children.forEach(e.children,n=>{var i,r,o,a;null!=n&&"object"==typeof n&&n.props&&(n.type===cE||n.type.isTabButton)&&(t[n.props.tab]={originalHref:n.props.href,currentHref:n.props.href,originalRouteOptions:n.props.href===(null===(i=e.routeInfo)||void 0===i?void 0:i.pathname)?null===(r=e.routeInfo)||void 0===r?void 0:r.routeOptions:void 0,currentRouteOptions:n.props.href===(null===(o=e.routeInfo)||void 0===o?void 0:o.pathname)?null===(a=e.routeInfo)||void 0===a?void 0:a.routeOptions:void 0})}),this.state={tabs:t},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(){let e=this.state.tabs,t=Object.keys(e),n=t.find(t=>{let n=e[t].originalHref;return this.props.routeInfo.pathname.startsWith(n)});n&&this.setState({activeTab:n})}componentDidUpdate(){this.state.activeTab&&this.setActiveTabOnContext(this.state.activeTab)}selectTab(e){let t=this.state.tabs[e];return!!t&&(this.onTabButtonClick(new CustomEvent("ionTabButtonClick",{detail:{href:t.currentHref,tab:e,selected:e===this.state.activeTab,routeOptions:void 0}})),!0)}static getDerivedStateFromProps(e,t){var n,i,r;let o=Object.assign({},t.tabs),a=Object.keys(t.tabs),s=a.find(n=>{let i=t.tabs[n].originalHref;return e.routeInfo.pathname.startsWith(i)});h.Children.forEach(e.children,e=>{if(null!=e&&"object"==typeof e&&e.props&&(e.type===cE||e.type.isTabButton)){let t=o[e.props.tab];t&&t.originalHref===e.props.href||(o[e.props.tab]={originalHref:e.props.href,currentHref:e.props.href,originalRouteOptions:e.props.routeOptions,currentRouteOptions:e.props.routeOptions})}});let{activeTab:l}=t;if(s&&l){let a=t.tabs[l].currentHref,c=t.tabs[l].currentRouteOptions;(s!==l||a!==(null===(n=e.routeInfo)||void 0===n?void 0:n.pathname)||c!==(null===(i=e.routeInfo)||void 0===i?void 0:i.routeOptions))&&(o[s]={originalHref:o[s].originalHref,currentHref:e.routeInfo.pathname+(e.routeInfo.search||""),originalRouteOptions:o[s].originalRouteOptions,currentRouteOptions:null===(r=e.routeInfo)||void 0===r?void 0:r.routeOptions},"pop"===e.routeInfo.routeAction&&s!==l&&(o[l]={originalHref:o[l].originalHref,currentHref:o[l].originalHref,originalRouteOptions:o[l].originalRouteOptions,currentRouteOptions:o[l].currentRouteOptions}))}return s&&e.onSetCurrentTab(s,e.routeInfo),{activeTab:s,tabs:o}}onTabButtonClick(e,t){let n=this.state.tabs[e.detail.tab],i=n.originalHref,r=e.detail.href,{activeTab:o}=this.state;t&&t(e),o===e.detail.tab?i!==r&&this.context.resetTab(e.detail.tab,i,n.originalRouteOptions):(this.props.onIonTabsWillChange&&this.props.onIonTabsWillChange(new CustomEvent("ionTabWillChange",{detail:{tab:e.detail.tab}})),this.props.onIonTabsDidChange&&this.props.onIonTabsDidChange(new CustomEvent("ionTabDidChange",{detail:{tab:e.detail.tab}})),this.setActiveTabOnContext(e.detail.tab),this.context.changeTab(e.detail.tab,r,e.detail.routeOptions))}renderTabButton(e){return t=>{var n,i;if(null!=t&&t.props&&(t.type===cE||t.type.isTabButton)){let r=t.props.tab===e?null===(n=this.props.routeInfo)||void 0===n?void 0:n.pathname:this.state.tabs[t.props.tab].currentHref,o=t.props.tab===e?null===(i=this.props.routeInfo)||void 0===i?void 0:i.routeOptions:this.state.tabs[t.props.tab].currentRouteOptions;return h.cloneElement(t,{href:r,routeOptions:o,onClick:e=>this.onTabButtonClick(e,t.props.onClick)})}return null}}render(){let{activeTab:e}=this.state;return h.createElement(cr,Object.assign({},this.props,{selectedTab:e}),h.Children.map(this.props.children,this.renderTabButton(e)))}static get contextType(){return sS}}let cC=h.memo(e=>{var{forwardedRef:t}=e,n=(0,ej._T)(e,["forwardedRef"]);let i=(0,h.useContext)(sS);return h.createElement(cS,Object.assign({ref:t},n,{routeInfo:n.routeInfo||i.routeInfo||{pathname:window.location.pathname},onSetCurrentTab:i.setCurrentTab}),n.children)}),cP=lH(cC,"IonTabBar");class cT extends cx{constructor(){super()}}if("undefined"!=typeof window&&window.customElements){let e=window.customElements.get("ion-tabs");e||window.customElements.define("ion-tabs",cT)}let cO={display:"flex",position:"absolute",top:"0",left:"0",right:"0",bottom:"0",flexDirection:"column",width:"100%",height:"100%",contain:"layout size style"},cA={position:"relative",flex:1,contain:"layout size style"},cI=class extends h.Component{constructor(e){super(e),this.routerOutletRef=h.createRef(),this.tabBarRef=h.createRef(),this.ionTabContextState={activeTab:void 0,selectTab:()=>!1}}componentDidMount(){this.tabBarRef.current&&(this.ionTabContextState.activeTab=this.tabBarRef.current.state.activeTab,this.tabBarRef.current.setActiveTabOnContext=e=>{this.ionTabContextState.activeTab=e},this.ionTabContextState.selectTab=this.tabBarRef.current.selectTab)}render(){let e,t;let n=this.props,{className:i,onIonTabsDidChange:r,onIonTabsWillChange:o}=n,a=(0,ej._T)(n,["className","onIonTabsDidChange","onIonTabsWillChange"]),s="function"==typeof this.props.children?this.props.children(this.ionTabContextState):this.props.children;if(h.Children.forEach(s,n=>{if(null==n||"object"!=typeof n||!n.hasOwnProperty("type"))return;n.type===c_||n.type.isRouterOutlet?e=h.cloneElement(n):n.type===h.Fragment&&n.props.children[0].type===c_&&(e=n.props.children[0]);let i={ref:this.tabBarRef};void 0!==r&&(i=Object.assign(Object.assign({},i),{onIonTabsDidChange:r})),void 0!==o&&(i=Object.assign(Object.assign({},i),{onIonTabsWillChange:o})),n.type===cP||n.type.isTabBar?t=h.cloneElement(n,i):n.type===h.Fragment&&(n.props.children[1].type===cP||n.props.children[1].type.isTabBar)&&(t=h.cloneElement(n.props.children[1],i))}),!e)throw Error("IonTabs must contain an IonRouterOutlet");if(!t)throw Error("IonTabs needs a IonTabBar");return h.createElement(cy.Provider,{value:this.ionTabContextState},this.context.hasIonicRouter()?h.createElement(cu,Object.assign({className:i?`${i}`:"",routeInfo:this.context.routeInfo},a),h.createElement("ion-tabs",{className:"ion-tabs",style:cO},"top"===t.props.slot?t:null,h.createElement("div",{style:cA,className:"tabs-inner"},e),"bottom"===t.props.slot?t:null)):h.createElement("div",Object.assign({className:i?`${i}`:"ion-tabs"},a,{style:cO}),"top"===t.props.slot?t:null,h.createElement("div",{style:cA,className:"tabs-inner"},e),"bottom"===t.props.slot?t:null))}static get contextType(){return sS}},cR=class extends h.Component{constructor(){super(...arguments),this.clickButton=e=>{if(e.target&&null!==e.target.closest("ion-nav"))return;let{defaultHref:t,routerAnimation:n}=this.props;this.context.hasIonicRouter()?(e.stopPropagation(),this.context.goBack(t,n)):void 0!==t&&(window.location.href=t)}}render(){return h.createElement(co,Object.assign({onClick:this.clickButton},this.props))}static get displayName(){return"IonBackButton"}static get contextType(){return sS}};class c$ extends h.PureComponent{constructor(e){super(e),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 e,t;let n;let i=this.props,{icon:r,ios:o,md:a,mode:s}=i,l=(0,ej._T)(i,["icon","ios","md","mode"]),c=lW(),d=s||(null==c?void 0:c.get("mode"));return n=o||a?"ios"===d?null!==(e=null!=o?o:a)&&void 0!==e?e:r:null!==(t=null!=a?a:o)&&void 0!==t?t:r:r,h.createElement(cl,Object.assign({ref:this.props.forwardedRef,icon:n},l),this.props.children)}static get contextType(){return sS}}let cL=lH(c$,"IonIcon");class cM extends h.PureComponent{render(){let e=this.context.getIonRoute();return this.context.hasIonicRouter()&&cM?h.createElement(e,Object.assign({},this.props)):(console.error("You either do not have an Ionic Router package, or your router does not support using <IonRoute>"),null)}static get contextType(){return sS}}class cj extends h.PureComponent{render(){let e=this.context.getIonRedirect();return this.context.hasIonicRouter()&&cj?h.createElement(e,Object.assign({},this.props)):(console.error("You either do not have an Ionic Router package, or your router does not support using <IonRedirect>"),null)}static get contextType(){return sS}}let cD=h.createContext({routeInfo:void 0,push:()=>{throw Error("An Ionic Router is required for IonRouterContext")},back:()=>{throw Error("An Ionic Router is required for IonRouterContext")},canGoBack:()=>{throw Error("An Ionic Router is required for IonRouterContext")},nativeBack:()=>{throw Error("An Ionic Router is required for IonRouterContext")}});function cN(){let e=(0,h.useContext)(cD);return(0,h.useMemo)(()=>({back:e.back,push:e.push,goBack:e.back,canGoBack:e.canGoBack,routeInfo:e.routeInfo}),[e.back,e.push,e.canGoBack,e.routeInfo])}class cF extends h.PureComponent{constructor(e){super(e),this.nodes=new Map,this.animation=(0,m.c)(e.id)}setupAnimation(e){let t=this.animation;this.nodes.size>0&&t.addElement(Array.from(this.nodes.values())),cz(t,e),cH(t,e)}componentDidMount(){let e=this.props;this.setupAnimation(e)}componentDidUpdate(e){let t=this.animation,n=this.props;cz(t,n,e),cB(t,n,e),cH(t,n,e)}render(){let{children:e}=this.props;return h.createElement(h.Fragment,null,h.Children.map(e,(e,t)=>h.cloneElement(e,{ref:e=>this.nodes.set(t,e)})))}}let cz=(e,t={},n={})=>{let i=["children","progressStart","progressStep","progressEnd","pause","stop","destroy","play","from","to","fromTo","onFinish"];for(let r in t)t.hasOwnProperty(r)&&!i.includes(r)&&t[r]!==n[r]&&e[r](t[r]);let r=t.from;if(r&&r!==n.from){let t=Array.isArray(r)?r:[r];t.forEach(t=>e.from(t.property,t.value))}let o=t.to;if(o&&o!==n.to){let t=Array.isArray(o)?o:[o];t.forEach(t=>e.to(t.property,t.value))}let a=t.fromTo;if(a&&a!==n.fromTo){let t=Array.isArray(a)?a:[a];t.forEach(t=>e.fromTo(t.property,t.fromValue,t.toValue))}let s=t.onFinish;if(s&&s!==n.onFinish){let t=Array.isArray(s)?s:[s];t.forEach(t=>e.onFinish(t.callback,t.opts))}},cB=(e,t={},n={})=>{var i,r,o,a,s;let{progressStart:l,progressStep:c,progressEnd:d}=t;l&&((null===(i=n.progressStart)||void 0===i?void 0:i.forceLinearEasing)!==(null==l?void 0:l.forceLinearEasing)||(null===(r=n.progressStart)||void 0===r?void 0:r.step)!==(null==l?void 0:l.step))&&e.progressStart(l.forceLinearEasing,l.step),c&&(null===(o=n.progressStep)||void 0===o?void 0:o.step)!==(null==c?void 0:c.step)&&e.progressStep(c.step),d&&((null===(a=n.progressEnd)||void 0===a?void 0:a.playTo)!==(null==d?void 0:d.playTo)||(null===(s=n.progressEnd)||void 0===s?void 0:s.step)!==(null==d?void 0:d.step)||(null==n?void 0:n.dur)!==(null==d?void 0:d.dur))&&e.progressEnd(d.playTo,d.step,d.dur)},cH=(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()};function cU(e,t,n){let i=(0,h.useRef)(),r=(0,h.useMemo)(()=>`on${e}DidDismiss`,[e]),o=(0,h.useMemo)(()=>`on${e}DidPresent`,[e]),a=(0,h.useMemo)(()=>`on${e}WillDismiss`,[e]),s=(0,h.useMemo)(()=>`on${e}WillPresent`,[e]);n();let l=(0,h.useCallback)(async e=>{if(i.current)return;let{onDidDismiss:n,onWillDismiss:l,onDidPresent:c,onWillPresent:d}=e,u=(0,ej._T)(e,["onDidDismiss","onWillDismiss","onDidPresent","onWillPresent"]);i.current=await t.create(Object.assign({},u)),sT(i.current,{[r]:e=>{n&&n(e),i.current=void 0},[o]:e=>c&&c(e),[a]:e=>l&&l(e),[s]:e=>d&&d(e)}),i.current.present()},[t]),c=(0,h.useCallback)(async()=>{i.current&&await i.current.dismiss(),i.current=void 0},[]);return{present:l,dismiss:c}}function cV(){let e=cU("IonActionSheet",R,oq),t=(0,h.useCallback)((t,n)=>Array.isArray(t)?e.present({buttons:t,header:n}):e.present(t),[e.present]);return[t,e.dismiss]}function cW(){let e=cU("IonAlert",I,o0),t=(0,h.useCallback)((t,n)=>"string"==typeof t?e.present({message:t,buttons:null!=n?n:[{text:"Ok"}]}):e.present(t),[e.present]);return[t,e.dismiss]}function cq(){let e=cU("IonToast",D,aN),t=(0,h.useCallback)((t,n)=>"string"==typeof t?e.present({message:t,duration:n}):e.present(t),[e.present]);return[t,e.dismiss]}function cG(e,t,n,i,r){let o=(0,h.useRef)(),a=(0,h.useRef)(),s=(0,h.useMemo)(()=>`on${e}DidDismiss`,[e]),l=(0,h.useMemo)(()=>`on${e}DidPresent`,[e]),c=(0,h.useMemo)(()=>`on${e}WillDismiss`,[e]),d=(0,h.useMemo)(()=>`on${e}WillPresent`,[e]),[u,p]=(0,h.useState)(!1),f=(0,h.useContext)(ct),[m]=(0,h.useState)(cm("overlay"));n(),(0,h.useEffect)(()=>{if(u&&i&&a.current){if(h.isValidElement(i))f.addOverlay(m,i,a.current);else{let e=(0,h.createElement)(i,r);f.addOverlay(m,e,a.current)}}},[i,a.current,u,r]);let g=(0,h.useCallback)(async e=>{if(o.current)return;let{onDidDismiss:n,onWillDismiss:i,onDidPresent:r,onWillPresent:u}=e,h=(0,ej._T)(e,["onDidDismiss","onWillDismiss","onDidPresent","onWillPresent"]);"undefined"!=typeof document&&(a.current=document.createElement("div")),o.current=await t.create(Object.assign(Object.assign({},h),{component:a.current})),sT(o.current,{[s]:function(e){n&&n(e),o.current=void 0,a.current=void 0,p(!1),f.removeOverlay(m)},[l]:e=>r&&r(e),[c]:e=>i&&i(e),[d]:e=>u&&u(e)}),o.current.present(),p(!0)},[]),b=(0,h.useCallback)(async(e,t)=>{o.current&&await o.current.dismiss(e,t),o.current=void 0,a.current=void 0},[]);return{present:g,dismiss:b}}function cX(e,t){let n=cG("IonModal",L,sc,e,t),i=(0,h.useCallback)((e={})=>{n.present(e)},[n.present]);return[i,n.dismiss]}function cY(e,t){let n=cG("IonPopover",j,iM,e,t),i=(0,h.useCallback)((e={})=>{n.present(e)},[n.present]);return[i,n.dismiss]}function cK(){let e=cU("IonPicker",M,aY),t=(0,h.useCallback)((t,n)=>Array.isArray(t)?e.present({columns:t,buttons:null!=n?n:[{text:"Ok"}]}):e.present(t),[e.present]);return[t,e.dismiss]}function cJ(){let e=cU("IonLoading",$,aT),t=(0,h.useCallback)((t={},n,i)=>"string"==typeof t?e.present({message:t,duration:n,spinner:i}):e.present(t),[e.present]);return[t,e.dismiss]}let cZ=(e={})=>{"undefined"!=typeof document&&document.documentElement.classList.add("ion-ce"),(0,p.i)(Object.assign({},e))},cQ=h.createContext({addViewItem:()=>void 0,canGoBack:()=>void 0,clearOutlet:()=>void 0,createViewItem:()=>void 0,findViewItemByPathname:()=>void 0,findLeavingViewItemByRouteInfo:()=>void 0,findViewItemByRouteInfo:()=>void 0,getChildrenToRender:()=>void 0,goBack:()=>void 0,unMountViewItem:()=>void 0});class c0 extends h.Component{constructor(e){super(e),this.ionLifeCycleContext=new sy,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(){let{show:e}=this.state;return h.createElement(sv.Provider,{value:this.ionLifeCycleContext},e&&this.props.children)}}class c1{constructor(){this.locationHistory=[],this.tabHistory={}}add(e){"push"===e.routeAction||null==e.routeAction?this._add(e):"pop"===e.routeAction?this._pop(e):"replace"===e.routeAction&&this._replace(e),"root"===e.routeDirection&&(this._clear(),this._add(e))}clearTabStack(e){let t=this._getRouteInfosByKey(e);t&&(t.forEach(e=>{this.locationHistory=this.locationHistory.filter(t=>t.id!==e.id)}),this.tabHistory[e]=[])}update(e){let t=this.locationHistory.findIndex(t=>t.id===e.id);t>-1&&this.locationHistory.splice(t,1,e);let n=this.tabHistory[e.tab||""];if(n){let t=n.findIndex(t=>t.id===e.id);t>-1?n.splice(t,1,e):n.push(e)}else e.tab&&(this.tabHistory[e.tab]=[e])}_add(e){let t=this._getRouteInfosByKey(e.tab);t&&(this._areRoutesEqual(t[t.length-1],e)&&t.pop(),t.push(e)),this.locationHistory.push(e)}_areRoutesEqual(e,t){return!!e&&!!t&&e.pathname===t.pathname&&e.search===t.search}_pop(e){let t=this._getRouteInfosByKey(e.tab);t&&(t.pop(),t.pop(),t.push(e)),this.locationHistory.pop(),this.locationHistory.pop(),this.locationHistory.push(e)}_replace(e){let t=this._getRouteInfosByKey(e.tab);t&&t.pop(),this.locationHistory.pop(),this._add(e)}_clear(){let e=Object.keys(this.tabHistory);e.forEach(e=>this.tabHistory[e]=[]),this.locationHistory=[]}_getRouteInfosByKey(e){let t;return!e||(t=this.tabHistory[e])||(t=this.tabHistory[e]=[]),t}getFirstRouteInfoForTab(e){let t=this._getRouteInfosByKey(e);if(t)return t[0]}getCurrentRouteInfoForTab(e){let t=this._getRouteInfosByKey(e);if(t)return t[t.length-1]}findLastLocation(e){let t=this._getRouteInfosByKey(e.tab);if(t)for(let n=t.length-2;n>=0;n--){let i=t[n];if(i&&i.pathname===e.pushedByRoute)return i}for(let t=this.locationHistory.length-2;t>=0;t--){let n=this.locationHistory[t];if(n&&n.pathname===e.pushedByRoute)return n}}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 c2 extends h.PureComponent{constructor(e){super(e),this.ionRouterContextValue={push:(e,t,n,i,r)=>{this.navigate(e,t,n,r,i)},back:e=>{this.goBack(void 0,e)},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(){"undefined"!=typeof document&&(this.handleHardwareBackButton=this.handleHardwareBackButton.bind(this),document.addEventListener("ionBackButton",this.handleHardwareBackButton))}componentWillUnmount(){"undefined"!=typeof document&&document.removeEventListener("ionBackButton",this.handleHardwareBackButton)}handleHardwareBackButton(e){e.detail.register(0,e=>{this.nativeGoBack(),e()})}goBack(e,t){this.props.onNavigateBack(e,t)}nativeGoBack(){this.props.onNativeBack()}navigate(e,t="forward",n="push",i,r,o){this.props.onNavigate(e,n,t,i,r,o)}getPageManager(){return cu}getIonRedirect(){return this.props.ionRedirect}getIonRoute(){return this.props.ionRoute}getStackManager(){return this.props.stackManager}render(){return h.createElement(sS.Provider,{value:Object.assign(Object.assign({},this.state),{routeInfo:this.props.routeInfo})},h.createElement(cD.Provider,{value:Object.assign(Object.assign({},this.ionRouterContextValue),{routeInfo:this.props.routeInfo})},this.props.children))}}class c5{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(e){let{outletId:t}=e;this.viewStacks[t]?this.viewStacks[t].push(e):this.viewStacks[t]=[e]}clear(e){return setTimeout(()=>{delete this.viewStacks[e]},500)}getViewItemsForOutlet(e){return this.viewStacks[e]||[]}remove(e){let{outletId:t}=e,n=this.viewStacks[t];if(n){let i=n.find(t=>t.id===e.id);i&&(i.mount=!1,this.viewStacks[t]=n.filter(e=>e.id!==i.id))}}getStackIds(){return Object.keys(this.viewStacks)}getAllViewItems(){let e=this.getStackIds(),t=[];return e.forEach(e=>{t.push(...this.viewStacks[e])}),t}}},38686:function(e,t,n){"use strict";n.d(t,{k:function(){return r}});var i=n(2979);let r=(0,i.fo)("ScreenshotEvent",{web:()=>n.e(2889).then(n.bind(n,12889)).then(e=>new e.ScreenshotEventWeb)})},50564:function(e,t,n){"use strict";n.r(t),n.d(t,{Headers:function(){return Headers},Request:function(){return Request},Response:function(){return Response},fetch:function(){return r}});var i=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw Error("unable to locate global object")}();let r=i.fetch;t.default=i.fetch.bind(i);let Headers=i.Headers,Request=i.Request,Response=i.Response},37410:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});let r=i(n(50564)),o=i(n(77340));class a{constructor(e){this.shouldThrowOnError=!1,this.method=e.method,this.url=e.url,this.headers=e.headers,this.schema=e.schema,this.body=e.body,this.shouldThrowOnError=e.shouldThrowOnError,this.signal=e.signal,this.isMaybeSingle=e.isMaybeSingle,e.fetch?this.fetch=e.fetch:"undefined"==typeof fetch?this.fetch=r.default:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(e,t){return this.headers=Object.assign({},this.headers),this.headers[e]=t,this}then(e,t){void 0===this.schema||(["GET","HEAD"].includes(this.method)?this.headers["Accept-Profile"]=this.schema:this.headers["Content-Profile"]=this.schema),"GET"!==this.method&&"HEAD"!==this.method&&(this.headers["Content-Type"]="application/json");let n=this.fetch,i=n(this.url.toString(),{method:this.method,headers:this.headers,body:JSON.stringify(this.body),signal:this.signal}).then(async e=>{var t,n,i;let r=null,a=null,s=null,l=e.status,c=e.statusText;if(e.ok){if("HEAD"!==this.method){let t=await e.text();""===t||(a="text/csv"===this.headers.Accept?t:this.headers.Accept&&this.headers.Accept.includes("application/vnd.pgrst.plan+text")?t:JSON.parse(t))}let i=null===(t=this.headers.Prefer)||void 0===t?void 0:t.match(/count=(exact|planned|estimated)/),o=null===(n=e.headers.get("content-range"))||void 0===n?void 0:n.split("/");i&&o&&o.length>1&&(s=parseInt(o[1])),this.isMaybeSingle&&"GET"===this.method&&Array.isArray(a)&&(a.length>1?(r={code:"PGRST116",details:`Results contain ${a.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},a=null,s=null,l=406,c="Not Acceptable"):a=1===a.length?a[0]:null)}else{let t=await e.text();try{r=JSON.parse(t),Array.isArray(r)&&404===e.status&&(a=[],r=null,l=200,c="OK")}catch(n){404===e.status&&""===t?(l=204,c="No Content"):r={message:t}}if(r&&this.isMaybeSingle&&(null===(i=null==r?void 0:r.details)||void 0===i?void 0:i.includes("0 rows"))&&(r=null,l=200,c="OK"),r&&this.shouldThrowOnError)throw new o.default(r)}let d={error:r,data:a,count:s,status:l,statusText:c};return d});return this.shouldThrowOnError||(i=i.catch(e=>{var t,n,i;return{error:{message:`${null!==(t=null==e?void 0:e.name)&&void 0!==t?t:"FetchError"}: ${null==e?void 0:e.message}`,details:`${null!==(n=null==e?void 0:e.stack)&&void 0!==n?n:""}`,hint:"",code:`${null!==(i=null==e?void 0:e.code)&&void 0!==i?i:""}`},data:null,count:null,status:0,statusText:""}})),i.then(e,t)}}t.default=a},96553:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});let r=i(n(75483)),o=i(n(82038)),a=n(59107);class s{constructor(e,{headers:t={},schema:n,fetch:i}={}){this.url=e,this.headers=Object.assign(Object.assign({},a.DEFAULT_HEADERS),t),this.schemaName=n,this.fetch=i}from(e){let t=new URL(`${this.url}/${e}`);return new r.default(t,{headers:Object.assign({},this.headers),schema:this.schemaName,fetch:this.fetch})}schema(e){return new s(this.url,{headers:this.headers,schema:e,fetch:this.fetch})}rpc(e,t={},{head:n=!1,get:i=!1,count:r}={}){let a,s;let l=new URL(`${this.url}/rpc/${e}`);n||i?(a=n?"HEAD":"GET",Object.entries(t).filter(([e,t])=>void 0!==t).map(([e,t])=>[e,Array.isArray(t)?`{${t.join(",")}}`:`${t}`]).forEach(([e,t])=>{l.searchParams.append(e,t)})):(a="POST",s=t);let c=Object.assign({},this.headers);return r&&(c.Prefer=`count=${r}`),new o.default({method:a,url:l,headers:c,schema:this.schemaName,body:s,fetch:this.fetch,allowEmpty:!1})}}t.default=s},77340:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class n extends Error{constructor(e){super(e.message),this.name="PostgrestError",this.details=e.details,this.hint=e.hint,this.code=e.code}}t.default=n},82038:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});let r=i(n(97701));class o extends r.default{eq(e,t){return this.url.searchParams.append(e,`eq.${t}`),this}neq(e,t){return this.url.searchParams.append(e,`neq.${t}`),this}gt(e,t){return this.url.searchParams.append(e,`gt.${t}`),this}gte(e,t){return this.url.searchParams.append(e,`gte.${t}`),this}lt(e,t){return this.url.searchParams.append(e,`lt.${t}`),this}lte(e,t){return this.url.searchParams.append(e,`lte.${t}`),this}like(e,t){return this.url.searchParams.append(e,`like.${t}`),this}likeAllOf(e,t){return this.url.searchParams.append(e,`like(all).{${t.join(",")}}`),this}likeAnyOf(e,t){return this.url.searchParams.append(e,`like(any).{${t.join(",")}}`),this}ilike(e,t){return this.url.searchParams.append(e,`ilike.${t}`),this}ilikeAllOf(e,t){return this.url.searchParams.append(e,`ilike(all).{${t.join(",")}}`),this}ilikeAnyOf(e,t){return this.url.searchParams.append(e,`ilike(any).{${t.join(",")}}`),this}is(e,t){return this.url.searchParams.append(e,`is.${t}`),this}in(e,t){let n=Array.from(new Set(t)).map(e=>"string"==typeof e&&RegExp("[,()]").test(e)?`"${e}"`:`${e}`).join(",");return this.url.searchParams.append(e,`in.(${n})`),this}contains(e,t){return"string"==typeof t?this.url.searchParams.append(e,`cs.${t}`):Array.isArray(t)?this.url.searchParams.append(e,`cs.{${t.join(",")}}`):this.url.searchParams.append(e,`cs.${JSON.stringify(t)}`),this}containedBy(e,t){return"string"==typeof t?this.url.searchParams.append(e,`cd.${t}`):Array.isArray(t)?this.url.searchParams.append(e,`cd.{${t.join(",")}}`):this.url.searchParams.append(e,`cd.${JSON.stringify(t)}`),this}rangeGt(e,t){return this.url.searchParams.append(e,`sr.${t}`),this}rangeGte(e,t){return this.url.searchParams.append(e,`nxl.${t}`),this}rangeLt(e,t){return this.url.searchParams.append(e,`sl.${t}`),this}rangeLte(e,t){return this.url.searchParams.append(e,`nxr.${t}`),this}rangeAdjacent(e,t){return this.url.searchParams.append(e,`adj.${t}`),this}overlaps(e,t){return"string"==typeof t?this.url.searchParams.append(e,`ov.${t}`):this.url.searchParams.append(e,`ov.{${t.join(",")}}`),this}textSearch(e,t,{config:n,type:i}={}){let r="";"plain"===i?r="pl":"phrase"===i?r="ph":"websearch"===i&&(r="w");let o=void 0===n?"":`(${n})`;return this.url.searchParams.append(e,`${r}fts${o}.${t}`),this}match(e){return Object.entries(e).forEach(([e,t])=>{this.url.searchParams.append(e,`eq.${t}`)}),this}not(e,t,n){return this.url.searchParams.append(e,`not.${t}.${n}`),this}or(e,{foreignTable:t,referencedTable:n=t}={}){let i=n?`${n}.or`:"or";return this.url.searchParams.append(i,`(${e})`),this}filter(e,t,n){return this.url.searchParams.append(e,`${t}.${n}`),this}}t.default=o},75483:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});let r=i(n(82038));class o{constructor(e,{headers:t={},schema:n,fetch:i}){this.url=e,this.headers=t,this.schema=n,this.fetch=i}select(e,{head:t=!1,count:n}={}){let i=!1,o=(null!=e?e:"*").split("").map(e=>/\s/.test(e)&&!i?"":('"'===e&&(i=!i),e)).join("");return this.url.searchParams.set("select",o),n&&(this.headers.Prefer=`count=${n}`),new r.default({method:t?"HEAD":"GET",url:this.url,headers:this.headers,schema:this.schema,fetch:this.fetch,allowEmpty:!1})}insert(e,{count:t,defaultToNull:n=!0}={}){let i=[];if(this.headers.Prefer&&i.push(this.headers.Prefer),t&&i.push(`count=${t}`),n||i.push("missing=default"),this.headers.Prefer=i.join(","),Array.isArray(e)){let t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]);if(t.length>0){let e=[...new Set(t)].map(e=>`"${e}"`);this.url.searchParams.set("columns",e.join(","))}}return new r.default({method:"POST",url:this.url,headers:this.headers,schema:this.schema,body:e,fetch:this.fetch,allowEmpty:!1})}upsert(e,{onConflict:t,ignoreDuplicates:n=!1,count:i,defaultToNull:o=!0}={}){let a=[`resolution=${n?"ignore":"merge"}-duplicates`];if(void 0!==t&&this.url.searchParams.set("on_conflict",t),this.headers.Prefer&&a.push(this.headers.Prefer),i&&a.push(`count=${i}`),o||a.push("missing=default"),this.headers.Prefer=a.join(","),Array.isArray(e)){let t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]);if(t.length>0){let e=[...new Set(t)].map(e=>`"${e}"`);this.url.searchParams.set("columns",e.join(","))}}return new r.default({method:"POST",url:this.url,headers:this.headers,schema:this.schema,body:e,fetch:this.fetch,allowEmpty:!1})}update(e,{count:t}={}){let n=[];return this.headers.Prefer&&n.push(this.headers.Prefer),t&&n.push(`count=${t}`),this.headers.Prefer=n.join(","),new r.default({method:"PATCH",url:this.url,headers:this.headers,schema:this.schema,body:e,fetch:this.fetch,allowEmpty:!1})}delete({count:e}={}){let t=[];return e&&t.push(`count=${e}`),this.headers.Prefer&&t.unshift(this.headers.Prefer),this.headers.Prefer=t.join(","),new r.default({method:"DELETE",url:this.url,headers:this.headers,schema:this.schema,fetch:this.fetch,allowEmpty:!1})}}t.default=o},97701:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});let r=i(n(37410));class o extends r.default{select(e){let t=!1,n=(null!=e?e:"*").split("").map(e=>/\s/.test(e)&&!t?"":('"'===e&&(t=!t),e)).join("");return this.url.searchParams.set("select",n),this.headers.Prefer&&(this.headers.Prefer+=","),this.headers.Prefer+="return=representation",this}order(e,{ascending:t=!0,nullsFirst:n,foreignTable:i,referencedTable:r=i}={}){let o=r?`${r}.order`:"order",a=this.url.searchParams.get(o);return this.url.searchParams.set(o,`${a?`${a},`:""}${e}.${t?"asc":"desc"}${void 0===n?"":n?".nullsfirst":".nullslast"}`),this}limit(e,{foreignTable:t,referencedTable:n=t}={}){let i=void 0===n?"limit":`${n}.limit`;return this.url.searchParams.set(i,`${e}`),this}range(e,t,{foreignTable:n,referencedTable:i=n}={}){let r=void 0===i?"offset":`${i}.offset`,o=void 0===i?"limit":`${i}.limit`;return this.url.searchParams.set(r,`${e}`),this.url.searchParams.set(o,`${t-e+1}`),this}abortSignal(e){return this.signal=e,this}single(){return this.headers.Accept="application/vnd.pgrst.object+json",this}maybeSingle(){return"GET"===this.method?this.headers.Accept="application/json":this.headers.Accept="application/vnd.pgrst.object+json",this.isMaybeSingle=!0,this}csv(){return this.headers.Accept="text/csv",this}geojson(){return this.headers.Accept="application/geo+json",this}explain({analyze:e=!1,verbose:t=!1,settings:n=!1,buffers:i=!1,wal:r=!1,format:o="text"}={}){var a;let s=[e?"analyze":null,t?"verbose":null,n?"settings":null,i?"buffers":null,r?"wal":null].filter(Boolean).join("|"),l=null!==(a=this.headers.Accept)&&void 0!==a?a:"application/json";return this.headers.Accept=`application/vnd.pgrst.plan+${o}; for="${l}"; options=${s};`,this}rollback(){var e;return(null!==(e=this.headers.Prefer)&&void 0!==e?e:"").trim().length>0?this.headers.Prefer+=",tx=rollback":this.headers.Prefer="tx=rollback",this}returns(){return this}}t.default=o},59107:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_HEADERS=void 0;let i=n(12832);t.DEFAULT_HEADERS={"X-Client-Info":`postgrest-js/${i.version}`}},85597:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PostgrestError=t.PostgrestBuilder=t.PostgrestTransformBuilder=t.PostgrestFilterBuilder=t.PostgrestQueryBuilder=t.PostgrestClient=void 0;let r=i(n(96553));t.PostgrestClient=r.default;let o=i(n(75483));t.PostgrestQueryBuilder=o.default;let a=i(n(82038));t.PostgrestFilterBuilder=a.default;let s=i(n(97701));t.PostgrestTransformBuilder=s.default;let l=i(n(37410));t.PostgrestBuilder=l.default;let c=i(n(77340));t.PostgrestError=c.default,t.default={PostgrestClient:r.default,PostgrestQueryBuilder:o.default,PostgrestFilterBuilder:a.default,PostgrestTransformBuilder:s.default,PostgrestBuilder:l.default,PostgrestError:c.default}},12832:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.version=void 0,t.version="0.0.0-automated"},48292:function(e,t,n){"use strict";n.d(t,{eI:function(){return tL}});let i=e=>{let t;return t=e||("undefined"==typeof fetch?(...e)=>Promise.resolve().then(n.bind(n,50564)).then(({default:t})=>t(...e)):fetch),(...e)=>t(...e)};class r extends Error{constructor(e,t="FunctionsError",n){super(e),this.name=t,this.context=n}}class o extends r{constructor(e){super("Failed to send a request to the Edge Function","FunctionsFetchError",e)}}class a extends r{constructor(e){super("Relay Error invoking the Edge Function","FunctionsRelayError",e)}}class s extends r{constructor(e){super("Edge Function returned a non-2xx status code","FunctionsHttpError",e)}}(c=d||(d={})).Any="any",c.ApNortheast1="ap-northeast-1",c.ApNortheast2="ap-northeast-2",c.ApSouth1="ap-south-1",c.ApSoutheast1="ap-southeast-1",c.ApSoutheast2="ap-southeast-2",c.CaCentral1="ca-central-1",c.EuCentral1="eu-central-1",c.EuWest1="eu-west-1",c.EuWest2="eu-west-2",c.EuWest3="eu-west-3",c.SaEast1="sa-east-1",c.UsEast1="us-east-1",c.UsWest1="us-west-1",c.UsWest2="us-west-2";class l{constructor(e,{headers:t={},customFetch:n,region:r=d.Any}={}){this.url=e,this.headers=t,this.region=r,this.fetch=i(n)}setAuth(e){this.headers.Authorization=`Bearer ${e}`}invoke(e,t={}){var n,i,r,l,c;return i=this,r=void 0,l=void 0,c=function*(){try{let i;let{headers:r,method:l,body:c}=t,d={},{region:u}=t;u||(u=this.region),u&&"any"!==u&&(d["x-region"]=u),c&&(r&&!Object.prototype.hasOwnProperty.call(r,"Content-Type")||!r)&&("undefined"!=typeof Blob&&c instanceof Blob||c instanceof ArrayBuffer?(d["Content-Type"]="application/octet-stream",i=c):"string"==typeof c?(d["Content-Type"]="text/plain",i=c):"undefined"!=typeof FormData&&c instanceof FormData?i=c:(d["Content-Type"]="application/json",i=JSON.stringify(c)));let h=yield this.fetch(`${this.url}/${e}`,{method:l||"POST",headers:Object.assign(Object.assign(Object.assign({},d),this.headers),r),body:i}).catch(e=>{throw new o(e)}),p=h.headers.get("x-relay-error");if(p&&"true"===p)throw new a(h);if(!h.ok)throw new s(h);let f=(null!==(n=h.headers.get("Content-Type"))&&void 0!==n?n:"text/plain").split(";")[0].trim();return{data:"application/json"===f?yield h.json():"application/octet-stream"===f?yield h.blob():"text/event-stream"===f?h:"multipart/form-data"===f?yield h.formData():yield h.text(),error:null}}catch(e){return{data:null,error:e}}},new(l||(l=Promise))(function(e,t){function n(e){try{a(c.next(e))}catch(e){t(e)}}function o(e){try{a(c.throw(e))}catch(e){t(e)}}function a(t){var i;t.done?e(t.value):((i=t.value)instanceof l?i:new l(function(e){e(i)})).then(n,o)}a((c=c.apply(i,r||[])).next())})}}var c,d,u,h,p,f,m,g,b,v,y,x,w,k,_,E,S,C,P,T,O,A=n(85597);let{PostgrestClient:I,PostgrestQueryBuilder:R,PostgrestFilterBuilder:$,PostgrestTransformBuilder:L,PostgrestBuilder:M}=A,j={"X-Client-Info":"realtime-js/2.10.7"};(w=u||(u={}))[w.connecting=0]="connecting",w[w.open=1]="open",w[w.closing=2]="closing",w[w.closed=3]="closed",(k=h||(h={})).closed="closed",k.errored="errored",k.joined="joined",k.joining="joining",k.leaving="leaving",(_=p||(p={})).close="phx_close",_.error="phx_error",_.join="phx_join",_.reply="phx_reply",_.leave="phx_leave",_.access_token="access_token",(f||(f={})).websocket="websocket",(E=m||(m={})).Connecting="connecting",E.Open="open",E.Closing="closing",E.Closed="closed";class D{constructor(){this.HEADER_LENGTH=1}decode(e,t){return e.constructor===ArrayBuffer?t(this._binaryDecode(e)):"string"==typeof e?t(JSON.parse(e)):t({})}_binaryDecode(e){let t=new DataView(e),n=new TextDecoder;return this._decodeBroadcast(e,t,n)}_decodeBroadcast(e,t,n){let i=t.getUint8(1),r=t.getUint8(2),o=this.HEADER_LENGTH+2,a=n.decode(e.slice(o,o+i));o+=i;let s=n.decode(e.slice(o,o+r));o+=r;let l=JSON.parse(n.decode(e.slice(o,e.byteLength)));return{ref:null,topic:a,event:s,payload:l}}}class N{constructor(e,t){this.callback=e,this.timerCalc=t,this.timer=void 0,this.tries=0,this.callback=e,this.timerCalc=t}reset(){this.tries=0,clearTimeout(this.timer)}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}}(S=g||(g={})).abstime="abstime",S.bool="bool",S.date="date",S.daterange="daterange",S.float4="float4",S.float8="float8",S.int2="int2",S.int4="int4",S.int4range="int4range",S.int8="int8",S.int8range="int8range",S.json="json",S.jsonb="jsonb",S.money="money",S.numeric="numeric",S.oid="oid",S.reltime="reltime",S.text="text",S.time="time",S.timestamp="timestamp",S.timestamptz="timestamptz",S.timetz="timetz",S.tsrange="tsrange",S.tstzrange="tstzrange";let F=(e,t,n={})=>{var i;let r=null!==(i=n.skipTypes)&&void 0!==i?i:[];return Object.keys(t).reduce((n,i)=>(n[i]=z(i,e,t,r),n),{})},z=(e,t,n,i)=>{let r=t.find(t=>t.name===e),o=null==r?void 0:r.type,a=n[e];return o&&!i.includes(o)?B(o,a):H(a)},B=(e,t)=>{if("_"===e.charAt(0)){let n=e.slice(1,e.length);return q(t,n)}switch(e){case g.bool:return U(t);case g.float4:case g.float8:case g.int2:case g.int4:case g.int8:case g.numeric:case g.oid:return V(t);case g.json:case g.jsonb:return W(t);case g.timestamp:return G(t);case g.abstime:case g.date:case g.daterange:case g.int4range:case g.int8range:case g.money:case g.reltime:case g.text:case g.time:case g.timestamptz:case g.timetz:case g.tsrange:case g.tstzrange:default:return H(t)}},H=e=>e,U=e=>{switch(e){case"t":return!0;case"f":return!1;default:return e}},V=e=>{if("string"==typeof e){let t=parseFloat(e);if(!Number.isNaN(t))return t}return e},W=e=>{if("string"==typeof e)try{return JSON.parse(e)}catch(e){console.log(`JSON parse error: ${e}`)}return e},q=(e,t)=>{if("string"!=typeof e)return e;let n=e.length-1,i=e[n],r=e[0];if("{"===r&&"}"===i){let i;let r=e.slice(1,n);try{i=JSON.parse("["+r+"]")}catch(e){i=r?r.split(","):[]}return i.map(e=>B(t,e))}return e},G=e=>"string"==typeof e?e.replace(" ","T"):e,X=e=>{let t=e;return(t=(t=t.replace(/^ws/i,"http")).replace(/(\/socket\/websocket|\/socket|\/websocket)\/?$/i,"")).replace(/\/+$/,"")};class Y{constructor(e,t,n={},i=1e4){this.channel=e,this.event=t,this.payload=n,this.timeout=i,this.sent=!1,this.timeoutTimer=void 0,this.ref="",this.receivedResp=null,this.recHooks=[],this.refEvent=null}resend(e){this.timeout=e,this._cancelRefEvent(),this.ref="",this.refEvent=null,this.receivedResp=null,this.sent=!1,this.send()}send(){this._hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload,ref:this.ref,join_ref:this.channel._joinRef()}))}updatePayload(e){this.payload=Object.assign(Object.assign({},this.payload),e)}receive(e,t){var n;return this._hasReceived(e)&&t(null===(n=this.receivedResp)||void 0===n?void 0:n.response),this.recHooks.push({status:e,callback:t}),this}startTimeout(){this.timeoutTimer||(this.ref=this.channel.socket._makeRef(),this.refEvent=this.channel._replyEventName(this.ref),this.channel._on(this.refEvent,{},e=>{this._cancelRefEvent(),this._cancelTimeout(),this.receivedResp=e,this._matchReceive(e)}),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout))}trigger(e,t){this.refEvent&&this.channel._trigger(this.refEvent,{status:e,response:t})}destroy(){this._cancelRefEvent(),this._cancelTimeout()}_cancelRefEvent(){this.refEvent&&this.channel._off(this.refEvent,{})}_cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=void 0}_matchReceive({status:e,response:t}){this.recHooks.filter(t=>t.status===e).forEach(e=>e.callback(t))}_hasReceived(e){return this.receivedResp&&this.receivedResp.status===e}}(C=b||(b={})).SYNC="sync",C.JOIN="join",C.LEAVE="leave";class K{constructor(e,t){this.channel=e,this.state={},this.pendingDiffs=[],this.joinRef=null,this.caller={onJoin:()=>{},onLeave:()=>{},onSync:()=>{}};let n=(null==t?void 0:t.events)||{state:"presence_state",diff:"presence_diff"};this.channel._on(n.state,{},e=>{let{onJoin:t,onLeave:n,onSync:i}=this.caller;this.joinRef=this.channel._joinRef(),this.state=K.syncState(this.state,e,t,n),this.pendingDiffs.forEach(e=>{this.state=K.syncDiff(this.state,e,t,n)}),this.pendingDiffs=[],i()}),this.channel._on(n.diff,{},e=>{let{onJoin:t,onLeave:n,onSync:i}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(e):(this.state=K.syncDiff(this.state,e,t,n),i())}),this.onJoin((e,t,n)=>{this.channel._trigger("presence",{event:"join",key:e,currentPresences:t,newPresences:n})}),this.onLeave((e,t,n)=>{this.channel._trigger("presence",{event:"leave",key:e,currentPresences:t,leftPresences:n})}),this.onSync(()=>{this.channel._trigger("presence",{event:"sync"})})}static syncState(e,t,n,i){let r=this.cloneDeep(e),o=this.transformState(t),a={},s={};return this.map(r,(e,t)=>{o[e]||(s[e]=t)}),this.map(o,(e,t)=>{let n=r[e];if(n){let i=t.map(e=>e.presence_ref),r=n.map(e=>e.presence_ref),o=t.filter(e=>0>r.indexOf(e.presence_ref)),l=n.filter(e=>0>i.indexOf(e.presence_ref));o.length>0&&(a[e]=o),l.length>0&&(s[e]=l)}else a[e]=t}),this.syncDiff(r,{joins:a,leaves:s},n,i)}static syncDiff(e,t,n,i){let{joins:r,leaves:o}={joins:this.transformState(t.joins),leaves:this.transformState(t.leaves)};return n||(n=()=>{}),i||(i=()=>{}),this.map(r,(t,i)=>{var r;let o=null!==(r=e[t])&&void 0!==r?r:[];if(e[t]=this.cloneDeep(i),o.length>0){let n=e[t].map(e=>e.presence_ref),i=o.filter(e=>0>n.indexOf(e.presence_ref));e[t].unshift(...i)}n(t,o,i)}),this.map(o,(t,n)=>{let r=e[t];if(!r)return;let o=n.map(e=>e.presence_ref);r=r.filter(e=>0>o.indexOf(e.presence_ref)),e[t]=r,i(t,r,n),0===r.length&&delete e[t]}),e}static map(e,t){return Object.getOwnPropertyNames(e).map(n=>t(n,e[n]))}static transformState(e){return Object.getOwnPropertyNames(e=this.cloneDeep(e)).reduce((t,n)=>{let i=e[n];return"metas"in i?t[n]=i.metas.map(e=>(e.presence_ref=e.phx_ref,delete e.phx_ref,delete e.phx_ref_prev,e)):t[n]=i,t},{})}static cloneDeep(e){return JSON.parse(JSON.stringify(e))}onJoin(e){this.caller.onJoin=e}onLeave(e){this.caller.onLeave=e}onSync(e){this.caller.onSync=e}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel._joinRef()}}(P=v||(v={})).ALL="*",P.INSERT="INSERT",P.UPDATE="UPDATE",P.DELETE="DELETE",(T=y||(y={})).BROADCAST="broadcast",T.PRESENCE="presence",T.POSTGRES_CHANGES="postgres_changes",T.SYSTEM="system",(O=x||(x={})).SUBSCRIBED="SUBSCRIBED",O.TIMED_OUT="TIMED_OUT",O.CLOSED="CLOSED",O.CHANNEL_ERROR="CHANNEL_ERROR";class J{constructor(e,t={config:{}},n){this.topic=e,this.params=t,this.socket=n,this.bindings={},this.state=h.closed,this.joinedOnce=!1,this.pushBuffer=[],this.subTopic=e.replace(/^realtime:/i,""),this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:""},private:!1},t.config),this.timeout=this.socket.timeout,this.joinPush=new Y(this,p.join,this.params,this.timeout),this.rejoinTimer=new N(()=>this._rejoinUntilConnected(),this.socket.reconnectAfterMs),this.joinPush.receive("ok",()=>{this.state=h.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(e=>e.send()),this.pushBuffer=[]}),this._onClose(()=>{this.rejoinTimer.reset(),this.socket.log("channel",`close ${this.topic} ${this._joinRef()}`),this.state=h.closed,this.socket._remove(this)}),this._onError(e=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,e),this.state=h.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("timeout",()=>{this._isJoining()&&(this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),this.state=h.errored,this.rejoinTimer.scheduleTimeout())}),this._on(p.reply,{},(e,t)=>{this._trigger(this._replyEventName(t),e)}),this.presence=new K(this),this.broadcastEndpointURL=X(this.socket.endPoint)+"/api/broadcast",this.private=this.params.config.private||!1}subscribe(e,t=this.timeout){var n,i;if(this.socket.isConnected()||this.socket.connect(),this.joinedOnce)throw"tried to subscribe multiple times. 'subscribe' can only be called a single time per channel instance";{let{config:{broadcast:r,presence:o,private:a}}=this.params;this._onError(t=>e&&e("CHANNEL_ERROR",t)),this._onClose(()=>e&&e("CLOSED"));let s={},l={broadcast:r,presence:o,postgres_changes:null!==(i=null===(n=this.bindings.postgres_changes)||void 0===n?void 0:n.map(e=>e.filter))&&void 0!==i?i:[],private:a};this.socket.accessToken&&(s.access_token=this.socket.accessToken),this.updateJoinPayload(Object.assign({config:l},s)),this.joinedOnce=!0,this._rejoin(t),this.joinPush.receive("ok",({postgres_changes:t})=>{var n;if(this.socket.accessToken&&this.socket.setAuth(this.socket.accessToken),void 0===t){e&&e("SUBSCRIBED");return}{let i=this.bindings.postgres_changes,r=null!==(n=null==i?void 0:i.length)&&void 0!==n?n:0,o=[];for(let n=0;n<r;n++){let r=i[n],{filter:{event:a,schema:s,table:l,filter:c}}=r,d=t&&t[n];if(d&&d.event===a&&d.schema===s&&d.table===l&&d.filter===c)o.push(Object.assign(Object.assign({},r),{id:d.id}));else{this.unsubscribe(),e&&e("CHANNEL_ERROR",Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=o,e&&e("SUBSCRIBED");return}}).receive("error",t=>{e&&e("CHANNEL_ERROR",Error(JSON.stringify(Object.values(t).join(", ")||"error")))}).receive("timeout",()=>{e&&e("TIMED_OUT")})}return this}presenceState(){return this.presence.state}async track(e,t={}){return await this.send({type:"presence",event:"track",payload:e},t.timeout||this.timeout)}async untrack(e={}){return await this.send({type:"presence",event:"untrack"},e)}on(e,t,n){return this._on(e,t,n)}async send(e,t={}){var n,i;if(this._canPush()||"broadcast"!==e.type)return new Promise(n=>{var i,r,o;let a=this._push(e.type,e,t.timeout||this.timeout);"broadcast"!==e.type||(null===(o=null===(r=null===(i=this.params)||void 0===i?void 0:i.config)||void 0===r?void 0:r.broadcast)||void 0===o?void 0:o.ack)||n("ok"),a.receive("ok",()=>n("ok")),a.receive("error",()=>n("error")),a.receive("timeout",()=>n("timed out"))});{let{event:r,payload:o}=e,a={method:"POST",headers:{Authorization:this.socket.accessToken?`Bearer ${this.socket.accessToken}`:"",apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"},body:JSON.stringify({messages:[{topic:this.subTopic,event:r,payload:o,private:this.private}]})};try{let e=await this._fetchWithTimeout(this.broadcastEndpointURL,a,null!==(n=t.timeout)&&void 0!==n?n:this.timeout);return await (null===(i=e.body)||void 0===i?void 0:i.cancel()),e.ok?"ok":"error"}catch(e){if("AbortError"===e.name)return"timed out";return"error"}}}updateJoinPayload(e){this.joinPush.updatePayload(e)}unsubscribe(e=this.timeout){this.state=h.leaving;let t=()=>{this.socket.log("channel",`leave ${this.topic}`),this._trigger(p.close,"leave",this._joinRef())};return this.rejoinTimer.reset(),this.joinPush.destroy(),new Promise(n=>{let i=new Y(this,p.leave,{},e);i.receive("ok",()=>{t(),n("ok")}).receive("timeout",()=>{t(),n("timed out")}).receive("error",()=>{n("error")}),i.send(),this._canPush()||i.trigger("ok",{})})}async _fetchWithTimeout(e,t,n){let i=new AbortController,r=setTimeout(()=>i.abort(),n),o=await this.socket.fetch(e,Object.assign(Object.assign({},t),{signal:i.signal}));return clearTimeout(r),o}_push(e,t,n=this.timeout){if(!this.joinedOnce)throw`tried to push '${e}' to '${this.topic}' before joining. Use channel.subscribe() before pushing events`;let i=new Y(this,e,t,n);return this._canPush()?i.send():(i.startTimeout(),this.pushBuffer.push(i)),i}_onMessage(e,t,n){return t}_isMember(e){return this.topic===e}_joinRef(){return this.joinPush.ref}_trigger(e,t,n){var i,r;let o=e.toLocaleLowerCase(),{close:a,error:s,leave:l,join:c}=p;if(n&&[a,s,l,c].indexOf(o)>=0&&n!==this._joinRef())return;let d=this._onMessage(o,t,n);if(t&&!d)throw"channel onMessage callbacks must return the payload, modified or unmodified";["insert","update","delete"].includes(o)?null===(i=this.bindings.postgres_changes)||void 0===i||i.filter(e=>{var t,n,i;return(null===(t=e.filter)||void 0===t?void 0:t.event)==="*"||(null===(i=null===(n=e.filter)||void 0===n?void 0:n.event)||void 0===i?void 0:i.toLocaleLowerCase())===o}).map(e=>e.callback(d,n)):null===(r=this.bindings[o])||void 0===r||r.filter(e=>{var n,i,r,a,s,l;if(!["broadcast","presence","postgres_changes"].includes(o))return e.type.toLocaleLowerCase()===o;if("id"in e){let o=e.id,a=null===(n=e.filter)||void 0===n?void 0:n.event;return o&&(null===(i=t.ids)||void 0===i?void 0:i.includes(o))&&("*"===a||(null==a?void 0:a.toLocaleLowerCase())===(null===(r=t.data)||void 0===r?void 0:r.type.toLocaleLowerCase()))}{let n=null===(s=null===(a=null==e?void 0:e.filter)||void 0===a?void 0:a.event)||void 0===s?void 0:s.toLocaleLowerCase();return"*"===n||n===(null===(l=null==t?void 0:t.event)||void 0===l?void 0:l.toLocaleLowerCase())}}).map(e=>{if("object"==typeof d&&"ids"in d){let e=d.data,{schema:t,table:n,commit_timestamp:i,type:r,errors:o}=e;d=Object.assign(Object.assign({},{schema:t,table:n,commit_timestamp:i,eventType:r,new:{},old:{},errors:o}),this._getPayloadRecords(e))}e.callback(d,n)})}_isClosed(){return this.state===h.closed}_isJoined(){return this.state===h.joined}_isJoining(){return this.state===h.joining}_isLeaving(){return this.state===h.leaving}_replyEventName(e){return`chan_reply_${e}`}_on(e,t,n){let i=e.toLocaleLowerCase(),r={type:i,filter:t,callback:n};return this.bindings[i]?this.bindings[i].push(r):this.bindings[i]=[r],this}_off(e,t){let n=e.toLocaleLowerCase();return this.bindings[n]=this.bindings[n].filter(e=>{var i;return!((null===(i=e.type)||void 0===i?void 0:i.toLocaleLowerCase())===n&&J.isEqual(e.filter,t))}),this}static isEqual(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0}_rejoinUntilConnected(){this.rejoinTimer.scheduleTimeout(),this.socket.isConnected()&&this._rejoin()}_onClose(e){this._on(p.close,{},e)}_onError(e){this._on(p.error,{},t=>e(t))}_canPush(){return this.socket.isConnected()&&this._isJoined()}_rejoin(e=this.timeout){this._isLeaving()||(this.socket._leaveOpenTopic(this.topic),this.state=h.joining,this.joinPush.resend(e))}_getPayloadRecords(e){let t={new:{},old:{}};return("INSERT"===e.type||"UPDATE"===e.type)&&(t.new=F(e.columns,e.record)),("UPDATE"===e.type||"DELETE"===e.type)&&(t.old=F(e.columns,e.old_record)),t}}let Z=()=>{},Q="undefined"!=typeof WebSocket,ee=`
  addEventListener("message", (e) => {
    if (e.data.event === "start") {
      setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval);
    }
  });`;class et{constructor(e,t){var i;this.accessToken=null,this.apiKey=null,this.channels=[],this.endPoint="",this.httpEndpoint="",this.headers=j,this.params={},this.timeout=1e4,this.heartbeatIntervalMs=3e4,this.heartbeatTimer=void 0,this.pendingHeartbeatRef=null,this.ref=0,this.logger=Z,this.conn=null,this.sendBuffer=[],this.serializer=new D,this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this._resolveFetch=e=>{let t;return t=e||("undefined"==typeof fetch?(...e)=>Promise.resolve().then(n.bind(n,50564)).then(({default:t})=>t(...e)):fetch),(...e)=>t(...e)},this.endPoint=`${e}/${f.websocket}`,this.httpEndpoint=X(e),(null==t?void 0:t.transport)?this.transport=t.transport:this.transport=null,(null==t?void 0:t.params)&&(this.params=t.params),(null==t?void 0:t.headers)&&(this.headers=Object.assign(Object.assign({},this.headers),t.headers)),(null==t?void 0:t.timeout)&&(this.timeout=t.timeout),(null==t?void 0:t.logger)&&(this.logger=t.logger),(null==t?void 0:t.heartbeatIntervalMs)&&(this.heartbeatIntervalMs=t.heartbeatIntervalMs);let r=null===(i=null==t?void 0:t.params)||void 0===i?void 0:i.apikey;if(r&&(this.accessToken=r,this.apiKey=r),this.reconnectAfterMs=(null==t?void 0:t.reconnectAfterMs)?t.reconnectAfterMs:e=>[1e3,2e3,5e3,1e4][e-1]||1e4,this.encode=(null==t?void 0:t.encode)?t.encode:(e,t)=>t(JSON.stringify(e)),this.decode=(null==t?void 0:t.decode)?t.decode:this.serializer.decode.bind(this.serializer),this.reconnectTimer=new N(async()=>{this.disconnect(),this.connect()},this.reconnectAfterMs),this.fetch=this._resolveFetch(null==t?void 0:t.fetch),null==t?void 0:t.worker){if("undefined"!=typeof window&&!window.Worker)throw Error("Web Worker is not supported");this.worker=(null==t?void 0:t.worker)||!1,this.workerUrl=null==t?void 0:t.workerUrl}}connect(){if(!this.conn){if(this.transport){this.conn=new this.transport(this._endPointURL(),void 0,{headers:this.headers});return}if(Q){this.conn=new WebSocket(this._endPointURL()),this.setupConnection();return}this.conn=new en(this._endPointURL(),void 0,{close:()=>{this.conn=null}}),n.e(1956).then(n.t.bind(n,71956,23)).then(({default:e})=>{this.conn=new e(this._endPointURL(),void 0,{headers:this.headers}),this.setupConnection()})}}disconnect(e,t){this.conn&&(this.conn.onclose=function(){},e?this.conn.close(e,null!=t?t:""):this.conn.close(),this.conn=null,this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.reconnectTimer.reset())}getChannels(){return this.channels}async removeChannel(e){let t=await e.unsubscribe();return 0===this.channels.length&&this.disconnect(),t}async removeAllChannels(){let e=await Promise.all(this.channels.map(e=>e.unsubscribe()));return this.disconnect(),e}log(e,t,n){this.logger(e,t,n)}connectionState(){switch(this.conn&&this.conn.readyState){case u.connecting:return m.Connecting;case u.open:return m.Open;case u.closing:return m.Closing;default:return m.Closed}}isConnected(){return this.connectionState()===m.Open}channel(e,t={config:{}}){let n=new J(`realtime:${e}`,t,this);return this.channels.push(n),n}push(e){let{topic:t,event:n,payload:i,ref:r}=e,o=()=>{this.encode(e,e=>{var t;null===(t=this.conn)||void 0===t||t.send(e)})};this.log("push",`${t} ${n} (${r})`,i),this.isConnected()?o():this.sendBuffer.push(o)}setAuth(e){this.accessToken=e,this.channels.forEach(t=>{e&&t.updateJoinPayload({access_token:e}),t.joinedOnce&&t._isJoined()&&t._push(p.access_token,{access_token:e})})}_makeRef(){let e=this.ref+1;return e===this.ref?this.ref=0:this.ref=e,this.ref.toString()}_leaveOpenTopic(e){let t=this.channels.find(t=>t.topic===e&&(t._isJoined()||t._isJoining()));t&&(this.log("transport",`leaving duplicate topic "${e}"`),t.unsubscribe())}_remove(e){this.channels=this.channels.filter(t=>t._joinRef()!==e._joinRef())}setupConnection(){this.conn&&(this.conn.binaryType="arraybuffer",this.conn.onopen=()=>this._onConnOpen(),this.conn.onerror=e=>this._onConnError(e),this.conn.onmessage=e=>this._onConnMessage(e),this.conn.onclose=e=>this._onConnClose(e))}_endPointURL(){return this._appendParams(this.endPoint,Object.assign({},this.params,{vsn:"1.0.0"}))}_onConnMessage(e){this.decode(e.data,e=>{let{topic:t,event:n,payload:i,ref:r}=e;(r&&r===this.pendingHeartbeatRef||n===(null==i?void 0:i.type))&&(this.pendingHeartbeatRef=null),this.log("receive",`${i.status||""} ${t} ${n} ${r&&"("+r+")"||""}`,i),this.channels.filter(e=>e._isMember(t)).forEach(e=>e._trigger(n,i,r)),this.stateChangeCallbacks.message.forEach(t=>t(e))})}async _onConnOpen(){if(this.log("transport",`connected to ${this._endPointURL()}`),this._flushSendBuffer(),this.reconnectTimer.reset(),this.worker){this.workerUrl?this.log("worker",`starting worker for from ${this.workerUrl}`):this.log("worker","starting default worker");let e=this._workerObjectUrl(this.workerUrl);this.workerRef=new Worker(e),this.workerRef.onerror=e=>{this.log("worker","worker error",e.message),this.workerRef.terminate()},this.workerRef.onmessage=e=>{"keepAlive"===e.data.event&&this._sendHeartbeat()},this.workerRef.postMessage({event:"start",interval:this.heartbeatIntervalMs})}else this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.heartbeatTimer=setInterval(()=>this._sendHeartbeat(),this.heartbeatIntervalMs);this.stateChangeCallbacks.open.forEach(e=>e())}_onConnClose(e){this.log("transport","close",e),this._triggerChanError(),this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.reconnectTimer.scheduleTimeout(),this.stateChangeCallbacks.close.forEach(t=>t(e))}_onConnError(e){this.log("transport",e.message),this._triggerChanError(),this.stateChangeCallbacks.error.forEach(t=>t(e))}_triggerChanError(){this.channels.forEach(e=>e._trigger(p.error))}_appendParams(e,t){if(0===Object.keys(t).length)return e;let n=e.match(/\?/)?"&":"?",i=new URLSearchParams(t);return`${e}${n}${i}`}_flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(e=>e()),this.sendBuffer=[])}_sendHeartbeat(){var e;if(this.isConnected()){if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this.log("transport","heartbeat timeout. Attempting to re-establish connection"),null===(e=this.conn)||void 0===e||e.close(1e3,"hearbeat timeout");return}this.pendingHeartbeatRef=this._makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef}),this.setAuth(this.accessToken)}}_workerObjectUrl(e){let t;if(e)t=e;else{let e=new Blob([ee],{type:"application/javascript"});t=URL.createObjectURL(e)}return t}}class en{constructor(e,t,n){this.binaryType="arraybuffer",this.onclose=()=>{},this.onerror=()=>{},this.onmessage=()=>{},this.onopen=()=>{},this.readyState=u.connecting,this.send=()=>{},this.url=null,this.url=e,this.close=n.close}}class ei extends Error{constructor(e){super(e),this.__isStorageError=!0,this.name="StorageError"}}function er(e){return"object"==typeof e&&null!==e&&"__isStorageError"in e}class eo extends ei{constructor(e,t){super(e),this.name="StorageApiError",this.status=t}toJSON(){return{name:this.name,message:this.message,status:this.status}}}class ea extends ei{constructor(e,t){super(e),this.name="StorageUnknownError",this.originalError=t}}let es=e=>{let t;return t=e||("undefined"==typeof fetch?(...e)=>Promise.resolve().then(n.bind(n,50564)).then(({default:t})=>t(...e)):fetch),(...e)=>t(...e)},el=()=>{var e,t,i,r;return e=void 0,t=void 0,i=void 0,r=function*(){return"undefined"==typeof Response?(yield Promise.resolve().then(n.bind(n,50564))).Response:Response},new(i||(i=Promise))(function(n,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?n(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(a,s)}l((r=r.apply(e,t||[])).next())})},ec=e=>{if(Array.isArray(e))return e.map(e=>ec(e));if("function"==typeof e||e!==Object(e))return e;let t={};return Object.entries(e).forEach(([e,n])=>{let i=e.replace(/([-_][a-z])/gi,e=>e.toUpperCase().replace(/[-_]/g,""));t[i]=ec(n)}),t};var ed=function(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{l(i.next(e))}catch(e){o(e)}}function s(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((i=i.apply(e,t||[])).next())})};let eu=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),eh=(e,t,n)=>ed(void 0,void 0,void 0,function*(){let i=yield el();e instanceof i&&!(null==n?void 0:n.noResolveJson)?e.json().then(n=>{t(new eo(eu(n),e.status||500))}).catch(e=>{t(new ea(eu(e),e))}):t(new ea(eu(e),e))}),ep=(e,t,n,i)=>{let r={method:e,headers:(null==t?void 0:t.headers)||{}};return"GET"===e?r:(r.headers=Object.assign({"Content-Type":"application/json"},null==t?void 0:t.headers),i&&(r.body=JSON.stringify(i)),Object.assign(Object.assign({},r),n))};function ef(e,t,n,i,r,o){return ed(this,void 0,void 0,function*(){return new Promise((a,s)=>{e(n,ep(t,i,r,o)).then(e=>{if(!e.ok)throw e;return(null==i?void 0:i.noResolveJson)?e:e.json()}).then(e=>a(e)).catch(e=>eh(e,s,i))})})}function em(e,t,n,i){return ed(this,void 0,void 0,function*(){return ef(e,"GET",t,n,i)})}function eg(e,t,n,i,r){return ed(this,void 0,void 0,function*(){return ef(e,"POST",t,i,r,n)})}function eb(e,t,n,i,r){return ed(this,void 0,void 0,function*(){return ef(e,"DELETE",t,i,r,n)})}var ev=n(51328).lW,ey=function(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{l(i.next(e))}catch(e){o(e)}}function s(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((i=i.apply(e,t||[])).next())})};let ex={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},ew={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};class ek{constructor(e,t={},n,i){this.url=e,this.headers=t,this.bucketId=n,this.fetch=es(i)}uploadOrUpdate(e,t,n,i){return ey(this,void 0,void 0,function*(){try{let r;let o=Object.assign(Object.assign({},ew),i),a=Object.assign(Object.assign({},this.headers),"POST"===e&&{"x-upsert":String(o.upsert)}),s=o.metadata;"undefined"!=typeof Blob&&n instanceof Blob?((r=new FormData).append("cacheControl",o.cacheControl),s&&r.append("metadata",this.encodeMetadata(s)),r.append("",n)):"undefined"!=typeof FormData&&n instanceof FormData?((r=n).append("cacheControl",o.cacheControl),s&&r.append("metadata",this.encodeMetadata(s))):(r=n,a["cache-control"]=`max-age=${o.cacheControl}`,a["content-type"]=o.contentType,s&&(a["x-metadata"]=this.toBase64(this.encodeMetadata(s)))),(null==i?void 0:i.headers)&&(a=Object.assign(Object.assign({},a),i.headers));let l=this._removeEmptyFolders(t),c=this._getFinalPath(l),d=yield this.fetch(`${this.url}/object/${c}`,Object.assign({method:e,body:r,headers:a},(null==o?void 0:o.duplex)?{duplex:o.duplex}:{})),u=yield d.json();if(d.ok)return{data:{path:l,id:u.Id,fullPath:u.Key},error:null};return{data:null,error:u}}catch(e){if(er(e))return{data:null,error:e};throw e}})}upload(e,t,n){return ey(this,void 0,void 0,function*(){return this.uploadOrUpdate("POST",e,t,n)})}uploadToSignedUrl(e,t,n,i){return ey(this,void 0,void 0,function*(){let r=this._removeEmptyFolders(e),o=this._getFinalPath(r),a=new URL(this.url+`/object/upload/sign/${o}`);a.searchParams.set("token",t);try{let e;let t=Object.assign({upsert:ew.upsert},i),o=Object.assign(Object.assign({},this.headers),{"x-upsert":String(t.upsert)});"undefined"!=typeof Blob&&n instanceof Blob?((e=new FormData).append("cacheControl",t.cacheControl),e.append("",n)):"undefined"!=typeof FormData&&n instanceof FormData?(e=n).append("cacheControl",t.cacheControl):(e=n,o["cache-control"]=`max-age=${t.cacheControl}`,o["content-type"]=t.contentType);let s=yield this.fetch(a.toString(),{method:"PUT",body:e,headers:o}),l=yield s.json();if(s.ok)return{data:{path:r,fullPath:l.Key},error:null};return{data:null,error:l}}catch(e){if(er(e))return{data:null,error:e};throw e}})}createSignedUploadUrl(e,t){return ey(this,void 0,void 0,function*(){try{let n=this._getFinalPath(e),i=Object.assign({},this.headers);(null==t?void 0:t.upsert)&&(i["x-upsert"]="true");let r=yield eg(this.fetch,`${this.url}/object/upload/sign/${n}`,{},{headers:i}),o=new URL(this.url+r.url),a=o.searchParams.get("token");if(!a)throw new ei("No token returned by API");return{data:{signedUrl:o.toString(),path:e,token:a},error:null}}catch(e){if(er(e))return{data:null,error:e};throw e}})}update(e,t,n){return ey(this,void 0,void 0,function*(){return this.uploadOrUpdate("PUT",e,t,n)})}move(e,t,n){return ey(this,void 0,void 0,function*(){try{let i=yield eg(this.fetch,`${this.url}/object/move`,{bucketId:this.bucketId,sourceKey:e,destinationKey:t,destinationBucket:null==n?void 0:n.destinationBucket},{headers:this.headers});return{data:i,error:null}}catch(e){if(er(e))return{data:null,error:e};throw e}})}copy(e,t,n){return ey(this,void 0,void 0,function*(){try{let i=yield eg(this.fetch,`${this.url}/object/copy`,{bucketId:this.bucketId,sourceKey:e,destinationKey:t,destinationBucket:null==n?void 0:n.destinationBucket},{headers:this.headers});return{data:{path:i.Key},error:null}}catch(e){if(er(e))return{data:null,error:e};throw e}})}createSignedUrl(e,t,n){return ey(this,void 0,void 0,function*(){try{let i=this._getFinalPath(e),r=yield eg(this.fetch,`${this.url}/object/sign/${i}`,Object.assign({expiresIn:t},(null==n?void 0:n.transform)?{transform:n.transform}:{}),{headers:this.headers}),o=(null==n?void 0:n.download)?`&download=${!0===n.download?"":n.download}`:"",a=encodeURI(`${this.url}${r.signedURL}${o}`);return{data:r={signedUrl:a},error:null}}catch(e){if(er(e))return{data:null,error:e};throw e}})}createSignedUrls(e,t,n){return ey(this,void 0,void 0,function*(){try{let i=yield eg(this.fetch,`${this.url}/object/sign/${this.bucketId}`,{expiresIn:t,paths:e},{headers:this.headers}),r=(null==n?void 0:n.download)?`&download=${!0===n.download?"":n.download}`:"";return{data:i.map(e=>Object.assign(Object.assign({},e),{signedUrl:e.signedURL?encodeURI(`${this.url}${e.signedURL}${r}`):null})),error:null}}catch(e){if(er(e))return{data:null,error:e};throw e}})}download(e,t){return ey(this,void 0,void 0,function*(){let n=void 0!==(null==t?void 0:t.transform),i=this.transformOptsToQueryString((null==t?void 0:t.transform)||{}),r=i?`?${i}`:"";try{let t=this._getFinalPath(e),i=yield em(this.fetch,`${this.url}/${n?"render/image/authenticated":"object"}/${t}${r}`,{headers:this.headers,noResolveJson:!0}),o=yield i.blob();return{data:o,error:null}}catch(e){if(er(e))return{data:null,error:e};throw e}})}info(e){return ey(this,void 0,void 0,function*(){let t=this._getFinalPath(e);try{let e=yield em(this.fetch,`${this.url}/object/info/${t}`,{headers:this.headers});return{data:ec(e),error:null}}catch(e){if(er(e))return{data:null,error:e};throw e}})}exists(e){return ey(this,void 0,void 0,function*(){let t=this._getFinalPath(e);try{return yield function(e,t,n,i){return ed(this,void 0,void 0,function*(){return ef(e,"HEAD",t,Object.assign(Object.assign({},n),{noResolveJson:!0}),void 0)})}(this.fetch,`${this.url}/object/${t}`,{headers:this.headers}),{data:!0,error:null}}catch(e){if(er(e)&&e instanceof ea){let t=e.originalError;if([400,404].includes(null==t?void 0:t.status))return{data:!1,error:e}}throw e}})}getPublicUrl(e,t){let n=this._getFinalPath(e),i=[],r=(null==t?void 0:t.download)?`download=${!0===t.download?"":t.download}`:"";""!==r&&i.push(r);let o=void 0!==(null==t?void 0:t.transform),a=this.transformOptsToQueryString((null==t?void 0:t.transform)||{});""!==a&&i.push(a);let s=i.join("&");return""!==s&&(s=`?${s}`),{data:{publicUrl:encodeURI(`${this.url}/${o?"render/image":"object"}/public/${n}${s}`)}}}remove(e){return ey(this,void 0,void 0,function*(){try{let t=yield eb(this.fetch,`${this.url}/object/${this.bucketId}`,{prefixes:e},{headers:this.headers});return{data:t,error:null}}catch(e){if(er(e))return{data:null,error:e};throw e}})}list(e,t,n){return ey(this,void 0,void 0,function*(){try{let i=Object.assign(Object.assign(Object.assign({},ex),t),{prefix:e||""}),r=yield eg(this.fetch,`${this.url}/object/list/${this.bucketId}`,i,{headers:this.headers},n);return{data:r,error:null}}catch(e){if(er(e))return{data:null,error:e};throw e}})}encodeMetadata(e){return JSON.stringify(e)}toBase64(e){return void 0!==ev?ev.from(e).toString("base64"):btoa(e)}_getFinalPath(e){return`${this.bucketId}/${e}`}_removeEmptyFolders(e){return e.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}transformOptsToQueryString(e){let t=[];return e.width&&t.push(`width=${e.width}`),e.height&&t.push(`height=${e.height}`),e.resize&&t.push(`resize=${e.resize}`),e.format&&t.push(`format=${e.format}`),e.quality&&t.push(`quality=${e.quality}`),t.join("&")}}let e_={"X-Client-Info":"storage-js/2.7.1"};var eE=function(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{l(i.next(e))}catch(e){o(e)}}function s(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((i=i.apply(e,t||[])).next())})};class eS{constructor(e,t={},n){this.url=e,this.headers=Object.assign(Object.assign({},e_),t),this.fetch=es(n)}listBuckets(){return eE(this,void 0,void 0,function*(){try{let e=yield em(this.fetch,`${this.url}/bucket`,{headers:this.headers});return{data:e,error:null}}catch(e){if(er(e))return{data:null,error:e};throw e}})}getBucket(e){return eE(this,void 0,void 0,function*(){try{let t=yield em(this.fetch,`${this.url}/bucket/${e}`,{headers:this.headers});return{data:t,error:null}}catch(e){if(er(e))return{data:null,error:e};throw e}})}createBucket(e,t={public:!1}){return eE(this,void 0,void 0,function*(){try{let n=yield eg(this.fetch,`${this.url}/bucket`,{id:e,name:e,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes},{headers:this.headers});return{data:n,error:null}}catch(e){if(er(e))return{data:null,error:e};throw e}})}updateBucket(e,t){return eE(this,void 0,void 0,function*(){try{let n=yield function(e,t,n,i,r){return ed(this,void 0,void 0,function*(){return ef(e,"PUT",t,i,void 0,n)})}(this.fetch,`${this.url}/bucket/${e}`,{id:e,name:e,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes},{headers:this.headers});return{data:n,error:null}}catch(e){if(er(e))return{data:null,error:e};throw e}})}emptyBucket(e){return eE(this,void 0,void 0,function*(){try{let t=yield eg(this.fetch,`${this.url}/bucket/${e}/empty`,{},{headers:this.headers});return{data:t,error:null}}catch(e){if(er(e))return{data:null,error:e};throw e}})}deleteBucket(e){return eE(this,void 0,void 0,function*(){try{let t=yield eb(this.fetch,`${this.url}/bucket/${e}`,{},{headers:this.headers});return{data:t,error:null}}catch(e){if(er(e))return{data:null,error:e};throw e}})}}class eC extends eS{constructor(e,t={},n){super(e,t,n)}from(e){return new ek(this.url,this.headers,e,this.fetch)}}let eP="";eP="undefined"!=typeof Deno?"deno":"undefined"!=typeof document?"web":"undefined"!=typeof navigator&&"ReactNative"===navigator.product?"react-native":"node";let eT={"X-Client-Info":`supabase-js-${eP}/2.45.6`},eO={headers:eT},eA={schema:"public"},eI={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},eR={};var e$=n(50564);let eL=e=>{let t;return t=e||("undefined"==typeof fetch?e$.default:fetch),(...e)=>t(...e)},eM=()=>"undefined"==typeof Headers?e$.Headers:Headers,ej=(e,t,n)=>{let i=eL(n),r=eM();return(n,o)=>{var a,s,l,c;return a=void 0,s=void 0,l=void 0,c=function*(){var a;let s=null!==(a=yield t())&&void 0!==a?a:e,l=new r(null==o?void 0:o.headers);return l.has("apikey")||l.set("apikey",e),l.has("Authorization")||l.set("Authorization",`Bearer ${s}`),i(n,Object.assign(Object.assign({},o),{headers:l}))},new(l||(l=Promise))(function(e,t){function n(e){try{r(c.next(e))}catch(e){t(e)}}function i(e){try{r(c.throw(e))}catch(e){t(e)}}function r(t){var r;t.done?e(t.value):((r=t.value)instanceof l?r:new l(function(e){e(r)})).then(n,i)}r((c=c.apply(a,s||[])).next())})}},eD="2.65.1",eN={"X-Client-Info":`gotrue-js/${eD}`},eF="X-Supabase-Api-Version",ez={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},eB=()=>"undefined"!=typeof document,eH={tested:!1,writable:!1},eU=()=>{if(!eB())return!1;try{if("object"!=typeof globalThis.localStorage)return!1}catch(e){return!1}if(eH.tested)return eH.writable;let e=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),eH.tested=!0,eH.writable=!0}catch(e){eH.tested=!0,eH.writable=!1}return eH.writable};function eV(e){let t={},n=new URL(e);if(n.hash&&"#"===n.hash[0])try{let e=new URLSearchParams(n.hash.substring(1));e.forEach((e,n)=>{t[n]=e})}catch(e){}return n.searchParams.forEach((e,n)=>{t[n]=e}),t}let eW=e=>{let t;return t=e||("undefined"==typeof fetch?(...e)=>Promise.resolve().then(n.bind(n,50564)).then(({default:t})=>t(...e)):fetch),(...e)=>t(...e)},eq=e=>"object"==typeof e&&null!==e&&"status"in e&&"ok"in e&&"json"in e&&"function"==typeof e.json,eG=async(e,t,n)=>{await e.setItem(t,JSON.stringify(n))},eX=async(e,t)=>{let n=await e.getItem(t);if(!n)return null;try{return JSON.parse(n)}catch(e){return n}},eY=async(e,t)=>{await e.removeItem(t)};class eK{constructor(){this.promise=new eK.promiseConstructor((e,t)=>{this.resolve=e,this.reject=t})}}function eJ(e){let t=e.split(".");if(3!==t.length)throw Error("JWT is not valid: not a JWT structure");if(!/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}=?$|[a-z0-9_-]{2}(==)?$)$/i.test(t[1]))throw Error("JWT is not valid: payload is not in base64url format");let n=t[1];return JSON.parse(function(e){let t,n,i,r,o,a,s;let l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",c="",d=0;for(e=e.replace("-","+").replace("_","/");d<e.length;)r=l.indexOf(e.charAt(d++)),o=l.indexOf(e.charAt(d++)),a=l.indexOf(e.charAt(d++)),s=l.indexOf(e.charAt(d++)),t=r<<2|o>>4,n=(15&o)<<4|a>>2,i=(3&a)<<6|s,c+=String.fromCharCode(t),64!=a&&0!=n&&(c+=String.fromCharCode(n)),64!=s&&0!=i&&(c+=String.fromCharCode(i));return c}(n))}async function eZ(e){return await new Promise(t=>{setTimeout(()=>t(null),e)})}function eQ(e){return("0"+e.toString(16)).substr(-2)}async function e0(e){let t=new TextEncoder,n=t.encode(e),i=await crypto.subtle.digest("SHA-256",n),r=new Uint8Array(i);return Array.from(r).map(e=>String.fromCharCode(e)).join("")}async function e1(e){let t="undefined"!=typeof crypto&&void 0!==crypto.subtle&&"undefined"!=typeof TextEncoder;if(!t)return console.warn("WebCrypto API is not supported. Code challenge method will default to use plain instead of sha256."),e;let n=await e0(e);return btoa(n).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function e2(e,t,n=!1){let i=function(){let e=new Uint32Array(56);if("undefined"==typeof crypto){let e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",t=e.length,n="";for(let i=0;i<56;i++)n+=e.charAt(Math.floor(Math.random()*t));return n}return crypto.getRandomValues(e),Array.from(e,eQ).join("")}(),r=i;n&&(r+="/PASSWORD_RECOVERY"),await eG(e,`${t}-code-verifier`,r);let o=await e1(i),a=i===o?"plain":"s256";return[o,a]}eK.promiseConstructor=Promise;let e5=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;class e3 extends Error{constructor(e,t,n){super(e),this.__isAuthError=!0,this.name="AuthError",this.status=t,this.code=n}}function e4(e){return"object"==typeof e&&null!==e&&"__isAuthError"in e}class e6 extends e3{constructor(e,t,n){super(e,t,n),this.name="AuthApiError",this.status=t,this.code=n}}class e8 extends e3{constructor(e,t){super(e),this.name="AuthUnknownError",this.originalError=t}}class e9 extends e3{constructor(e,t,n,i){super(e,n,i),this.name=t,this.status=n}}class e7 extends e9{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}class te extends e9{constructor(){super("Auth session or user missing","AuthInvalidTokenResponseError",500,void 0)}}class tt extends e9{constructor(e){super(e,"AuthInvalidCredentialsError",400,void 0)}}class tn extends e9{constructor(e,t=null){super(e,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=t}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}class ti extends e9{constructor(e,t=null){super(e,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=t}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}class tr extends e9{constructor(e,t){super(e,"AuthRetryableFetchError",t,void 0)}}function to(e){return e4(e)&&"AuthRetryableFetchError"===e.name}class ta extends e9{constructor(e,t,n){super(e,"AuthWeakPasswordError",t,"weak_password"),this.reasons=n}}var ts=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)0>t.indexOf(i[r])&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n};let tl=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),tc=[502,503,504];async function td(e){var t;let n,i;if(!eq(e))throw new tr(tl(e),0);if(tc.includes(e.status))throw new tr(tl(e),e.status);try{n=await e.json()}catch(e){throw new e8(tl(e),e)}let r=function(e){let t=e.headers.get(eF);if(!t||!t.match(e5))return null;try{let e=new Date(`${t}T00:00:00.0Z`);return e}catch(e){return null}}(e);if(r&&r.getTime()>=ez["2024-01-01"].timestamp&&"object"==typeof n&&n&&"string"==typeof n.code?i=n.code:"object"==typeof n&&n&&"string"==typeof n.error_code&&(i=n.error_code),i){if("weak_password"===i)throw new ta(tl(n),e.status,(null===(t=n.weak_password)||void 0===t?void 0:t.reasons)||[]);if("session_not_found"===i)throw new e7}else if("object"==typeof n&&n&&"object"==typeof n.weak_password&&n.weak_password&&Array.isArray(n.weak_password.reasons)&&n.weak_password.reasons.length&&n.weak_password.reasons.reduce((e,t)=>e&&"string"==typeof t,!0))throw new ta(tl(n),e.status,n.weak_password.reasons);throw new e6(tl(n),e.status||500,i)}let tu=(e,t,n,i)=>{let r={method:e,headers:(null==t?void 0:t.headers)||{}};return"GET"===e?r:(r.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},null==t?void 0:t.headers),r.body=JSON.stringify(i),Object.assign(Object.assign({},r),n))};async function th(e,t,n,i){var r;let o=Object.assign({},null==i?void 0:i.headers);o[eF]||(o[eF]=ez["2024-01-01"].name),(null==i?void 0:i.jwt)&&(o.Authorization=`Bearer ${i.jwt}`);let a=null!==(r=null==i?void 0:i.query)&&void 0!==r?r:{};(null==i?void 0:i.redirectTo)&&(a.redirect_to=i.redirectTo);let s=Object.keys(a).length?"?"+new URLSearchParams(a).toString():"",l=await tp(e,t,n+s,{headers:o,noResolveJson:null==i?void 0:i.noResolveJson},{},null==i?void 0:i.body);return(null==i?void 0:i.xform)?null==i?void 0:i.xform(l):{data:Object.assign({},l),error:null}}async function tp(e,t,n,i,r,o){let a;let s=tu(t,i,r,o);try{a=await e(n,Object.assign({},s))}catch(e){throw console.error(e),new tr(tl(e),0)}if(a.ok||await td(a),null==i?void 0:i.noResolveJson)return a;try{return await a.json()}catch(e){await td(e)}}function tf(e){var t;let n=null;e.access_token&&e.refresh_token&&e.expires_in&&(n=Object.assign({},e),e.expires_at||(n.expires_at=function(e){let t=Math.round(Date.now()/1e3);return t+e}(e.expires_in)));let i=null!==(t=e.user)&&void 0!==t?t:e;return{data:{session:n,user:i},error:null}}function tm(e){let t=tf(e);return!t.error&&e.weak_password&&"object"==typeof e.weak_password&&Array.isArray(e.weak_password.reasons)&&e.weak_password.reasons.length&&e.weak_password.message&&"string"==typeof e.weak_password.message&&e.weak_password.reasons.reduce((e,t)=>e&&"string"==typeof t,!0)&&(t.data.weak_password=e.weak_password),t}function tg(e){var t;let n=null!==(t=e.user)&&void 0!==t?t:e;return{data:{user:n},error:null}}function tb(e){return{data:e,error:null}}function tv(e){let{action_link:t,email_otp:n,hashed_token:i,redirect_to:r,verification_type:o}=e,a=ts(e,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),s=Object.assign({},a);return{data:{properties:{action_link:t,email_otp:n,hashed_token:i,redirect_to:r,verification_type:o},user:s},error:null}}function ty(e){return e}var tx=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)0>t.indexOf(i[r])&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n};class tw{constructor({url:e="",headers:t={},fetch:n}){this.url=e,this.headers=t,this.fetch=eW(n),this.mfa={listFactors:this._listFactors.bind(this),deleteFactor:this._deleteFactor.bind(this)}}async signOut(e,t="global"){try{return await th(this.fetch,"POST",`${this.url}/logout?scope=${t}`,{headers:this.headers,jwt:e,noResolveJson:!0}),{data:null,error:null}}catch(e){if(e4(e))return{data:null,error:e};throw e}}async inviteUserByEmail(e,t={}){try{return await th(this.fetch,"POST",`${this.url}/invite`,{body:{email:e,data:t.data},headers:this.headers,redirectTo:t.redirectTo,xform:tg})}catch(e){if(e4(e))return{data:{user:null},error:e};throw e}}async generateLink(e){try{let{options:t}=e,n=tx(e,["options"]),i=Object.assign(Object.assign({},n),t);return"newEmail"in n&&(i.new_email=null==n?void 0:n.newEmail,delete i.newEmail),await th(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:i,headers:this.headers,xform:tv,redirectTo:null==t?void 0:t.redirectTo})}catch(e){if(e4(e))return{data:{properties:null,user:null},error:e};throw e}}async createUser(e){try{return await th(this.fetch,"POST",`${this.url}/admin/users`,{body:e,headers:this.headers,xform:tg})}catch(e){if(e4(e))return{data:{user:null},error:e};throw e}}async listUsers(e){var t,n,i,r,o,a,s;try{let l={nextPage:null,lastPage:0,total:0},c=await th(this.fetch,"GET",`${this.url}/admin/users`,{headers:this.headers,noResolveJson:!0,query:{page:null!==(n=null===(t=null==e?void 0:e.page)||void 0===t?void 0:t.toString())&&void 0!==n?n:"",per_page:null!==(r=null===(i=null==e?void 0:e.perPage)||void 0===i?void 0:i.toString())&&void 0!==r?r:""},xform:ty});if(c.error)throw c.error;let d=await c.json(),u=null!==(o=c.headers.get("x-total-count"))&&void 0!==o?o:0,h=null!==(s=null===(a=c.headers.get("link"))||void 0===a?void 0:a.split(","))&&void 0!==s?s:[];return h.length>0&&(h.forEach(e=>{let t=parseInt(e.split(";")[0].split("=")[1].substring(0,1)),n=JSON.parse(e.split(";")[1].split("=")[1]);l[`${n}Page`]=t}),l.total=parseInt(u)),{data:Object.assign(Object.assign({},d),l),error:null}}catch(e){if(e4(e))return{data:{users:[]},error:e};throw e}}async getUserById(e){try{return await th(this.fetch,"GET",`${this.url}/admin/users/${e}`,{headers:this.headers,xform:tg})}catch(e){if(e4(e))return{data:{user:null},error:e};throw e}}async updateUserById(e,t){try{return await th(this.fetch,"PUT",`${this.url}/admin/users/${e}`,{body:t,headers:this.headers,xform:tg})}catch(e){if(e4(e))return{data:{user:null},error:e};throw e}}async deleteUser(e,t=!1){try{return await th(this.fetch,"DELETE",`${this.url}/admin/users/${e}`,{headers:this.headers,body:{should_soft_delete:t},xform:tg})}catch(e){if(e4(e))return{data:{user:null},error:e};throw e}}async _listFactors(e){try{let{data:t,error:n}=await th(this.fetch,"GET",`${this.url}/admin/users/${e.userId}/factors`,{headers:this.headers,xform:e=>({data:{factors:e},error:null})});return{data:t,error:n}}catch(e){if(e4(e))return{data:null,error:e};throw e}}async _deleteFactor(e){try{let t=await th(this.fetch,"DELETE",`${this.url}/admin/users/${e.userId}/factors/${e.id}`,{headers:this.headers});return{data:t,error:null}}catch(e){if(e4(e))return{data:null,error:e};throw e}}}let tk={getItem:e=>eU()?globalThis.localStorage.getItem(e):null,setItem:(e,t)=>{eU()&&globalThis.localStorage.setItem(e,t)},removeItem:e=>{eU()&&globalThis.localStorage.removeItem(e)}};function t_(e={}){return{getItem:t=>e[t]||null,setItem:(t,n)=>{e[t]=n},removeItem:t=>{delete e[t]}}}let tE={debug:!!(globalThis&&eU()&&globalThis.localStorage&&"true"===globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug"))};class tS extends Error{constructor(e){super(e),this.isAcquireTimeout=!0}}class tC extends tS{}async function tP(e,t,n){tE.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",e,t);let i=new globalThis.AbortController;return t>0&&setTimeout(()=>{i.abort(),tE.debug&&console.log("@supabase/gotrue-js: navigatorLock acquire timed out",e)},t),await globalThis.navigator.locks.request(e,0===t?{mode:"exclusive",ifAvailable:!0}:{mode:"exclusive",signal:i.signal},async i=>{if(i){tE.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquired",e,i.name);try{return await n()}finally{tE.debug&&console.log("@supabase/gotrue-js: navigatorLock: released",e,i.name)}}else{if(0===t)throw tE.debug&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",e),new tC(`Acquiring an exclusive Navigator LockManager lock "${e}" immediately failed`);if(tE.debug)try{let e=await globalThis.navigator.locks.query();console.log("@supabase/gotrue-js: Navigator LockManager state",JSON.stringify(e,null,"  "))}catch(e){console.warn("@supabase/gotrue-js: Error when querying Navigator LockManager state",e)}return console.warn("@supabase/gotrue-js: Navigator LockManager returned a null lock when using #request without ifAvailable set to true, it appears this browser is not following the LockManager spec https://developer.mozilla.org/en-US/docs/Web/API/LockManager/request"),await n()}})}!function(){if("object"!=typeof globalThis)try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__}catch(e){"undefined"!=typeof self&&(self.globalThis=self)}}();let tT={url:"http://localhost:9999",storageKey:"supabase.auth.token",autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:eN,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1};async function tO(e,t,n){return await n()}class tA{constructor(e){var t,n;this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.visibilityChangedCallback=null,this.refreshingDeferred=null,this.initializePromise=null,this.detectSessionInUrl=!0,this.hasCustomAuthorizationHeader=!1,this.suppressGetSessionWarning=!1,this.lockAcquired=!1,this.pendingInLock=[],this.broadcastChannel=null,this.logger=console.log,this.instanceID=tA.nextInstanceID,tA.nextInstanceID+=1,this.instanceID>0&&eB()&&console.warn("Multiple GoTrueClient instances detected in the same browser context. It is not an error, but this should be avoided as it may produce undefined behavior when used concurrently under the same storage key.");let i=Object.assign(Object.assign({},tT),e);if(this.logDebugMessages=!!i.debug,"function"==typeof i.debug&&(this.logger=i.debug),this.persistSession=i.persistSession,this.storageKey=i.storageKey,this.autoRefreshToken=i.autoRefreshToken,this.admin=new tw({url:i.url,headers:i.headers,fetch:i.fetch}),this.url=i.url,this.headers=i.headers,this.fetch=eW(i.fetch),this.lock=i.lock||tO,this.detectSessionInUrl=i.detectSessionInUrl,this.flowType=i.flowType,this.hasCustomAuthorizationHeader=i.hasCustomAuthorizationHeader,i.lock?this.lock=i.lock:eB()&&(null===(t=null==globalThis?void 0:globalThis.navigator)||void 0===t?void 0:t.locks)?this.lock=tP:this.lock=tO,this.mfa={verify:this._verify.bind(this),enroll:this._enroll.bind(this),unenroll:this._unenroll.bind(this),challenge:this._challenge.bind(this),listFactors:this._listFactors.bind(this),challengeAndVerify:this._challengeAndVerify.bind(this),getAuthenticatorAssuranceLevel:this._getAuthenticatorAssuranceLevel.bind(this)},this.persistSession?i.storage?this.storage=i.storage:eU()?this.storage=tk:(this.memoryStorage={},this.storage=t_(this.memoryStorage)):(this.memoryStorage={},this.storage=t_(this.memoryStorage)),eB()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(e){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",e)}null===(n=this.broadcastChannel)||void 0===n||n.addEventListener("message",async e=>{this._debug("received broadcast notification from other tab or client",e),await this._notifyAllSubscribers(e.data.event,e.data.session,!1)})}this.initialize()}_debug(...e){return this.logDebugMessages&&this.logger(`GoTrueClient@${this.instanceID} (${eD}) ${new Date().toISOString()}`,...e),this}async initialize(){return this.initializePromise||(this.initializePromise=(async()=>await this._acquireLock(-1,async()=>await this._initialize()))()),await this.initializePromise}async _initialize(){try{let e=!!eB()&&await this._isPKCEFlow();if(this._debug("#_initialize()","begin","is PKCE flow",e),e||this.detectSessionInUrl&&this._isImplicitGrantFlow()){let{data:t,error:n}=await this._getSessionFromURL(e);if(n){if(this._debug("#_initialize()","error detecting session from URL",n),(null==n?void 0:n.code)==="identity_already_exists")return{error:n};return await this._removeSession(),{error:n}}let{session:i,redirectType:r}=t;return this._debug("#_initialize()","detected session in URL",i,"redirect type",r),await this._saveSession(i),setTimeout(async()=>{"recovery"===r?await this._notifyAllSubscribers("PASSWORD_RECOVERY",i):await this._notifyAllSubscribers("SIGNED_IN",i)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(e){if(e4(e))return{error:e};return{error:new e8("Unexpected error during initialization",e)}}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(e){var t,n,i;try{let r=await th(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:null!==(n=null===(t=null==e?void 0:e.options)||void 0===t?void 0:t.data)&&void 0!==n?n:{},gotrue_meta_security:{captcha_token:null===(i=null==e?void 0:e.options)||void 0===i?void 0:i.captchaToken}},xform:tf}),{data:o,error:a}=r;if(a||!o)return{data:{user:null,session:null},error:a};let s=o.session,l=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",s)),{data:{user:l,session:s},error:null}}catch(e){if(e4(e))return{data:{user:null,session:null},error:e};throw e}}async signUp(e){var t,n,i;try{let r;if("email"in e){let{email:n,password:i,options:o}=e,a=null,s=null;"pkce"===this.flowType&&([a,s]=await e2(this.storage,this.storageKey)),r=await th(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:null==o?void 0:o.emailRedirectTo,body:{email:n,password:i,data:null!==(t=null==o?void 0:o.data)&&void 0!==t?t:{},gotrue_meta_security:{captcha_token:null==o?void 0:o.captchaToken},code_challenge:a,code_challenge_method:s},xform:tf})}else if("phone"in e){let{phone:t,password:o,options:a}=e;r=await th(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:t,password:o,data:null!==(n=null==a?void 0:a.data)&&void 0!==n?n:{},channel:null!==(i=null==a?void 0:a.channel)&&void 0!==i?i:"sms",gotrue_meta_security:{captcha_token:null==a?void 0:a.captchaToken}},xform:tf})}else throw new tt("You must provide either an email or phone number and a password");let{data:o,error:a}=r;if(a||!o)return{data:{user:null,session:null},error:a};let s=o.session,l=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",s)),{data:{user:l,session:s},error:null}}catch(e){if(e4(e))return{data:{user:null,session:null},error:e};throw e}}async signInWithPassword(e){try{let t;if("email"in e){let{email:n,password:i,options:r}=e;t=await th(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:n,password:i,gotrue_meta_security:{captcha_token:null==r?void 0:r.captchaToken}},xform:tm})}else if("phone"in e){let{phone:n,password:i,options:r}=e;t=await th(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:n,password:i,gotrue_meta_security:{captcha_token:null==r?void 0:r.captchaToken}},xform:tm})}else throw new tt("You must provide either an email or phone number and a password");let{data:n,error:i}=t;if(i)return{data:{user:null,session:null},error:i};if(!n||!n.session||!n.user)return{data:{user:null,session:null},error:new te};return n.session&&(await this._saveSession(n.session),await this._notifyAllSubscribers("SIGNED_IN",n.session)),{data:Object.assign({user:n.user,session:n.session},n.weak_password?{weakPassword:n.weak_password}:null),error:i}}catch(e){if(e4(e))return{data:{user:null,session:null},error:e};throw e}}async signInWithOAuth(e){var t,n,i,r;return await this._handleProviderSignIn(e.provider,{redirectTo:null===(t=e.options)||void 0===t?void 0:t.redirectTo,scopes:null===(n=e.options)||void 0===n?void 0:n.scopes,queryParams:null===(i=e.options)||void 0===i?void 0:i.queryParams,skipBrowserRedirect:null===(r=e.options)||void 0===r?void 0:r.skipBrowserRedirect})}async exchangeCodeForSession(e){return await this.initializePromise,this._acquireLock(-1,async()=>this._exchangeCodeForSession(e))}async _exchangeCodeForSession(e){let t=await eX(this.storage,`${this.storageKey}-code-verifier`),[n,i]=(null!=t?t:"").split("/");try{let{data:t,error:r}=await th(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:e,code_verifier:n},xform:tf});if(await eY(this.storage,`${this.storageKey}-code-verifier`),r)throw r;if(!t||!t.session||!t.user)return{data:{user:null,session:null,redirectType:null},error:new te};return t.session&&(await this._saveSession(t.session),await this._notifyAllSubscribers("SIGNED_IN",t.session)),{data:Object.assign(Object.assign({},t),{redirectType:null!=i?i:null}),error:r}}catch(e){if(e4(e))return{data:{user:null,session:null,redirectType:null},error:e};throw e}}async signInWithIdToken(e){try{let{options:t,provider:n,token:i,access_token:r,nonce:o}=e,a=await th(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:n,id_token:i,access_token:r,nonce:o,gotrue_meta_security:{captcha_token:null==t?void 0:t.captchaToken}},xform:tf}),{data:s,error:l}=a;if(l)return{data:{user:null,session:null},error:l};if(!s||!s.session||!s.user)return{data:{user:null,session:null},error:new te};return s.session&&(await this._saveSession(s.session),await this._notifyAllSubscribers("SIGNED_IN",s.session)),{data:s,error:l}}catch(e){if(e4(e))return{data:{user:null,session:null},error:e};throw e}}async signInWithOtp(e){var t,n,i,r,o;try{if("email"in e){let{email:i,options:r}=e,o=null,a=null;"pkce"===this.flowType&&([o,a]=await e2(this.storage,this.storageKey));let{error:s}=await th(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:i,data:null!==(t=null==r?void 0:r.data)&&void 0!==t?t:{},create_user:null===(n=null==r?void 0:r.shouldCreateUser)||void 0===n||n,gotrue_meta_security:{captcha_token:null==r?void 0:r.captchaToken},code_challenge:o,code_challenge_method:a},redirectTo:null==r?void 0:r.emailRedirectTo});return{data:{user:null,session:null},error:s}}if("phone"in e){let{phone:t,options:n}=e,{data:a,error:s}=await th(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:t,data:null!==(i=null==n?void 0:n.data)&&void 0!==i?i:{},create_user:null===(r=null==n?void 0:n.shouldCreateUser)||void 0===r||r,gotrue_meta_security:{captcha_token:null==n?void 0:n.captchaToken},channel:null!==(o=null==n?void 0:n.channel)&&void 0!==o?o:"sms"}});return{data:{user:null,session:null,messageId:null==a?void 0:a.message_id},error:s}}throw new tt("You must provide either an email or phone number.")}catch(e){if(e4(e))return{data:{user:null,session:null},error:e};throw e}}async verifyOtp(e){var t,n;try{let i,r;"options"in e&&(i=null===(t=e.options)||void 0===t?void 0:t.redirectTo,r=null===(n=e.options)||void 0===n?void 0:n.captchaToken);let{data:o,error:a}=await th(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},e),{gotrue_meta_security:{captcha_token:r}}),redirectTo:i,xform:tf});if(a)throw a;if(!o)throw Error("An error occurred on token verification.");let s=o.session,l=o.user;return(null==s?void 0:s.access_token)&&(await this._saveSession(s),await this._notifyAllSubscribers("recovery"==e.type?"PASSWORD_RECOVERY":"SIGNED_IN",s)),{data:{user:l,session:s},error:null}}catch(e){if(e4(e))return{data:{user:null,session:null},error:e};throw e}}async signInWithSSO(e){var t,n,i;try{let r=null,o=null;return"pkce"===this.flowType&&([r,o]=await e2(this.storage,this.storageKey)),await th(this.fetch,"POST",`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"providerId"in e?{provider_id:e.providerId}:null),"domain"in e?{domain:e.domain}:null),{redirect_to:null!==(n=null===(t=e.options)||void 0===t?void 0:t.redirectTo)&&void 0!==n?n:void 0}),(null===(i=null==e?void 0:e.options)||void 0===i?void 0:i.captchaToken)?{gotrue_meta_security:{captcha_token:e.options.captchaToken}}:null),{skip_http_redirect:!0,code_challenge:r,code_challenge_method:o}),headers:this.headers,xform:tb})}catch(e){if(e4(e))return{data:null,error:e};throw e}}async reauthenticate(){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._reauthenticate())}async _reauthenticate(){try{return await this._useSession(async e=>{let{data:{session:t},error:n}=e;if(n)throw n;if(!t)throw new e7;let{error:i}=await th(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:t.access_token});return{data:{user:null,session:null},error:i}})}catch(e){if(e4(e))return{data:{user:null,session:null},error:e};throw e}}async resend(e){try{let t=`${this.url}/resend`;if("email"in e){let{email:n,type:i,options:r}=e,{error:o}=await th(this.fetch,"POST",t,{headers:this.headers,body:{email:n,type:i,gotrue_meta_security:{captcha_token:null==r?void 0:r.captchaToken}},redirectTo:null==r?void 0:r.emailRedirectTo});return{data:{user:null,session:null},error:o}}if("phone"in e){let{phone:n,type:i,options:r}=e,{data:o,error:a}=await th(this.fetch,"POST",t,{headers:this.headers,body:{phone:n,type:i,gotrue_meta_security:{captcha_token:null==r?void 0:r.captchaToken}}});return{data:{user:null,session:null,messageId:null==o?void 0:o.message_id},error:a}}throw new tt("You must provide either an email or phone number and a type")}catch(e){if(e4(e))return{data:{user:null,session:null},error:e};throw e}}async getSession(){await this.initializePromise;let e=await this._acquireLock(-1,async()=>this._useSession(async e=>e));return e}async _acquireLock(e,t){this._debug("#_acquireLock","begin",e);try{if(this.lockAcquired){let e=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),n=(async()=>(await e,await t()))();return this.pendingInLock.push((async()=>{try{await n}catch(e){}})()),n}return await this.lock(`lock:${this.storageKey}`,e,async()=>{this._debug("#_acquireLock","lock acquired for storage key",this.storageKey);try{this.lockAcquired=!0;let e=t();for(this.pendingInLock.push((async()=>{try{await e}catch(e){}})()),await e;this.pendingInLock.length;){let e=[...this.pendingInLock];await Promise.all(e),this.pendingInLock.splice(0,e.length)}return await e}finally{this._debug("#_acquireLock","lock released for storage key",this.storageKey),this.lockAcquired=!1}})}finally{this._debug("#_acquireLock","end")}}async _useSession(e){this._debug("#_useSession","begin");try{let t=await this.__loadSession();return await e(t)}finally{this._debug("#_useSession","end")}}async __loadSession(){this._debug("#__loadSession()","begin"),this.lockAcquired||this._debug("#__loadSession()","used outside of an acquired lock!",Error().stack);try{let e=null,t=await eX(this.storage,this.storageKey);if(this._debug("#getSession()","session from storage",t),null!==t&&(this._isValidSession(t)?e=t:(this._debug("#getSession()","session from storage is not valid"),await this._removeSession())),!e)return{data:{session:null},error:null};let n=!!e.expires_at&&e.expires_at<=Date.now()/1e3;if(this._debug("#__loadSession()",`session has${n?"":" not"} expired`,"expires_at",e.expires_at),!n){if(this.storage.isServer){let t=this.suppressGetSessionWarning,n=new Proxy(e,{get:(e,n,i)=>(t||"user"!==n||(console.warn("Using the user object as returned from supabase.auth.getSession() or from some supabase.auth.onAuthStateChange() events could be insecure! This value comes directly from the storage medium (usually cookies on the server) and many not be authentic. Use supabase.auth.getUser() instead which authenticates the data by contacting the Supabase Auth server."),t=!0,this.suppressGetSessionWarning=!0),Reflect.get(e,n,i))});e=n}return{data:{session:e},error:null}}let{session:i,error:r}=await this._callRefreshToken(e.refresh_token);if(r)return{data:{session:null},error:r};return{data:{session:i},error:null}}finally{this._debug("#__loadSession()","end")}}async getUser(e){if(e)return await this._getUser(e);await this.initializePromise;let t=await this._acquireLock(-1,async()=>await this._getUser());return t}async _getUser(e){try{if(e)return await th(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:e,xform:tg});return await this._useSession(async e=>{var t,n,i;let{data:r,error:o}=e;if(o)throw o;return(null===(t=r.session)||void 0===t?void 0:t.access_token)||this.hasCustomAuthorizationHeader?await th(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:null!==(i=null===(n=r.session)||void 0===n?void 0:n.access_token)&&void 0!==i?i:void 0,xform:tg}):{data:{user:null},error:new e7}})}catch(e){if(e4(e))return e4(e)&&"AuthSessionMissingError"===e.name&&(await this._removeSession(),await eY(this.storage,`${this.storageKey}-code-verifier`)),{data:{user:null},error:e};throw e}}async updateUser(e,t={}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._updateUser(e,t))}async _updateUser(e,t={}){try{return await this._useSession(async n=>{let{data:i,error:r}=n;if(r)throw r;if(!i.session)throw new e7;let o=i.session,a=null,s=null;"pkce"===this.flowType&&null!=e.email&&([a,s]=await e2(this.storage,this.storageKey));let{data:l,error:c}=await th(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:null==t?void 0:t.emailRedirectTo,body:Object.assign(Object.assign({},e),{code_challenge:a,code_challenge_method:s}),jwt:o.access_token,xform:tg});if(c)throw c;return o.user=l.user,await this._saveSession(o),await this._notifyAllSubscribers("USER_UPDATED",o),{data:{user:o.user},error:null}})}catch(e){if(e4(e))return{data:{user:null},error:e};throw e}}_decodeJWT(e){return eJ(e)}async setSession(e){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._setSession(e))}async _setSession(e){try{if(!e.access_token||!e.refresh_token)throw new e7;let t=Date.now()/1e3,n=t,i=!0,r=null,o=eJ(e.access_token);if(o.exp&&(i=(n=o.exp)<=t),i){let{session:t,error:n}=await this._callRefreshToken(e.refresh_token);if(n)return{data:{user:null,session:null},error:n};if(!t)return{data:{user:null,session:null},error:null};r=t}else{let{data:i,error:o}=await this._getUser(e.access_token);if(o)throw o;r={access_token:e.access_token,refresh_token:e.refresh_token,user:i.user,token_type:"bearer",expires_in:n-t,expires_at:n},await this._saveSession(r),await this._notifyAllSubscribers("SIGNED_IN",r)}return{data:{user:r.user,session:r},error:null}}catch(e){if(e4(e))return{data:{session:null,user:null},error:e};throw e}}async refreshSession(e){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._refreshSession(e))}async _refreshSession(e){try{return await this._useSession(async t=>{var n;if(!e){let{data:i,error:r}=t;if(r)throw r;e=null!==(n=i.session)&&void 0!==n?n:void 0}if(!(null==e?void 0:e.refresh_token))throw new e7;let{session:i,error:r}=await this._callRefreshToken(e.refresh_token);return r?{data:{user:null,session:null},error:r}:i?{data:{user:i.user,session:i},error:null}:{data:{user:null,session:null},error:null}})}catch(e){if(e4(e))return{data:{user:null,session:null},error:e};throw e}}async _getSessionFromURL(e){try{if(!eB())throw new tn("No browser detected.");if("implicit"!==this.flowType||this._isImplicitGrantFlow()){if("pkce"==this.flowType&&!e)throw new ti("Not a valid PKCE flow url.")}else throw new tn("Not a valid implicit grant flow url.");let t=eV(window.location.href);if(e){if(!t.code)throw new ti("No code detected.");let{data:e,error:n}=await this._exchangeCodeForSession(t.code);if(n)throw n;let i=new URL(window.location.href);return i.searchParams.delete("code"),window.history.replaceState(window.history.state,"",i.toString()),{data:{session:e.session,redirectType:null},error:null}}if(t.error||t.error_description||t.error_code)throw new tn(t.error_description||"Error in URL with unspecified error_description",{error:t.error||"unspecified_error",code:t.error_code||"unspecified_code"});let{provider_token:n,provider_refresh_token:i,access_token:r,refresh_token:o,expires_in:a,expires_at:s,token_type:l}=t;if(!r||!a||!o||!l)throw new tn("No session defined in URL");let c=Math.round(Date.now()/1e3),d=parseInt(a),u=c+d;s&&(u=parseInt(s));let h=u-c;1e3*h<=3e4&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${h}s, should have been closer to ${d}s`);let p=u-d;c-p>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",p,u,c):c-p<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",p,u,c);let{data:f,error:m}=await this._getUser(r);if(m)throw m;let g={provider_token:n,provider_refresh_token:i,access_token:r,expires_in:d,expires_at:u,refresh_token:o,token_type:l,user:f.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),{data:{session:g,redirectType:t.type},error:null}}catch(e){if(e4(e))return{data:{session:null,redirectType:null},error:e};throw e}}_isImplicitGrantFlow(){let e=eV(window.location.href);return!!(eB()&&(e.access_token||e.error_description))}async _isPKCEFlow(){let e=eV(window.location.href),t=await eX(this.storage,`${this.storageKey}-code-verifier`);return!!(e.code&&t)}async signOut(e={scope:"global"}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._signOut(e))}async _signOut({scope:e}={scope:"global"}){return await this._useSession(async t=>{var n;let{data:i,error:r}=t;if(r)return{error:r};let o=null===(n=i.session)||void 0===n?void 0:n.access_token;if(o){let{error:t}=await this.admin.signOut(o,e);if(t&&!(e4(t)&&"AuthApiError"===t.name&&(404===t.status||401===t.status||403===t.status)))return{error:t}}return"others"!==e&&(await this._removeSession(),await eY(this.storage,`${this.storageKey}-code-verifier`)),{error:null}})}onAuthStateChange(e){let t="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){let t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}),n={id:t,callback:e,unsubscribe:()=>{this._debug("#unsubscribe()","state change callback with id removed",t),this.stateChangeEmitters.delete(t)}};return this._debug("#onAuthStateChange()","registered callback with id",t),this.stateChangeEmitters.set(t,n),(async()=>{await this.initializePromise,await this._acquireLock(-1,async()=>{this._emitInitialSession(t)})})(),{data:{subscription:n}}}async _emitInitialSession(e){return await this._useSession(async t=>{var n,i;try{let{data:{session:i},error:r}=t;if(r)throw r;await (null===(n=this.stateChangeEmitters.get(e))||void 0===n?void 0:n.callback("INITIAL_SESSION",i)),this._debug("INITIAL_SESSION","callback id",e,"session",i)}catch(t){await (null===(i=this.stateChangeEmitters.get(e))||void 0===i?void 0:i.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",e,"error",t),console.error(t)}})}async resetPasswordForEmail(e,t={}){let n=null,i=null;"pkce"===this.flowType&&([n,i]=await e2(this.storage,this.storageKey,!0));try{return await th(this.fetch,"POST",`${this.url}/recover`,{body:{email:e,code_challenge:n,code_challenge_method:i,gotrue_meta_security:{captcha_token:t.captchaToken}},headers:this.headers,redirectTo:t.redirectTo})}catch(e){if(e4(e))return{data:null,error:e};throw e}}async getUserIdentities(){var e;try{let{data:t,error:n}=await this.getUser();if(n)throw n;return{data:{identities:null!==(e=t.user.identities)&&void 0!==e?e:[]},error:null}}catch(e){if(e4(e))return{data:null,error:e};throw e}}async linkIdentity(e){var t;try{let{data:n,error:i}=await this._useSession(async t=>{var n,i,r,o,a;let{data:s,error:l}=t;if(l)throw l;let c=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,e.provider,{redirectTo:null===(n=e.options)||void 0===n?void 0:n.redirectTo,scopes:null===(i=e.options)||void 0===i?void 0:i.scopes,queryParams:null===(r=e.options)||void 0===r?void 0:r.queryParams,skipBrowserRedirect:!0});return await th(this.fetch,"GET",c,{headers:this.headers,jwt:null!==(a=null===(o=s.session)||void 0===o?void 0:o.access_token)&&void 0!==a?a:void 0})});if(i)throw i;return!eB()||(null===(t=e.options)||void 0===t?void 0:t.skipBrowserRedirect)||window.location.assign(null==n?void 0:n.url),{data:{provider:e.provider,url:null==n?void 0:n.url},error:null}}catch(t){if(e4(t))return{data:{provider:e.provider,url:null},error:t};throw t}}async unlinkIdentity(e){try{return await this._useSession(async t=>{var n,i;let{data:r,error:o}=t;if(o)throw o;return await th(this.fetch,"DELETE",`${this.url}/user/identities/${e.identity_id}`,{headers:this.headers,jwt:null!==(i=null===(n=r.session)||void 0===n?void 0:n.access_token)&&void 0!==i?i:void 0})})}catch(e){if(e4(e))return{data:null,error:e};throw e}}async _refreshAccessToken(e){let t=`#_refreshAccessToken(${e.substring(0,5)}...)`;this._debug(t,"begin");try{let n=Date.now();return await function(e,t){let n=new Promise((n,i)=>{(async()=>{for(let r=0;r<1/0;r++)try{let i=await e(r);if(!t(r,null,i)){n(i);return}}catch(e){if(!t(r,e)){i(e);return}}})()});return n}(async n=>(n>0&&await eZ(200*Math.pow(2,n-1)),this._debug(t,"refreshing attempt",n),await th(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:e},headers:this.headers,xform:tf})),(e,t)=>{let i=200*Math.pow(2,e);return t&&to(t)&&Date.now()+i-n<3e4})}catch(e){if(this._debug(t,"error",e),e4(e))return{data:{session:null,user:null},error:e};throw e}finally{this._debug(t,"end")}}_isValidSession(e){return"object"==typeof e&&null!==e&&"access_token"in e&&"refresh_token"in e&&"expires_at"in e}async _handleProviderSignIn(e,t){let n=await this._getUrlForProvider(`${this.url}/authorize`,e,{redirectTo:t.redirectTo,scopes:t.scopes,queryParams:t.queryParams});return this._debug("#_handleProviderSignIn()","provider",e,"options",t,"url",n),eB()&&!t.skipBrowserRedirect&&window.location.assign(n),{data:{provider:e,url:n},error:null}}async _recoverAndRefresh(){var e;let t="#_recoverAndRefresh()";this._debug(t,"begin");try{let n=await eX(this.storage,this.storageKey);if(this._debug(t,"session from storage",n),!this._isValidSession(n)){this._debug(t,"session is not valid"),null!==n&&await this._removeSession();return}let i=Math.round(Date.now()/1e3),r=(null!==(e=n.expires_at)&&void 0!==e?e:1/0)<i+10;if(this._debug(t,`session has${r?"":" not"} expired with margin of 10s`),r){if(this.autoRefreshToken&&n.refresh_token){let{error:e}=await this._callRefreshToken(n.refresh_token);e&&(console.error(e),to(e)||(this._debug(t,"refresh failed with a non-retryable error, removing the session",e),await this._removeSession()))}}else await this._notifyAllSubscribers("SIGNED_IN",n)}catch(e){this._debug(t,"error",e),console.error(e);return}finally{this._debug(t,"end")}}async _callRefreshToken(e){var t,n;if(!e)throw new e7;if(this.refreshingDeferred)return this.refreshingDeferred.promise;let i=`#_callRefreshToken(${e.substring(0,5)}...)`;this._debug(i,"begin");try{this.refreshingDeferred=new eK;let{data:t,error:n}=await this._refreshAccessToken(e);if(n)throw n;if(!t.session)throw new e7;await this._saveSession(t.session),await this._notifyAllSubscribers("TOKEN_REFRESHED",t.session);let i={session:t.session,error:null};return this.refreshingDeferred.resolve(i),i}catch(e){if(this._debug(i,"error",e),e4(e)){let n={session:null,error:e};return to(e)||await this._removeSession(),null===(t=this.refreshingDeferred)||void 0===t||t.resolve(n),n}throw null===(n=this.refreshingDeferred)||void 0===n||n.reject(e),e}finally{this.refreshingDeferred=null,this._debug(i,"end")}}async _notifyAllSubscribers(e,t,n=!0){let i=`#_notifyAllSubscribers(${e})`;this._debug(i,"begin",t,`broadcast = ${n}`);try{this.broadcastChannel&&n&&this.broadcastChannel.postMessage({event:e,session:t});let i=[],r=Array.from(this.stateChangeEmitters.values()).map(async n=>{try{await n.callback(e,t)}catch(e){i.push(e)}});if(await Promise.all(r),i.length>0){for(let e=0;e<i.length;e+=1)console.error(i[e]);throw i[0]}}finally{this._debug(i,"end")}}async _saveSession(e){this._debug("#_saveSession()",e),this.suppressGetSessionWarning=!0,await eG(this.storage,this.storageKey,e)}async _removeSession(){this._debug("#_removeSession()"),await eY(this.storage,this.storageKey),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");let e=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{e&&eB()&&(null==window?void 0:window.removeEventListener)&&window.removeEventListener("visibilitychange",e)}catch(e){console.error("removing visibilitychange callback failed",e)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");let e=setInterval(()=>this._autoRefreshTokenTick(),3e4);this.autoRefreshTicker=e,e&&"object"==typeof e&&"function"==typeof e.unref?e.unref():"undefined"!=typeof Deno&&"function"==typeof Deno.unrefTimer&&Deno.unrefTimer(e),setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");let e=this.autoRefreshTicker;this.autoRefreshTicker=null,e&&clearInterval(e)}async startAutoRefresh(){this._removeVisibilityChangedCallback(),await this._startAutoRefresh()}async stopAutoRefresh(){this._removeVisibilityChangedCallback(),await this._stopAutoRefresh()}async _autoRefreshTokenTick(){this._debug("#_autoRefreshTokenTick()","begin");try{await this._acquireLock(0,async()=>{try{let e=Date.now();try{return await this._useSession(async t=>{let{data:{session:n}}=t;if(!n||!n.refresh_token||!n.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}let i=Math.floor((1e3*n.expires_at-e)/3e4);this._debug("#_autoRefreshTokenTick()",`access token expires in ${i} ticks, a tick lasts 30000ms, refresh threshold is 3 ticks`),i<=3&&await this._callRefreshToken(n.refresh_token)})}catch(e){console.error("Auto refresh tick failed with error. This is likely a transient error.",e)}}finally{this._debug("#_autoRefreshTokenTick()","end")}})}catch(e){if(e.isAcquireTimeout||e instanceof tS)this._debug("auto refresh token tick lock not available");else throw e}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!eB()||!(null==window?void 0:window.addEventListener))return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>await this._onVisibilityChanged(!1),null==window||window.addEventListener("visibilitychange",this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(e){console.error("_handleVisibilityChange",e)}}async _onVisibilityChanged(e){let t=`#_onVisibilityChanged(${e})`;this._debug(t,"visibilityState",document.visibilityState),"visible"===document.visibilityState?(this.autoRefreshToken&&this._startAutoRefresh(),e||(await this.initializePromise,await this._acquireLock(-1,async()=>{if("visible"!==document.visibilityState){this._debug(t,"acquired the lock to recover the session, but the browser visibilityState is no longer visible, aborting");return}await this._recoverAndRefresh()}))):"hidden"===document.visibilityState&&this.autoRefreshToken&&this._stopAutoRefresh()}async _getUrlForProvider(e,t,n){let i=[`provider=${encodeURIComponent(t)}`];if((null==n?void 0:n.redirectTo)&&i.push(`redirect_to=${encodeURIComponent(n.redirectTo)}`),(null==n?void 0:n.scopes)&&i.push(`scopes=${encodeURIComponent(n.scopes)}`),"pkce"===this.flowType){let[e,t]=await e2(this.storage,this.storageKey),n=new URLSearchParams({code_challenge:`${encodeURIComponent(e)}`,code_challenge_method:`${encodeURIComponent(t)}`});i.push(n.toString())}if(null==n?void 0:n.queryParams){let e=new URLSearchParams(n.queryParams);i.push(e.toString())}return(null==n?void 0:n.skipBrowserRedirect)&&i.push(`skip_http_redirect=${n.skipBrowserRedirect}`),`${e}?${i.join("&")}`}async _unenroll(e){try{return await this._useSession(async t=>{var n;let{data:i,error:r}=t;return r?{data:null,error:r}:await th(this.fetch,"DELETE",`${this.url}/factors/${e.factorId}`,{headers:this.headers,jwt:null===(n=null==i?void 0:i.session)||void 0===n?void 0:n.access_token})})}catch(e){if(e4(e))return{data:null,error:e};throw e}}async _enroll(e){try{return await this._useSession(async t=>{var n,i;let{data:r,error:o}=t;if(o)return{data:null,error:o};let a=Object.assign({friendly_name:e.friendlyName,factor_type:e.factorType},"phone"===e.factorType?{phone:e.phone}:{issuer:e.issuer}),{data:s,error:l}=await th(this.fetch,"POST",`${this.url}/factors`,{body:a,headers:this.headers,jwt:null===(n=null==r?void 0:r.session)||void 0===n?void 0:n.access_token});return l?{data:null,error:l}:("totp"===e.factorType&&(null===(i=null==s?void 0:s.totp)||void 0===i?void 0:i.qr_code)&&(s.totp.qr_code=`data:image/svg+xml;utf-8,${s.totp.qr_code}`),{data:s,error:null})})}catch(e){if(e4(e))return{data:null,error:e};throw e}}async _verify(e){return this._acquireLock(-1,async()=>{try{return await this._useSession(async t=>{var n;let{data:i,error:r}=t;if(r)return{data:null,error:r};let{data:o,error:a}=await th(this.fetch,"POST",`${this.url}/factors/${e.factorId}/verify`,{body:{code:e.code,challenge_id:e.challengeId},headers:this.headers,jwt:null===(n=null==i?void 0:i.session)||void 0===n?void 0:n.access_token});return a?{data:null,error:a}:(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+o.expires_in},o)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",o),{data:o,error:a})})}catch(e){if(e4(e))return{data:null,error:e};throw e}})}async _challenge(e){return this._acquireLock(-1,async()=>{try{return await this._useSession(async t=>{var n;let{data:i,error:r}=t;return r?{data:null,error:r}:await th(this.fetch,"POST",`${this.url}/factors/${e.factorId}/challenge`,{body:{channel:e.channel},headers:this.headers,jwt:null===(n=null==i?void 0:i.session)||void 0===n?void 0:n.access_token})})}catch(e){if(e4(e))return{data:null,error:e};throw e}})}async _challengeAndVerify(e){let{data:t,error:n}=await this._challenge({factorId:e.factorId});return n?{data:null,error:n}:await this._verify({factorId:e.factorId,challengeId:t.id,code:e.code})}async _listFactors(){let{data:{user:e},error:t}=await this.getUser();if(t)return{data:null,error:t};let n=(null==e?void 0:e.factors)||[],i=n.filter(e=>"totp"===e.factor_type&&"verified"===e.status),r=n.filter(e=>"phone"===e.factor_type&&"verified"===e.status);return{data:{all:n,totp:i,phone:r},error:null}}async _getAuthenticatorAssuranceLevel(){return this._acquireLock(-1,async()=>await this._useSession(async e=>{var t,n;let{data:{session:i},error:r}=e;if(r)return{data:null,error:r};if(!i)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};let o=this._decodeJWT(i.access_token),a=null;o.aal&&(a=o.aal);let s=a,l=null!==(n=null===(t=i.user.factors)||void 0===t?void 0:t.filter(e=>"verified"===e.status))&&void 0!==n?n:[];l.length>0&&(s="aal2");let c=o.amr||[];return{data:{currentLevel:a,nextLevel:s,currentAuthenticationMethods:c},error:null}}))}}tA.nextInstanceID=0;var tI=tA;class tR extends tI{constructor(e){super(e)}}class t${constructor(e,t,n){var i,r,o;if(this.supabaseUrl=e,this.supabaseKey=t,!e)throw Error("supabaseUrl is required.");if(!t)throw Error("supabaseKey is required.");let a=e.replace(/\/$/,"");this.realtimeUrl=`${a}/realtime/v1`.replace(/^http/i,"ws"),this.authUrl=`${a}/auth/v1`,this.storageUrl=`${a}/storage/v1`,this.functionsUrl=`${a}/functions/v1`;let s=`sb-${new URL(this.authUrl).hostname.split(".")[0]}-auth-token`,l={db:eA,realtime:eR,auth:Object.assign(Object.assign({},eI),{storageKey:s}),global:eO},c=function(e,t){let{db:n,auth:i,realtime:r,global:o}=e,{db:a,auth:s,realtime:l,global:c}=t,d={db:Object.assign(Object.assign({},a),n),auth:Object.assign(Object.assign({},s),i),realtime:Object.assign(Object.assign({},l),r),global:Object.assign(Object.assign({},c),o),accessToken:()=>{var e,t,n,i;return e=this,t=void 0,i=function*(){return""},new(n=void 0,n=Promise)(function(r,o){function a(e){try{l(i.next(e))}catch(e){o(e)}}function s(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((i=i.apply(e,t||[])).next())})}};return e.accessToken?d.accessToken=e.accessToken:delete d.accessToken,d}(null!=n?n:{},l);this.storageKey=null!==(i=c.auth.storageKey)&&void 0!==i?i:"",this.headers=null!==(r=c.global.headers)&&void 0!==r?r:{},c.accessToken?(this.accessToken=c.accessToken,this.auth=new Proxy({},{get:(e,t)=>{throw Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(t)} is not possible`)}})):this.auth=this._initSupabaseAuthClient(null!==(o=c.auth)&&void 0!==o?o:{},this.headers,c.global.fetch),this.fetch=ej(t,this._getAccessToken.bind(this),c.global.fetch),this.realtime=this._initRealtimeClient(Object.assign({headers:this.headers},c.realtime)),this.rest=new I(`${a}/rest/v1`,{headers:this.headers,schema:c.db.schema,fetch:this.fetch}),c.accessToken||this._listenForAuthEvents()}get functions(){return new l(this.functionsUrl,{headers:this.headers,customFetch:this.fetch})}get storage(){return new eC(this.storageUrl,this.headers,this.fetch)}from(e){return this.rest.from(e)}schema(e){return this.rest.schema(e)}rpc(e,t={},n={}){return this.rest.rpc(e,t,n)}channel(e,t={config:{}}){return this.realtime.channel(e,t)}getChannels(){return this.realtime.getChannels()}removeChannel(e){return this.realtime.removeChannel(e)}removeAllChannels(){return this.realtime.removeAllChannels()}_getAccessToken(){var e,t,n,i,r,o;return n=this,i=void 0,r=void 0,o=function*(){if(this.accessToken)return yield this.accessToken();let{data:n}=yield this.auth.getSession();return null!==(t=null===(e=n.session)||void 0===e?void 0:e.access_token)&&void 0!==t?t:null},new(r||(r=Promise))(function(e,t){function a(e){try{l(o.next(e))}catch(e){t(e)}}function s(e){try{l(o.throw(e))}catch(e){t(e)}}function l(t){var n;t.done?e(t.value):((n=t.value)instanceof r?n:new r(function(e){e(n)})).then(a,s)}l((o=o.apply(n,i||[])).next())})}_initSupabaseAuthClient({autoRefreshToken:e,persistSession:t,detectSessionInUrl:n,storage:i,storageKey:r,flowType:o,lock:a,debug:s},l,c){var d;let u={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new tR({url:this.authUrl,headers:Object.assign(Object.assign({},u),l),storageKey:r,autoRefreshToken:e,persistSession:t,detectSessionInUrl:n,storage:i,flowType:o,lock:a,debug:s,fetch:c,hasCustomAuthorizationHeader:"Authorization"in this.headers})}_initRealtimeClient(e){return new et(this.realtimeUrl,Object.assign(Object.assign({},e),{params:Object.assign({apikey:this.supabaseKey},null==e?void 0:e.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((e,t)=>{this._handleTokenChanged(e,"CLIENT",null==t?void 0:t.access_token)})}_handleTokenChanged(e,t,n){("TOKEN_REFRESHED"===e||"SIGNED_IN"===e)&&this.changedAccessToken!==n?(this.realtime.setAuth(null!=n?n:null),this.changedAccessToken=n):"SIGNED_OUT"===e&&(this.realtime.setAuth(this.supabaseKey),"STORAGE"==t&&this.auth.signOut(),this.changedAccessToken=void 0)}}let tL=(e,t,n)=>new t$(e,t,n)},43522:function(e,t){"use strict";t.byteLength=function(e){var t=l(e),n=t[0],i=t[1];return(n+i)*3/4-i},t.toByteArray=function(e){var t,n,o=l(e),a=o[0],s=o[1],c=new r((a+s)*3/4-s),d=0,u=s>0?a-4:a;for(n=0;n<u;n+=4)t=i[e.charCodeAt(n)]<<18|i[e.charCodeAt(n+1)]<<12|i[e.charCodeAt(n+2)]<<6|i[e.charCodeAt(n+3)],c[d++]=t>>16&255,c[d++]=t>>8&255,c[d++]=255&t;return 2===s&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,c[d++]=255&t),1===s&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,c[d++]=t>>8&255,c[d++]=255&t),c},t.fromByteArray=function(e){for(var t,i=e.length,r=i%3,o=[],a=0,s=i-r;a<s;a+=16383)o.push(function(e,t,i){for(var r,o=[],a=t;a<i;a+=3)o.push(n[(r=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]))>>18&63]+n[r>>12&63]+n[r>>6&63]+n[63&r]);return o.join("")}(e,a,a+16383>s?s:a+16383));return 1===r?o.push(n[(t=e[i-1])>>2]+n[t<<4&63]+"=="):2===r&&o.push(n[(t=(e[i-2]<<8)+e[i-1])>>10]+n[t>>4&63]+n[t<<2&63]+"="),o.join("")};for(var n=[],i=[],r="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=o.length;a<s;++a)n[a]=o[a],i[o.charCodeAt(a)]=a;function l(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var i=n===t?0:4-n%4;return[n,i]}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},51328:function(e,t,n){"use strict";/*!
 * The buffer module from node.js, for the browser.
 *
 * @author   Feross Aboukhadijeh <https://feross.org>
 * @license  MIT
 */var i=n(43522),r=n(93546),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function a(e){if(e>2147483647)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,n){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return d(e)}return l(e,t,n)}function l(e,t,n){if("string"==typeof e)return function(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!s.isEncoding(t))throw TypeError("Unknown encoding: "+t);var n=0|f(e,t),i=a(n),r=i.write(e,t);return r!==n&&(i=i.slice(0,r)),i}(e,t);if(ArrayBuffer.isView(e))return function(e){if(O(e,Uint8Array)){var t=new Uint8Array(e);return h(t.buffer,t.byteOffset,t.byteLength)}return u(e)}(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(O(e,ArrayBuffer)||e&&O(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(O(e,SharedArrayBuffer)||e&&O(e.buffer,SharedArrayBuffer)))return h(e,t,n);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var i=e.valueOf&&e.valueOf();if(null!=i&&i!==e)return s.from(i,t,n);var r=function(e){if(s.isBuffer(e)){var t,n=0|p(e.length),i=a(n);return 0===i.length||e.copy(i,0,0,n),i}return void 0!==e.length?"number"!=typeof e.length||(t=e.length)!=t?a(0):u(e):"Buffer"===e.type&&Array.isArray(e.data)?u(e.data):void 0}(e);if(r)return r;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return s.from(e[Symbol.toPrimitive]("string"),t,n);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function c(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function d(e){return c(e),a(e<0?0:0|p(e))}function u(e){for(var t=e.length<0?0:0|p(e.length),n=a(t),i=0;i<t;i+=1)n[i]=255&e[i];return n}function h(e,t,n){var i;if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(i=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),s.prototype),i}function p(e){if(e>=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function f(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||O(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,i=arguments.length>2&&!0===arguments[2];if(!i&&0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return C(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return P(e).length;default:if(r)return i?-1:C(e).length;t=(""+t).toLowerCase(),r=!0}}function m(e,t,n){var r,o,a=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===n||n>this.length)&&(n=this.length),n<=0||(n>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,n){var i=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>i)&&(n=i);for(var r="",o=t;o<n;++o)r+=A[e[o]];return r}(this,t,n);case"utf8":case"utf-8":return y(this,t,n);case"ascii":return function(e,t,n){var i="";n=Math.min(e.length,n);for(var r=t;r<n;++r)i+=String.fromCharCode(127&e[r]);return i}(this,t,n);case"latin1":case"binary":return function(e,t,n){var i="";n=Math.min(e.length,n);for(var r=t;r<n;++r)i+=String.fromCharCode(e[r]);return i}(this,t,n);case"base64":return r=t,o=n,0===r&&o===this.length?i.fromByteArray(this):i.fromByteArray(this.slice(r,o));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,t,n){for(var i=e.slice(t,n),r="",o=0;o<i.length-1;o+=2)r+=String.fromCharCode(i[o]+256*i[o+1]);return r}(this,t,n);default:if(a)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),a=!0}}function g(e,t,n){var i=e[t];e[t]=e[n],e[n]=i}function b(e,t,n,i,r){var o;if(0===e.length)return -1;if("string"==typeof n?(i=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),(o=n=+n)!=o&&(n=r?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(r)return -1;n=e.length-1}else if(n<0){if(!r)return -1;n=0}if("string"==typeof t&&(t=s.from(t,i)),s.isBuffer(t))return 0===t.length?-1:v(e,t,n,i,r);if("number"==typeof t)return(t&=255,"function"==typeof Uint8Array.prototype.indexOf)?r?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):v(e,[t],n,i,r);throw TypeError("val must be string, number or Buffer")}function v(e,t,n,i,r){var o,a=1,s=e.length,l=t.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(e.length<2||t.length<2)return -1;a=2,s/=2,l/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(r){var d=-1;for(o=n;o<s;o++)if(c(e,o)===c(t,-1===d?0:o-d)){if(-1===d&&(d=o),o-d+1===l)return d*a}else -1!==d&&(o-=o-d),d=-1}else for(n+l>s&&(n=s-l),o=n;o>=0;o--){for(var u=!0,h=0;h<l;h++)if(c(e,o+h)!==c(t,h)){u=!1;break}if(u)return o}return -1}function y(e,t,n){n=Math.min(e.length,n);for(var i=[],r=t;r<n;){var o,a,s,l,c=e[r],d=null,u=c>239?4:c>223?3:c>191?2:1;if(r+u<=n)switch(u){case 1:c<128&&(d=c);break;case 2:(192&(o=e[r+1]))==128&&(l=(31&c)<<6|63&o)>127&&(d=l);break;case 3:o=e[r+1],a=e[r+2],(192&o)==128&&(192&a)==128&&(l=(15&c)<<12|(63&o)<<6|63&a)>2047&&(l<55296||l>57343)&&(d=l);break;case 4:o=e[r+1],a=e[r+2],s=e[r+3],(192&o)==128&&(192&a)==128&&(192&s)==128&&(l=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(d=l)}null===d?(d=65533,u=1):d>65535&&(d-=65536,i.push(d>>>10&1023|55296),d=56320|1023&d),i.push(d),r+=u}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var n="",i=0;i<t;)n+=String.fromCharCode.apply(String,e.slice(i,i+=4096));return n}(i)}function x(e,t,n){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>n)throw RangeError("Trying to access beyond buffer length")}function w(e,t,n,i,r,o){if(!s.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>r||t<o)throw RangeError('"value" argument is out of bounds');if(n+i>e.length)throw RangeError("Index out of range")}function k(e,t,n,i,r,o){if(n+i>e.length||n<0)throw RangeError("Index out of range")}function _(e,t,n,i,o){return t=+t,n>>>=0,o||k(e,t,n,4,34028234663852886e22,-34028234663852886e22),r.write(e,t,n,i,23,4),n+4}function E(e,t,n,i,o){return t=+t,n>>>=0,o||k(e,t,n,8,17976931348623157e292,-17976931348623157e292),r.write(e,t,n,i,52,8),n+8}t.lW=s,t.h2=50,s.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),s.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(e,t,n){return l(e,t,n)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(e,t,n){return(c(e),e<=0)?a(e):void 0!==t?"string"==typeof n?a(e).fill(t,n):a(e).fill(t):a(e)},s.allocUnsafe=function(e){return d(e)},s.allocUnsafeSlow=function(e){return d(e)},s.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==s.prototype},s.compare=function(e,t){if(O(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),O(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,i=t.length,r=0,o=Math.min(n,i);r<o;++r)if(e[r]!==t[r]){n=e[r],i=t[r];break}return n<i?-1:i<n?1:0},s.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(e,t){if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return s.alloc(0);if(void 0===t)for(n=0,t=0;n<e.length;++n)t+=e[n].length;var n,i=s.allocUnsafe(t),r=0;for(n=0;n<e.length;++n){var o=e[n];if(O(o,Uint8Array))r+o.length>i.length?s.from(o).copy(i,r):Uint8Array.prototype.set.call(i,o,r);else if(s.isBuffer(o))o.copy(i,r);else throw TypeError('"list" argument must be an Array of Buffers');r+=o.length}return i},s.byteLength=f,s.prototype._isBuffer=!0,s.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)g(this,t,t+1);return this},s.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)g(this,t,t+3),g(this,t+1,t+2);return this},s.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},s.prototype.toString=function(){var e=this.length;return 0===e?"":0==arguments.length?y(this,0,e):m.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(e){if(!s.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===s.compare(this,e)},s.prototype.inspect=function(){var e="",n=t.h2;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},o&&(s.prototype[o]=s.prototype.inspect),s.prototype.compare=function(e,t,n,i,r){if(O(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===i&&(i=0),void 0===r&&(r=this.length),t<0||n>e.length||i<0||r>this.length)throw RangeError("out of range index");if(i>=r&&t>=n)return 0;if(i>=r)return -1;if(t>=n)return 1;if(t>>>=0,n>>>=0,i>>>=0,r>>>=0,this===e)return 0;for(var o=r-i,a=n-t,l=Math.min(o,a),c=this.slice(i,r),d=e.slice(t,n),u=0;u<l;++u)if(c[u]!==d[u]){o=c[u],a=d[u];break}return o<a?-1:a<o?1:0},s.prototype.includes=function(e,t,n){return -1!==this.indexOf(e,t,n)},s.prototype.indexOf=function(e,t,n){return b(this,e,t,n,!0)},s.prototype.lastIndexOf=function(e,t,n){return b(this,e,t,n,!1)},s.prototype.write=function(e,t,n,i){if(void 0===t)i="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)i=t,n=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(n)?(n>>>=0,void 0===i&&(i="utf8")):(i=n,n=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var r,o,a,s,l,c,d,u,h=this.length-t;if((void 0===n||n>h)&&(n=h),e.length>0&&(n<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var p=!1;;)switch(i){case"hex":return function(e,t,n,i){n=Number(n)||0;var r=e.length-n;i?(i=Number(i))>r&&(i=r):i=r;var o=t.length;i>o/2&&(i=o/2);for(var a=0;a<i;++a){var s=parseInt(t.substr(2*a,2),16);if(s!=s)break;e[n+a]=s}return a}(this,e,t,n);case"utf8":case"utf-8":return r=t,o=n,T(C(e,this.length-r),this,r,o);case"ascii":case"latin1":case"binary":return a=t,s=n,T(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(e),this,a,s);case"base64":return l=t,c=n,T(P(e),this,l,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return d=t,u=n,T(function(e,t){for(var n,i,r=[],o=0;o<e.length&&!((t-=2)<0);++o)i=(n=e.charCodeAt(o))>>8,r.push(n%256),r.push(i);return r}(e,this.length-d),this,d,u);default:if(p)throw TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),p=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},s.prototype.slice=function(e,t){var n=this.length;e=~~e,t=void 0===t?n:~~t,e<0?(e+=n)<0&&(e=0):e>n&&(e=n),t<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);var i=this.subarray(e,t);return Object.setPrototypeOf(i,s.prototype),i},s.prototype.readUintLE=s.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||x(e,t,this.length);for(var i=this[e],r=1,o=0;++o<t&&(r*=256);)i+=this[e+o]*r;return i},s.prototype.readUintBE=s.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||x(e,t,this.length);for(var i=this[e+--t],r=1;t>0&&(r*=256);)i+=this[e+--t]*r;return i},s.prototype.readUint8=s.prototype.readUInt8=function(e,t){return e>>>=0,t||x(e,1,this.length),this[e]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||x(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||x(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||x(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||x(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||x(e,t,this.length);for(var i=this[e],r=1,o=0;++o<t&&(r*=256);)i+=this[e+o]*r;return i>=(r*=128)&&(i-=Math.pow(2,8*t)),i},s.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||x(e,t,this.length);for(var i=t,r=1,o=this[e+--i];i>0&&(r*=256);)o+=this[e+--i]*r;return o>=(r*=128)&&(o-=Math.pow(2,8*t)),o},s.prototype.readInt8=function(e,t){return(e>>>=0,t||x(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||x(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt16BE=function(e,t){e>>>=0,t||x(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||x(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||x(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return e>>>=0,t||x(e,4,this.length),r.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||x(e,4,this.length),r.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||x(e,8,this.length),r.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||x(e,8,this.length),r.read(this,e,!1,52,8)},s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,t,n,i){if(e=+e,t>>>=0,n>>>=0,!i){var r=Math.pow(2,8*n)-1;w(this,e,t,n,r,0)}var o=1,a=0;for(this[t]=255&e;++a<n&&(o*=256);)this[t+a]=e/o&255;return t+n},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(e,t,n,i){if(e=+e,t>>>=0,n>>>=0,!i){var r=Math.pow(2,8*n)-1;w(this,e,t,n,r,0)}var o=n-1,a=1;for(this[t+o]=255&e;--o>=0&&(a*=256);)this[t+o]=e/a&255;return t+n},s.prototype.writeUint8=s.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,1,255,0),this[t]=255&e,t+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeIntLE=function(e,t,n,i){if(e=+e,t>>>=0,!i){var r=Math.pow(2,8*n-1);w(this,e,t,n,r-1,-r)}var o=0,a=1,s=0;for(this[t]=255&e;++o<n&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},s.prototype.writeIntBE=function(e,t,n,i){if(e=+e,t>>>=0,!i){var r=Math.pow(2,8*n-1);w(this,e,t,n,r-1,-r)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},s.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeFloatLE=function(e,t,n){return _(this,e,t,!0,n)},s.prototype.writeFloatBE=function(e,t,n){return _(this,e,t,!1,n)},s.prototype.writeDoubleLE=function(e,t,n){return E(this,e,t,!0,n)},s.prototype.writeDoubleBE=function(e,t,n){return E(this,e,t,!1,n)},s.prototype.copy=function(e,t,n,i){if(!s.isBuffer(e))throw TypeError("argument should be a Buffer");if(n||(n=0),i||0===i||(i=this.length),t>=e.length&&(t=e.length),t||(t=0),i>0&&i<n&&(i=n),i===n||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw RangeError("Index out of range");if(i<0)throw RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-t<i-n&&(i=e.length-t+n);var r=i-n;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,n,i):Uint8Array.prototype.set.call(e,this.subarray(n,i),t),r},s.prototype.fill=function(e,t,n,i){if("string"==typeof e){if("string"==typeof t?(i=t,t=0,n=this.length):"string"==typeof n&&(i=n,n=this.length),void 0!==i&&"string"!=typeof i)throw TypeError("encoding must be a string");if("string"==typeof i&&!s.isEncoding(i))throw TypeError("Unknown encoding: "+i);if(1===e.length){var r,o=e.charCodeAt(0);("utf8"===i&&o<128||"latin1"===i)&&(e=o)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw RangeError("Out of range index");if(n<=t)return this;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(r=t;r<n;++r)this[r]=e;else{var a=s.isBuffer(e)?e:s.from(e,i),l=a.length;if(0===l)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(r=0;r<n-t;++r)this[r+t]=a[r%l]}return this};var S=/[^+/0-9A-Za-z-_]/g;function C(e,t){t=t||1/0;for(var n,i=e.length,r=null,o=[],a=0;a<i;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!r){if(n>56319||a+1===i){(t-=3)>-1&&o.push(239,191,189);continue}r=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),r=n;continue}n=(r-55296<<10|n-56320)+65536}else r&&(t-=3)>-1&&o.push(239,191,189);if(r=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else if(n<1114112){if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}else throw Error("Invalid code point")}return o}function P(e){return i.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(S,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function T(e,t,n,i){for(var r=0;r<i&&!(r+n>=t.length)&&!(r>=e.length);++r)t[r+n]=e[r];return r}function O(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var A=function(){for(var e="0123456789abcdef",t=Array(256),n=0;n<16;++n)for(var i=16*n,r=0;r<16;++r)t[i+r]=e[n]+e[r];return t}()},98910:function(e){var t,n,i,r,o,a,s,l,c,d,u,h,p,f,m,g,b,v,y,x,w,k;e.exports=(t="millisecond",n="second",i="minute",r="hour",o="week",a="month",s="quarter",l="year",c="date",d="Invalid Date",u=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,p=function(e,t,n){var i=String(e);return!i||i.length>=t?e:""+Array(t+1-i.length).join(n)+e},(m={})[f="en"]={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||"th")+"]"}},g="$isDayjsObject",b=function(e){return e instanceof w||!(!e||!e[g])},v=function e(t,n,i){var r;if(!t)return f;if("string"==typeof t){var o=t.toLowerCase();m[o]&&(r=o),n&&(m[o]=n,r=o);var a=t.split("-");if(!r&&a.length>1)return e(a[0])}else{var s=t.name;m[s]=t,r=s}return!i&&r&&(f=r),r||!i&&f},y=function(e,t){if(b(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new w(n)},(x={s:p,z:function(e){var t=-e.utcOffset(),n=Math.abs(t);return(t<=0?"+":"-")+p(Math.floor(n/60),2,"0")+":"+p(n%60,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var i=12*(n.year()-t.year())+(n.month()-t.month()),r=t.clone().add(i,a),o=n-r<0,s=t.clone().add(i+(o?-1:1),a);return+(-(i+(n-r)/(o?r-s:s-r))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return({M:a,y:l,w:o,d:"day",D:c,h:r,m:i,s:n,ms:t,Q:s})[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}}).l=v,x.i=b,x.w=function(e,t){return y(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})},k=(w=function(){function e(e){this.$L=v(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[g]=!0}var p=e.prototype;return p.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(x.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var i=t.match(u);if(i){var r=i[2]-1||0,o=(i[7]||"0").substring(0,3);return n?new Date(Date.UTC(i[1],r,i[3]||1,i[4]||0,i[5]||0,i[6]||0,o)):new Date(i[1],r,i[3]||1,i[4]||0,i[5]||0,i[6]||0,o)}}return new Date(t)}(e),this.init()},p.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},p.$utils=function(){return x},p.isValid=function(){return this.$d.toString()!==d},p.isSame=function(e,t){var n=y(e);return this.startOf(t)<=n&&n<=this.endOf(t)},p.isAfter=function(e,t){return y(e)<this.startOf(t)},p.isBefore=function(e,t){return this.endOf(t)<y(e)},p.$g=function(e,t,n){return x.u(e)?this[t]:this.set(n,e)},p.unix=function(){return Math.floor(this.valueOf()/1e3)},p.valueOf=function(){return this.$d.getTime()},p.startOf=function(e,t){var s=this,d=!!x.u(t)||t,u=x.p(e),h=function(e,t){var n=x.w(s.$u?Date.UTC(s.$y,t,e):new Date(s.$y,t,e),s);return d?n:n.endOf("day")},p=function(e,t){return x.w(s.toDate()[e].apply(s.toDate("s"),(d?[0,0,0,0]:[23,59,59,999]).slice(t)),s)},f=this.$W,m=this.$M,g=this.$D,b="set"+(this.$u?"UTC":"");switch(u){case l:return d?h(1,0):h(31,11);case a:return d?h(1,m):h(0,m+1);case o:var v=this.$locale().weekStart||0,y=(f<v?f+7:f)-v;return h(d?g-y:g+(6-y),m);case"day":case c:return p(b+"Hours",0);case r:return p(b+"Minutes",1);case i:return p(b+"Seconds",2);case n:return p(b+"Milliseconds",3);default:return this.clone()}},p.endOf=function(e){return this.startOf(e,!1)},p.$set=function(e,o){var s,d=x.p(e),u="set"+(this.$u?"UTC":""),h=((s={}).day=u+"Date",s[c]=u+"Date",s[a]=u+"Month",s[l]=u+"FullYear",s[r]=u+"Hours",s[i]=u+"Minutes",s[n]=u+"Seconds",s[t]=u+"Milliseconds",s)[d],p="day"===d?this.$D+(o-this.$W):o;if(d===a||d===l){var f=this.clone().set(c,1);f.$d[h](p),f.init(),this.$d=f.set(c,Math.min(this.$D,f.daysInMonth())).$d}else h&&this.$d[h](p);return this.init(),this},p.set=function(e,t){return this.clone().$set(e,t)},p.get=function(e){return this[x.p(e)]()},p.add=function(e,t){var s,c=this;e=Number(e);var d=x.p(t),u=function(t){var n=y(c);return x.w(n.date(n.date()+Math.round(t*e)),c)};if(d===a)return this.set(a,this.$M+e);if(d===l)return this.set(l,this.$y+e);if("day"===d)return u(1);if(d===o)return u(7);var h=((s={})[i]=6e4,s[r]=36e5,s[n]=1e3,s)[d]||1,p=this.$d.getTime()+e*h;return x.w(p,this)},p.subtract=function(e,t){return this.add(-1*e,t)},p.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||d;var i=e||"YYYY-MM-DDTHH:mm:ssZ",r=x.z(this),o=this.$H,a=this.$m,s=this.$M,l=n.weekdays,c=n.months,u=n.meridiem,p=function(e,n,r,o){return e&&(e[n]||e(t,i))||r[n].slice(0,o)},f=function(e){return x.s(o%12||12,e,"0")},m=u||function(e,t,n){var i=e<12?"AM":"PM";return n?i.toLowerCase():i};return i.replace(h,function(e,i){return i||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return x.s(t.$y,4,"0");case"M":return s+1;case"MM":return x.s(s+1,2,"0");case"MMM":return p(n.monthsShort,s,c,3);case"MMMM":return p(c,s);case"D":return t.$D;case"DD":return x.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return p(n.weekdaysMin,t.$W,l,2);case"ddd":return p(n.weekdaysShort,t.$W,l,3);case"dddd":return l[t.$W];case"H":return String(o);case"HH":return x.s(o,2,"0");case"h":return f(1);case"hh":return f(2);case"a":return m(o,a,!0);case"A":return m(o,a,!1);case"m":return String(a);case"mm":return x.s(a,2,"0");case"s":return String(t.$s);case"ss":return x.s(t.$s,2,"0");case"SSS":return x.s(t.$ms,3,"0");case"Z":return r}return null}(e)||r.replace(":","")})},p.utcOffset=function(){return-(15*Math.round(this.$d.getTimezoneOffset()/15))},p.diff=function(e,t,c){var d,u=this,h=x.p(t),p=y(e),f=(p.utcOffset()-this.utcOffset())*6e4,m=this-p,g=function(){return x.m(u,p)};switch(h){case l:d=g()/12;break;case a:d=g();break;case s:d=g()/3;break;case o:d=(m-f)/6048e5;break;case"day":d=(m-f)/864e5;break;case r:d=m/36e5;break;case i:d=m/6e4;break;case n:d=m/1e3;break;default:d=m}return c?d:x.a(d)},p.daysInMonth=function(){return this.endOf(a).$D},p.$locale=function(){return m[this.$L]},p.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),i=v(e,t,!0);return i&&(n.$L=i),n},p.clone=function(){return x.w(this.$d,this)},p.toDate=function(){return new Date(this.valueOf())},p.toJSON=function(){return this.isValid()?this.toISOString():null},p.toISOString=function(){return this.$d.toISOString()},p.toString=function(){return this.$d.toUTCString()},e}()).prototype,y.prototype=k,[["$ms",t],["$s",n],["$m",i],["$H",r],["$W","day"],["$M",a],["$y",l],["$D",c]].forEach(function(e){k[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),y.extend=function(e,t){return e.$i||(e(t,w,y),e.$i=!0),y},y.locale=v,y.isDayjs=b,y.unix=function(e){return y(1e3*e)},y.en=m[f],y.Ls=m,y.p={},y)},39342:function(e){e.exports=function(e,t,n){e=e||{};var i=t.prototype,r={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function o(e,t,n,r){return i.fromToBase(e,t,n,r)}n.en.relativeTime=r,i.fromToBase=function(t,i,o,a,s){for(var l,c,d,u=o.$locale().relativeTime||r,h=e.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],p=h.length,f=0;f<p;f+=1){var m=h[f];m.d&&(l=a?n(t).diff(o,m.d,!0):o.diff(t,m.d,!0));var g=(e.rounding||Math.round)(Math.abs(l));if(d=l>0,g<=m.r||!m.r){g<=1&&f>0&&(m=h[f-1]);var b=u[m.l];s&&(g=s(""+g)),c="string"==typeof b?b.replace("%d",g):b(g,i,m.l,d);break}}if(i)return c;var v=d?u.future:u.past;return"function"==typeof v?v(c):v.replace("%s",c)},i.to=function(e,t){return o(e,t,this,!0)},i.from=function(e,t){return o(e,t,this)};var a=function(e){return e.$u?n.utc():n()};i.toNow=function(e){return this.to(a(this),e)},i.fromNow=function(e){return this.from(a(this),e)}}},48281:function(e){e.exports=function(e,t,n){n.updateLocale=function(e,t){var i=n.Ls[e];if(i)return(t?Object.keys(t):[]).forEach(function(e){i[e]=t[e]}),i}}},6821:function(e,t,n){"use strict";n.d(t,{lX:function(){return v},q_:function(){return E},ob:function(){return p},PP:function(){return C},Ep:function(){return h}});var i=n(27198);function r(e){return"/"===e.charAt(0)}function o(e,t){for(var n=t,i=n+1,r=e.length;i<r;n+=1,i+=1)e[n]=e[i];e.pop()}var a=function(e,t){void 0===t&&(t="");var n,i=e&&e.split("/")||[],a=t&&t.split("/")||[],s=e&&r(e),l=t&&r(t),c=s||l;if(e&&r(e)?a=i:i.length&&(a.pop(),a=a.concat(i)),!a.length)return"/";if(a.length){var d=a[a.length-1];n="."===d||".."===d||""===d}else n=!1;for(var u=0,h=a.length;h>=0;h--){var p=a[h];"."===p?o(a,h):".."===p?(o(a,h),u++):u&&(o(a,h),u--)}if(!c)for(;u--;u)a.unshift("..");!c||""===a[0]||a[0]&&r(a[0])||a.unshift("");var f=a.join("/");return n&&"/"!==f.substr(-1)&&(f+="/"),f},s=n(16389);function l(e){return"/"===e.charAt(0)?e:"/"+e}function c(e){return"/"===e.charAt(0)?e.substr(1):e}function d(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))?e.substr(t.length):e}function u(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function h(e){var t=e.pathname,n=e.search,i=e.hash,r=t||"/";return n&&"?"!==n&&(r+="?"===n.charAt(0)?n:"?"+n),i&&"#"!==i&&(r+="#"===i.charAt(0)?i:"#"+i),r}function p(e,t,n,r){var o,s,l,c,d,u;"string"==typeof e?(l="",c="",-1!==(d=(s=e||"/").indexOf("#"))&&(c=s.substr(d),s=s.substr(0,d)),-1!==(u=s.indexOf("?"))&&(l=s.substr(u),s=s.substr(0,u)),(o={pathname:s,search:"?"===l?"":l,hash:"#"===c?"":c}).state=t):(void 0===(o=(0,i.Z)({},e)).pathname&&(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="",void 0!==t&&void 0===o.state&&(o.state=t));try{o.pathname=decodeURI(o.pathname)}catch(e){if(e instanceof URIError)throw URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.');throw e}return n&&(o.key=n),r?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=a(o.pathname,r.pathname)):o.pathname=r.pathname:o.pathname||(o.pathname="/"),o}function f(){var e=null,t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,i,r){if(null!=e){var o="function"==typeof e?e(t,n):e;"string"==typeof o?"function"==typeof i?i(o,r):r(!0):r(!1!==o)}else r(!0)},appendListener:function(e){var n=!0;function i(){n&&e.apply(void 0,arguments)}return t.push(i),function(){n=!1,t=t.filter(function(e){return e!==i})}},notifyListeners:function(){for(var e=arguments.length,n=Array(e),i=0;i<e;i++)n[i]=arguments[i];t.forEach(function(e){return e.apply(void 0,n)})}}}var m=!!("undefined"!=typeof window&&window.document&&window.document.createElement);function g(e,t){t(window.confirm(e))}var PopStateEvent="popstate",HashChangeEvent="hashchange";function b(){try{return window.history.state||{}}catch(e){return{}}}function v(e){void 0===e&&(e={}),m||(0,s.Z)(!1);var t,n=window.history,r=(-1===(t=window.navigator.userAgent).indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,o=-1!==window.navigator.userAgent.indexOf("Trident"),a=e,c=a.forceRefresh,v=void 0!==c&&c,y=a.getUserConfirmation,x=void 0===y?g:y,w=a.keyLength,k=void 0===w?6:w,_=e.basename?u(l(e.basename)):"";function E(e){var t=e||{},n=t.key,i=t.state,r=window.location,o=r.pathname+r.search+r.hash;return _&&(o=d(o,_)),p(o,i,n)}function S(){return Math.random().toString(36).substr(2,k)}var C=f();function P(e){(0,i.Z)(F,e),F.length=n.length,C.notifyListeners(F.location,F.action)}function T(e){void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")||I(E(e.state))}function O(){I(E(b()))}var A=!1;function I(e){A?(A=!1,P()):C.confirmTransitionTo(e,"POP",x,function(t){var n,i,r,o;t?P({action:"POP",location:e}):(n=F.location,-1===(i=$.indexOf(n.key))&&(i=0),-1===(r=$.indexOf(e.key))&&(r=0),(o=i-r)&&(A=!0,M(o)))})}var R=E(b()),$=[R.key];function L(e){return _+h(e)}function M(e){n.go(e)}var j=0;function D(e){1===(j+=e)&&1===e?(window.addEventListener(PopStateEvent,T),o&&window.addEventListener(HashChangeEvent,O)):0===j&&(window.removeEventListener(PopStateEvent,T),o&&window.removeEventListener(HashChangeEvent,O))}var N=!1,F={length:n.length,action:"POP",location:R,createHref:L,push:function(e,t){var i="PUSH",o=p(e,t,S(),F.location);C.confirmTransitionTo(o,i,x,function(e){if(e){var t=L(o),a=o.key,s=o.state;if(r){if(n.pushState({key:a,state:s},null,t),v)window.location.href=t;else{var l=$.indexOf(F.location.key),c=$.slice(0,l+1);c.push(o.key),$=c,P({action:i,location:o})}}else window.location.href=t}})},replace:function(e,t){var i="REPLACE",o=p(e,t,S(),F.location);C.confirmTransitionTo(o,i,x,function(e){if(e){var t=L(o),a=o.key,s=o.state;if(r){if(n.replaceState({key:a,state:s},null,t),v)window.location.replace(t);else{var l=$.indexOf(F.location.key);-1!==l&&($[l]=o.key),P({action:i,location:o})}}else window.location.replace(t)}})},go:M,goBack:function(){M(-1)},goForward:function(){M(1)},block:function(e){void 0===e&&(e=!1);var t=C.setPrompt(e);return N||(D(1),N=!0),function(){return N&&(N=!1,D(-1)),t()}},listen:function(e){var t=C.appendListener(e);return D(1),function(){D(-1),t()}}};return F}var y="hashchange",x={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+c(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:c,decodePath:l},slash:{encodePath:l,decodePath:l}};function w(e){var t=e.indexOf("#");return -1===t?e:e.slice(0,t)}function k(){var e=window.location.href,t=e.indexOf("#");return -1===t?"":e.substring(t+1)}function _(e){window.location.replace(w(window.location.href)+"#"+e)}function E(e){void 0===e&&(e={}),m||(0,s.Z)(!1);var t=window.history;window.navigator.userAgent.indexOf("Firefox");var n=e,r=n.getUserConfirmation,o=void 0===r?g:r,a=n.hashType,c=e.basename?u(l(e.basename)):"",b=x[void 0===a?"slash":a],v=b.encodePath,E=b.decodePath;function S(){var e=E(k());return c&&(e=d(e,c)),p(e)}var C=f();function P(e){(0,i.Z)(F,e),F.length=t.length,C.notifyListeners(F.location,F.action)}var T=!1,O=null;function A(){var e=k(),t=v(e);if(e!==t)_(t);else{var n=S(),i=F.location;if(!T&&i.pathname===n.pathname&&i.search===n.search&&i.hash===n.hash||O===h(n))return;O=null,T?(T=!1,P()):C.confirmTransitionTo(n,"POP",o,function(e){var t,i,r,o;e?P({action:"POP",location:n}):(t=F.location,-1===(i=L.lastIndexOf(h(t)))&&(i=0),-1===(r=L.lastIndexOf(h(n)))&&(r=0),(o=i-r)&&(T=!0,M(o)))})}}var I=k(),R=v(I);I!==R&&_(R);var $=S(),L=[h($)];function M(e){t.go(e)}var j=0;function D(e){1===(j+=e)&&1===e?window.addEventListener(y,A):0===j&&window.removeEventListener(y,A)}var N=!1,F={length:t.length,action:"POP",location:$,createHref:function(e){var t=document.querySelector("base"),n="";return t&&t.getAttribute("href")&&(n=w(window.location.href)),n+"#"+v(c+h(e))},push:function(e,t){var n="PUSH",i=p(e,void 0,void 0,F.location);C.confirmTransitionTo(i,n,o,function(e){if(e){var t=h(i),r=v(c+t);if(k()!==r){O=t,window.location.hash=r;var o=L.lastIndexOf(h(F.location)),a=L.slice(0,o+1);a.push(t),L=a,P({action:n,location:i})}else P()}})},replace:function(e,t){var n="REPLACE",i=p(e,void 0,void 0,F.location);C.confirmTransitionTo(i,n,o,function(e){if(e){var t=h(i),r=v(c+t);k()!==r&&(O=t,_(r));var o=L.indexOf(h(F.location));-1!==o&&(L[o]=t),P({action:n,location:i})}})},go:M,goBack:function(){M(-1)},goForward:function(){M(1)},block:function(e){void 0===e&&(e=!1);var t=C.setPrompt(e);return N||(D(1),N=!0),function(){return N&&(N=!1,D(-1)),t()}},listen:function(e){var t=C.appendListener(e);return D(1),function(){D(-1),t()}}};return F}function S(e,t,n){return Math.min(Math.max(e,t),n)}function C(e){void 0===e&&(e={});var t=e,n=t.getUserConfirmation,r=t.initialEntries,o=void 0===r?["/"]:r,a=t.initialIndex,s=t.keyLength,l=void 0===s?6:s,c=f();function d(e){(0,i.Z)(v,e),v.length=v.entries.length,c.notifyListeners(v.location,v.action)}function u(){return Math.random().toString(36).substr(2,l)}var m=S(void 0===a?0:a,0,o.length-1),g=o.map(function(e){return"string"==typeof e?p(e,void 0,u()):p(e,void 0,e.key||u())});function b(e){var t=S(v.index+e,0,v.entries.length-1),i=v.entries[t];c.confirmTransitionTo(i,"POP",n,function(e){e?d({action:"POP",location:i,index:t}):d()})}var v={length:g.length,action:"POP",location:g[m],index:m,entries:g,createHref:h,push:function(e,t){var i="PUSH",r=p(e,t,u(),v.location);c.confirmTransitionTo(r,i,n,function(e){if(e){var t=v.index+1,n=v.entries.slice(0);n.length>t?n.splice(t,n.length-t,r):n.push(r),d({action:i,location:r,index:t,entries:n})}})},replace:function(e,t){var i="REPLACE",r=p(e,t,u(),v.location);c.confirmTransitionTo(r,i,n,function(e){e&&(v.entries[v.index]=r,d({action:i,location:r}))})},go:b,goBack:function(){b(-1)},goForward:function(){b(1)},canGo:function(e){var t=v.index+e;return t>=0&&t<v.entries.length},block:function(e){return void 0===e&&(e=!1),c.setPrompt(e)},listen:function(e){return c.appendListener(e)}};return v}},20022:function(e,t,n){"use strict";var i=n(31306),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return i.isMemo(e)?a:s[e.$$typeof]||r}s[i.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[i.Memo]=a;var c=Object.defineProperty,d=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,f=Object.prototype;e.exports=function e(t,n,i){if("string"!=typeof n){if(f){var r=p(n);r&&r!==f&&e(t,r,i)}var a=d(n);u&&(a=a.concat(u(n)));for(var s=l(t),m=l(n),g=0;g<a.length;++g){var b=a[g];if(!o[b]&&!(i&&i[b])&&!(m&&m[b])&&!(s&&s[b])){var v=h(n,b);try{c(t,b,v)}catch(e){}}}}return t}},93546:function(e,t){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */t.read=function(e,t,n,i,r){var o,a,s=8*r-i-1,l=(1<<s)-1,c=l>>1,d=-7,u=n?r-1:0,h=n?-1:1,p=e[t+u];for(u+=h,o=p&(1<<-d)-1,p>>=-d,d+=s;d>0;o=256*o+e[t+u],u+=h,d-=8);for(a=o&(1<<-d)-1,o>>=-d,d+=i;d>0;a=256*a+e[t+u],u+=h,d-=8);if(0===o)o=1-c;else{if(o===l)return a?NaN:(p?-1:1)*(1/0);a+=Math.pow(2,i),o-=c}return(p?-1:1)*a*Math.pow(2,o-i)},t.write=function(e,t,n,i,r,o){var a,s,l,c=8*o-r-1,d=(1<<c)-1,u=d>>1,h=23===r?5960464477539062e-23:0,p=i?0:o-1,f=i?1:-1,m=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(s=isNaN(t)?1:0,a=d):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),a+u>=1?t+=h/l:t+=h*Math.pow(2,1-u),t*l>=2&&(a++,l/=2),a+u>=d?(s=0,a=d):a+u>=1?(s=(t*l-1)*Math.pow(2,r),a+=u):(s=t*Math.pow(2,u-1)*Math.pow(2,r),a=0));r>=8;e[n+p]=255&s,p+=f,s/=256,r-=8);for(a=a<<r|s,c+=r;c>0;e[n+p]=255&a,p+=f,a/=256,c-=8);e[n+p-f]|=128*m}},80682:function(e,t,n){"use strict";let i,r;n.d(t,{M:function(){return C}});var o=n(28307);let a=()=>{if("undefined"==typeof window)return new Map;if(!i){let e=window;e.Ionicons=e.Ionicons||{},i=e.Ionicons.map=e.Ionicons.map||new Map}return i},s=e=>{let t=d(e.src);return t||((t=c(e.name,e.icon,e.mode,e.ios,e.md))?l(t,e):e.icon&&((t=d(e.icon))||(t=d(e.icon[e.mode])))?t:null)},l=(e,t)=>{let n=a().get(e);if(n)return n;try{return(0,o.K3)(`svg/${e}.svg`)}catch(n){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)}},c=(e,t,n,i,r)=>{if(n="ios"===(n&&p(n))?"ios":"md",i&&"ios"===n?e=p(i):r&&"md"===n?e=p(r):(e||!t||u(t)||(e=t),h(e)&&(e=p(e))),!h(e)||""===e.trim())return null;let o=e.replace(/[a-z]|-|\d/gi,"");return""!==o?null:e},d=e=>h(e)&&u(e=e.trim())?e:null,u=e=>e.length>0&&/(\/|\.)/.test(e),h=e=>"string"==typeof e,p=e=>e.toLowerCase(),f=(e,t=[])=>{let n={};return t.forEach(t=>{if(e.hasAttribute(t)){let i=e.getAttribute(t);null!==i&&(n[t]=e.getAttribute(t)),e.removeAttribute(t)}}),n},m=e=>e&&""!==e.dir?"rtl"===e.dir.toLowerCase():(null==document?void 0:document.dir.toLowerCase())==="rtl",g=e=>{let t=document.createElement("div");t.innerHTML=e;for(let e=t.childNodes.length-1;e>=0;e--)"svg"!==t.childNodes[e].nodeName.toLowerCase()&&t.removeChild(t.childNodes[e]);let n=t.firstElementChild;if(n&&"svg"===n.nodeName.toLowerCase()){let e=n.getAttribute("class")||"";if(n.setAttribute("class",(e+" s-ion-icon").trim()),b(n))return t.innerHTML}return""},b=e=>{if(1===e.nodeType){if("script"===e.nodeName.toLowerCase())return!1;for(let t=0;t<e.attributes.length;t++){let n=e.attributes[t].name;if(h(n)&&0===n.toLowerCase().indexOf("on"))return!1}for(let t=0;t<e.childNodes.length;t++)if(!b(e.childNodes[t]))return!1}return!0},v=e=>e.startsWith("data:image/svg+xml"),y=e=>-1!==e.indexOf(";utf8,"),x=new Map,w=new Map,k=(e,t)=>{let n=w.get(e);if(!n){if("undefined"==typeof fetch||"undefined"==typeof document)return x.set(e,""),Promise.resolve();if(v(e)&&y(e)){r||(r=new DOMParser);let t=r.parseFromString(e,"text/html"),n=t.querySelector("svg");return n&&x.set(e,n.outerHTML),Promise.resolve()}n=fetch(e).then(n=>{if(n.ok)return n.text().then(n=>{n&&!1!==t&&(n=g(n)),x.set(e,n||"")});x.set(e,"")}),w.set(e,n)}return n},_=(0,o.GH)(class extends o.mv{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.iconName=null,this.inheritedAttributes={},this.didLoadIcon=!1,this.svgContent=void 0,this.isVisible=!1,this.mode=E(),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=f(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(e,t,n){if(o.Z5.isBrowser&&this.lazy&&"undefined"!=typeof window&&window.IntersectionObserver){let i=this.io=new window.IntersectionObserver(e=>{e[0].isIntersecting&&(i.disconnect(),this.io=void 0,n())},{rootMargin:t});i.observe(e)}else n()}loadIcon(){if(o.Z5.isBrowser&&this.isVisible){let e=s(this);e&&(x.has(e)?this.svgContent=x.get(e):k(e,this.sanitize).then(()=>this.svgContent=x.get(e)),this.didLoadIcon=!0)}this.iconName=c(this.name,this.icon,this.mode,this.ios,this.md)}render(){let{flipRtl:e,iconName:t,inheritedAttributes:n,el:i}=this,r=this.mode||"md",a=!!t&&(t.includes("arrow")||t.includes("chevron"))&&!1!==e,s=e||a;return(0,o.h)(o.AA,Object.assign({role:"img",class:Object.assign(Object.assign({[r]:!0},S(this.color)),{[`icon-${this.size}`]:!!this.size,"flip-rtl":s,"icon-rtl":s&&m(i)})},n),o.Z5.isBrowser&&this.svgContent?(0,o.h)("div",{class:"icon-inner",innerHTML:this.svgContent}):(0,o.h)("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":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)}"}},[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]}]),E=()=>o.Z5.isBrowser&&"undefined"!=typeof document&&document.documentElement.getAttribute("mode")||"md",S=e=>e?{"ion-color":!0,[`ion-color-${e}`]:!0}:null,C=function(){"undefined"!=typeof customElements&&["ion-icon"].forEach(e=>{"ion-icon"===e&&(customElements.get(e)||customElements.define(e,_))})}},38099:function(e,t,n){"use strict";n.d(t,{v:function(){return r}});var i=n(32732);function r(e){let t=(0,i.cn)(()=>({mounted:!1,inProgress:0,promise:void 0,cleanup:void 0,fromCleanup:!1,recursing:!1,refresh:()=>{},refreshing:!1,get:()=>{},set:()=>{},pendingError:null})),n=(0,i.cn)(0),r=(0,i.cn)(null,(e,i)=>{let r=e(t);return r.mounted=!0,r.get=e,r.set=i,r.refresh=()=>{try{r.refreshing=!0,i(n,e=>e+1)}finally{r.refreshing=!1}},i(n,e=>e+1),()=>{r.mounted=!1,o(r),null==r.cleanup||r.cleanup(),r.cleanup=void 0}});r.onMount=e=>e();let a=(0,i.cn)(i=>{i(n);let r=i(t);if(!r.mounted||r.recursing||r.inProgress&&!r.refreshing)return r.promise;o(r);let a=new Map,s=e=>{let t=i(e);return a.set(e,t),t};s.peek=e=>r.get(e);let l=(...e)=>{try{return++r.inProgress,r.set(...e)}finally{--r.inProgress}};l.recurse=(e,...t)=>{if(r.fromCleanup);else try{return r.recursing=!0,r.set(e,...t)}finally{r.recursing=!1,Array.from(a).some(([e,t])=>i(e)!==t)&&r.refresh()}},++r.inProgress;let c=()=>{try{if(r.refreshing=!1,!r.mounted)return;try{r.fromCleanup=!0,null==r.cleanup||r.cleanup()}finally{r.fromCleanup=!1}r.cleanup=e(s,l)}catch(e){r.pendingError=e,r.refresh()}finally{r.promise=void 0,--r.inProgress}};return r.refreshing?c():r.promise=Promise.resolve().then(c)});return(0,i.cn)(e=>{e(r),e(a)})}function o(e){if(null!==e.pendingError){let t=e.pendingError;throw e.pendingError=null,t}}},86131:function(e,t,n){"use strict";n.d(t,{HX:function(){return T},el:function(){return P},Ek:function(){return x}});var i=n(80980),r=n(32730),o=n(58813),a=n(57972),s=n(991),l=n(58969),c=class extends s.l{constructor(e,t){super(),this.options=t,this.#e=e,this.#t=null,this.bindMethods(),this.setOptions(t)}#e;#n=void 0;#i=void 0;#r=void 0;#o;#a;#t;#s;#l;#c;#d;#u;#h;#p=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#n.addObserver(this),d(this.#n,this.options)?this.#f():this.updateResult(),this.#m())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return u(this.#n,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return u(this.#n,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#g(),this.#b(),this.#n.removeObserver(this)}setOptions(e,t){let n=this.options,i=this.#n;if(this.options=this.#e.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled)throw Error("Expected enabled to be a boolean");this.#v(),this.#n.setOptions(this.options),n._defaulted&&!(0,r.VS)(this.options,n)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#n,observer:this});let o=this.hasListeners();o&&h(this.#n,i,this.options,n)&&this.#f(),this.updateResult(t),o&&(this.#n!==i||this.options.enabled!==n.enabled||this.options.staleTime!==n.staleTime)&&this.#y();let a=this.#x();o&&(this.#n!==i||this.options.enabled!==n.enabled||a!==this.#h)&&this.#w(a)}getOptimisticResult(e){let t=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(t,e);return(0,r.VS)(this.getCurrentResult(),n)||(this.#r=n,this.#a=this.options,this.#o=this.#n.state),n}getCurrentResult(){return this.#r}trackResult(e,t){let n={};return Object.keys(e).forEach(i=>{Object.defineProperty(n,i,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(i),t?.(i),e[i])})}),n}trackProp(e){this.#p.add(e)}getCurrentQuery(){return this.#n}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#e.defaultQueryOptions(e),n=this.#e.getQueryCache().build(this.#e,t);return n.isFetchingOptimistic=!0,n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#f({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#f(e){this.#v();let t=this.#n.fetch(this.options,e);return e?.throwOnError||(t=t.catch(r.ZT)),t}#y(){if(this.#g(),r.sk||this.#r.isStale||!(0,r.PN)(this.options.staleTime))return;let e=(0,r.Kp)(this.#r.dataUpdatedAt,this.options.staleTime);this.#d=setTimeout(()=>{this.#r.isStale||this.updateResult()},e+1)}#x(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#n):this.options.refetchInterval)??!1}#w(e){this.#b(),this.#h=e,!r.sk&&!1!==this.options.enabled&&(0,r.PN)(this.#h)&&0!==this.#h&&(this.#u=setInterval(()=>{(this.options.refetchIntervalInBackground||a.j.isFocused())&&this.#f()},this.#h))}#m(){this.#y(),this.#w(this.#x())}#g(){this.#d&&(clearTimeout(this.#d),this.#d=void 0)}#b(){this.#u&&(clearInterval(this.#u),this.#u=void 0)}createResult(e,t){let n;let i=this.#n,o=this.options,a=this.#r,s=this.#o,c=this.#a,u=e!==i,f=u?e.state:this.#i,{state:m}=e,g={...m},b=!1;if(t._optimisticResults){let n=this.hasListeners(),r=!n&&d(e,t),a=n&&h(e,i,t,o);(r||a)&&(g={...g,...(0,l.z)(m.data,e.options)}),"isRestoring"===t._optimisticResults&&(g.fetchStatus="idle")}let{error:v,errorUpdatedAt:y,status:x}=g;if(t.select&&void 0!==g.data){if(a&&g.data===s?.data&&t.select===this.#s)n=this.#l;else try{this.#s=t.select,n=t.select(g.data),n=(0,r.oE)(a?.data,n,t),this.#l=n,this.#t=null}catch(e){this.#t=e}}else n=g.data;if(void 0!==t.placeholderData&&void 0===n&&"pending"===x){let e;if(a?.isPlaceholderData&&t.placeholderData===c?.placeholderData)e=a.data;else if(e="function"==typeof t.placeholderData?t.placeholderData(this.#c?.state.data,this.#c):t.placeholderData,t.select&&void 0!==e)try{e=t.select(e),this.#t=null}catch(e){this.#t=e}void 0!==e&&(x="success",n=(0,r.oE)(a?.data,e,t),b=!0)}this.#t&&(v=this.#t,n=this.#l,y=Date.now(),x="error");let w="fetching"===g.fetchStatus,k="pending"===x,_="error"===x,E=k&&w,S=void 0!==n,C={status:x,fetchStatus:g.fetchStatus,isPending:k,isSuccess:"success"===x,isError:_,isInitialLoading:E,isLoading:E,data:n,dataUpdatedAt:g.dataUpdatedAt,error:v,errorUpdatedAt:y,failureCount:g.fetchFailureCount,failureReason:g.fetchFailureReason,errorUpdateCount:g.errorUpdateCount,isFetched:g.dataUpdateCount>0||g.errorUpdateCount>0,isFetchedAfterMount:g.dataUpdateCount>f.dataUpdateCount||g.errorUpdateCount>f.errorUpdateCount,isFetching:w,isRefetching:w&&!k,isLoadingError:_&&!S,isPaused:"paused"===g.fetchStatus,isPlaceholderData:b,isRefetchError:_&&S,isStale:p(e,t),refetch:this.refetch};return C}updateResult(e){let t=this.#r,n=this.createResult(this.#n,this.options);if(this.#o=this.#n.state,this.#a=this.options,void 0!==this.#o.data&&(this.#c=this.#n),(0,r.VS)(n,t))return;this.#r=n;let i={};e?.listeners!==!1&&(()=>{if(!t)return!0;let{notifyOnChangeProps:e}=this.options,n="function"==typeof e?e():e;if("all"===n||!n&&!this.#p.size)return!0;let i=new Set(n??this.#p);return this.options.throwOnError&&i.add("error"),Object.keys(this.#r).some(e=>{let n=this.#r[e]!==t[e];return n&&i.has(e)})})()&&(i.listeners=!0),this.#k({...i,...e})}#v(){let e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#n)return;let t=this.#n;this.#n=e,this.#i=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#m()}#k(e){o.V.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#r)}),this.#e.getQueryCache().notify({query:this.#n,type:"observerResultsUpdated"})})}};function d(e,t){return!1!==t.enabled&&void 0===e.state.data&&!("error"===e.state.status&&!1===t.retryOnMount)||void 0!==e.state.data&&u(e,t,t.refetchOnMount)}function u(e,t,n){if(!1!==t.enabled){let i="function"==typeof n?n(e):n;return"always"===i||!1!==i&&p(e,t)}return!1}function h(e,t,n,i){return(e!==t||!1===i.enabled)&&(!n.suspense||"error"!==e.state.status)&&p(e,n)}function p(e,t){return!1!==t.enabled&&e.isStaleByTime(t.staleTime)}var f=n(49911),m=n(32732),g=()=>{},b=()=>"function"==typeof Symbol&&Symbol.observable||"@@observable";function v(e){return{subscribe(t,n,i){var r="object"==typeof t?t:{next:t,error:n,complete:i},o=g,a=!1;e(e=>{a||(0===e?(a=!0,r.complete&&r.complete()):0===e.tag?(o=e[0])(0):(r.next(e[0]),o(0)))});var s={closed:!1,unsubscribe(){s.closed=!0,a=!0,o(1)}};return s},[b()](){return this}}}var y=(...e)=>{for(var t=e[0],n=1,i=e.length;n<i;n++)t=e[n](t);return t};let x=(0,m.cn)(new i.S);function w(){return(w=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}let k=(e,t,n)=>(null==e?void 0:e.suspense)&&_(t,n),_=(e,t)=>e.isPending&&!t,E=({result:e,throwOnError:t,query:n})=>e.isError&&!e.isFetching&&S(t,[e.error,n]);function S(e,t){return"function"==typeof e?e(...t):!!e}let C=e=>e.suspense&&"number"!=typeof e.staleTime?w({},e,{staleTime:1e3}):e;function P(e,t=e=>e(x)){return function(e,t,n=e=>e(x)){let i=(0,m.cn)(0),r=(0,m.cn)(n),o=(0,m.cn)(()=>new WeakMap),a=(0,m.cn)(t=>{let n=t(r),i=e(t),a=n.defaultQueryOptions(i),s=t(o).get(n);return a._optimisticResults="optimistic",s&&s.setOptions(a,{listeners:!1}),C(a)}),s=(0,m.cn)(e=>{let n=e(r),i=e(a),s=e(o),l=s.get(n);if(l)return l;let c=new t(n,i);return s.set(n,c),c}),l=(0,m.cn)(e=>{let t=e(s),n=t.getCurrentResult(),i=(0,m.cn)(n);return i.onMount=e=>t.subscribe(t=>{e(t)}),i});return(0,m.cn)(e=>{let t=e(s),r=e(a),o=n(e);i.onMount=()=>()=>{t.getCurrentResult().isError&&o.resetQueries({queryKey:t.getCurrentQuery().queryKey})},e(i),e(e(l));let c=t.getOptimisticResult(r);if(k(r,c,!1))return t.fetchOptimistic(r);if(E({result:c,query:t.getCurrentQuery(),throwOnError:r.throwOnError}))throw c.error;return c})}(e,c,t)}function T(e,t=e=>e(x)){let n=Symbol(),i=(0,m.cn)(n=>{let i=t(n),r=e(n);return i.defaultMutationOptions(r)}),r=(0,m.cn)(()=>new WeakMap),o=(0,m.cn)(e=>{let o=e(i),a=t(e),s=e(r),l=s.get(a);if(l)return l[n]=!0,l.setOptions(o),delete l[n],l;let c=new f.X(a,o);return s.set(a,c),c}),a=(0,m.cn)(e=>{var t;let i=e(o),r=(t=({next:e})=>i.subscribe(t=>{let r=()=>e(t);i[n]?Promise.resolve().then(r):r()}),e=>{var n=!1,i=t({next(t){n||e({tag:1,0:t})},complete(){n||(n=!0,e(0))}});e({tag:0,0:e=>{1!==e||n||(n=!0,i())}})});return y(r,v)}),s=(0,m.cn)(e=>{let t=e(o),n=e(a),i=t.getCurrentResult(),r=(0,m.cn)(i);return r.onMount=e=>(n.subscribe(t=>{e(t)}),()=>{t.reset()}),r}),l=(0,m.cn)(e=>{let t=e(o);return(e,n)=>{t.mutate(e,n).catch(O)}});return(0,m.cn)(e=>{let t=e(o),n=e(s),i=e(n),r=e(l);if(i.isError&&S(t.options.throwOnError,[i.error]))throw i.error;return w({},i,{mutate:r,mutateAsync:i.mutate})})}function O(){}},92045:function(e,t,n){e.exports=n(98790)},95750:function(e,t){"use strict";function n(){return""}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDeploymentIdQueryOrEmptyString",{enumerable:!0,get:function(){return n}})},74355:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{renderToString:function(){return i},renderToStaticMarkup:function(){return r}});let n="Internal Error: do not use legacy react-dom/server APIs. If you encountered this error, please open an issue on the Next.js repo.";function i(){throw Error(n)}function r(){throw Error(n)}},85080:function(){"trimStart"in String.prototype||(String.prototype.trimStart=String.prototype.trimLeft),"trimEnd"in String.prototype||(String.prototype.trimEnd=String.prototype.trimRight),"description"in Symbol.prototype||Object.defineProperty(Symbol.prototype,"description",{configurable:!0,get:function(){var e=/\((.*)\)/.exec(this.toString());return e?e[1]:void 0}}),Array.prototype.flat||(Array.prototype.flat=function(e,t){return t=this.concat.apply([],this),e>1&&t.some(Array.isArray)?t.flat(e-1):t},Array.prototype.flatMap=function(e,t){return this.map(e,t).flat()}),Promise.prototype.finally||(Promise.prototype.finally=function(e){if("function"!=typeof e)return this.then(e,e);var t=this.constructor||Promise;return this.then(function(n){return t.resolve(e()).then(function(){return n})},function(n){return t.resolve(e()).then(function(){throw n})})}),Object.fromEntries||(Object.fromEntries=function(e){return Array.from(e).reduce(function(e,t){return e[t[0]]=t[1],e},{})}),Array.prototype.at||(Array.prototype.at=function(e){var t=Math.trunc(e)||0;if(t<0&&(t+=this.length),!(t<0||t>=this.length))return this[t]})},77215:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addBasePath",{enumerable:!0,get:function(){return o}});let i=n(71017),r=n(97861);function o(e,t){return(0,r.normalizePathTrailingSlash)((0,i.addPathPrefix)(e,""))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},33782:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return i}}),n(97861);let i=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return e};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},26283:function(e,t){"use strict";function n(e){var t,n;t=self.__next_s,n=()=>{e()},t&&t.length?t.reduce((e,t)=>{let[n,i]=t;return e.then(()=>new Promise((e,t)=>{let r=document.createElement("script");if(i)for(let e in i)"children"!==e&&r.setAttribute(e,i[e]);n?(r.src=n,r.onload=()=>e(),r.onerror=t):i&&(r.innerHTML=i.children,setTimeout(e)),document.head.appendChild(r)}))},Promise.resolve()).catch(e=>{console.error(e)}).then(()=>{n()}):n()}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"appBootstrap",{enumerable:!0,get:function(){return n}}),window.next={version:"14.0.2",appDir:!0},("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},25913:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"callServer",{enumerable:!0,get:function(){return r}});let i=n(51999);async function r(e,t){let n=(0,i.getServerActionDispatcher)();if(!n)throw Error("Invariant: missing action dispatcher.");return new Promise((i,r)=>{n({actionId:e,actionArgs:t,resolve:i,reject:r})})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},22981:function(e,t,n){"use strict";let i,r;Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hydrate",{enumerable:!0,get:function(){return A}});let o=n(87675),a=n(28169);n(85080);let s=o._(n(42291)),l=a._(n(7653)),c=n(18786),d=n(23477);n(90138);let u=o._(n(16071)),h=n(25913),p=n(71523),f=n(28187),m=window.console.error;window.console.error=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];(0,p.isNextRouterError)(t[0])||m.apply(window.console,t)},window.addEventListener("error",e=>{if((0,p.isNextRouterError)(e.error)){e.preventDefault();return}});let g=document,b=()=>{let{pathname:e,search:t}=location;return e+t},v=new TextEncoder,y=!1,x=!1,w=null;function k(e){if(0===e[0])i=[];else if(1===e[0]){if(!i)throw Error("Unexpected server data: missing bootstrap script.");r?r.enqueue(v.encode(e[1])):i.push(e[1])}else 2===e[0]&&(w=e[1])}let _=function(){r&&!x&&(r.close(),x=!0,i=void 0),y=!0};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",_,!1):_();let E=self.__next_f=self.__next_f||[];E.forEach(k),E.push=k;let S=new Map;function C(e){let{cacheKey:t}=e;l.default.useEffect(()=>{S.delete(t)});let n=function(e){let t=S.get(e);if(t)return t;let n=new ReadableStream({start(e){i&&(i.forEach(t=>{e.enqueue(v.encode(t))}),y&&!x&&(e.close(),x=!0,i=void 0)),r=e}}),o=(0,c.createFromReadableStream)(n,{callServer:h.callServer});return S.set(e,o),o}(t),o=(0,l.use)(n);return o}let P=l.default.StrictMode;function T(e){let{children:t}=e;return t}function O(e){return l.default.createElement(C,{...e,cacheKey:b()})}function A(){let e=(0,f.createMutableActionQueue)(),t=l.default.createElement(P,null,l.default.createElement(d.HeadManagerContext.Provider,{value:{appDir:!0}},l.default.createElement(f.ActionQueueContext.Provider,{value:e},l.default.createElement(T,null,l.default.createElement(O,null))))),n={onRecoverableError:u.default},i="__next_error__"===document.documentElement.id;i?s.default.createRoot(g,n).render(t):l.default.startTransition(()=>s.default.hydrateRoot(g,t,{...n,formState:w}))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},41260:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n(42307);let i=n(26283);(0,i.appBootstrap)(()=>{let{hydrate:e}=n(22981);n(51999),n(99305),e()}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},42307:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n(95750);{let e=n.u;n.u=function(){for(var t=arguments.length,n=Array(t),i=0;i<t;i++)n[i]=arguments[i];return encodeURI(e(...n))}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},848:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AppRouterAnnouncer",{enumerable:!0,get:function(){return a}});let i=n(7653),r=n(3458),o="next-route-announcer";function a(e){let{tree:t}=e,[n,a]=(0,i.useState)(null);(0,i.useEffect)(()=>{let e=function(){var e;let t=document.getElementsByName(o)[0];if(null==t?void 0:null==(e=t.shadowRoot)?void 0:e.childNodes[0])return t.shadowRoot.childNodes[0];{let e=document.createElement(o);e.style.cssText="position:absolute";let t=document.createElement("div");t.ariaLive="assertive",t.id="__next-route-announcer__",t.role="alert",t.style.cssText="position:absolute;border:0;height:1px;margin:-1px;padding:0;width:1px;clip:rect(0 0 0 0);overflow:hidden;white-space:nowrap;word-wrap:normal";let n=e.attachShadow({mode:"open"});return n.appendChild(t),document.body.appendChild(e),t}}();return a(e),()=>{let e=document.getElementsByTagName(o)[0];(null==e?void 0:e.isConnected)&&document.body.removeChild(e)}},[]);let[s,l]=(0,i.useState)(""),c=(0,i.useRef)();return(0,i.useEffect)(()=>{let e="";if(document.title)e=document.title;else{let t=document.querySelector("h1");t&&(e=t.innerText||t.textContent||"")}void 0!==c.current&&c.current!==e&&l(e),c.current=e},[t]),n?(0,r.createPortal)(s,n):null}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},42880:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{RSC_HEADER:function(){return n},ACTION:function(){return i},NEXT_ROUTER_STATE_TREE:function(){return r},NEXT_ROUTER_PREFETCH_HEADER:function(){return o},NEXT_URL:function(){return a},RSC_CONTENT_TYPE_HEADER:function(){return s},RSC_VARY_HEADER:function(){return l},FLIGHT_PARAMETERS:function(){return c},NEXT_RSC_UNION_QUERY:function(){return d}});let n="RSC",i="Next-Action",r="Next-Router-State-Tree",o="Next-Router-Prefetch",a="Next-Url",s="text/x-component",l=n+", "+r+", "+o+", "+a,c=[[n],[r],[o]],d="_rsc";("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},51999:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{getServerActionDispatcher:function(){return _},urlToUrlWithoutFlightMarker:function(){return S},createEmptyCacheNode:function(){return T},default:function(){return A}});let i=n(28169),r=i._(n(7653)),o=n(90138),a=n(8836),s=n(50371),l=n(29758),c=n(82801),d=n(70433),u=n(93014),h=n(20801),p=n(77215),f=n(848),m=n(38844),g=n(20714),b=n(75093),v=n(42880),y=n(77449),x=n(78129),w=new Map,k=null;function _(){return k}let E={};function S(e){let t=new URL(e,location.origin);return t.searchParams.delete(v.NEXT_RSC_UNION_QUERY),t}function C(e){return e.origin!==window.location.origin}function P(e){let{tree:t,pushRef:n,canonicalUrl:i,sync:o}=e;return(0,r.useInsertionEffect)(()=>{let e={__NA:!0,tree:t};n.pendingPush&&(0,s.createHrefFromUrl)(new URL(window.location.href))!==i?(n.pendingPush=!1,window.history.pushState(e,"",i)):window.history.replaceState(e,"",i),o()},[t,n,i,o]),null}let T=()=>({status:o.CacheStates.LAZY_INITIALIZED,data:null,subTreeData:null,parallelRoutes:new Map});function O(e){let{buildId:t,initialHead:n,initialTree:i,initialCanonicalUrl:s,children:d,assetPrefix:v}=e,_=(0,r.useMemo)(()=>(0,u.createInitialRouterState)({buildId:t,children:d,initialCanonicalUrl:s,initialTree:i,initialParallelRoutes:w,isServer:!1,location:window.location,initialHead:n}),[t,d,s,i,n]),[S,O,A]=(0,c.useReducerWithReduxDevtools)(_);(0,r.useEffect)(()=>{w=null},[]);let{canonicalUrl:I}=(0,c.useUnwrapState)(S),{searchParams:R,pathname:$}=(0,r.useMemo)(()=>{let e=new URL(I,window.location.href);return{searchParams:e.searchParams,pathname:(0,x.hasBasePath)(e.pathname)?(0,y.removeBasePath)(e.pathname):e.pathname}},[I]),L=(0,r.useCallback)((e,t,n)=>{(0,r.startTransition)(()=>{O({type:a.ACTION_SERVER_PATCH,flightData:t,previousTree:e,overrideCanonicalUrl:n,cache:T(),mutable:{}})})},[O]),M=(0,r.useCallback)((e,t,n,i)=>{let r=new URL((0,p.addBasePath)(e),location.href);return O({type:a.ACTION_NAVIGATE,url:r,isExternalUrl:C(r),locationSearch:location.search,forceOptimisticNavigation:n,shouldScroll:null==i||i,navigateType:t,cache:T(),mutable:{}})},[O]);!function(e){let t=(0,r.useCallback)(t=>{(0,r.startTransition)(()=>{e({...t,type:a.ACTION_SERVER_ACTION,mutable:{},cache:T()})})},[e]);k=t}(O);let j=(0,r.useMemo)(()=>{let e={back:()=>window.history.back(),forward:()=>window.history.forward(),prefetch:(e,t)=>{if((0,h.isBot)(window.navigator.userAgent))return;let n=new URL((0,p.addBasePath)(e),location.href);C(n)||(0,r.startTransition)(()=>{var e;O({type:a.ACTION_PREFETCH,url:n,kind:null!=(e=null==t?void 0:t.kind)?e:a.PrefetchKind.FULL})})},replace:(e,t)=>{void 0===t&&(t={}),(0,r.startTransition)(()=>{var n;M(e,"replace",!!t.forceOptimisticNavigation,null==(n=t.scroll)||n)})},push:(e,t)=>{void 0===t&&(t={}),(0,r.startTransition)(()=>{var n;M(e,"push",!!t.forceOptimisticNavigation,null==(n=t.scroll)||n)})},refresh:()=>{(0,r.startTransition)(()=>{O({type:a.ACTION_REFRESH,cache:T(),mutable:{},origin:window.location.origin})})},fastRefresh:()=>{throw Error("fastRefresh can only be used in development mode. Please use refresh instead.")}};return e},[O,M]);(0,r.useEffect)(()=>{window.next&&(window.next.router=j)},[j]),(0,r.useEffect)(()=>{function e(e){var t;e.persisted&&(null==(t=window.history.state)?void 0:t.tree)&&O({type:a.ACTION_RESTORE,url:new URL(window.location.href),tree:window.history.state.tree})}return window.addEventListener("pageshow",e),()=>{window.removeEventListener("pageshow",e)}},[O]);let{pushRef:D}=(0,c.useUnwrapState)(S);if(D.mpaNavigation){if(E.pendingMpaPath!==I){let e=window.location;D.pendingPush?e.assign(I):e.replace(I),E.pendingMpaPath=I}(0,r.use)((0,b.createInfinitePromise)())}let N=(0,r.useCallback)(e=>{let{state:t}=e;if(t){if(!t.__NA){window.location.reload();return}(0,r.startTransition)(()=>{O({type:a.ACTION_RESTORE,url:new URL(window.location.href),tree:t.tree})})}},[O]);(0,r.useEffect)(()=>(window.addEventListener("popstate",N),()=>{window.removeEventListener("popstate",N)}),[N]);let{cache:F,tree:z,nextUrl:B,focusAndScrollRef:H}=(0,c.useUnwrapState)(S),U=(0,r.useMemo)(()=>(0,g.findHeadInCache)(F,z[1]),[F,z]),V=r.default.createElement(m.RedirectBoundary,null,U,F.subTreeData,r.default.createElement(f.AppRouterAnnouncer,{tree:z}));return r.default.createElement(r.default.Fragment,null,r.default.createElement(P,{tree:z,pushRef:D,canonicalUrl:I,sync:A}),r.default.createElement(l.PathnameContext.Provider,{value:$},r.default.createElement(l.SearchParamsContext.Provider,{value:R},r.default.createElement(o.GlobalLayoutRouterContext.Provider,{value:{buildId:t,changeByServerResponse:L,tree:z,focusAndScrollRef:H,nextUrl:B}},r.default.createElement(o.AppRouterContext.Provider,{value:j},r.default.createElement(o.LayoutRouterContext.Provider,{value:{childNodes:F.parallelRoutes,tree:z,url:I}},V))))))}function A(e){let{globalErrorComponent:t,...n}=e;return r.default.createElement(d.ErrorBoundary,{errorComponent:t},r.default.createElement(O,n))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},11355:function(e,t,n){"use strict";function i(e){}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"clientHookInServerComponentError",{enumerable:!0,get:function(){return i}}),n(87675),n(7653),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},70433:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ErrorBoundaryHandler:function(){return l},GlobalError:function(){return c},default:function(){return d},ErrorBoundary:function(){return u}});let i=n(87675),r=i._(n(7653)),o=n(47699),a={error:{fontFamily:'system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"',height:"100vh",textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},text:{fontSize:"14px",fontWeight:400,lineHeight:"28px",margin:"0 8px"}};function s(e){let{error:t}=e;if("function"==typeof fetch.__nextGetStaticStore){var n;let e=null==(n=fetch.__nextGetStaticStore())?void 0:n.getStore();if((null==e?void 0:e.isRevalidate)||(null==e?void 0:e.isStaticGeneration))throw console.error(t),t}return null}class l extends r.default.Component{static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return e.pathname!==t.previousPathname&&t.error?{error:null,previousPathname:e.pathname}:{error:t.error,previousPathname:e.pathname}}render(){return this.state.error?r.default.createElement(r.default.Fragment,null,r.default.createElement(s,{error:this.state.error}),this.props.errorStyles,this.props.errorScripts,r.default.createElement(this.props.errorComponent,{error:this.state.error,reset:this.reset})):this.props.children}constructor(e){super(e),this.reset=()=>{this.setState({error:null})},this.state={error:null,previousPathname:this.props.pathname}}}function c(e){let{error:t}=e,n=null==t?void 0:t.digest;return r.default.createElement("html",{id:"__next_error__"},r.default.createElement("head",null),r.default.createElement("body",null,r.default.createElement(s,{error:t}),r.default.createElement("div",{style:a.error},r.default.createElement("div",null,r.default.createElement("h2",{style:a.text},"Application error: a "+(n?"server":"client")+"-side exception has occurred (see the "+(n?"server logs":"browser console")+" for more information)."),n?r.default.createElement("p",{style:a.text},"Digest: "+n):null))))}let d=c;function u(e){let{errorComponent:t,errorStyles:n,errorScripts:i,children:a}=e,s=(0,o.usePathname)();return t?r.default.createElement(l,{pathname:s,errorComponent:t,errorStyles:n,errorScripts:i},a):r.default.createElement(r.default.Fragment,null,a)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},31784:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{DYNAMIC_ERROR_CODE:function(){return n},DynamicServerError:function(){return i}});let n="DYNAMIC_SERVER_USAGE";class i extends Error{constructor(e){super("Dynamic server usage: "+e),this.digest=n}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},75093:function(e,t){"use strict";let n;function i(){return n||(n=new Promise(()=>{})),n}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createInfinitePromise",{enumerable:!0,get:function(){return i}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},71523:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isNextRouterError",{enumerable:!0,get:function(){return o}});let i=n(25011),r=n(39961);function o(e){return e&&e.digest&&((0,r.isRedirectError)(e)||(0,i.isNotFoundError)(e))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},99305:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return E}});let i=n(87675),r=n(28169),o=r._(n(7653)),a=i._(n(3458)),s=n(90138),l=n(33165),c=n(75093),d=n(70433),u=n(91932),h=n(79416),p=n(38844),f=n(2311),m=n(67051),g=n(55863),b=n(59786),v=["bottom","height","left","right","top","width","x","y"];function y(e,t){let n=e.getBoundingClientRect();return n.top>=0&&n.top<=t}class x extends o.default.Component{componentDidMount(){this.handlePotentialScroll()}componentDidUpdate(){this.props.focusAndScrollRef.apply&&this.handlePotentialScroll()}render(){return this.props.children}constructor(...e){super(...e),this.handlePotentialScroll=()=>{let{focusAndScrollRef:e,segmentPath:t}=this.props;if(e.apply){var n;if(0!==e.segmentPaths.length&&!e.segmentPaths.some(e=>t.every((t,n)=>(0,u.matchSegment)(t,e[n]))))return;let i=null,r=e.hashFragment;if(r&&(i="top"===r?document.body:null!=(n=document.getElementById(r))?n:document.getElementsByName(r)[0]),i||(i=a.default.findDOMNode(this)),!(i instanceof Element))return;for(;!(i instanceof HTMLElement)||function(e){if(["sticky","fixed"].includes(getComputedStyle(e).position))return!0;let t=e.getBoundingClientRect();return v.every(e=>0===t[e])}(i);){if(null===i.nextElementSibling)return;i=i.nextElementSibling}e.apply=!1,e.hashFragment=null,e.segmentPaths=[],(0,h.handleSmoothScroll)(()=>{if(r){i.scrollIntoView();return}let e=document.documentElement,t=e.clientHeight;!y(i,t)&&(e.scrollTop=0,y(i,t)||i.scrollIntoView())},{dontForceLayout:!0,onlyHashChange:e.onlyHashChange}),e.onlyHashChange=!1,i.focus()}}}}function w(e){let{segmentPath:t,children:n}=e,i=(0,o.useContext)(s.GlobalLayoutRouterContext);if(!i)throw Error("invariant global layout router not mounted");return o.default.createElement(x,{segmentPath:t,focusAndScrollRef:i.focusAndScrollRef},n)}function k(e){let{parallelRouterKey:t,url:n,childNodes:i,childProp:r,segmentPath:a,tree:d,cacheKey:h}=e,p=(0,o.useContext)(s.GlobalLayoutRouterContext);if(!p)throw Error("invariant global layout router not mounted");let{buildId:f,changeByServerResponse:m,tree:g}=p,v=i.get(h);if(r&&null!==r.current&&(v?v.status===s.CacheStates.LAZY_INITIALIZED&&(v.status=s.CacheStates.READY,v.subTreeData=r.current):(v={status:s.CacheStates.READY,data:null,subTreeData:r.current,parallelRoutes:new Map},i.set(h,v))),!v||v.status===s.CacheStates.LAZY_INITIALIZED){let e=function e(t,n){if(t){let[i,r]=t,o=2===t.length;if((0,u.matchSegment)(n[0],i)&&n[1].hasOwnProperty(r)){if(o){let t=e(void 0,n[1][r]);return[n[0],{...n[1],[r]:[t[0],t[1],t[2],"refetch"]}]}return[n[0],{...n[1],[r]:e(t.slice(2),n[1][r])}]}}return n}(["",...a],g);v={status:s.CacheStates.DATA_FETCH,data:(0,b.createRecordFromThenable)((0,l.fetchServerResponse)(new URL(n,location.origin),e,p.nextUrl,f)),subTreeData:null,head:v&&v.status===s.CacheStates.LAZY_INITIALIZED?v.head:void 0,parallelRoutes:v&&v.status===s.CacheStates.LAZY_INITIALIZED?v.parallelRoutes:new Map},i.set(h,v)}if(!v)throw Error("Child node should always exist");if(v.subTreeData&&v.data)throw Error("Child node should not have both subTreeData and data");if(v.data){let[e,t]=(0,o.use)(v.data);v.data=null,setTimeout(()=>{(0,o.startTransition)(()=>{m(g,e,t)})}),(0,o.use)((0,c.createInfinitePromise)())}v.subTreeData||(0,o.use)((0,c.createInfinitePromise)());let y=o.default.createElement(s.LayoutRouterContext.Provider,{value:{tree:d[1][t],childNodes:v.parallelRoutes,url:n}},v.subTreeData);return y}function _(e){let{children:t,loading:n,loadingStyles:i,loadingScripts:r,hasLoading:a}=e;return a?o.default.createElement(o.Suspense,{fallback:o.default.createElement(o.default.Fragment,null,i,r,n)},t):o.default.createElement(o.default.Fragment,null,t)}function E(e){let{parallelRouterKey:t,segmentPath:n,childProp:i,error:r,errorStyles:a,errorScripts:l,templateStyles:c,templateScripts:h,loading:b,loadingStyles:v,loadingScripts:y,hasLoading:x,template:E,notFound:S,notFoundStyles:C,styles:P}=e,T=(0,o.useContext)(s.LayoutRouterContext);if(!T)throw Error("invariant expected layout router to be mounted");let{childNodes:O,tree:A,url:I}=T,R=O.get(t);R||(R=new Map,O.set(t,R));let $=A[1][t][0],L=i.segment,M=(0,m.getSegmentValue)($),j=[$];return o.default.createElement(o.default.Fragment,null,P,j.map(e=>{let P=(0,u.matchSegment)(e,L),T=(0,m.getSegmentValue)(e),O=(0,g.createRouterCacheKey)(e);return o.default.createElement(s.TemplateContext.Provider,{key:(0,g.createRouterCacheKey)(e,!0),value:o.default.createElement(w,{segmentPath:n},o.default.createElement(d.ErrorBoundary,{errorComponent:r,errorStyles:a,errorScripts:l},o.default.createElement(_,{hasLoading:x,loading:b,loadingStyles:v,loadingScripts:y},o.default.createElement(f.NotFoundBoundary,{notFound:S,notFoundStyles:C},o.default.createElement(p.RedirectBoundary,null,o.default.createElement(k,{parallelRouterKey:t,url:I,tree:A,childNodes:R,childProp:P?i:null,segmentPath:n,cacheKey:O,isActive:M===T}))))))},c,h,E)}))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},91932:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{matchSegment:function(){return r},canSegmentBeOverridden:function(){return o}});let i=n(39441),r=(e,t)=>"string"==typeof e?"string"==typeof t&&e===t:"string"!=typeof t&&e[0]===t[0]&&e[1]===t[1],o=(e,t)=>{var n;return!Array.isArray(e)&&!!Array.isArray(t)&&(null==(n=(0,i.getSegmentParam)(e))?void 0:n.param)===t[0]};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},92054:function(e,t){"use strict";function n(e,t){if(e.isStaticGeneration&&e.experimental.ppr){if(!e.postpone)throw Error("Invariant: PPR is enabled but the postpone API is unavailable");e.postponeWasTriggered=!0,e.postpone("This page needs to bail out of prerendering at this point because it used "+t+". React throws this special object to indicate where. It should not be caught by your own try/catch. Learn more: https://nextjs.org/docs/messages/ppr-caught-error")}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"maybePostpone",{enumerable:!0,get:function(){return n}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},47699:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ReadonlyURLSearchParams:function(){return p},useSearchParams:function(){return f},usePathname:function(){return m},ServerInsertedHTMLContext:function(){return l.ServerInsertedHTMLContext},useServerInsertedHTML:function(){return l.useServerInsertedHTML},useRouter:function(){return g},useParams:function(){return b},useSelectedLayoutSegments:function(){return v},useSelectedLayoutSegment:function(){return y},redirect:function(){return c.redirect},permanentRedirect:function(){return c.permanentRedirect},RedirectType:function(){return c.RedirectType},notFound:function(){return d.notFound}});let i=n(7653),r=n(90138),o=n(29758),a=n(11355),s=n(67051),l=n(18133),c=n(39961),d=n(25011),u=Symbol("internal for urlsearchparams readonly");function h(){return Error("ReadonlyURLSearchParams cannot be modified")}class p{[Symbol.iterator](){return this[u][Symbol.iterator]()}append(){throw h()}delete(){throw h()}set(){throw h()}sort(){throw h()}constructor(e){this[u]=e,this.entries=e.entries.bind(e),this.forEach=e.forEach.bind(e),this.get=e.get.bind(e),this.getAll=e.getAll.bind(e),this.has=e.has.bind(e),this.keys=e.keys.bind(e),this.values=e.values.bind(e),this.toString=e.toString.bind(e),this.size=e.size}}function f(){(0,a.clientHookInServerComponentError)("useSearchParams");let e=(0,i.useContext)(o.SearchParamsContext),t=(0,i.useMemo)(()=>e?new p(e):null,[e]);return t}function m(){return(0,a.clientHookInServerComponentError)("usePathname"),(0,i.useContext)(o.PathnameContext)}function g(){(0,a.clientHookInServerComponentError)("useRouter");let e=(0,i.useContext)(r.AppRouterContext);if(null===e)throw Error("invariant expected app router to be mounted");return e}function b(){(0,a.clientHookInServerComponentError)("useParams");let e=(0,i.useContext)(r.GlobalLayoutRouterContext),t=(0,i.useContext)(o.PathParamsContext);return(0,i.useMemo)(()=>(null==e?void 0:e.tree)?function e(t,n){void 0===n&&(n={});let i=t[1];for(let t of Object.values(i)){let i=t[0],r=Array.isArray(i),o=r?i[1]:i;if(!o||o.startsWith("__PAGE__"))continue;let a=r&&("c"===i[2]||"oc"===i[2]);a?n[i[0]]=i[1].split("/"):r&&(n[i[0]]=i[1]),n=e(t,n)}return n}(e.tree):t,[null==e?void 0:e.tree,t])}function v(e){void 0===e&&(e="children"),(0,a.clientHookInServerComponentError)("useSelectedLayoutSegments");let{tree:t}=(0,i.useContext)(r.LayoutRouterContext);return function e(t,n,i,r){let o;if(void 0===i&&(i=!0),void 0===r&&(r=[]),i)o=t[1][n];else{var a;let e=t[1];o=null!=(a=e.children)?a:Object.values(e)[0]}if(!o)return r;let l=o[0],c=(0,s.getSegmentValue)(l);return!c||c.startsWith("__PAGE__")?r:(r.push(c),e(o,n,!1,r))}(t,e)}function y(e){void 0===e&&(e="children"),(0,a.clientHookInServerComponentError)("useSelectedLayoutSegment");let t=v(e);return 0===t.length?null:t[0]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2311:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"NotFoundBoundary",{enumerable:!0,get:function(){return s}});let i=n(87675),r=i._(n(7653)),o=n(47699);class a extends r.default.Component{static getDerivedStateFromError(e){if((null==e?void 0:e.digest)==="NEXT_NOT_FOUND")return{notFoundTriggered:!0};throw e}static getDerivedStateFromProps(e,t){return e.pathname!==t.previousPathname&&t.notFoundTriggered?{notFoundTriggered:!1,previousPathname:e.pathname}:{notFoundTriggered:t.notFoundTriggered,previousPathname:e.pathname}}render(){return this.state.notFoundTriggered?r.default.createElement(r.default.Fragment,null,r.default.createElement("meta",{name:"robots",content:"noindex"}),!1,this.props.notFoundStyles,this.props.notFound):this.props.children}constructor(e){super(e),this.state={notFoundTriggered:!!e.asNotFound,previousPathname:e.pathname}}}function s(e){let{notFound:t,notFoundStyles:n,asNotFound:i,children:s}=e,l=(0,o.usePathname)();return t?r.default.createElement(a,{pathname:l,notFound:t,notFoundStyles:n,asNotFound:i},s):r.default.createElement(r.default.Fragment,null,s)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},25011:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{notFound:function(){return i},isNotFoundError:function(){return r}});let n="NEXT_NOT_FOUND";function i(){let e=Error(n);throw e.digest=n,e}function r(e){return(null==e?void 0:e.digest)===n}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},38080:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"PromiseQueue",{enumerable:!0,get:function(){return c}});let i=n(37725),r=n(37284);var o=r._("_maxConcurrency"),a=r._("_runningCount"),s=r._("_queue"),l=r._("_processNext");class c{enqueue(e){let t,n;let r=new Promise((e,i)=>{t=e,n=i}),o=async()=>{try{i._(this,a)[a]++;let n=await e();t(n)}catch(e){n(e)}finally{i._(this,a)[a]--,i._(this,l)[l]()}};return i._(this,s)[s].push({promiseFn:r,task:o}),i._(this,l)[l](),r}bump(e){let t=i._(this,s)[s].findIndex(t=>t.promiseFn===e);if(t>-1){let e=i._(this,s)[s].splice(t,1)[0];i._(this,s)[s].unshift(e),i._(this,l)[l](!0)}}constructor(e=5){Object.defineProperty(this,l,{value:d}),Object.defineProperty(this,o,{writable:!0,value:void 0}),Object.defineProperty(this,a,{writable:!0,value:void 0}),Object.defineProperty(this,s,{writable:!0,value:void 0}),i._(this,o)[o]=e,i._(this,a)[a]=0,i._(this,s)[s]=[]}}function d(e){if(void 0===e&&(e=!1),(i._(this,a)[a]<i._(this,o)[o]||e)&&i._(this,s)[s].length>0){var t;null==(t=i._(this,s)[s].shift())||t.task()}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},38844:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{RedirectErrorBoundary:function(){return l},RedirectBoundary:function(){return c}});let i=n(28169),r=i._(n(7653)),o=n(47699),a=n(39961);function s(e){let{redirect:t,reset:n,redirectType:i}=e,s=(0,o.useRouter)();return(0,r.useEffect)(()=>{r.default.startTransition(()=>{i===a.RedirectType.push?s.push(t,{}):s.replace(t,{}),n()})},[t,i,n,s]),null}class l extends r.default.Component{static getDerivedStateFromError(e){if((0,a.isRedirectError)(e)){let t=(0,a.getURLFromRedirectError)(e),n=(0,a.getRedirectTypeFromError)(e);return{redirect:t,redirectType:n}}throw e}render(){let{redirect:e,redirectType:t}=this.state;return null!==e&&null!==t?r.default.createElement(s,{redirect:e,redirectType:t,reset:()=>this.setState({redirect:null})}):this.props.children}constructor(e){super(e),this.state={redirect:null,redirectType:null}}}function c(e){let{children:t}=e,n=(0,o.useRouter)();return r.default.createElement(l,{router:n},t)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},39961:function(e,t,n){"use strict";var i,r;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{RedirectType:function(){return i},getRedirectError:function(){return s},redirect:function(){return l},permanentRedirect:function(){return c},isRedirectError:function(){return d},getURLFromRedirectError:function(){return u},getRedirectTypeFromError:function(){return h}});let o=n(38845),a="NEXT_REDIRECT";function s(e,t,n){void 0===n&&(n=!1);let i=Error(a);i.digest=a+";"+t+";"+e+";"+n;let r=o.requestAsyncStorage.getStore();return r&&(i.mutableCookies=r.mutableCookies),i}function l(e,t){throw void 0===t&&(t="replace"),s(e,t,!1)}function c(e,t){throw void 0===t&&(t="replace"),s(e,t,!0)}function d(e){if("string"!=typeof(null==e?void 0:e.digest))return!1;let[t,n,i,r]=e.digest.split(";",4);return t===a&&("replace"===n||"push"===n)&&"string"==typeof i&&("true"===r||"false"===r)}function u(e){return d(e)?e.digest.split(";",3)[2]:null}function h(e){if(!d(e))throw Error("Not a redirect error");return e.digest.split(";",2)[1]}(r=i||(i={})).push="push",r.replace="replace",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},55236:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let i=n(28169),r=i._(n(7653)),o=n(90138);function a(){let e=(0,r.useContext)(o.TemplateContext);return r.default.createElement(r.default.Fragment,null,e)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},38845:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"requestAsyncStorage",{enumerable:!0,get:function(){return r}});let i=n(7266),r=(0,i.createAsyncLocalStorage)();("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},14603:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"applyFlightData",{enumerable:!0,get:function(){return a}});let i=n(90138),r=n(93039),o=n(32322);function a(e,t,n,a){void 0===a&&(a=!1);let[s,l,c]=n.slice(-3);return null!==l&&(3===n.length?(t.status=i.CacheStates.READY,t.subTreeData=l,(0,r.fillLazyItemsTillLeafWithHead)(t,e,s,c,a)):(t.status=i.CacheStates.READY,t.subTreeData=e.subTreeData,t.parallelRoutes=new Map(e.parallelRoutes),(0,o.fillCacheWithNewSubTreeData)(t,e,n,a)),!0)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},27927:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"applyRouterStatePatchToTree",{enumerable:!0,get:function(){return function e(t,n,o){let a;let[s,l,,,c]=n;if(1===t.length){let e=r(n,o);return e}let[d,u]=t;if(!(0,i.matchSegment)(d,s))return null;let h=2===t.length;if(h)a=r(l[u],o);else if(null===(a=e(t.slice(2),l[u],o)))return null;let p=[t[0],{...l,[u]:a}];return c&&(p[4]=!0),p}}});let i=n(91932);function r(e,t){let[n,o]=e,[a,s]=t;if("__DEFAULT__"===a&&"__DEFAULT__"!==n)return e;if((0,i.matchSegment)(n,a)){let t={};for(let e in o){let n=void 0!==s[e];n?t[e]=r(o[e],s[e]):t[e]=o[e]}for(let e in s)t[e]||(t[e]=s[e]);let i=[n,t];return e[2]&&(i[2]=e[2]),e[3]&&(i[3]=e[3]),e[4]&&(i[4]=e[4]),i}return t}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},68542:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{extractPathFromFlightRouterState:function(){return c},computeChangedPath:function(){return d}});let i=n(12743),r=n(4267),o=n(91932),a=e=>"/"===e[0]?e.slice(1):e,s=e=>"string"==typeof e?e:e[1];function l(e){return e.reduce((e,t)=>""===(t=a(t))||(0,r.isGroupSegment)(t)?e:e+"/"+t,"")||"/"}function c(e){var t;let n=Array.isArray(e[0])?e[0][1]:e[0];if("__DEFAULT__"===n||i.INTERCEPTION_ROUTE_MARKERS.some(e=>n.startsWith(e)))return;if(n.startsWith("__PAGE__"))return"";let r=[n],o=null!=(t=e[1])?t:{},a=o.children?c(o.children):void 0;if(void 0!==a)r.push(a);else for(let[e,t]of Object.entries(o)){if("children"===e)continue;let n=c(t);void 0!==n&&r.push(n)}return l(r)}function d(e,t){let n=function e(t,n){let[r,a]=t,[l,d]=n,u=s(r),h=s(l);if(i.INTERCEPTION_ROUTE_MARKERS.some(e=>u.startsWith(e)||h.startsWith(e)))return"";if(!(0,o.matchSegment)(r,l)){var p;return null!=(p=c(n))?p:""}for(let t in a)if(d[t]){let n=e(a[t],d[t]);if(null!==n)return s(l)+"/"+n}return null}(e,t);return null==n||"/"===n?n:l(n.split("/"))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},50371:function(e,t){"use strict";function n(e,t){return void 0===t&&(t=!0),e.pathname+e.search+(t?e.hash:"")}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createHrefFromUrl",{enumerable:!0,get:function(){return n}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},93014:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createInitialRouterState",{enumerable:!0,get:function(){return s}});let i=n(90138),r=n(50371),o=n(93039),a=n(68542);function s(e){var t;let{buildId:n,initialTree:s,children:l,initialCanonicalUrl:c,initialParallelRoutes:d,isServer:u,location:h,initialHead:p}=e,f={status:i.CacheStates.READY,data:null,subTreeData:l,parallelRoutes:u?new Map:d};return(null===d||0===d.size)&&(0,o.fillLazyItemsTillLeafWithHead)(f,void 0,s,p),{buildId:n,tree:s,cache:f,prefetchCache:new Map,pushRef:{pendingPush:!1,mpaNavigation:!1},focusAndScrollRef:{apply:!1,onlyHashChange:!1,hashFragment:null,segmentPaths:[]},canonicalUrl:h?(0,r.createHrefFromUrl)(h):c,nextUrl:null!=(t=(0,a.extractPathFromFlightRouterState)(s)||(null==h?void 0:h.pathname))?t:null}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},94041:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createOptimisticTree",{enumerable:!0,get:function(){return function e(t,n,r){let o;let[a,s,l,c,d]=n||[null,{}],u=t[0],h=1===t.length,p=null!==a&&(0,i.matchSegment)(a,u),f=Object.keys(s).length>1,m=!n||!p||f,g={};if(null!==a&&p&&(g=s),!h&&!f){let n=e(t.slice(1),g?g.children:null,r||m);o=n}let b=[u,{...g,...o?{children:o}:{}}];return l&&(b[2]=l),!r&&m?b[3]="refetch":p&&c&&(b[3]=c),p&&d&&(b[4]=d),b}}});let i=n(91932);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},59786:function(e,t){"use strict";function n(e){return e.status="pending",e.then(t=>{"pending"===e.status&&(e.status="fulfilled",e.value=t)},t=>{"pending"===e.status&&(e.status="rejected",e.reason=t)}),e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createRecordFromThenable",{enumerable:!0,get:function(){return n}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},55863:function(e,t){"use strict";function n(e,t){return void 0===t&&(t=!1),Array.isArray(e)?(e[0]+"|"+e[1]+"|"+e[2]).toLowerCase():t&&e.startsWith("__PAGE__")?"__PAGE__":e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createRouterCacheKey",{enumerable:!0,get:function(){return n}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},33165:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"fetchServerResponse",{enumerable:!0,get:function(){return u}});let i=n(42880),r=n(51999),o=n(25913),a=n(8836),s=n(3366),l=n(85668),{createFromFetch:c}=n(18786);function d(e){return[(0,r.urlToUrlWithoutFlightMarker)(e).toString(),void 0]}async function u(e,t,n,u,h){let p={[i.RSC_HEADER]:"1",[i.NEXT_ROUTER_STATE_TREE]:encodeURIComponent(JSON.stringify(t))};h===a.PrefetchKind.AUTO&&(p[i.NEXT_ROUTER_PREFETCH_HEADER]="1"),n&&(p[i.NEXT_URL]=n);let f=(0,s.hexHash)([p[i.NEXT_ROUTER_PREFETCH_HEADER]||"0",p[i.NEXT_ROUTER_STATE_TREE],p[i.NEXT_URL]].join(","));try{let t=new URL(e);t.searchParams.set(i.NEXT_RSC_UNION_QUERY,f);let n=await fetch(t,{credentials:"same-origin",headers:p}),a=(0,r.urlToUrlWithoutFlightMarker)(n.url),s=n.redirected?a:void 0,h=n.headers.get("content-type")||"",m=!!n.headers.get(l.NEXT_DID_POSTPONE_HEADER);if(h!==i.RSC_CONTENT_TYPE_HEADER||!n.ok)return e.hash&&(a.hash=e.hash),d(a.toString());let[g,b]=await c(Promise.resolve(n),{callServer:o.callServer});if(u!==g)return d(n.url);return[b,s,m]}catch(t){return console.error("Failed to fetch RSC payload for "+e+". Falling back to browser navigation.",t),[e.toString(),void 0]}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},25861:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"fillCacheWithDataProperty",{enumerable:!0,get:function(){return function e(t,n,o,a,s){void 0===s&&(s=!1);let l=o.length<=2,[c,d]=o,u=(0,r.createRouterCacheKey)(d),h=n.parallelRoutes.get(c);if(!h||s&&n.parallelRoutes.size>1)return{bailOptimistic:!0};let p=t.parallelRoutes.get(c);p&&p!==h||(p=new Map(h),t.parallelRoutes.set(c,p));let f=h.get(u),m=p.get(u);if(l){m&&m.data&&m!==f||p.set(u,{status:i.CacheStates.DATA_FETCH,data:a(),subTreeData:null,parallelRoutes:new Map});return}if(!m||!f){m||p.set(u,{status:i.CacheStates.DATA_FETCH,data:a(),subTreeData:null,parallelRoutes:new Map});return}return m===f&&(m={status:m.status,data:m.data,subTreeData:m.subTreeData,parallelRoutes:new Map(m.parallelRoutes)},p.set(u,m)),e(m,f,o.slice(2),a)}}});let i=n(90138),r=n(55863);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},32322:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"fillCacheWithNewSubTreeData",{enumerable:!0,get:function(){return function e(t,n,s,l){let c=s.length<=5,[d,u]=s,h=(0,a.createRouterCacheKey)(u),p=n.parallelRoutes.get(d);if(!p)return;let f=t.parallelRoutes.get(d);f&&f!==p||(f=new Map(p),t.parallelRoutes.set(d,f));let m=p.get(h),g=f.get(h);if(c){g&&g.data&&g!==m||(g={status:i.CacheStates.READY,data:null,subTreeData:s[3],parallelRoutes:m?new Map(m.parallelRoutes):new Map},m&&(0,r.invalidateCacheByRouterState)(g,m,s[2]),(0,o.fillLazyItemsTillLeafWithHead)(g,m,s[2],s[4],l),f.set(h,g));return}g&&m&&(g===m&&(g={status:g.status,data:g.data,subTreeData:g.subTreeData,parallelRoutes:new Map(g.parallelRoutes)},f.set(h,g)),e(g,m,s.slice(2),l))}}});let i=n(90138),r=n(90341),o=n(93039),a=n(55863);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},93039:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"fillLazyItemsTillLeafWithHead",{enumerable:!0,get:function(){return function e(t,n,o,a,s){let l=0===Object.keys(o[1]).length;if(l){t.head=a;return}for(let l in o[1]){let c=o[1][l],d=c[0],u=(0,r.createRouterCacheKey)(d);if(n){let r=n.parallelRoutes.get(l);if(r){let n=new Map(r),o=n.get(u),d=s&&o?{status:o.status,data:o.data,subTreeData:o.subTreeData,parallelRoutes:new Map(o.parallelRoutes)}:{status:i.CacheStates.LAZY_INITIALIZED,data:null,subTreeData:null,parallelRoutes:new Map(null==o?void 0:o.parallelRoutes)};n.set(u,d),e(d,o,c,a,s),t.parallelRoutes.set(l,n);continue}}let h={status:i.CacheStates.LAZY_INITIALIZED,data:null,subTreeData:null,parallelRoutes:new Map},p=t.parallelRoutes.get(l);p?p.set(u,h):t.parallelRoutes.set(l,new Map([[u,h]])),e(h,void 0,c,a,s)}}}});let i=n(90138),r=n(55863);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},92178:function(e,t){"use strict";var n,i;function r(e){let{kind:t,prefetchTime:n,lastUsedTime:i}=e;return Date.now()<(null!=i?i:n)+3e4?i?"reusable":"fresh":"auto"===t&&Date.now()<n+3e5?"stale":"full"===t&&Date.now()<n+3e5?"reusable":"expired"}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{PrefetchCacheEntryStatus:function(){return n},getPrefetchEntryCacheStatus:function(){return r}}),(i=n||(n={})).fresh="fresh",i.reusable="reusable",i.expired="expired",i.stale="stale",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},52830:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"handleMutable",{enumerable:!0,get:function(){return r}});let i=n(68542);function r(e,t){var n,r,o,a;let s=null==(r=t.shouldScroll)||r;return{buildId:e.buildId,canonicalUrl:null!=t.canonicalUrl?t.canonicalUrl===e.canonicalUrl?e.canonicalUrl:t.canonicalUrl:e.canonicalUrl,pushRef:{pendingPush:null!=t.pendingPush?t.pendingPush:e.pushRef.pendingPush,mpaNavigation:null!=t.mpaNavigation?t.mpaNavigation:e.pushRef.mpaNavigation},focusAndScrollRef:{apply:!!s&&((null==t?void 0:t.scrollableSegments)!==void 0||e.focusAndScrollRef.apply),onlyHashChange:!!t.hashFragment&&e.canonicalUrl.split("#",1)[0]===(null==(n=t.canonicalUrl)?void 0:n.split("#",1)[0]),hashFragment:s?t.hashFragment&&""!==t.hashFragment?decodeURIComponent(t.hashFragment.slice(1)):e.focusAndScrollRef.hashFragment:null,segmentPaths:s?null!=(o=null==t?void 0:t.scrollableSegments)?o:e.focusAndScrollRef.segmentPaths:[]},cache:t.cache?t.cache:e.cache,prefetchCache:t.prefetchCache?t.prefetchCache:e.prefetchCache,tree:void 0!==t.patchedTree?t.patchedTree:e.tree,nextUrl:void 0!==t.patchedTree?null!=(a=(0,i.computeChangedPath)(e.tree,t.patchedTree))?a:e.canonicalUrl:e.nextUrl}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},46189:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"invalidateCacheBelowFlightSegmentPath",{enumerable:!0,get:function(){return function e(t,n,r){let o=r.length<=2,[a,s]=r,l=(0,i.createRouterCacheKey)(s),c=n.parallelRoutes.get(a);if(!c)return;let d=t.parallelRoutes.get(a);if(d&&d!==c||(d=new Map(c),t.parallelRoutes.set(a,d)),o){d.delete(l);return}let u=c.get(l),h=d.get(l);h&&u&&(h===u&&(h={status:h.status,data:h.data,subTreeData:h.subTreeData,parallelRoutes:new Map(h.parallelRoutes)},d.set(l,h)),e(h,u,r.slice(2)))}}});let i=n(55863);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},90341:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"invalidateCacheByRouterState",{enumerable:!0,get:function(){return r}});let i=n(55863);function r(e,t,n){for(let r in n[1]){let o=n[1][r][0],a=(0,i.createRouterCacheKey)(o),s=t.parallelRoutes.get(r);if(s){let t=new Map(s);t.delete(a),e.parallelRoutes.set(r,t)}}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},16487:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isNavigatingToNewRootLayout",{enumerable:!0,get:function(){return function e(t,n){let i=t[0],r=n[0];if(Array.isArray(i)&&Array.isArray(r)){if(i[0]!==r[0]||i[2]!==r[2])return!0}else if(i!==r)return!0;if(t[4])return!n[4];if(n[4])return!0;let o=Object.values(t[1])[0],a=Object.values(n[1])[0];return!o||!a||e(o,a)}}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},62405:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"fastRefreshReducer",{enumerable:!0,get:function(){return i}}),n(33165),n(59786),n(50371),n(27927),n(16487),n(93983),n(52830),n(14603);let i=function(e,t){return e};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},20714:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"findHeadInCache",{enumerable:!0,get:function(){return function e(t,n){let r=0===Object.keys(n).length;if(r)return t.head;for(let r in n){let[o,a]=n[r],s=t.parallelRoutes.get(r);if(!s)continue;let l=(0,i.createRouterCacheKey)(o),c=s.get(l);if(!c)continue;let d=e(c,a);if(d)return d}}}});let i=n(55863);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},67051:function(e,t){"use strict";function n(e){return Array.isArray(e)?e[1]:e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSegmentValue",{enumerable:!0,get:function(){return n}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},93983:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{handleExternalUrl:function(){return y},navigateReducer:function(){return w}});let i=n(90138),r=n(33165),o=n(59786),a=n(50371),s=n(46189),l=n(25861),c=n(94041),d=n(27927),u=n(38785),h=n(16487),p=n(8836),f=n(52830),m=n(14603),g=n(92178),b=n(87835),v=n(82599);function y(e,t,n,i){return t.previousTree=e.tree,t.mpaNavigation=!0,t.canonicalUrl=n,t.pendingPush=i,t.scrollableSegments=void 0,(0,f.handleMutable)(e,t)}function x(e){let t=[],[n,i]=e;if(0===Object.keys(i).length)return[[n]];for(let[e,r]of Object.entries(i))for(let i of x(r))""===n?t.push([e,...i]):t.push([n,e,...i]);return t}function w(e,t){let{url:n,isExternalUrl:w,navigateType:k,cache:_,mutable:E,forceOptimisticNavigation:S,shouldScroll:C}=t,{pathname:P,hash:T}=n,O=(0,a.createHrefFromUrl)(n),A="push"===k;(0,b.prunePrefetchCache)(e.prefetchCache);let I=JSON.stringify(E.previousTree)===JSON.stringify(e.tree);if(I)return(0,f.handleMutable)(e,E);if(w)return y(e,E,n.toString(),A);let R=e.prefetchCache.get((0,a.createHrefFromUrl)(n,!1));if(S&&(null==R?void 0:R.kind)!==p.PrefetchKind.TEMPORARY){let t=P.split("/");t.push("__PAGE__");let s=(0,c.createOptimisticTree)(t,e.tree,!1),d={..._};d.status=i.CacheStates.READY,d.subTreeData=e.cache.subTreeData,d.parallelRoutes=new Map(e.cache.parallelRoutes);let u=null,h=t.slice(1).map(e=>["children",e]).flat(),m=(0,l.fillCacheWithDataProperty)(d,e.cache,h,()=>(u||(u=(0,o.createRecordFromThenable)((0,r.fetchServerResponse)(n,s,e.nextUrl,e.buildId))),u),!0);if(!(null==m?void 0:m.bailOptimistic))return E.previousTree=e.tree,E.patchedTree=s,E.pendingPush=A,E.hashFragment=T,E.shouldScroll=C,E.scrollableSegments=[],E.cache=d,E.canonicalUrl=O,e.prefetchCache.set((0,a.createHrefFromUrl)(n,!1),{data:u?(0,o.createRecordFromThenable)(Promise.resolve(u)):null,kind:p.PrefetchKind.TEMPORARY,prefetchTime:Date.now(),treeAtTimeOfPrefetch:e.tree,lastUsedTime:Date.now()}),(0,f.handleMutable)(e,E)}if(!R){let t=(0,o.createRecordFromThenable)((0,r.fetchServerResponse)(n,e.tree,e.nextUrl,e.buildId,void 0)),i={data:(0,o.createRecordFromThenable)(Promise.resolve(t)),kind:p.PrefetchKind.TEMPORARY,prefetchTime:Date.now(),treeAtTimeOfPrefetch:e.tree,lastUsedTime:null};e.prefetchCache.set((0,a.createHrefFromUrl)(n,!1),i),R=i}let $=(0,g.getPrefetchEntryCacheStatus)(R),{treeAtTimeOfPrefetch:L,data:M}=R;return v.prefetchQueue.bump(M),M.then(t=>{let[c,p,b]=t;if(R&&!R.lastUsedTime&&(R.lastUsedTime=Date.now()),"string"==typeof c)return y(e,E,c,A);let v=e.tree,w=e.cache,k=[];for(let t of c){let a=t.slice(0,-4),c=t.slice(-3)[0],p=["",...a],f=(0,d.applyRouterStatePatchToTree)(p,v,c);if(null===f&&(f=(0,d.applyRouterStatePatchToTree)(p,L,c)),null!==f){if((0,h.isNavigatingToNewRootLayout)(v,f))return y(e,E,O,A);let d=(0,m.applyFlightData)(w,_,t,(null==R?void 0:R.kind)==="auto"&&$===g.PrefetchCacheEntryStatus.reusable);(!d&&$===g.PrefetchCacheEntryStatus.stale||b)&&(d=function(e,t,n,r,o){let a=!1;e.status=i.CacheStates.READY,e.subTreeData=t.subTreeData,e.parallelRoutes=new Map(t.parallelRoutes);let s=x(r).map(e=>[...n,...e]);for(let n of s){let i=(0,l.fillCacheWithDataProperty)(e,t,n,o);(null==i?void 0:i.bailOptimistic)||(a=!0)}return a}(_,w,a,c,()=>(0,o.createRecordFromThenable)((0,r.fetchServerResponse)(n,v,e.nextUrl,e.buildId))));let S=(0,u.shouldHardNavigate)(p,v);for(let e of(S?(_.status=i.CacheStates.READY,_.subTreeData=w.subTreeData,(0,s.invalidateCacheBelowFlightSegmentPath)(_,w,a),E.cache=_):d&&(E.cache=_),w=_,v=f,x(c))){let t=[...a,...e];"__DEFAULT__"!==t[t.length-1]&&k.push(t)}}}return E.previousTree=e.tree,E.patchedTree=v,E.canonicalUrl=p?(0,a.createHrefFromUrl)(p):O,E.pendingPush=A,E.scrollableSegments=k,E.hashFragment=T,E.shouldScroll=C,(0,f.handleMutable)(e,E)},()=>e)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},82599:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{prefetchQueue:function(){return d},prefetchReducer:function(){return u}});let i=n(50371),r=n(33165),o=n(8836),a=n(59786),s=n(87835),l=n(42880),c=n(38080),d=new c.PromiseQueue(5);function u(e,t){(0,s.prunePrefetchCache)(e.prefetchCache);let{url:n}=t;n.searchParams.delete(l.NEXT_RSC_UNION_QUERY);let c=(0,i.createHrefFromUrl)(n,!1),u=e.prefetchCache.get(c);if(u&&(u.kind===o.PrefetchKind.TEMPORARY&&e.prefetchCache.set(c,{...u,kind:t.kind}),!(u.kind===o.PrefetchKind.AUTO&&t.kind===o.PrefetchKind.FULL)))return e;let h=(0,a.createRecordFromThenable)(d.enqueue(()=>(0,r.fetchServerResponse)(n,e.tree,e.nextUrl,e.buildId,t.kind)));return e.prefetchCache.set(c,{treeAtTimeOfPrefetch:e.tree,data:h,kind:t.kind,prefetchTime:Date.now(),lastUsedTime:null}),e}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},87835:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"prunePrefetchCache",{enumerable:!0,get:function(){return r}});let i=n(92178);function r(e){for(let[t,n]of e)(0,i.getPrefetchEntryCacheStatus)(n)===i.PrefetchCacheEntryStatus.expired&&e.delete(t)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},58139:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"refreshReducer",{enumerable:!0,get:function(){return h}});let i=n(33165),r=n(59786),o=n(50371),a=n(27927),s=n(16487),l=n(93983),c=n(52830),d=n(90138),u=n(93039);function h(e,t){let{cache:n,mutable:h,origin:p}=t,f=e.canonicalUrl,m=e.tree,g=JSON.stringify(h.previousTree)===JSON.stringify(m);return g?(0,c.handleMutable)(e,h):(n.data||(n.data=(0,r.createRecordFromThenable)((0,i.fetchServerResponse)(new URL(f,p),[m[0],m[1],m[2],"refetch"],e.nextUrl,e.buildId))),n.data.then(t=>{let[i,r]=t;if("string"==typeof i)return(0,l.handleExternalUrl)(e,h,i,e.pushRef.pendingPush);for(let t of(n.data=null,i)){if(3!==t.length)return console.log("REFRESH FAILED"),e;let[i]=t,c=(0,a.applyRouterStatePatchToTree)([""],m,i);if(null===c)throw Error("SEGMENT MISMATCH");if((0,s.isNavigatingToNewRootLayout)(m,c))return(0,l.handleExternalUrl)(e,h,f,e.pushRef.pendingPush);let p=r?(0,o.createHrefFromUrl)(r):void 0;r&&(h.canonicalUrl=p);let[g,b]=t.slice(-2);null!==g&&(n.status=d.CacheStates.READY,n.subTreeData=g,(0,u.fillLazyItemsTillLeafWithHead)(n,void 0,i,b),h.cache=n,h.prefetchCache=new Map),h.previousTree=m,h.patchedTree=c,h.canonicalUrl=f,m=c}return(0,c.handleMutable)(e,h)},()=>e))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},42542:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"restoreReducer",{enumerable:!0,get:function(){return r}});let i=n(50371);function r(e,t){let{url:n,tree:r}=t,o=(0,i.createHrefFromUrl)(n);return{buildId:e.buildId,canonicalUrl:o,pushRef:e.pushRef,focusAndScrollRef:e.focusAndScrollRef,cache:e.cache,prefetchCache:e.prefetchCache,tree:r,nextUrl:n.pathname}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},45988:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"serverActionReducer",{enumerable:!0,get:function(){return b}});let i=n(25913),r=n(42880),o=n(59786),a=n(77215),s=n(50371),l=n(93983),c=n(27927),d=n(16487),u=n(90138),h=n(52830),p=n(93039),{createFromFetch:f,encodeReply:m}=n(18786);async function g(e,t){let n,{actionId:o,actionArgs:s}=t,l=await m(s),c=await fetch("",{method:"POST",headers:{Accept:r.RSC_CONTENT_TYPE_HEADER,[r.ACTION]:o,[r.NEXT_ROUTER_STATE_TREE]:encodeURIComponent(JSON.stringify(e.tree)),...e.nextUrl?{[r.NEXT_URL]:e.nextUrl}:{}},body:l}),d=c.headers.get("x-action-redirect");try{let e=JSON.parse(c.headers.get("x-action-revalidated")||"[[],0,0]");n={paths:e[0]||[],tag:!!e[1],cookie:e[2]}}catch(e){n={paths:[],tag:!1,cookie:!1}}let u=d?new URL((0,a.addBasePath)(d),new URL(e.canonicalUrl,window.location.href)):void 0;if(c.headers.get("content-type")===r.RSC_CONTENT_TYPE_HEADER){let e=await f(Promise.resolve(c),{callServer:i.callServer});if(d){let[,t]=null!=e?e:[];return{actionFlightData:t,redirectLocation:u,revalidatedParts:n}}let[t,[,r]]=null!=e?e:[];return{actionResult:t,actionFlightData:r,redirectLocation:u,revalidatedParts:n}}return{redirectLocation:u,revalidatedParts:n}}function b(e,t){let{mutable:n,cache:i,resolve:r,reject:a}=t,f=e.canonicalUrl,m=e.tree,b=JSON.stringify(n.previousTree)===JSON.stringify(m);return b?(0,h.handleMutable)(e,n):(n.inFlightServerAction=(0,o.createRecordFromThenable)(g(e,t)),n.inFlightServerAction.then(t=>{let{actionResult:o,actionFlightData:a,redirectLocation:g}=t;if(g&&(e.pushRef.pendingPush=!0,n.pendingPush=!0),n.previousTree=e.tree,!a)return(n.actionResultResolved||(r(o),n.actionResultResolved=!0),g)?(0,l.handleExternalUrl)(e,n,g.href,e.pushRef.pendingPush):e;if("string"==typeof a)return(0,l.handleExternalUrl)(e,n,a,e.pushRef.pendingPush);for(let t of(n.inFlightServerAction=null,a)){if(3!==t.length)return console.log("SERVER ACTION APPLY FAILED"),e;let[r]=t,o=(0,c.applyRouterStatePatchToTree)([""],m,r);if(null===o)throw Error("SEGMENT MISMATCH");if((0,d.isNavigatingToNewRootLayout)(m,o))return(0,l.handleExternalUrl)(e,n,f,e.pushRef.pendingPush);let[a,s]=t.slice(-2);null!==a&&(i.status=u.CacheStates.READY,i.subTreeData=a,(0,p.fillLazyItemsTillLeafWithHead)(i,void 0,r,s),n.cache=i,n.prefetchCache=new Map),n.previousTree=m,n.patchedTree=o,n.canonicalUrl=f,m=o}if(g){let e=(0,s.createHrefFromUrl)(g,!1);n.canonicalUrl=e}return n.actionResultResolved||(r(o),n.actionResultResolved=!0),(0,h.handleMutable)(e,n)},t=>{if("rejected"===t.status)return n.actionResultResolved||(a(t.reason),n.actionResultResolved=!0),e;throw t}))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},60355:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"serverPatchReducer",{enumerable:!0,get:function(){return c}});let i=n(50371),r=n(27927),o=n(16487),a=n(93983),s=n(14603),l=n(52830);function c(e,t){let{flightData:n,previousTree:c,overrideCanonicalUrl:d,cache:u,mutable:h}=t,p=JSON.stringify(c)===JSON.stringify(e.tree);if(!p)return console.log("TREE MISMATCH"),e;if(h.previousTree)return(0,l.handleMutable)(e,h);if("string"==typeof n)return(0,a.handleExternalUrl)(e,h,n,e.pushRef.pendingPush);let f=e.tree,m=e.cache;for(let t of n){let n=t.slice(0,-4),[l]=t.slice(-3,-2),c=(0,r.applyRouterStatePatchToTree)(["",...n],f,l);if(null===c)throw Error("SEGMENT MISMATCH");if((0,o.isNavigatingToNewRootLayout)(f,c))return(0,a.handleExternalUrl)(e,h,e.canonicalUrl,e.pushRef.pendingPush);let p=d?(0,i.createHrefFromUrl)(d):void 0;p&&(h.canonicalUrl=p),(0,s.applyFlightData)(m,u,t),h.previousTree=f,h.patchedTree=c,h.cache=u,m=u,f=c}return(0,l.handleMutable)(e,h)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8836:function(e,t){"use strict";var n,i;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{PrefetchKind:function(){return n},ACTION_REFRESH:function(){return r},ACTION_NAVIGATE:function(){return o},ACTION_RESTORE:function(){return a},ACTION_SERVER_PATCH:function(){return s},ACTION_PREFETCH:function(){return l},ACTION_FAST_REFRESH:function(){return c},ACTION_SERVER_ACTION:function(){return d},isThenable:function(){return u}});let r="refresh",o="navigate",a="restore",s="server-patch",l="prefetch",c="fast-refresh",d="server-action";function u(e){return e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}(i=n||(n={})).AUTO="auto",i.FULL="full",i.TEMPORARY="temporary",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},88279:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"reducer",{enumerable:!0,get:function(){return u}});let i=n(8836),r=n(93983),o=n(60355),a=n(42542),s=n(58139),l=n(82599),c=n(62405),d=n(45988),u=function(e,t){switch(t.type){case i.ACTION_NAVIGATE:return(0,r.navigateReducer)(e,t);case i.ACTION_SERVER_PATCH:return(0,o.serverPatchReducer)(e,t);case i.ACTION_RESTORE:return(0,a.restoreReducer)(e,t);case i.ACTION_REFRESH:return(0,s.refreshReducer)(e,t);case i.ACTION_FAST_REFRESH:return(0,c.fastRefreshReducer)(e,t);case i.ACTION_PREFETCH:return(0,l.prefetchReducer)(e,t);case i.ACTION_SERVER_ACTION:return(0,d.serverActionReducer)(e,t);default:throw Error("Unknown action")}};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},38785:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"shouldHardNavigate",{enumerable:!0,get:function(){return function e(t,n){let[r,o]=n,[a,s]=t;if(!(0,i.matchSegment)(a,r))return!!Array.isArray(a);let l=t.length<=2;return!l&&e(t.slice(2),o[s])}}});let i=n(91932);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},71305:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createSearchParamsBailoutProxy",{enumerable:!0,get:function(){return r}});let i=n(88887);function r(){return new Proxy({},{get(e,t){"string"==typeof t&&(0,i.staticGenerationBailout)("searchParams."+t)}})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7530:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"staticGenerationAsyncStorage",{enumerable:!0,get:function(){return r}});let i=n(7266),r=(0,i.createAsyncLocalStorage)();("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},88887:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"staticGenerationBailout",{enumerable:!0,get:function(){return l}});let i=n(31784),r=n(92054),o=n(7530);class a extends Error{constructor(...e){super(...e),this.code="NEXT_STATIC_GEN_BAILOUT"}}function s(e,t){let{dynamic:n,link:i}=t||{};return"Page"+(n?' with `dynamic = "'+n+'"`':"")+" couldn't be rendered statically because it used `"+e+"`."+(i?" See more info here: "+i:"")}let l=(e,t)=>{let n=o.staticGenerationAsyncStorage.getStore();if(!n)return!1;if(n.forceStatic)return!0;if(n.dynamicShouldError){var l;throw new a(s(e,{...t,dynamic:null!=(l=null==t?void 0:t.dynamic)?l:"error"}))}let c=s(e,{...t,link:"https://nextjs.org/docs/messages/dynamic-server-error"});if((0,r.maybePostpone)(n,e),n.revalidate=0,(null==t?void 0:t.dynamic)||(n.staticPrefetchBailout=!0),n.isStaticGeneration){let t=new i.DynamicServerError(c);throw n.dynamicUsageDescription=e,n.dynamicUsageStack=t.stack,t}return!1};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},15115:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let i=n(87675),r=i._(n(7653)),o=n(71305);function a(e){let{Component:t,propsForComponent:n,isStaticGeneration:i}=e;if(i){let e=(0,o.createSearchParamsBailoutProxy)();return r.default.createElement(t,{searchParams:e,...n})}return r.default.createElement(t,n)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},82801:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{useUnwrapState:function(){return l},useReducerWithReduxDevtools:function(){return c}});let i=n(28169),r=i._(n(7653)),o=n(8836),a=n(28187);function s(e){if(e instanceof Map){let t={};for(let[n,i]of e.entries()){if("function"==typeof i){t[n]="fn()";continue}if("object"==typeof i&&null!==i){if(i.$$typeof){t[n]=i.$$typeof.toString();continue}if(i._bundlerConfig){t[n]="FlightData";continue}}t[n]=s(i)}return t}if("object"==typeof e&&null!==e){let t={};for(let n in e){let i=e[n];if("function"==typeof i){t[n]="fn()";continue}if("object"==typeof i&&null!==i){if(i.$$typeof){t[n]=i.$$typeof.toString();continue}if(i.hasOwnProperty("_bundlerConfig")){t[n]="FlightData";continue}}t[n]=s(i)}return t}return Array.isArray(e)?e.map(s):e}function l(e){if((0,o.isThenable)(e)){let t=(0,r.use)(e);return t}return e}let c=function(e){let[t,n]=r.default.useState(e),i=(0,r.useContext)(a.ActionQueueContext);if(!i)throw Error("Invariant: Missing ActionQueueContext");let o=(0,r.useRef)(),l=(0,r.useRef)();(0,r.useEffect)(()=>{if(!o.current&&!1!==l.current){if(void 0===l.current&&void 0===window.__REDUX_DEVTOOLS_EXTENSION__){l.current=!1;return}return o.current=window.__REDUX_DEVTOOLS_EXTENSION__.connect({instanceId:8e3,name:"next-router"}),o.current&&(o.current.init(s(e)),i&&(i.devToolsInstance=o.current)),()=>{o.current=void 0}}},[e,i]);let c=(0,r.useCallback)(t=>{i.state||(i.state=e),i.dispatch(t,n)},[i,e]),d=(0,r.useCallback)(()=>{o.current&&o.current.send({type:"RENDER_SYNC"},s(t))},[t]);return[t,c,d]};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},23926:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"detectDomainLocale",{enumerable:!0,get:function(){return n}});let n=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n]};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},78129:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hasBasePath",{enumerable:!0,get:function(){return r}});let i=n(53323);function r(e){return(0,i.pathHasPrefix)(e,"")}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},28323:function(e,t){"use strict";let n;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{DOMAttributeNames:function(){return i},isEqualNode:function(){return o},default:function(){return a}});let i={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv",noModule:"noModule"};function r(e){let{type:t,props:n}=e,r=document.createElement(t);for(let e in n){if(!n.hasOwnProperty(e)||"children"===e||"dangerouslySetInnerHTML"===e||void 0===n[e])continue;let o=i[e]||e.toLowerCase();"script"===t&&("async"===o||"defer"===o||"noModule"===o)?r[o]=!!n[e]:r.setAttribute(o,n[e])}let{children:o,dangerouslySetInnerHTML:a}=n;return a?r.innerHTML=a.__html||"":o&&(r.textContent="string"==typeof o?o:Array.isArray(o)?o.join(""):""),r}function o(e,t){if(e instanceof HTMLElement&&t instanceof HTMLElement){let n=t.getAttribute("nonce");if(n&&!e.getAttribute("nonce")){let i=t.cloneNode(!0);return i.setAttribute("nonce",""),i.nonce=n,n===e.nonce&&e.isEqualNode(i)}}return e.isEqualNode(t)}function a(){return{mountedInstances:new Set,updateHead:e=>{let t={};e.forEach(e=>{if("link"===e.type&&e.props["data-optimized-fonts"]){if(document.querySelector('style[data-href="'+e.props["data-href"]+'"]'))return;e.props.href=e.props["data-href"],e.props["data-href"]=void 0}let n=t[e.type]||[];n.push(e),t[e.type]=n});let i=t.title?t.title[0]:null,r="";if(i){let{children:e}=i.props;r="string"==typeof e?e:Array.isArray(e)?e.join(""):""}r!==document.title&&(document.title=r),["meta","base","link","style","script"].forEach(e=>{n(e,t[e]||[])})}}}n=(e,t)=>{let n=document.getElementsByTagName("head")[0],i=n.querySelector("meta[name=next-head-count]"),a=Number(i.content),s=[];for(let t=0,n=i.previousElementSibling;t<a;t++,n=(null==n?void 0:n.previousElementSibling)||null){var l;(null==n?void 0:null==(l=n.tagName)?void 0:l.toLowerCase())===e&&s.push(n)}let c=t.map(r).filter(e=>{for(let t=0,n=s.length;t<n;t++){let n=s[t];if(o(n,e))return s.splice(t,1),!1}return!0});s.forEach(e=>{var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),c.forEach(e=>n.insertBefore(e,i)),i.content=(a-s.length+c.length).toString()},("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},97861:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return o}});let i=n(43580),r=n(91954),o=e=>{if(!e.startsWith("/"))return e;let{pathname:t,query:n,hash:o}=(0,r.parsePath)(e);return""+(0,i.removeTrailingSlash)(t)+n+o};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},16071:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}});let i=n(20077);function r(e){let t="function"==typeof reportError?reportError:e=>{window.console.error(e)};e.digest!==i.NEXT_DYNAMIC_NO_SSR_CODE&&t(e)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},77449:function(e,t,n){"use strict";function i(e){return e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeBasePath",{enumerable:!0,get:function(){return i}}),n(78129),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},74588:function(e,t,n){"use strict";function i(e,t){return e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeLocale",{enumerable:!0,get:function(){return i}}),n(91954),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},12741:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{requestIdleCallback:function(){return n},cancelIdleCallback:function(){return i}});let n="undefined"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},i="undefined"!=typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},32289:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return u}});let i=n(21067),r=n(70830),o=n(14096),a=n(49491),s=n(97861),l=n(82162),c=n(22905),d=n(83618);function u(e,t,n){let u;let h="string"==typeof t?t:(0,r.formatWithValidation)(t),p=h.match(/^[a-zA-Z]{1,}:\/\//),f=p?h.slice(p[0].length):h,m=f.split("?",1);if((m[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href '"+h+"' passed to next/router in page: '"+e.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");let t=(0,a.normalizeRepeatedSlashes)(f);h=(p?p[0]:"")+t}if(!(0,l.isLocalURL)(h))return n?[h]:h;try{u=new URL(h.startsWith("#")?e.asPath:e.pathname,"http://n")}catch(e){u=new URL("/","http://n")}try{let e=new URL(h,u);e.pathname=(0,s.normalizePathTrailingSlash)(e.pathname);let t="";if((0,c.isDynamicRoute)(e.pathname)&&e.searchParams&&n){let n=(0,i.searchParamsToUrlQuery)(e.searchParams),{result:a,params:s}=(0,d.interpolateAs)(e.pathname,e.pathname,n);a&&(t=(0,r.formatWithValidation)({pathname:a,hash:e.hash,query:(0,o.omit)(n,s)}))}let a=e.origin===u.origin?e.href.slice(e.origin.length):e.href;return n?[a,t||a]:a}catch(e){return n?[h]:h}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},22860:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{markAssetError:function(){return l},isAssetError:function(){return c},getClientBuildManifest:function(){return p},createRouteLoader:function(){return m}}),n(87675),n(70414);let i=n(71757),r=n(12741),o=n(95750);function a(e,t,n){let i,r=t.get(e);if(r)return"future"in r?r.future:Promise.resolve(r);let o=new Promise(e=>{i=e});return t.set(e,r={resolve:i,future:o}),n?n().then(e=>(i(e),e)).catch(n=>{throw t.delete(e),n}):o}let s=Symbol("ASSET_LOAD_ERROR");function l(e){return Object.defineProperty(e,s,{})}function c(e){return e&&s in e}let d=function(e){try{return e=document.createElement("link"),!!window.MSInputMethodContext&&!!document.documentMode||e.relList.supports("prefetch")}catch(e){return!1}}(),u=()=>(0,o.getDeploymentIdQueryOrEmptyString)();function h(e,t,n){return new Promise((i,o)=>{let a=!1;e.then(e=>{a=!0,i(e)}).catch(o),(0,r.requestIdleCallback)(()=>setTimeout(()=>{a||o(n)},t))})}function p(){if(self.__BUILD_MANIFEST)return Promise.resolve(self.__BUILD_MANIFEST);let e=new Promise(e=>{let t=self.__BUILD_MANIFEST_CB;self.__BUILD_MANIFEST_CB=()=>{e(self.__BUILD_MANIFEST),t&&t()}});return h(e,3800,l(Error("Failed to load client build manifest")))}function f(e,t){return p().then(n=>{if(!(t in n))throw l(Error("Failed to lookup route: "+t));let r=n[t].map(t=>e+"/_next/"+encodeURI(t));return{scripts:r.filter(e=>e.endsWith(".js")).map(e=>(0,i.__unsafeCreateTrustedScriptURL)(e)+u()),css:r.filter(e=>e.endsWith(".css")).map(e=>e+u())}})}function m(e){let t=new Map,n=new Map,i=new Map,o=new Map;function s(e){{var t;let i=n.get(e.toString());return i||(document.querySelector('script[src^="'+e+'"]')?Promise.resolve():(n.set(e.toString(),i=new Promise((n,i)=>{(t=document.createElement("script")).onload=n,t.onerror=()=>i(l(Error("Failed to load script: "+e))),t.crossOrigin=void 0,t.src=e,document.body.appendChild(t)})),i))}}function c(e){let t=i.get(e);return t||i.set(e,t=fetch(e).then(t=>{if(!t.ok)throw Error("Failed to load stylesheet: "+e);return t.text().then(t=>({href:e,content:t}))}).catch(e=>{throw l(e)})),t}return{whenEntrypoint:e=>a(e,t),onEntrypoint(e,n){(n?Promise.resolve().then(()=>n()).then(e=>({component:e&&e.default||e,exports:e}),e=>({error:e})):Promise.resolve(void 0)).then(n=>{let i=t.get(e);i&&"resolve"in i?n&&(t.set(e,n),i.resolve(n)):(n?t.set(e,n):t.delete(e),o.delete(e))})},loadRoute(n,i){return a(n,o,()=>{let r;return h(f(e,n).then(e=>{let{scripts:i,css:r}=e;return Promise.all([t.has(n)?[]:Promise.all(i.map(s)),Promise.all(r.map(c))])}).then(e=>this.whenEntrypoint(n).then(t=>({entrypoint:t,styles:e[1]}))),3800,l(Error("Route did not complete loading: "+n))).then(e=>{let{entrypoint:t,styles:n}=e,i=Object.assign({styles:n},t);return"error"in t?t:i}).catch(e=>{if(i)throw e;return{error:e}}).finally(()=>null==r?void 0:r())})},prefetch(t){let n;return(n=navigator.connection)&&(n.saveData||/2g/.test(n.effectiveType))?Promise.resolve():f(e,t).then(e=>Promise.all(d?e.scripts.map(e=>{var t,n,i;return t=e.toString(),n="script",new Promise((e,r)=>{if(document.querySelector('\n      link[rel="prefetch"][href^="'+t+'"],\n      link[rel="preload"][href^="'+t+'"],\n      script[src^="'+t+'"]'))return e();i=document.createElement("link"),n&&(i.as=n),i.rel="prefetch",i.crossOrigin=void 0,i.onload=e,i.onerror=()=>r(l(Error("Failed to prefetch: "+t))),i.href=t,document.head.appendChild(i)})}):[])).then(()=>{(0,r.requestIdleCallback)(()=>this.loadRoute(t,!0).catch(()=>{}))}).catch(()=>{})}}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},60770:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{Router:function(){return o.default},default:function(){return p},withRouter:function(){return l.default},useRouter:function(){return f},createRouter:function(){return m},makePublicRouterInstance:function(){return g}});let i=n(87675),r=i._(n(7653)),o=i._(n(45540)),a=n(10812),s=i._(n(93775)),l=i._(n(11048)),c={router:null,readyCallbacks:[],ready(e){if(this.router)return e();this.readyCallbacks.push(e)}},d=["pathname","route","query","asPath","components","isFallback","basePath","locale","locales","defaultLocale","isReady","isPreview","isLocaleDomain","domainLocales"],u=["push","replace","reload","back","prefetch","beforePopState"];function h(){if(!c.router)throw Error('No router instance found.\nYou should only use "next/router" on the client side of your app.\n');return c.router}Object.defineProperty(c,"events",{get:()=>o.default.events}),d.forEach(e=>{Object.defineProperty(c,e,{get(){let t=h();return t[e]}})}),u.forEach(e=>{c[e]=function(){for(var t=arguments.length,n=Array(t),i=0;i<t;i++)n[i]=arguments[i];let r=h();return r[e](...n)}}),["routeChangeStart","beforeHistoryChange","routeChangeComplete","routeChangeError","hashChangeStart","hashChangeComplete"].forEach(e=>{c.ready(()=>{o.default.events.on(e,function(){for(var t=arguments.length,n=Array(t),i=0;i<t;i++)n[i]=arguments[i];let r="on"+e.charAt(0).toUpperCase()+e.substring(1);if(c[r])try{c[r](...n)}catch(e){console.error("Error when running the Router event: "+r),console.error((0,s.default)(e)?e.message+"\n"+e.stack:e+"")}})})});let p=c;function f(){let e=r.default.useContext(a.RouterContext);if(!e)throw Error("NextRouter was not mounted. https://nextjs.org/docs/messages/next-router-not-mounted");return e}function m(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return c.router=new o.default(...t),c.readyCallbacks.forEach(e=>e()),c.readyCallbacks=[],c.router}function g(e){let t={};for(let n of d){if("object"==typeof e[n]){t[n]=Object.assign(Array.isArray(e[n])?[]:{},e[n]);continue}t[n]=e[n]}return t.events=o.default.events,u.forEach(n=>{t[n]=function(){for(var t=arguments.length,i=Array(t),r=0;r<t;r++)i[r]=arguments[r];return e[n](...i)}}),t}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7697:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{handleClientScriptLoad:function(){return m},initScriptLoader:function(){return g},default:function(){return v}});let i=n(87675),r=n(28169),o=i._(n(3458)),a=r._(n(7653)),s=n(23477),l=n(28323),c=n(12741),d=new Map,u=new Set,h=["onLoad","onReady","dangerouslySetInnerHTML","children","onError","strategy","stylesheets"],p=e=>{if(o.default.preinit){e.forEach(e=>{o.default.preinit(e,{as:"style"})});return}{let t=document.head;e.forEach(e=>{let n=document.createElement("link");n.type="text/css",n.rel="stylesheet",n.href=e,t.appendChild(n)})}},f=e=>{let{src:t,id:n,onLoad:i=()=>{},onReady:r=null,dangerouslySetInnerHTML:o,children:a="",strategy:s="afterInteractive",onError:c,stylesheets:f}=e,m=n||t;if(m&&u.has(m))return;if(d.has(t)){u.add(m),d.get(t).then(i,c);return}let g=()=>{r&&r(),u.add(m)},b=document.createElement("script"),v=new Promise((e,t)=>{b.addEventListener("load",function(t){e(),i&&i.call(this,t),g()}),b.addEventListener("error",function(e){t(e)})}).catch(function(e){c&&c(e)});for(let[n,i]of(o?(b.innerHTML=o.__html||"",g()):a?(b.textContent="string"==typeof a?a:Array.isArray(a)?a.join(""):"",g()):t&&(b.src=t,d.set(t,v)),Object.entries(e))){if(void 0===i||h.includes(n))continue;let e=l.DOMAttributeNames[n]||n.toLowerCase();b.setAttribute(e,i)}"worker"===s&&b.setAttribute("type","text/partytown"),b.setAttribute("data-nscript",s),f&&p(f),document.body.appendChild(b)};function m(e){let{strategy:t="afterInteractive"}=e;"lazyOnload"===t?window.addEventListener("load",()=>{(0,c.requestIdleCallback)(()=>f(e))}):f(e)}function g(e){e.forEach(m),function(){let e=[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')];e.forEach(e=>{let t=e.id||e.getAttribute("src");u.add(t)})}()}function b(e){let{id:t,src:n="",onLoad:i=()=>{},onReady:r=null,strategy:l="afterInteractive",onError:d,stylesheets:h,...p}=e,{updateScripts:m,scripts:g,getIsSsr:b,appDir:v,nonce:y}=(0,a.useContext)(s.HeadManagerContext),x=(0,a.useRef)(!1);(0,a.useEffect)(()=>{let e=t||n;x.current||(r&&e&&u.has(e)&&r(),x.current=!0)},[r,t,n]);let w=(0,a.useRef)(!1);if((0,a.useEffect)(()=>{!w.current&&("afterInteractive"===l?f(e):"lazyOnload"===l&&("complete"===document.readyState?(0,c.requestIdleCallback)(()=>f(e)):window.addEventListener("load",()=>{(0,c.requestIdleCallback)(()=>f(e))})),w.current=!0)},[e,l]),("beforeInteractive"===l||"worker"===l)&&(m?(g[l]=(g[l]||[]).concat([{id:t,src:n,onLoad:i,onReady:r,onError:d,...p}]),m(g)):b&&b()?u.add(t||n):b&&!b()&&f(e)),v){if(h&&h.forEach(e=>{o.default.preinit(e,{as:"style"})}),"beforeInteractive"===l)return n?(o.default.preload(n,p.integrity?{as:"script",integrity:p.integrity}:{as:"script"}),a.default.createElement("script",{nonce:y,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([n])+")"}})):(p.dangerouslySetInnerHTML&&(p.children=p.dangerouslySetInnerHTML.__html,delete p.dangerouslySetInnerHTML),a.default.createElement("script",{nonce:y,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([0,{...p}])+")"}}));"afterInteractive"===l&&n&&o.default.preload(n,p.integrity?{as:"script",integrity:p.integrity}:{as:"script"})}return null}Object.defineProperty(b,"__nextScript",{value:!0});let v=b;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},71757:function(e,t){"use strict";let n;function i(e){var t;return(null==(t=function(){if(void 0===n){var e;n=(null==(e=window.trustedTypes)?void 0:e.createPolicy("nextjs",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e}))||null}return n}())?void 0:t.createScriptURL(e))||e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"__unsafeCreateTrustedScriptURL",{enumerable:!0,get:function(){return i}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},11048:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let i=n(87675),r=i._(n(7653)),o=n(60770);function a(e){function t(t){return r.default.createElement(e,{router:(0,o.useRouter)(),...t})}return t.getInitialProps=e.getInitialProps,t.origGetInitialProps=e.origGetInitialProps,t}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},90138:function(e,t,n){"use strict";var i,r;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{CacheStates:function(){return i},AppRouterContext:function(){return s},LayoutRouterContext:function(){return l},GlobalLayoutRouterContext:function(){return c},TemplateContext:function(){return d}});let o=n(87675),a=o._(n(7653));(r=i||(i={})).LAZY_INITIALIZED="LAZYINITIALIZED",r.DATA_FETCH="DATAFETCH",r.READY="READY";let s=a.default.createContext(null),l=a.default.createContext(null),c=a.default.createContext(null),d=a.default.createContext(null)},68991:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BloomFilter",{enumerable:!0,get:function(){return n}});class n{static from(e,t){void 0===t&&(t=.01);let i=new n(e.length,t);for(let t of e)i.add(t);return i}export(){let e={numItems:this.numItems,errorRate:this.errorRate,numBits:this.numBits,numHashes:this.numHashes,bitArray:this.bitArray};return e}import(e){this.numItems=e.numItems,this.errorRate=e.errorRate,this.numBits=e.numBits,this.numHashes=e.numHashes,this.bitArray=e.bitArray}add(e){let t=this.getHashValues(e);t.forEach(e=>{this.bitArray[e]=1})}contains(e){let t=this.getHashValues(e);return t.every(e=>this.bitArray[e])}getHashValues(e){let t=[];for(let n=1;n<=this.numHashes;n++){let i=function(e){let t=0;for(let n=0;n<e.length;n++){let i=e.charCodeAt(n);t=Math.imul(t^i,1540483477),t^=t>>>13,t=Math.imul(t,1540483477)}return t>>>0}(""+e+n)%this.numBits;t.push(i)}return t}constructor(e,t){this.numItems=e,this.errorRate=t,this.numBits=Math.ceil(-(e*Math.log(t))/(Math.log(2)*Math.log(2))),this.numHashes=Math.ceil(this.numBits/e*Math.log(2)),this.bitArray=Array(this.numBits).fill(0)}}},98790:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{MODERN_BROWSERSLIST_TARGET:function(){return r.default},COMPILER_NAMES:function(){return o},INTERNAL_HEADERS:function(){return a},COMPILER_INDEXES:function(){return s},PHASE_EXPORT:function(){return l},PHASE_PRODUCTION_BUILD:function(){return c},PHASE_PRODUCTION_SERVER:function(){return d},PHASE_DEVELOPMENT_SERVER:function(){return u},PHASE_TEST:function(){return h},PHASE_INFO:function(){return p},PAGES_MANIFEST:function(){return f},APP_PATHS_MANIFEST:function(){return m},APP_PATH_ROUTES_MANIFEST:function(){return g},BUILD_MANIFEST:function(){return b},APP_BUILD_MANIFEST:function(){return v},FUNCTIONS_CONFIG_MANIFEST:function(){return y},SUBRESOURCE_INTEGRITY_MANIFEST:function(){return x},NEXT_FONT_MANIFEST:function(){return w},EXPORT_MARKER:function(){return k},EXPORT_DETAIL:function(){return _},PRERENDER_MANIFEST:function(){return E},ROUTES_MANIFEST:function(){return S},IMAGES_MANIFEST:function(){return C},SERVER_FILES_MANIFEST:function(){return P},DEV_CLIENT_PAGES_MANIFEST:function(){return T},MIDDLEWARE_MANIFEST:function(){return O},DEV_MIDDLEWARE_MANIFEST:function(){return A},REACT_LOADABLE_MANIFEST:function(){return I},FONT_MANIFEST:function(){return R},SERVER_DIRECTORY:function(){return $},CONFIG_FILES:function(){return L},BUILD_ID_FILE:function(){return M},BLOCKED_PAGES:function(){return j},CLIENT_PUBLIC_FILES_PATH:function(){return D},CLIENT_STATIC_FILES_PATH:function(){return N},STRING_LITERAL_DROP_BUNDLE:function(){return F},NEXT_BUILTIN_DOCUMENT:function(){return z},BARREL_OPTIMIZATION_PREFIX:function(){return B},CLIENT_REFERENCE_MANIFEST:function(){return H},SERVER_REFERENCE_MANIFEST:function(){return U},MIDDLEWARE_BUILD_MANIFEST:function(){return V},MIDDLEWARE_REACT_LOADABLE_MANIFEST:function(){return W},CLIENT_STATIC_FILES_RUNTIME_MAIN:function(){return q},CLIENT_STATIC_FILES_RUNTIME_MAIN_APP:function(){return G},APP_CLIENT_INTERNALS:function(){return X},CLIENT_STATIC_FILES_RUNTIME_REACT_REFRESH:function(){return Y},CLIENT_STATIC_FILES_RUNTIME_AMP:function(){return K},CLIENT_STATIC_FILES_RUNTIME_WEBPACK:function(){return J},CLIENT_STATIC_FILES_RUNTIME_POLYFILLS:function(){return Z},CLIENT_STATIC_FILES_RUNTIME_POLYFILLS_SYMBOL:function(){return Q},EDGE_RUNTIME_WEBPACK:function(){return ee},TEMPORARY_REDIRECT_STATUS:function(){return et},PERMANENT_REDIRECT_STATUS:function(){return en},STATIC_PROPS_ID:function(){return ei},SERVER_PROPS_ID:function(){return er},PAGE_SEGMENT_KEY:function(){return eo},GOOGLE_FONT_PROVIDER:function(){return ea},OPTIMIZED_FONT_PROVIDERS:function(){return es},DEFAULT_SERIF_FONT:function(){return el},DEFAULT_SANS_SERIF_FONT:function(){return ec},STATIC_STATUS_PAGES:function(){return ed},TRACE_OUTPUT_VERSION:function(){return eu},TURBO_TRACE_DEFAULT_MEMORY_LIMIT:function(){return eh},RSC_MODULE_TYPES:function(){return ep},EDGE_UNSUPPORTED_NODE_APIS:function(){return ef},SYSTEM_ENTRYPOINTS:function(){return em}});let i=n(87675),r=i._(n(89421)),o={client:"client",server:"server",edgeServer:"edge-server"},a=["x-invoke-error","x-invoke-output","x-invoke-path","x-invoke-query","x-invoke-status","x-middleware-invoke"],s={[o.client]:0,[o.server]:1,[o.edgeServer]:2},l="phase-export",c="phase-production-build",d="phase-production-server",u="phase-development-server",h="phase-test",p="phase-info",f="pages-manifest.json",m="app-paths-manifest.json",g="app-path-routes-manifest.json",b="build-manifest.json",v="app-build-manifest.json",y="functions-config-manifest.json",x="subresource-integrity-manifest",w="next-font-manifest",k="export-marker.json",_="export-detail.json",E="prerender-manifest.json",S="routes-manifest.json",C="images-manifest.json",P="required-server-files.json",T="_devPagesManifest.json",O="middleware-manifest.json",A="_devMiddlewareManifest.json",I="react-loadable-manifest.json",R="font-manifest.json",$="server",L=["next.config.js","next.config.mjs"],M="BUILD_ID",j=["/_document","/_app","/_error"],D="public",N="static",F="__NEXT_DROP_CLIENT_FILE__",z="__NEXT_BUILTIN_DOCUMENT__",B="__barrel_optimize__",H="client-reference-manifest",U="server-reference-manifest",V="middleware-build-manifest",W="middleware-react-loadable-manifest",q="main",G=""+q+"-app",X="app-pages-internals",Y="react-refresh",K="amp",J="webpack",Z="polyfills",Q=Symbol(Z),ee="edge-runtime-webpack",et=307,en=308,ei="__N_SSG",er="__N_SSP",eo="__PAGE__",ea="https://fonts.googleapis.com/",es=[{url:ea,preconnect:"https://fonts.gstatic.com"},{url:"https://use.typekit.net",preconnect:"https://use.typekit.net"}],el={name:"Times New Roman",xAvgCharWidth:821,azAvgWidth:854.3953488372093,unitsPerEm:2048},ec={name:"Arial",xAvgCharWidth:904,azAvgWidth:934.5116279069767,unitsPerEm:2048},ed=["/500"],eu=1,eh=6e3,ep={client:"client",server:"server"},ef=["clearImmediate","setImmediate","BroadcastChannel","ByteLengthQueuingStrategy","CompressionStream","CountQueuingStrategy","DecompressionStream","DomException","MessageChannel","MessageEvent","MessagePort","ReadableByteStreamController","ReadableStreamBYOBRequest","ReadableStreamDefaultController","TransformStreamDefaultController","WritableStreamDefaultController"],em=new Set([q,Y,K,G]);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},35067:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"escapeStringRegexp",{enumerable:!0,get:function(){return r}});let n=/[|\\{}()[\]^$+*?.-]/,i=/[|\\{}()[\]^$+*?.-]/g;function r(e){return n.test(e)?e.replace(i,"\\$&"):e}},3366:function(e,t){"use strict";function n(e){let t=5381;for(let n=0;n<e.length;n++){let i=e.charCodeAt(n);t=(t<<5)+t+i&4294967295}return t>>>0}function i(e){return n(e).toString(36).slice(0,5)}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{djb2Hash:function(){return n},hexHash:function(){return i}})},23477:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"HeadManagerContext",{enumerable:!0,get:function(){return o}});let i=n(87675),r=i._(n(7653)),o=r.default.createContext({})},29758:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{SearchParamsContext:function(){return r},PathnameContext:function(){return o},PathParamsContext:function(){return a}});let i=n(7653),r=(0,i.createContext)(null),o=(0,i.createContext)(null),a=(0,i.createContext)(null)},44866:function(e,t){"use strict";function n(e,t){let n;let i=e.split("/");return(t||[]).some(t=>!!i[1]&&i[1].toLowerCase()===t.toLowerCase()&&(n=t,i.splice(1,1),e=i.join("/")||"/",!0)),{pathname:e,detectedLocale:n}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizeLocalePath",{enumerable:!0,get:function(){return n}})},76207:function(e,t){"use strict";function n(e){return Object.prototype.toString.call(e)}function i(e){if("[object Object]"!==n(e))return!1;let t=Object.getPrototypeOf(e);return null===t||t.hasOwnProperty("isPrototypeOf")}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{getObjectClassLabel:function(){return n},isPlainObject:function(){return i}})},20077:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{NEXT_DYNAMIC_NO_SSR_CODE:function(){return n},throwWithNoSSR:function(){return i}});let n="NEXT_DYNAMIC_NO_SSR_CODE";function i(){let e=Error(n);throw e.digest=n,e}},779:function(e,t){"use strict";function n(){let e=Object.create(null);return{on(t,n){(e[t]||(e[t]=[])).push(n)},off(t,n){e[t]&&e[t].splice(e[t].indexOf(n)>>>0,1)},emit(t){for(var n=arguments.length,i=Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];(e[t]||[]).slice().map(e=>{e(...i)})}}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n}})},89421:function(e){"use strict";e.exports=["chrome 64","edge 79","firefox 67","opera 51","safari 12"]},90893:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"denormalizePagePath",{enumerable:!0,get:function(){return o}});let i=n(22905),r=n(97584);function o(e){let t=(0,r.normalizePathSep)(e);return t.startsWith("/index/")&&!(0,i.isDynamicRoute)(t)?t.slice(6):"/index"!==t?t:"/"}},10443:function(e,t){"use strict";function n(e){return e.startsWith("/")?e:"/"+e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ensureLeadingSlash",{enumerable:!0,get:function(){return n}})},97584:function(e,t){"use strict";function n(e){return e.replace(/\\/g,"/")}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathSep",{enumerable:!0,get:function(){return n}})},10812:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RouterContext",{enumerable:!0,get:function(){return o}});let i=n(87675),r=i._(n(7653)),o=r.default.createContext(null)},28187:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ActionQueueContext:function(){return l},createMutableActionQueue:function(){return u}});let i=n(28169),r=n(8836),o=n(88279),a=i._(n(7653)),s=n(51999),l=a.default.createContext(null);function c(e,t){null!==e.pending&&(e.pending=e.pending.next,null!==e.pending&&d({actionQueue:e,action:e.pending,setState:t}))}async function d(e){let{actionQueue:t,action:n,setState:i}=e,o=t.state;if(!o)throw Error("Invariant: Router state not initialized");t.pending=n,t.last=n;let a=n.payload,l=t.action(o,a);function d(e){if(n.discarded){t.needsRefresh&&null===t.pending&&(t.needsRefresh=!1,t.dispatch({type:r.ACTION_REFRESH,cache:(0,s.createEmptyCacheNode)(),mutable:{},origin:window.location.origin},i));return}t.state=e,t.devToolsInstance&&t.devToolsInstance.send(a,e),c(t,i),n.resolve(e)}(0,r.isThenable)(l)?l.then(d,e=>{c(t,i),n.reject(e)}):d(l)}function u(){let e={state:null,dispatch:(t,n)=>(function(e,t,n){let i;let o=new Promise((e,t)=>{i={resolve:e,reject:t}}),s={payload:t,next:null,resolve:i.resolve,reject:i.reject};(0,a.startTransition)(()=>{n(o)}),null===e.pending?d({actionQueue:e,action:s,setState:n}):t.type===r.ACTION_NAVIGATE?(e.pending.discarded=!0,e.pending.payload.type===r.ACTION_SERVER_ACTION&&(e.needsRefresh=!0),d({actionQueue:e,action:s,setState:n})):(null!==e.last&&(e.last.next=s),e.last=s)})(e,t,n),action:async(e,t)=>{if(null===e)throw Error("Invariant: Router state not initialized");let n=(0,o.reducer)(e,t);return n},pending:null,last:null};return e}},45540:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return q},matchesMiddleware:function(){return M},createKey:function(){return U}});let i=n(87675),r=n(28169),o=n(43580),a=n(22860),s=n(7697),l=r._(n(93775)),c=n(90893),d=n(44866),u=i._(n(779)),h=n(49491),p=n(53392),f=n(33538);n(72094);let m=n(14676),g=n(40362),b=n(70830);n(23926);let v=n(91954),y=n(33782),x=n(74588),w=n(77449),k=n(77215),_=n(78129),E=n(32289),S=n(1863),C=n(48257),P=n(57827),T=n(52103),O=n(82162),A=n(20801),I=n(14096),R=n(83618),$=n(79416);function L(){return Object.assign(Error("Route Cancelled"),{cancelled:!0})}async function M(e){let t=await Promise.resolve(e.router.pageLoader.getMiddleware());if(!t)return!1;let{pathname:n}=(0,v.parsePath)(e.asPath),i=(0,_.hasBasePath)(n)?(0,w.removeBasePath)(n):n,r=(0,k.addBasePath)((0,y.addLocale)(i,e.locale));return t.some(e=>new RegExp(e.regexp).test(r))}function j(e){let t=(0,h.getLocationOrigin)();return e.startsWith(t)?e.substring(t.length):e}function D(e,t,n){let[i,r]=(0,E.resolveHref)(e,t,!0),o=(0,h.getLocationOrigin)(),a=i.startsWith(o),s=r&&r.startsWith(o);i=j(i),r=r?j(r):r;let l=a?i:(0,k.addBasePath)(i),c=n?j((0,E.resolveHref)(e,n)):r||i;return{url:l,as:s?c:(0,k.addBasePath)(c)}}function N(e,t){let n=(0,o.removeTrailingSlash)((0,c.denormalizePagePath)(e));return"/404"===n||"/_error"===n?e:(t.includes(n)||t.some(t=>{if((0,p.isDynamicRoute)(t)&&(0,g.getRouteRegex)(t).re.test(n))return e=t,!0}),(0,o.removeTrailingSlash)(e))}async function F(e){let t=await M(e);if(!t||!e.fetchData)return null;try{let t=await e.fetchData(),n=await function(e,t,n){let i={basePath:n.router.basePath,i18n:{locales:n.router.locales},trailingSlash:!1},r=t.headers.get("x-nextjs-rewrite"),s=r||t.headers.get("x-nextjs-matched-path"),l=t.headers.get("x-matched-path");if(!l||s||l.includes("__next_data_catchall")||l.includes("/_error")||l.includes("/404")||(s=l),s){if(s.startsWith("/")){let t=(0,f.parseRelativeUrl)(s),l=(0,C.getNextPathnameInfo)(t.pathname,{nextConfig:i,parseData:!0}),c=(0,o.removeTrailingSlash)(l.pathname);return Promise.all([n.router.pageLoader.getPageList(),(0,a.getClientBuildManifest)()]).then(o=>{let[a,{__rewrites:s}]=o,u=(0,y.addLocale)(l.pathname,l.locale);if((0,p.isDynamicRoute)(u)||!r&&a.includes((0,d.normalizeLocalePath)((0,w.removeBasePath)(u),n.router.locales).pathname)){let n=(0,C.getNextPathnameInfo)((0,f.parseRelativeUrl)(e).pathname,{nextConfig:i,parseData:!0});u=(0,k.addBasePath)(n.pathname),t.pathname=u}if(!a.includes(c)){let e=N(c,a);e!==c&&(c=e)}let h=a.includes(c)?c:N((0,d.normalizeLocalePath)((0,w.removeBasePath)(t.pathname),n.router.locales).pathname,a);if((0,p.isDynamicRoute)(h)){let e=(0,m.getRouteMatcher)((0,g.getRouteRegex)(h))(u);Object.assign(t.query,e||{})}return{type:"rewrite",parsedAs:t,resolvedHref:h}})}let t=(0,v.parsePath)(e),l=(0,P.formatNextPathnameInfo)({...(0,C.getNextPathnameInfo)(t.pathname,{nextConfig:i,parseData:!0}),defaultLocale:n.router.defaultLocale,buildId:""});return Promise.resolve({type:"redirect-external",destination:""+l+t.query+t.hash})}let c=t.headers.get("x-nextjs-redirect");if(c){if(c.startsWith("/")){let e=(0,v.parsePath)(c),t=(0,P.formatNextPathnameInfo)({...(0,C.getNextPathnameInfo)(e.pathname,{nextConfig:i,parseData:!0}),defaultLocale:n.router.defaultLocale,buildId:""});return Promise.resolve({type:"redirect-internal",newAs:""+t+e.query+e.hash,newUrl:""+t+e.query+e.hash})}return Promise.resolve({type:"redirect-external",destination:c})}return Promise.resolve({type:"next"})}(t.dataHref,t.response,e);return{dataHref:t.dataHref,json:t.json,response:t.response,text:t.text,cacheKey:t.cacheKey,effect:n}}catch(e){return null}}let z=Symbol("SSG_DATA_NOT_FOUND");function B(e){try{return JSON.parse(e)}catch(e){return null}}function H(e){var t;let{dataHref:n,inflightCache:i,isPrefetch:r,hasMiddleware:o,isServerRender:s,parseJSON:l,persistCache:c,isBackground:d,unstable_skipClientCache:u}=e,{href:h}=new URL(n,window.location.href),p=e=>(function e(t,n,i){return fetch(t,{credentials:"same-origin",method:i.method||"GET",headers:Object.assign({},i.headers,{"x-nextjs-data":"1"})}).then(r=>!r.ok&&n>1&&r.status>=500?e(t,n-1,i):r)})(n,s?3:1,{headers:Object.assign({},r?{purpose:"prefetch"}:{},r&&o?{"x-middleware-prefetch":"1"}:{}),method:null!=(t=null==e?void 0:e.method)?t:"GET"}).then(t=>t.ok&&(null==e?void 0:e.method)==="HEAD"?{dataHref:n,response:t,text:"",json:{},cacheKey:h}:t.text().then(e=>{if(!t.ok){if(o&&[301,302,307,308].includes(t.status))return{dataHref:n,response:t,text:e,json:{},cacheKey:h};if(404===t.status){var i;if(null==(i=B(e))?void 0:i.notFound)return{dataHref:n,json:{notFound:z},response:t,text:e,cacheKey:h}}let r=Error("Failed to load static props");throw s||(0,a.markAssetError)(r),r}return{dataHref:n,json:l?B(e):null,response:t,text:e,cacheKey:h}})).then(e=>(c&&"no-cache"!==e.response.headers.get("x-middleware-cache")||delete i[h],e)).catch(e=>{throw u||delete i[h],("Failed to fetch"===e.message||"NetworkError when attempting to fetch resource."===e.message||"Load failed"===e.message)&&(0,a.markAssetError)(e),e});return u&&c?p({}).then(e=>(i[h]=Promise.resolve(e),e)):void 0!==i[h]?i[h]:i[h]=p(d?{method:"HEAD"}:{})}function U(){return Math.random().toString(36).slice(2,10)}function V(e){let{url:t,router:n}=e;if(t===(0,k.addBasePath)((0,y.addLocale)(n.asPath,n.locale)))throw Error("Invariant: attempted to hard navigate to the same URL "+t+" "+location.href);window.location.href=t}let W=e=>{let{route:t,router:n}=e,i=!1,r=n.clc=()=>{i=!0};return()=>{if(i){let e=Error('Abort fetching component for route: "'+t+'"');throw e.cancelled=!0,e}r===n.clc&&(n.clc=null)}};class q{reload(){window.location.reload()}back(){window.history.back()}forward(){window.history.forward()}push(e,t,n){return void 0===n&&(n={}),{url:e,as:t}=D(this,e,t),this.change("pushState",e,t,n)}replace(e,t,n){return void 0===n&&(n={}),{url:e,as:t}=D(this,e,t),this.change("replaceState",e,t,n)}async _bfl(e,t,n,i){{let l=!1,c=!1;for(let d of[e,t])if(d){let t=(0,o.removeTrailingSlash)(new URL(d,"http://n").pathname),u=(0,k.addBasePath)((0,y.addLocale)(t,n||this.locale));if(t!==(0,o.removeTrailingSlash)(new URL(this.asPath,"http://n").pathname)){var r,a,s;for(let e of(l=l||!!(null==(r=this._bfl_s)?void 0:r.contains(t))||!!(null==(a=this._bfl_s)?void 0:a.contains(u)),[t,u])){let t=e.split("/");for(let e=0;!c&&e<t.length+1;e++){let n=t.slice(0,e).join("/");if(n&&(null==(s=this._bfl_d)?void 0:s.contains(n))){c=!0;break}}}if(l||c){if(i)return!0;return V({url:(0,k.addBasePath)((0,y.addLocale)(e,n||this.locale,this.defaultLocale)),router:this}),new Promise(()=>{})}}}}return!1}async change(e,t,n,i,r){var c,d,u,E,S,C,P,A,$;let j,F;if(!(0,O.isLocalURL)(t))return V({url:t,router:this}),!1;let B=1===i._h;B||i.shallow||await this._bfl(n,void 0,i.locale);let H=B||i._shouldResolveHref||(0,v.parsePath)(t).pathname===(0,v.parsePath)(n).pathname,U={...this.state},W=!0!==this.isReady;this.isReady=!0;let G=this.isSsr;if(B||(this.isSsr=!1),B&&this.clc)return!1;let X=U.locale;h.ST&&performance.mark("routeChange");let{shallow:Y=!1,scroll:K=!0}=i,J={shallow:Y};this._inFlightRoute&&this.clc&&(G||q.events.emit("routeChangeError",L(),this._inFlightRoute,J),this.clc(),this.clc=null),n=(0,k.addBasePath)((0,y.addLocale)((0,_.hasBasePath)(n)?(0,w.removeBasePath)(n):n,i.locale,this.defaultLocale));let Z=(0,x.removeLocale)((0,_.hasBasePath)(n)?(0,w.removeBasePath)(n):n,U.locale);this._inFlightRoute=n;let Q=X!==U.locale;if(!B&&this.onlyAHashChange(Z)&&!Q){U.asPath=Z,q.events.emit("hashChangeStart",n,J),this.changeState(e,t,n,{...i,scroll:!1}),K&&this.scrollToHash(Z);try{await this.set(U,this.components[U.route],null)}catch(e){throw(0,l.default)(e)&&e.cancelled&&q.events.emit("routeChangeError",e,Z,J),e}return q.events.emit("hashChangeComplete",n,J),!0}let ee=(0,f.parseRelativeUrl)(t),{pathname:et,query:en}=ee;if(null==(c=this.components[et])?void 0:c.__appRouter)return V({url:n,router:this}),new Promise(()=>{});try{[j,{__rewrites:F}]=await Promise.all([this.pageLoader.getPageList(),(0,a.getClientBuildManifest)(),this.pageLoader.getMiddleware()])}catch(e){return V({url:n,router:this}),!1}this.urlIsNew(Z)||Q||(e="replaceState");let ei=n;et=et?(0,o.removeTrailingSlash)((0,w.removeBasePath)(et)):et;let er=(0,o.removeTrailingSlash)(et),eo=n.startsWith("/")&&(0,f.parseRelativeUrl)(n).pathname,ea=!!(eo&&er!==eo&&(!(0,p.isDynamicRoute)(er)||!(0,m.getRouteMatcher)((0,g.getRouteRegex)(er))(eo))),es=!i.shallow&&await M({asPath:n,locale:U.locale,router:this});if(B&&es&&(H=!1),H&&"/_error"!==et&&(i._shouldResolveHref=!0,ee.pathname=N(et,j),ee.pathname===et||(et=ee.pathname,ee.pathname=(0,k.addBasePath)(et),es||(t=(0,b.formatWithValidation)(ee)))),!(0,O.isLocalURL)(n))return V({url:n,router:this}),!1;ei=(0,x.removeLocale)((0,w.removeBasePath)(ei),U.locale),er=(0,o.removeTrailingSlash)(et);let el=!1;if((0,p.isDynamicRoute)(er)){let e=(0,f.parseRelativeUrl)(ei),i=e.pathname,r=(0,g.getRouteRegex)(er);el=(0,m.getRouteMatcher)(r)(i);let o=er===i,a=o?(0,R.interpolateAs)(er,i,en):{};if(el&&(!o||a.result))o?n=(0,b.formatWithValidation)(Object.assign({},e,{pathname:a.result,query:(0,I.omit)(en,a.params)})):Object.assign(en,el);else{let e=Object.keys(r.groups).filter(e=>!en[e]&&!r.groups[e].optional);if(e.length>0&&!es)throw Error((o?"The provided `href` ("+t+") value is missing query values ("+e.join(", ")+") to be interpolated properly. ":"The provided `as` value ("+i+") is incompatible with the `href` value ("+er+"). ")+"Read more: https://nextjs.org/docs/messages/"+(o?"href-interpolation-failed":"incompatible-href-as"))}}B||q.events.emit("routeChangeStart",n,J);let ec="/404"===this.pathname||"/_error"===this.pathname;try{let o=await this.getRouteInfo({route:er,pathname:et,query:en,as:n,resolvedAs:ei,routeProps:J,locale:U.locale,isPreview:U.isPreview,hasMiddleware:es,unstable_skipClientCache:i.unstable_skipClientCache,isQueryUpdating:B&&!this.isFallback,isMiddlewareRewrite:ea});if(B||i.shallow||await this._bfl(n,"resolvedAs"in o?o.resolvedAs:void 0,U.locale),"route"in o&&es){er=et=o.route||er,J.shallow||(en=Object.assign({},o.query||{},en));let e=(0,_.hasBasePath)(ee.pathname)?(0,w.removeBasePath)(ee.pathname):ee.pathname;if(el&&et!==e&&Object.keys(el).forEach(e=>{el&&en[e]===el[e]&&delete en[e]}),(0,p.isDynamicRoute)(et)){let e=!J.shallow&&o.resolvedAs?o.resolvedAs:(0,k.addBasePath)((0,y.addLocale)(new URL(n,location.href).pathname,U.locale),!0),t=e;(0,_.hasBasePath)(t)&&(t=(0,w.removeBasePath)(t));let i=(0,g.getRouteRegex)(et),r=(0,m.getRouteMatcher)(i)(new URL(t,location.href).pathname);r&&Object.assign(en,r)}}if("type"in o){if("redirect-internal"===o.type)return this.change(e,o.newUrl,o.newAs,i);return V({url:o.destination,router:this}),new Promise(()=>{})}let a=o.Component;if(a&&a.unstable_scriptLoader){let e=[].concat(a.unstable_scriptLoader());e.forEach(e=>{(0,s.handleClientScriptLoad)(e.props)})}if((o.__N_SSG||o.__N_SSP)&&o.props){if(o.props.pageProps&&o.props.pageProps.__N_REDIRECT){i.locale=!1;let t=o.props.pageProps.__N_REDIRECT;if(t.startsWith("/")&&!1!==o.props.pageProps.__N_REDIRECT_BASE_PATH){let n=(0,f.parseRelativeUrl)(t);n.pathname=N(n.pathname,j);let{url:r,as:o}=D(this,t,t);return this.change(e,r,o,i)}return V({url:t,router:this}),new Promise(()=>{})}if(U.isPreview=!!o.props.__N_PREVIEW,o.props.notFound===z){let e;try{await this.fetchComponent("/404"),e="/404"}catch(t){e="/_error"}if(o=await this.getRouteInfo({route:e,pathname:e,query:en,as:n,resolvedAs:ei,routeProps:{shallow:!1},locale:U.locale,isPreview:U.isPreview,isNotFound:!0}),"type"in o)throw Error("Unexpected middleware effect on /404")}}B&&"/_error"===this.pathname&&(null==(u=self.__NEXT_DATA__.props)?void 0:null==(d=u.pageProps)?void 0:d.statusCode)===500&&(null==(E=o.props)?void 0:E.pageProps)&&(o.props.pageProps.statusCode=500);let c=i.shallow&&U.route===(null!=(S=o.route)?S:er),h=null!=(C=i.scroll)?C:!B&&!c,b=null!=r?r:h?{x:0,y:0}:null,v={...U,route:er,pathname:et,query:en,asPath:Z,isFallback:!1};if(B&&ec){if(o=await this.getRouteInfo({route:this.pathname,pathname:this.pathname,query:en,as:n,resolvedAs:ei,routeProps:{shallow:!1},locale:U.locale,isPreview:U.isPreview,isQueryUpdating:B&&!this.isFallback}),"type"in o)throw Error("Unexpected middleware effect on "+this.pathname);"/_error"===this.pathname&&(null==(A=self.__NEXT_DATA__.props)?void 0:null==(P=A.pageProps)?void 0:P.statusCode)===500&&(null==($=o.props)?void 0:$.pageProps)&&(o.props.pageProps.statusCode=500);try{await this.set(v,o,b)}catch(e){throw(0,l.default)(e)&&e.cancelled&&q.events.emit("routeChangeError",e,Z,J),e}return!0}q.events.emit("beforeHistoryChange",n,J),this.changeState(e,t,n,i);let x=B&&!b&&!W&&!Q&&(0,T.compareRouterStates)(v,this.state);if(!x){try{await this.set(v,o,b)}catch(e){if(e.cancelled)o.error=o.error||e;else throw e}if(o.error)throw B||q.events.emit("routeChangeError",o.error,Z,J),o.error;B||q.events.emit("routeChangeComplete",n,J),h&&/#.+$/.test(n)&&this.scrollToHash(n)}return!0}catch(e){if((0,l.default)(e)&&e.cancelled)return!1;throw e}}changeState(e,t,n,i){void 0===i&&(i={}),("pushState"!==e||(0,h.getURL)()!==n)&&(this._shallow=i.shallow,window.history[e]({url:t,as:n,options:i,__N:!0,key:this._key="pushState"!==e?this._key:U()},"",n))}async handleRouteInfoError(e,t,n,i,r,o){if(console.error(e),e.cancelled)throw e;if((0,a.isAssetError)(e)||o)throw q.events.emit("routeChangeError",e,i,r),V({url:i,router:this}),L();try{let i;let{page:r,styleSheets:o}=await this.fetchComponent("/_error"),a={props:i,Component:r,styleSheets:o,err:e,error:e};if(!a.props)try{a.props=await this.getInitialProps(r,{err:e,pathname:t,query:n})}catch(e){console.error("Error in error page `getInitialProps`: ",e),a.props={}}return a}catch(e){return this.handleRouteInfoError((0,l.default)(e)?e:Error(e+""),t,n,i,r,!0)}}async getRouteInfo(e){let{route:t,pathname:n,query:i,as:r,resolvedAs:a,routeProps:s,locale:c,hasMiddleware:u,isPreview:h,unstable_skipClientCache:p,isQueryUpdating:f,isMiddlewareRewrite:m,isNotFound:g}=e,v=t;try{var y,x,k,_;let e=W({route:v,router:this}),t=this.components[v];if(s.shallow&&t&&this.route===v)return t;u&&(t=void 0);let l=!t||"initial"in t?void 0:t,E={dataHref:this.pageLoader.getDataHref({href:(0,b.formatWithValidation)({pathname:n,query:i}),skipInterpolation:!0,asPath:g?"/404":a,locale:c}),hasMiddleware:!0,isServerRender:this.isSsr,parseJSON:!0,inflightCache:f?this.sbc:this.sdc,persistCache:!h,isPrefetch:!1,unstable_skipClientCache:p,isBackground:f},C=f&&!m?null:await F({fetchData:()=>H(E),asPath:g?"/404":a,locale:c,router:this}).catch(e=>{if(f)return null;throw e});if(C&&("/_error"===n||"/404"===n)&&(C.effect=void 0),f&&(C?C.json=self.__NEXT_DATA__.props:C={json:self.__NEXT_DATA__.props}),e(),(null==C?void 0:null==(y=C.effect)?void 0:y.type)==="redirect-internal"||(null==C?void 0:null==(x=C.effect)?void 0:x.type)==="redirect-external")return C.effect;if((null==C?void 0:null==(k=C.effect)?void 0:k.type)==="rewrite"){let e=(0,o.removeTrailingSlash)(C.effect.resolvedHref),r=await this.pageLoader.getPageList();if((!f||r.includes(e))&&(v=e,n=C.effect.resolvedHref,i={...i,...C.effect.parsedAs.query},a=(0,w.removeBasePath)((0,d.normalizeLocalePath)(C.effect.parsedAs.pathname,this.locales).pathname),t=this.components[v],s.shallow&&t&&this.route===v&&!u))return{...t,route:v}}if((0,S.isAPIRoute)(v))return V({url:r,router:this}),new Promise(()=>{});let P=l||await this.fetchComponent(v).then(e=>({Component:e.page,styleSheets:e.styleSheets,__N_SSG:e.mod.__N_SSG,__N_SSP:e.mod.__N_SSP})),T=null==C?void 0:null==(_=C.response)?void 0:_.headers.get("x-middleware-skip"),O=P.__N_SSG||P.__N_SSP;T&&(null==C?void 0:C.dataHref)&&delete this.sdc[C.dataHref];let{props:A,cacheKey:I}=await this._getData(async()=>{if(O){if((null==C?void 0:C.json)&&!T)return{cacheKey:C.cacheKey,props:C.json};let e=(null==C?void 0:C.dataHref)?C.dataHref:this.pageLoader.getDataHref({href:(0,b.formatWithValidation)({pathname:n,query:i}),asPath:a,locale:c}),t=await H({dataHref:e,isServerRender:this.isSsr,parseJSON:!0,inflightCache:T?{}:this.sdc,persistCache:!h,isPrefetch:!1,unstable_skipClientCache:p});return{cacheKey:t.cacheKey,props:t.json||{}}}return{headers:{},props:await this.getInitialProps(P.Component,{pathname:n,query:i,asPath:r,locale:c,locales:this.locales,defaultLocale:this.defaultLocale})}});return P.__N_SSP&&E.dataHref&&I&&delete this.sdc[I],this.isPreview||!P.__N_SSG||f||H(Object.assign({},E,{isBackground:!0,persistCache:!1,inflightCache:this.sbc})).catch(()=>{}),A.pageProps=Object.assign({},A.pageProps),P.props=A,P.route=v,P.query=i,P.resolvedAs=a,this.components[v]=P,P}catch(e){return this.handleRouteInfoError((0,l.getProperError)(e),n,i,r,s)}}set(e,t,n){return this.state=e,this.sub(t,this.components["/_app"].Component,n)}beforePopState(e){this._bps=e}onlyAHashChange(e){if(!this.asPath)return!1;let[t,n]=this.asPath.split("#",2),[i,r]=e.split("#",2);return!!r&&t===i&&n===r||t===i&&n!==r}scrollToHash(e){let[,t=""]=e.split("#",2);(0,$.handleSmoothScroll)(()=>{if(""===t||"top"===t){window.scrollTo(0,0);return}let e=decodeURIComponent(t),n=document.getElementById(e);if(n){n.scrollIntoView();return}let i=document.getElementsByName(e)[0];i&&i.scrollIntoView()},{onlyHashChange:this.onlyAHashChange(e)})}urlIsNew(e){return this.asPath!==e}async prefetch(e,t,n){if(void 0===t&&(t=e),void 0===n&&(n={}),(0,A.isBot)(window.navigator.userAgent))return;let i=(0,f.parseRelativeUrl)(e),r=i.pathname,{pathname:a,query:s}=i,l=a,c=await this.pageLoader.getPageList(),d=t,u=void 0!==n.locale?n.locale||void 0:this.locale,h=await M({asPath:t,locale:u,router:this});i.pathname=N(i.pathname,c),(0,p.isDynamicRoute)(i.pathname)&&(a=i.pathname,i.pathname=a,Object.assign(s,(0,m.getRouteMatcher)((0,g.getRouteRegex)(i.pathname))((0,v.parsePath)(t).pathname)||{}),h||(e=(0,b.formatWithValidation)(i)));let y=await F({fetchData:()=>H({dataHref:this.pageLoader.getDataHref({href:(0,b.formatWithValidation)({pathname:l,query:s}),skipInterpolation:!0,asPath:d,locale:u}),hasMiddleware:!0,isServerRender:this.isSsr,parseJSON:!0,inflightCache:this.sdc,persistCache:!this.isPreview,isPrefetch:!0}),asPath:t,locale:u,router:this});if((null==y?void 0:y.effect.type)==="rewrite"&&(i.pathname=y.effect.resolvedHref,a=y.effect.resolvedHref,s={...s,...y.effect.parsedAs.query},d=y.effect.parsedAs.pathname,e=(0,b.formatWithValidation)(i)),(null==y?void 0:y.effect.type)==="redirect-external")return;let x=(0,o.removeTrailingSlash)(a);await this._bfl(t,d,n.locale,!0)&&(this.components[r]={__appRouter:!0}),await Promise.all([this.pageLoader._isSsg(x).then(t=>!!t&&H({dataHref:(null==y?void 0:y.json)?null==y?void 0:y.dataHref:this.pageLoader.getDataHref({href:e,asPath:d,locale:u}),isServerRender:!1,parseJSON:!0,inflightCache:this.sdc,persistCache:!this.isPreview,isPrefetch:!0,unstable_skipClientCache:n.unstable_skipClientCache||n.priority&&!0}).then(()=>!1).catch(()=>!1)),this.pageLoader[n.priority?"loadPage":"prefetch"](x)])}async fetchComponent(e){let t=W({route:e,router:this});try{let n=await this.pageLoader.loadPage(e);return t(),n}catch(e){throw t(),e}}_getData(e){let t=!1,n=()=>{t=!0};return this.clc=n,e().then(e=>{if(n===this.clc&&(this.clc=null),t){let e=Error("Loading initial props cancelled");throw e.cancelled=!0,e}return e})}_getFlightData(e){return H({dataHref:e,isServerRender:!0,parseJSON:!1,inflightCache:this.sdc,persistCache:!1,isPrefetch:!1}).then(e=>{let{text:t}=e;return{data:t}})}getInitialProps(e,t){let{Component:n}=this.components["/_app"],i=this._wrapApp(n);return t.AppTree=i,(0,h.loadGetInitialProps)(n,{AppTree:i,Component:e,router:this,ctx:t})}get route(){return this.state.route}get pathname(){return this.state.pathname}get query(){return this.state.query}get asPath(){return this.state.asPath}get locale(){return this.state.locale}get isFallback(){return this.state.isFallback}get isPreview(){return this.state.isPreview}constructor(e,t,i,{initialProps:r,pageLoader:a,App:s,wrapApp:l,Component:c,err:d,subscription:u,isFallback:m,locale:g,locales:v,defaultLocale:y,domainLocales:x,isPreview:w}){this.sdc={},this.sbc={},this.isFirstPopStateEvent=!0,this._key=U(),this.onPopState=e=>{let t;let{isFirstPopStateEvent:n}=this;this.isFirstPopStateEvent=!1;let i=e.state;if(!i){let{pathname:e,query:t}=this;this.changeState("replaceState",(0,b.formatWithValidation)({pathname:(0,k.addBasePath)(e),query:t}),(0,h.getURL)());return}if(i.__NA){window.location.reload();return}if(!i.__N||n&&this.locale===i.options.locale&&i.as===this.asPath)return;let{url:r,as:o,options:a,key:s}=i;this._key=s;let{pathname:l}=(0,f.parseRelativeUrl)(r);(!this.isSsr||o!==(0,k.addBasePath)(this.asPath)||l!==(0,k.addBasePath)(this.pathname))&&(!this._bps||this._bps(i))&&this.change("replaceState",r,o,Object.assign({},a,{shallow:a.shallow&&this._shallow,locale:a.locale||this.defaultLocale,_h:0}),t)};let _=(0,o.removeTrailingSlash)(e);this.components={},"/_error"!==e&&(this.components[_]={Component:c,initial:!0,props:r,err:d,__N_SSG:r&&r.__N_SSG,__N_SSP:r&&r.__N_SSP}),this.components["/_app"]={Component:s,styleSheets:[]};{let{BloomFilter:e}=n(68991),t={numItems:72,errorRate:.01,numBits:691,numHashes:7,bitArray:[0,0,1,0,1,0,1,0,0,0,1,1,1,1,1,0,1,0,1,1,1,1,1,0,1,1,1,1,1,0,1,1,1,1,0,0,1,1,0,1,0,0,1,1,0,0,0,0,1,0,0,1,1,0,0,0,1,1,1,0,0,0,1,1,0,1,0,0,1,1,1,0,1,0,1,1,0,1,1,1,1,1,0,1,1,1,0,1,1,1,1,1,0,1,1,0,1,0,1,1,1,0,0,1,1,1,1,0,0,1,1,1,0,1,0,1,0,1,1,1,1,1,1,0,0,1,1,1,0,0,0,0,0,0,1,1,0,1,0,0,1,0,0,1,0,1,1,1,1,1,0,0,0,0,0,1,0,1,1,1,0,1,1,1,0,0,1,1,1,1,0,1,0,1,1,1,1,0,0,0,1,1,0,0,1,0,0,0,0,1,0,0,0,0,1,1,1,0,1,0,1,0,0,1,1,0,1,0,0,0,1,1,0,1,1,0,1,0,0,0,0,1,0,1,0,1,1,0,0,1,1,1,0,0,1,1,1,0,1,0,1,0,0,0,0,1,1,0,0,0,0,0,1,1,1,1,1,1,0,0,0,1,0,0,0,0,1,1,0,0,1,0,1,1,1,1,1,0,0,1,0,1,0,1,1,0,0,1,0,1,0,0,1,1,1,0,1,0,0,1,0,1,1,1,0,0,0,0,1,0,0,0,0,0,1,1,0,0,1,0,0,0,1,1,1,0,1,1,0,1,1,1,0,0,0,1,0,1,1,0,1,0,0,1,1,1,1,0,0,1,0,1,1,0,0,0,0,1,1,1,0,0,0,0,0,0,1,1,0,0,0,1,0,0,1,1,1,0,0,1,1,1,1,1,1,1,0,1,1,0,0,1,0,1,0,1,1,1,0,0,0,1,1,0,0,1,0,0,0,1,1,1,0,0,1,1,0,0,1,0,0,0,0,0,1,1,1,1,1,0,0,0,0,1,1,1,1,0,1,1,1,0,1,0,0,0,0,1,0,1,1,1,0,1,1,1,0,0,0,1,0,0,1,0,1,0,0,0,1,1,1,1,0,1,1,0,0,1,0,0,0,0,0,1,1,0,1,1,1,0,1,0,1,0,1,1,0,1,0,1,1,0,1,0,1,1,1,0,1,1,1,1,0,0,1,0,0,1,0,1,0,0,1,0,0,0,0,0,0,0,0,1,0,1,1,1,1,1,0,1,1,0,0,0,0,1,0,1,1,0,1,1,0,0,0,1,0,0,1,0,0,1,1,0,0,0,1,0,1,1,0,0,0,0,1,1,0,0,0,0,1,1,1,1,0,0,1,0,1,0,0,1,1,1,1,0,1,1,0,1,0,1,1,0,0,0,0,1,1,1,0,1,0,0,1,0,1,1,1,0,1,1,0,0,1,1,0,0,0,0,0,0,1,0,0,0,0,0,1,0,0,1,0,0,1,0,1,1,0,0,1,0,0,1,1,1,1,0,1,1,0,0,1,1,1,0,0,1,0,1,0,1,0,0,1,1,0,0,1,1,1,0,1,0,1,0,1,1,0,1,1]},i={numItems:17,errorRate:.01,numBits:163,numHashes:7,bitArray:[1,0,0,0,1,1,0,1,1,0,0,1,0,1,0,1,1,1,0,0,0,1,1,0,1,0,1,0,0,1,0,1,1,1,0,0,1,1,1,1,0,1,0,1,0,1,0,0,0,0,0,1,1,1,1,1,1,1,0,1,0,0,1,1,0,0,1,0,0,0,1,1,0,1,0,1,0,1,0,1,1,1,0,0,0,1,0,0,1,0,1,1,0,1,1,0,1,0,0,1,0,0,0,1,1,1,1,1,1,0,0,0,0,1,1,0,0,1,1,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,1,0,0,1,0,0,0,0,0,1,1,1,0,1,1,1,0,1,1,1,0,0,0,1,1,0,0,0]};(null==t?void 0:t.numHashes)&&(this._bfl_s=new e(t.numItems,t.errorRate),this._bfl_s.import(t)),(null==i?void 0:i.numHashes)&&(this._bfl_d=new e(i.numItems,i.errorRate),this._bfl_d.import(i))}this.events=q.events,this.pageLoader=a;let E=(0,p.isDynamicRoute)(e)&&self.__NEXT_DATA__.autoExport;if(this.basePath="",this.sub=u,this.clc=null,this._wrapApp=l,this.isSsr=!0,this.isLocaleDomain=!1,this.isReady=!!(self.__NEXT_DATA__.gssp||self.__NEXT_DATA__.gip||self.__NEXT_DATA__.isExperimentalCompile||self.__NEXT_DATA__.appGip&&!self.__NEXT_DATA__.gsp||!E&&!self.location.search),this.state={route:_,pathname:e,query:t,asPath:E?e:i,isPreview:!!w,locale:void 0,isFallback:m},this._initialMatchesMiddlewarePromise=Promise.resolve(!1),!i.startsWith("//")){let n={locale:g},r=(0,h.getURL)();this._initialMatchesMiddlewarePromise=M({router:this,locale:g,asPath:r}).then(o=>(n._shouldResolveHref=i!==e,this.changeState("replaceState",o?r:(0,b.formatWithValidation)({pathname:(0,k.addBasePath)(e),query:t}),r,n),o))}window.addEventListener("popstate",this.onPopState)}}q.events=(0,u.default)()},83560:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return o}});let i=n(71017),r=n(53323);function o(e,t,n,o){if(!t||t===n)return e;let a=e.toLowerCase();return!o&&((0,r.pathHasPrefix)(a,"/api")||(0,r.pathHasPrefix)(a,"/"+t.toLowerCase()))?e:(0,i.addPathPrefix)(e,"/"+t)}},71017:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addPathPrefix",{enumerable:!0,get:function(){return r}});let i=n(91954);function r(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:n,query:r,hash:o}=(0,i.parsePath)(e);return""+t+n+r+o}},51994:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addPathSuffix",{enumerable:!0,get:function(){return r}});let i=n(91954);function r(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:n,query:r,hash:o}=(0,i.parsePath)(e);return""+n+t+r+o}},85919:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{normalizeAppPath:function(){return o},normalizeRscURL:function(){return a}});let i=n(10443),r=n(4267);function o(e){return(0,i.ensureLeadingSlash)(e.split("/").reduce((e,t,n,i)=>!t||(0,r.isGroupSegment)(t)||"@"===t[0]||("page"===t||"route"===t)&&n===i.length-1?e:e+"/"+t,""))}function a(e){return e.replace(/\.rsc($|\?)/,"$1")}},52103:function(e,t){"use strict";function n(e,t){let n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let i=n.length;i--;){let r=n[i];if("query"===r){let n=Object.keys(e.query);if(n.length!==Object.keys(t.query).length)return!1;for(let i=n.length;i--;){let r=n[i];if(!t.query.hasOwnProperty(r)||e.query[r]!==t.query[r])return!1}}else if(!t.hasOwnProperty(r)||e[r]!==t[r])return!1}return!0}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"compareRouterStates",{enumerable:!0,get:function(){return n}})},57827:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"formatNextPathnameInfo",{enumerable:!0,get:function(){return s}});let i=n(43580),r=n(71017),o=n(51994),a=n(83560);function s(e){let t=(0,a.addLocale)(e.pathname,e.locale,e.buildId?void 0:e.defaultLocale,e.ignorePrefix);return(e.buildId||!e.trailingSlash)&&(t=(0,i.removeTrailingSlash)(t)),e.buildId&&(t=(0,o.addPathSuffix)((0,r.addPathPrefix)(t,"/_next/data/"+e.buildId),"/"===e.pathname?"index.json":".json")),t=(0,r.addPathPrefix)(t,e.basePath),!e.buildId&&e.trailingSlash?t.endsWith("/")?t:(0,o.addPathSuffix)(t,"/"):(0,i.removeTrailingSlash)(t)}},70830:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{formatUrl:function(){return a},urlObjectKeys:function(){return s},formatWithValidation:function(){return l}});let i=n(28169),r=i._(n(21067)),o=/https?|ftp|gopher|file/;function a(e){let{auth:t,hostname:n}=e,i=e.protocol||"",a=e.pathname||"",s=e.hash||"",l=e.query||"",c=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?c=t+e.host:n&&(c=t+(~n.indexOf(":")?"["+n+"]":n),e.port&&(c+=":"+e.port)),l&&"object"==typeof l&&(l=String(r.urlQueryToSearchParams(l)));let d=e.search||l&&"?"+l||"";return i&&!i.endsWith(":")&&(i+=":"),e.slashes||(!i||o.test(i))&&!1!==c?(c="//"+(c||""),a&&"/"!==a[0]&&(a="/"+a)):c||(c=""),s&&"#"!==s[0]&&(s="#"+s),d&&"?"!==d[0]&&(d="?"+d),""+i+c+(a=a.replace(/[?#]/g,encodeURIComponent))+(d=d.replace("#","%23"))+s}let s=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function l(e){return a(e)}},70414:function(e,t){"use strict";function n(e,t){void 0===t&&(t="");let n="/"===e?"/index":/^\/index(\/|$)/.test(e)?"/index"+e:""+e;return n+t}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n}})},48257:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getNextPathnameInfo",{enumerable:!0,get:function(){return a}});let i=n(44866),r=n(94713),o=n(53323);function a(e,t){var n,a;let{basePath:s,i18n:l,trailingSlash:c}=null!=(n=t.nextConfig)?n:{},d={pathname:e,trailingSlash:"/"!==e?e.endsWith("/"):c};s&&(0,o.pathHasPrefix)(d.pathname,s)&&(d.pathname=(0,r.removePathPrefix)(d.pathname,s),d.basePath=s);let u=d.pathname;if(d.pathname.startsWith("/_next/data/")&&d.pathname.endsWith(".json")){let e=d.pathname.replace(/^\/_next\/data\//,"").replace(/\.json$/,"").split("/"),n=e[0];d.buildId=n,u="index"!==e[1]?"/"+e.slice(1).join("/"):"/",!0===t.parseData&&(d.pathname=u)}if(l){let e=t.i18nProvider?t.i18nProvider.analyze(d.pathname):(0,i.normalizeLocalePath)(d.pathname,l.locales);d.locale=e.detectedLocale,d.pathname=null!=(a=e.pathname)?a:d.pathname,!e.detectedLocale&&d.buildId&&(e=t.i18nProvider?t.i18nProvider.analyze(u):(0,i.normalizeLocalePath)(u,l.locales)).detectedLocale&&(d.locale=e.detectedLocale)}return d}},79416:function(e,t){"use strict";function n(e,t){if(void 0===t&&(t={}),t.onlyHashChange){e();return}let n=document.documentElement,i=n.style.scrollBehavior;n.style.scrollBehavior="auto",t.dontForceLayout||n.getClientRects(),e(),n.style.scrollBehavior=i}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"handleSmoothScroll",{enumerable:!0,get:function(){return n}})},22905:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{getSortedRoutes:function(){return i.getSortedRoutes},isDynamicRoute:function(){return r.isDynamicRoute}});let i=n(42171),r=n(53392)},83618:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"interpolateAs",{enumerable:!0,get:function(){return o}});let i=n(14676),r=n(40362);function o(e,t,n){let o="",a=(0,r.getRouteRegex)(e),s=a.groups,l=(t!==e?(0,i.getRouteMatcher)(a)(t):"")||n;o=e;let c=Object.keys(s);return c.every(e=>{let t=l[e]||"",{repeat:n,optional:i}=s[e],r="["+(n?"...":"")+e+"]";return i&&(r=(t?"":"/")+"["+r+"]"),n&&!Array.isArray(t)&&(t=[t]),(i||e in l)&&(o=o.replace(r,n?t.map(e=>encodeURIComponent(e)).join("/"):encodeURIComponent(t))||"/")})||(o=""),{params:c,result:o}}},20801:function(e,t){"use strict";function n(e){return/Googlebot|Mediapartners-Google|AdsBot-Google|googleweblight|Storebot-Google|Google-PageRenderer|Bingbot|BingPreview|Slurp|DuckDuckBot|baiduspider|yandex|sogou|LinkedInBot|bitlybot|tumblr|vkShare|quora link preview|facebookexternalhit|facebookcatalog|Twitterbot|applebot|redditbot|Slackbot|Discordbot|WhatsApp|SkypeUriPreview|ia_archiver/i.test(e)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isBot",{enumerable:!0,get:function(){return n}})},53392:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isDynamicRoute",{enumerable:!0,get:function(){return o}});let i=n(12743),r=/\/\[[^/]+?\](?=\/|$)/;function o(e){return(0,i.isInterceptionRouteAppPath)(e)&&(e=(0,i.extractInterceptionRouteInformation)(e).interceptedRoute),r.test(e)}},82162:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isLocalURL",{enumerable:!0,get:function(){return o}});let i=n(49491),r=n(78129);function o(e){if(!(0,i.isAbsoluteUrl)(e))return!0;try{let t=(0,i.getLocationOrigin)(),n=new URL(e,t);return n.origin===t&&(0,r.hasBasePath)(n.pathname)}catch(e){return!1}}},14096:function(e,t){"use strict";function n(e,t){let n={};return Object.keys(e).forEach(i=>{t.includes(i)||(n[i]=e[i])}),n}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"omit",{enumerable:!0,get:function(){return n}})},91954:function(e,t){"use strict";function n(e){let t=e.indexOf("#"),n=e.indexOf("?"),i=n>-1&&(t<0||n<t);return i||t>-1?{pathname:e.substring(0,i?n:t),query:i?e.substring(n,t>-1?t:void 0):"",hash:t>-1?e.slice(t):""}:{pathname:e,query:"",hash:""}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"parsePath",{enumerable:!0,get:function(){return n}})},33538:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"parseRelativeUrl",{enumerable:!0,get:function(){return o}});let i=n(49491),r=n(21067);function o(e,t){let n=new URL((0,i.getLocationOrigin)()),o=t?new URL(t,n):e.startsWith(".")?new URL(window.location.href):n,{pathname:a,searchParams:s,search:l,hash:c,href:d,origin:u}=new URL(e,o);if(u!==n.origin)throw Error("invariant: invalid relative URL, router received "+e);return{pathname:a,query:(0,r.searchParamsToUrlQuery)(s),search:l,hash:c,href:d.slice(n.origin.length)}}},53323:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"pathHasPrefix",{enumerable:!0,get:function(){return r}});let i=n(91954);function r(e,t){if("string"!=typeof e)return!1;let{pathname:n}=(0,i.parsePath)(e);return n===t||n.startsWith(t+"/")}},21067:function(e,t){"use strict";function n(e){let t={};return e.forEach((e,n)=>{void 0===t[n]?t[n]=e:Array.isArray(t[n])?t[n].push(e):t[n]=[t[n],e]}),t}function i(e){return"string"!=typeof e&&("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function r(e){let t=new URLSearchParams;return Object.entries(e).forEach(e=>{let[n,r]=e;Array.isArray(r)?r.forEach(e=>t.append(n,i(e))):t.set(n,i(r))}),t}function o(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return n.forEach(t=>{Array.from(t.keys()).forEach(t=>e.delete(t)),t.forEach((t,n)=>e.append(n,t))}),e}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{searchParamsToUrlQuery:function(){return n},urlQueryToSearchParams:function(){return r},assign:function(){return o}})},94713:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removePathPrefix",{enumerable:!0,get:function(){return r}});let i=n(53323);function r(e,t){if(!(0,i.pathHasPrefix)(e,t))return e;let n=e.slice(t.length);return n.startsWith("/")?n:"/"+n}},43580:function(e,t){"use strict";function n(e){return e.replace(/\/$/,"")||"/"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeTrailingSlash",{enumerable:!0,get:function(){return n}})},14676:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getRouteMatcher",{enumerable:!0,get:function(){return r}});let i=n(49491);function r(e){let{re:t,groups:n}=e;return e=>{let r=t.exec(e);if(!r)return!1;let o=e=>{try{return decodeURIComponent(e)}catch(e){throw new i.DecodeError("failed to decode param")}},a={};return Object.keys(n).forEach(e=>{let t=n[e],i=r[t.pos];void 0!==i&&(a[e]=~i.indexOf("/")?i.split("/").map(e=>o(e)):t.repeat?[o(i)]:o(i))}),a}}},40362:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{getRouteRegex:function(){return l},getNamedRouteRegex:function(){return u},getNamedMiddlewareRegex:function(){return h}});let i=n(12743),r=n(35067),o=n(43580);function a(e){let t=e.startsWith("[")&&e.endsWith("]");t&&(e=e.slice(1,-1));let n=e.startsWith("...");return n&&(e=e.slice(3)),{key:e,repeat:n,optional:t}}function s(e){let t=(0,o.removeTrailingSlash)(e).slice(1).split("/"),n={},s=1;return{parameterizedRoute:t.map(e=>{let t=i.INTERCEPTION_ROUTE_MARKERS.find(t=>e.startsWith(t)),o=e.match(/\[((?:\[.*\])|.+)\]/);if(t&&o){let{key:e,optional:i,repeat:l}=a(o[1]);return n[e]={pos:s++,repeat:l,optional:i},"/"+(0,r.escapeStringRegexp)(t)+"([^/]+?)"}if(!o)return"/"+(0,r.escapeStringRegexp)(e);{let{key:e,repeat:t,optional:i}=a(o[1]);return n[e]={pos:s++,repeat:t,optional:i},t?i?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}}).join(""),groups:n}}function l(e){let{parameterizedRoute:t,groups:n}=s(e);return{re:RegExp("^"+t+"(?:/)?$"),groups:n}}function c(e){let{getSafeRouteKey:t,segment:n,routeKeys:i,keyPrefix:r}=e,{key:o,optional:s,repeat:l}=a(n),c=o.replace(/\W/g,"");r&&(c=""+r+c);let d=!1;return(0===c.length||c.length>30)&&(d=!0),isNaN(parseInt(c.slice(0,1)))||(d=!0),d&&(c=t()),r?i[c]=""+r+o:i[c]=""+o,l?s?"(?:/(?<"+c+">.+?))?":"/(?<"+c+">.+?)":"/(?<"+c+">[^/]+?)"}function d(e,t){let n;let a=(0,o.removeTrailingSlash)(e).slice(1).split("/"),s=(n=0,()=>{let e="",t=++n;for(;t>0;)e+=String.fromCharCode(97+(t-1)%26),t=Math.floor((t-1)/26);return e}),l={};return{namedParameterizedRoute:a.map(e=>{let n=i.INTERCEPTION_ROUTE_MARKERS.some(t=>e.startsWith(t)),o=e.match(/\[((?:\[.*\])|.+)\]/);return n&&o?c({getSafeRouteKey:s,segment:o[1],routeKeys:l,keyPrefix:t?"nxtI":void 0}):o?c({getSafeRouteKey:s,segment:o[1],routeKeys:l,keyPrefix:t?"nxtP":void 0}):"/"+(0,r.escapeStringRegexp)(e)}).join(""),routeKeys:l}}function u(e,t){let n=d(e,t);return{...l(e),namedRegex:"^"+n.namedParameterizedRoute+"(?:/)?$",routeKeys:n.routeKeys}}function h(e,t){let{parameterizedRoute:n}=s(e),{catchAll:i=!0}=t;if("/"===n)return{namedRegex:"^/"+(i?".*":"")+"$"};let{namedParameterizedRoute:r}=d(e,!1);return{namedRegex:"^"+r+(i?"(?:(/.*)?)":"")+"$"}}},42171:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSortedRoutes",{enumerable:!0,get:function(){return i}});class n{insert(e){this._insert(e.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(e){void 0===e&&(e="/");let t=[...this.children.keys()].sort();null!==this.slugName&&t.splice(t.indexOf("[]"),1),null!==this.restSlugName&&t.splice(t.indexOf("[...]"),1),null!==this.optionalRestSlugName&&t.splice(t.indexOf("[[...]]"),1);let n=t.map(t=>this.children.get(t)._smoosh(""+e+t+"/")).reduce((e,t)=>[...e,...t],[]);if(null!==this.slugName&&n.push(...this.children.get("[]")._smoosh(e+"["+this.slugName+"]/")),!this.placeholder){let t="/"===e?"/":e.slice(0,-1);if(null!=this.optionalRestSlugName)throw Error('You cannot define a route with the same specificity as a optional catch-all route ("'+t+'" and "'+t+"[[..."+this.optionalRestSlugName+']]").');n.unshift(t)}return null!==this.restSlugName&&n.push(...this.children.get("[...]")._smoosh(e+"[..."+this.restSlugName+"]/")),null!==this.optionalRestSlugName&&n.push(...this.children.get("[[...]]")._smoosh(e+"[[..."+this.optionalRestSlugName+"]]/")),n}_insert(e,t,i){if(0===e.length){this.placeholder=!1;return}if(i)throw Error("Catch-all must be the last part of the URL.");let r=e[0];if(r.startsWith("[")&&r.endsWith("]")){let n=r.slice(1,-1),a=!1;if(n.startsWith("[")&&n.endsWith("]")&&(n=n.slice(1,-1),a=!0),n.startsWith("...")&&(n=n.substring(3),i=!0),n.startsWith("[")||n.endsWith("]"))throw Error("Segment names may not start or end with extra brackets ('"+n+"').");if(n.startsWith("."))throw Error("Segment names may not start with erroneous periods ('"+n+"').");function o(e,n){if(null!==e&&e!==n)throw Error("You cannot use different slug names for the same dynamic path ('"+e+"' !== '"+n+"').");t.forEach(e=>{if(e===n)throw Error('You cannot have the same slug name "'+n+'" repeat within a single dynamic path');if(e.replace(/\W/g,"")===r.replace(/\W/g,""))throw Error('You cannot have the slug names "'+e+'" and "'+n+'" differ only by non-word symbols within a single dynamic path')}),t.push(n)}if(i){if(a){if(null!=this.restSlugName)throw Error('You cannot use both an required and optional catch-all route at the same level ("[...'+this.restSlugName+']" and "'+e[0]+'" ).');o(this.optionalRestSlugName,n),this.optionalRestSlugName=n,r="[[...]]"}else{if(null!=this.optionalRestSlugName)throw Error('You cannot use both an optional and required catch-all route at the same level ("[[...'+this.optionalRestSlugName+']]" and "'+e[0]+'").');o(this.restSlugName,n),this.restSlugName=n,r="[...]"}}else{if(a)throw Error('Optional route parameters are not yet supported ("'+e[0]+'").');o(this.slugName,n),this.slugName=n,r="[]"}}this.children.has(r)||this.children.set(r,new n),this.children.get(r)._insert(e.slice(1),t,i)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function i(e){let t=new n;return e.forEach(e=>t.insert(e)),t.smoosh()}},4267:function(e,t){"use strict";function n(e){return"("===e[0]&&e.endsWith(")")}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isGroupSegment",{enumerable:!0,get:function(){return n}})},18133:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ServerInsertedHTMLContext:function(){return o},useServerInsertedHTML:function(){return a}});let i=n(28169),r=i._(n(7653)),o=r.default.createContext(null);function a(e){let t=(0,r.useContext)(o);t&&t(e)}},49491:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{WEB_VITALS:function(){return n},execOnce:function(){return i},isAbsoluteUrl:function(){return o},getLocationOrigin:function(){return a},getURL:function(){return s},getDisplayName:function(){return l},isResSent:function(){return c},normalizeRepeatedSlashes:function(){return d},loadGetInitialProps:function(){return u},SP:function(){return h},ST:function(){return p},DecodeError:function(){return f},NormalizeError:function(){return m},PageNotFoundError:function(){return g},MissingStaticPage:function(){return b},MiddlewareNotFoundError:function(){return v},stringifyError:function(){return y}});let n=["CLS","FCP","FID","INP","LCP","TTFB"];function i(e){let t,n=!1;return function(){for(var i=arguments.length,r=Array(i),o=0;o<i;o++)r[o]=arguments[o];return n||(n=!0,t=e(...r)),t}}let r=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,o=e=>r.test(e);function a(){let{protocol:e,hostname:t,port:n}=window.location;return e+"//"+t+(n?":"+n:"")}function s(){let{href:e}=window.location,t=a();return e.substring(t.length)}function l(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function c(e){return e.finished||e.headersSent}function d(e){let t=e.split("?"),n=t[0];return n.replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?"?"+t.slice(1).join("?"):"")}async function u(e,t){let n=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await u(t.Component,t.ctx)}:{};let i=await e.getInitialProps(t);if(n&&c(n))return i;if(!i){let t='"'+l(e)+'.getInitialProps()" should resolve to an object. But found "'+i+'" instead.';throw Error(t)}return i}let h="undefined"!=typeof performance,p=h&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class f extends Error{}class m extends Error{}class g extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+e}}class b extends Error{constructor(e,t){super(),this.message="Failed to load static file for page: "+e+" "+t}}class v extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function y(e){return JSON.stringify({message:e.message,stack:e.stack})}},7266:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createAsyncLocalStorage",{enumerable:!0,get:function(){return o}});let n=Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available");class i{disable(){throw n}getStore(){}run(){throw n}exit(){throw n}enterWith(){throw n}}let r=globalThis.AsyncLocalStorage;function o(){return r?new r:new i}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6583:function(e,t,n){"use strict";var i=n(7653),r=n(3458);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(e,t){var n=3&e.length,i=e.length-n,r=t;for(t=0;t<i;){var o=255&e.charCodeAt(t)|(255&e.charCodeAt(++t))<<8|(255&e.charCodeAt(++t))<<16|(255&e.charCodeAt(++t))<<24;++t,r^=o=461845907*(65535&(o=(o=3432918353*(65535&o)+((3432918353*(o>>>16)&65535)<<16)&4294967295)<<15|o>>>17))+((461845907*(o>>>16)&65535)<<16)&4294967295,r=(65535&(r=5*(65535&(r=r<<13|r>>>19))+((5*(r>>>16)&65535)<<16)&4294967295))+27492+(((r>>>16)+58964&65535)<<16)}switch(o=0,n){case 3:o^=(255&e.charCodeAt(t+2))<<16;case 2:o^=(255&e.charCodeAt(t+1))<<8;case 1:o^=255&e.charCodeAt(t),r^=461845907*(65535&(o=(o=3432918353*(65535&o)+((3432918353*(o>>>16)&65535)<<16)&4294967295)<<15|o>>>17))+((461845907*(o>>>16)&65535)<<16)&4294967295}return r^=e.length,r^=r>>>16,r=2246822507*(65535&r)+((2246822507*(r>>>16)&65535)<<16)&4294967295,r^=r>>>13,((r=3266489909*(65535&r)+((3266489909*(r>>>16)&65535)<<16)&4294967295)^r>>>16)>>>0}var s=null,l=0;function c(e,t){if(0!==t.byteLength){if(512<t.byteLength)0<l&&(e.enqueue(new Uint8Array(s.buffer,0,l)),s=new Uint8Array(512),l=0),e.enqueue(t);else{var n=s.length-l;n<t.byteLength&&(0===n?e.enqueue(s):(s.set(t.subarray(0,n),l),e.enqueue(s),t=t.subarray(n)),s=new Uint8Array(512),l=0),s.set(t,l),l+=t.byteLength}}}function d(e,t){return c(e,t),!0}function u(e){s&&0<l&&(e.enqueue(new Uint8Array(s.buffer,0,l)),s=null,l=0)}var h=new TextEncoder;function p(e){return h.encode(e)}function f(e){return h.encode(e)}function m(e,t){"function"==typeof e.error?e.error(t):e.close()}var g=Object.assign,b=Object.prototype.hasOwnProperty,v=RegExp("^[: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]*$"),y={},x={};function w(e){return!!b.call(x,e)||!b.call(y,e)&&(v.test(e)?x[e]=!0:(y[e]=!0,!1))}var k=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" ")),_=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),E=/["'&<>]/;function S(e){if("boolean"==typeof e||"number"==typeof e)return""+e;e=""+e;var t=E.exec(e);if(t){var n,i="",r=0;for(n=t.index;n<e.length;n++){switch(e.charCodeAt(n)){case 34:t="&quot;";break;case 38:t="&amp;";break;case 39:t="&#x27;";break;case 60:t="&lt;";break;case 62:t="&gt;";break;default:continue}r!==n&&(i+=e.slice(r,n)),r=n+1,i+=t}e=r!==n?i+e.slice(r,n):i}return e}var C=/([A-Z])/g,P=/^ms-/,T=Array.isArray,O=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,A={pending:!1,data:null,method:null,action:null},I=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Dispatcher,R={prefetchDNS:function(e){var t=iv||null;if(t){var n,i,r=t.resumableState,o=t.renderState;"string"==typeof e&&e&&(r.dnsResources.hasOwnProperty(e)||(r.dnsResources[e]=null,(i=(r=o.headers)&&0<r.remainingCapacity)&&(n="<"+(""+e).replace(t9,t7)+">; rel=dns-prefetch",i=2<=(r.remainingCapacity-=n.length)),i?(o.resets.dns[e]=null,r.preconnects&&(r.preconnects+=", "),r.preconnects+=n):(ek(n=[],{href:e,rel:"dns-prefetch"}),o.preconnects.add(n))),iG(t))}},preconnect:function(e,t){var n=iv||null;if(n){var i=n.resumableState,r=n.renderState;if("string"==typeof e&&e){var o,a,s="use-credentials"===t?"credentials":"string"==typeof t?"anonymous":"default";i.connectResources[s].hasOwnProperty(e)||(i.connectResources[s][e]=null,(a=(i=r.headers)&&0<i.remainingCapacity)&&(a="<"+(""+e).replace(t9,t7)+">; rel=preconnect","string"==typeof t&&(a+='; crossorigin="'+(""+t).replace(ne,nt)+'"'),o=a,a=2<=(i.remainingCapacity-=o.length)),a?(r.resets.connect[s][e]=null,i.preconnects&&(i.preconnects+=", "),i.preconnects+=o):(ek(s=[],{rel:"preconnect",href:e,crossOrigin:t}),r.preconnects.add(s))),iG(n)}}},preload:function(e,t,n){var i=iv||null;if(i){var r=i.resumableState,o=i.renderState;if(t&&e){switch(t){case"image":if(n)var a,s=n.imageSrcSet,l=n.imageSizes,c=n.fetchPriority;var d=s?s+"\n"+(l||""):e;if(r.imageResources.hasOwnProperty(d))return;r.imageResources[d]=$,(r=o.headers)&&0<r.remainingCapacity&&"high"===c&&(a=t8(e,t,n),2<=(r.remainingCapacity-=a.length))?(o.resets.image[d]=$,r.highImagePreloads&&(r.highImagePreloads+=", "),r.highImagePreloads+=a):(ek(r=[],g({rel:"preload",href:s?void 0:e,as:t},n)),"high"===c?o.highImagePreloads.add(r):(o.bulkPreloads.add(r),o.preloads.images.set(d,r)));break;case"style":if(r.styleResources.hasOwnProperty(e))return;ek(s=[],g({rel:"preload",href:e,as:t},n)),r.styleResources[e]=n&&("string"==typeof n.crossOrigin||"string"==typeof n.integrity)?[n.crossOrigin,n.integrity]:$,o.preloads.stylesheets.set(e,s),o.bulkPreloads.add(s);break;case"script":if(r.scriptResources.hasOwnProperty(e))return;s=[],o.preloads.scripts.set(e,s),o.bulkPreloads.add(s),ek(s,g({rel:"preload",href:e,as:t},n)),r.scriptResources[e]=n&&("string"==typeof n.crossOrigin||"string"==typeof n.integrity)?[n.crossOrigin,n.integrity]:$;break;default:if(r.unknownResources.hasOwnProperty(t)){if((s=r.unknownResources[t]).hasOwnProperty(e))return}else s={},r.unknownResources[t]=s;(s[e]=$,(r=o.headers)&&0<r.remainingCapacity&&"font"===t&&(d=t8(e,t,n),2<=(r.remainingCapacity-=d.length)))?(o.resets.font[e]=$,r.fontPreloads&&(r.fontPreloads+=", "),r.fontPreloads+=d):(ek(r=[],e=g({rel:"preload",href:e,as:t},n)),"font"===t)?o.fontPreloads.add(r):o.bulkPreloads.add(r)}iG(i)}}},preloadModule:function(e,t){var n=iv||null;if(n){var i=n.resumableState,r=n.renderState;if(e){var o=t&&"string"==typeof t.as?t.as:"script";if("script"===o){if(i.moduleScriptResources.hasOwnProperty(e))return;o=[],i.moduleScriptResources[e]=t&&("string"==typeof t.crossOrigin||"string"==typeof t.integrity)?[t.crossOrigin,t.integrity]:$,r.preloads.moduleScripts.set(e,o)}else{if(i.moduleUnknownResources.hasOwnProperty(o)){var a=i.unknownResources[o];if(a.hasOwnProperty(e))return}else a={},i.moduleUnknownResources[o]=a;o=[],a[e]=$}ek(o,g({rel:"modulepreload",href:e},t)),r.bulkPreloads.add(o),iG(n)}}},preinitStyle:function(e,t,n){var i=iv||null;if(i){var r=i.resumableState,o=i.renderState;if(e){t=t||"default";var a=o.styles.get(t),s=r.styleResources.hasOwnProperty(e)?r.styleResources[e]:void 0;null!==s&&(r.styleResources[e]=null,a||(a={precedence:p(S(t)),rules:[],hrefs:[],sheets:new Map},o.styles.set(t,a)),t={state:0,props:g({rel:"stylesheet",href:e,"data-precedence":t},n)},s&&(2===s.length&&t6(t.props,s),(o=o.preloads.stylesheets.get(e))&&0<o.length?o.length=0:t.state=1),a.sheets.set(e,t),iG(i))}}},preinitScript:function(e,t){var n=iv||null;if(n){var i=n.resumableState,r=n.renderState;if(e){var o=i.scriptResources.hasOwnProperty(e)?i.scriptResources[e]:void 0;null!==o&&(i.scriptResources[e]=null,t=g({src:e,async:!0},t),o&&(2===o.length&&t6(t,o),e=r.preloads.scripts.get(e))&&(e.length=0),e=[],r.scripts.add(e),eS(e,t),iG(n))}}},preinitModuleScript:function(e,t){var n=iv||null;if(n){var i=n.resumableState,r=n.renderState;if(e){var o=i.moduleScriptResources.hasOwnProperty(e)?i.moduleScriptResources[e]:void 0;null!==o&&(i.moduleScriptResources[e]=null,t=g({src:e,type:"module",async:!0},t),o&&(2===o.length&&t6(t,o),e=r.preloads.moduleScripts.get(e))&&(e.length=0),e=[],r.scripts.add(e),eS(e,t),iG(n))}}}},$=[],L=f('"></template>'),M=f("<script>"),j=f("</script>"),D=f('<script src="'),N=f('<script type="module" src="'),F=f('" nonce="'),z=f('" integrity="'),B=f('" crossorigin="'),H=f('" async=""></script>'),U=/(<\/|<)(s)(cript)/gi;function V(e,t,n,i){return""+t+("s"===n?"\\u0073":"\\u0053")+i}var W=f('<script type="importmap">'),q=f("</script>");function G(e,t,n){return{insertionMode:e,selectedValue:t,tagScope:n}}function X(e,t,n){switch(t){case"noscript":return G(2,null,1|e.tagScope);case"select":return G(2,null!=n.value?n.value:n.defaultValue,e.tagScope);case"svg":return G(3,null,e.tagScope);case"picture":return G(2,null,2|e.tagScope);case"math":return G(4,null,e.tagScope);case"foreignObject":return G(2,null,e.tagScope);case"table":return G(5,null,e.tagScope);case"thead":case"tbody":case"tfoot":return G(6,null,e.tagScope);case"colgroup":return G(8,null,e.tagScope);case"tr":return G(7,null,e.tagScope)}return 5<=e.insertionMode?G(2,null,e.tagScope):0===e.insertionMode?"html"===t?G(1,null,e.tagScope):G(2,null,e.tagScope):1===e.insertionMode?G(2,null,e.tagScope):e}var Y=f("<!-- -->");function K(e,t,n,i){return""===t?i:(i&&e.push(Y),e.push(p(S(t))),!0)}var J=new Map,Z=f(' style="'),Q=f(":"),ee=f(";");function et(e,t){if("object"!=typeof t)throw Error(o(62));var n,i=!0;for(n in t)if(b.call(t,n)){var r=t[n];if(null!=r&&"boolean"!=typeof r&&""!==r){if(0===n.indexOf("--")){var a=p(S(n));r=p(S((""+r).trim()))}else void 0===(a=J.get(n))&&(a=f(S(n.replace(C,"-$1").toLowerCase().replace(P,"-ms-"))),J.set(n,a)),r="number"==typeof r?0===r||k.has(n)?p(""+r):p(r+"px"):p(S((""+r).trim()));i?(i=!1,e.push(Z,a,Q,r)):e.push(ee,a,Q,r)}}i||e.push(er)}var en=f(" "),ei=f('="'),er=f('"'),eo=f('=""');function ea(e,t,n){n&&"function"!=typeof n&&"symbol"!=typeof n&&e.push(en,p(t),eo)}function es(e,t,n){"function"!=typeof n&&"symbol"!=typeof n&&"boolean"!=typeof n&&e.push(en,p(t),ei,p(S(n)),er)}function el(e){var t=e.nextFormID++;return e.idPrefix+t}var ec=f(S("javascript:throw new Error('A React form was unexpectedly submitted.')")),ed=f('<input type="hidden"');function eu(e,t){if(this.push(ed),"string"!=typeof e)throw Error(o(480));es(this,"name",t),es(this,"value",e),this.push(em)}function eh(e,t,n,i,r,o,a,s){var l=null;return"function"==typeof i&&("function"==typeof i.$$FORM_ACTION?(r=el(t),s=(t=i.$$FORM_ACTION(r)).name,i=t.action||"",r=t.encType,o=t.method,a=t.target,l=t.data):(e.push(en,p("formAction"),ei,ec,er),a=o=r=i=s=null,ey(t,n))),null!=s&&ep(e,"name",s),null!=i&&ep(e,"formAction",i),null!=r&&ep(e,"formEncType",r),null!=o&&ep(e,"formMethod",o),null!=a&&ep(e,"formTarget",a),l}function ep(e,t,n){switch(t){case"className":es(e,"class",n);break;case"tabIndex":es(e,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":es(e,t,n);break;case"style":et(e,n);break;case"src":case"href":case"action":case"formAction":if(null==n||"function"==typeof n||"symbol"==typeof n||"boolean"==typeof n)break;n=""+n,e.push(en,p(t),ei,p(S(n)),er);break;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":break;case"autoFocus":case"multiple":case"muted":ea(e,t.toLowerCase(),n);break;case"xlinkHref":if("function"==typeof n||"symbol"==typeof n||"boolean"==typeof n)break;n=""+n,e.push(en,p("xlink:href"),ei,p(S(n)),er);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":"function"!=typeof n&&"symbol"!=typeof n&&e.push(en,p(t),ei,p(S(n)),er);break;case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":n&&"function"!=typeof n&&"symbol"!=typeof n&&e.push(en,p(t),eo);break;case"capture":case"download":!0===n?e.push(en,p(t),eo):!1!==n&&"function"!=typeof n&&"symbol"!=typeof n&&e.push(en,p(t),ei,p(S(n)),er);break;case"cols":case"rows":case"size":case"span":"function"!=typeof n&&"symbol"!=typeof n&&!isNaN(n)&&1<=n&&e.push(en,p(t),ei,p(S(n)),er);break;case"rowSpan":case"start":"function"==typeof n||"symbol"==typeof n||isNaN(n)||e.push(en,p(t),ei,p(S(n)),er);break;case"xlinkActuate":es(e,"xlink:actuate",n);break;case"xlinkArcrole":es(e,"xlink:arcrole",n);break;case"xlinkRole":es(e,"xlink:role",n);break;case"xlinkShow":es(e,"xlink:show",n);break;case"xlinkTitle":es(e,"xlink:title",n);break;case"xlinkType":es(e,"xlink:type",n);break;case"xmlBase":es(e,"xml:base",n);break;case"xmlLang":es(e,"xml:lang",n);break;case"xmlSpace":es(e,"xml:space",n);break;default:if((!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&w(t=_.get(t)||t)){switch(typeof n){case"function":case"symbol":return;case"boolean":var i=t.toLowerCase().slice(0,5);if("data-"!==i&&"aria-"!==i)return}e.push(en,p(t),ei,p(S(n)),er)}}}var ef=f(">"),em=f("/>");function eg(e,t,n){if(null!=t){if(null!=n)throw Error(o(60));if("object"!=typeof t||!("__html"in t))throw Error(o(61));null!=(t=t.__html)&&e.push(p(""+t))}}var eb=f(' selected=""'),ev=f('addEventListener("submit",function(a){if(!a.defaultPrevented){var c=a.target,d=a.submitter,e=c.action,b=d;if(d){var f=d.getAttribute("formAction");null!=f&&(e=f,b=null)}"javascript:throw new Error(\'A React form was unexpectedly submitted.\')"===e&&(a.preventDefault(),b?(a=document.createElement("input"),a.name=b.name,a.value=b.value,b.parentNode.insertBefore(a,b),b=new FormData(c),a.parentNode.removeChild(a)):b=new FormData(c),a=c.getRootNode(),(a.$$reactFormReplay=a.$$reactFormReplay||[]).push(c,\nd,b))}});');function ey(e,t){0!=(16&e.instructions)||t.externalRuntimeScript||(e.instructions|=16,t.bootstrapChunks.unshift(t.startInlineScript,ev,j))}var ex=f("<!--F!-->"),ew=f("<!--F-->");function ek(e,t){for(var n in e.push(eA("link")),t)if(b.call(t,n)){var i=t[n];if(null!=i)switch(n){case"children":case"dangerouslySetInnerHTML":throw Error(o(399,"link"));default:ep(e,n,i)}}return e.push(em),null}function e_(e,t,n){for(var i in e.push(eA(n)),t)if(b.call(t,i)){var r=t[i];if(null!=r)switch(i){case"children":case"dangerouslySetInnerHTML":throw Error(o(399,n));default:ep(e,i,r)}}return e.push(em),null}function eE(e,t){e.push(eA("title"));var n,i=null,r=null;for(n in t)if(b.call(t,n)){var o=t[n];if(null!=o)switch(n){case"children":i=o;break;case"dangerouslySetInnerHTML":r=o;break;default:ep(e,n,o)}}return e.push(ef),"function"!=typeof(t=Array.isArray(i)?2>i.length?i[0]:null:i)&&"symbol"!=typeof t&&null!=t&&e.push(p(S(""+t))),eg(e,r,i),e.push(e$("title")),null}function eS(e,t){e.push(eA("script"));var n,i=null,r=null;for(n in t)if(b.call(t,n)){var o=t[n];if(null!=o)switch(n){case"children":i=o;break;case"dangerouslySetInnerHTML":r=o;break;default:ep(e,n,o)}}return e.push(ef),eg(e,r,i),"string"==typeof i&&e.push(p(S(i))),e.push(e$("script")),null}function eC(e,t,n){e.push(eA(n));var i,r=n=null;for(i in t)if(b.call(t,i)){var o=t[i];if(null!=o)switch(i){case"children":n=o;break;case"dangerouslySetInnerHTML":r=o;break;default:ep(e,i,o)}}return e.push(ef),eg(e,r,n),"string"==typeof n?(e.push(p(S(n))),null):n}var eP=f("\n"),eT=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,eO=new Map;function eA(e){var t=eO.get(e);if(void 0===t){if(!eT.test(e))throw Error(o(65,e));t=f("<"+e),eO.set(e,t)}return t}var eI=f("<!DOCTYPE html>"),eR=new Map;function e$(e){var t=eR.get(e);return void 0===t&&(t=f("</"+e+">"),eR.set(e,t)),t}function eL(e,t){t=t.bootstrapChunks;for(var n=0;n<t.length-1;n++)c(e,t[n]);return!(n<t.length)||(n=t[n],t.length=0,d(e,n))}var eM=f('<template id="'),ej=f('"></template>'),eD=f("<!--$-->"),eN=f('<!--$?--><template id="'),eF=f('"></template>'),ez=f("<!--$!-->"),eB=f("<!--/$-->"),eH=f("<template"),eU=f('"'),eV=f(' data-dgst="');f(' data-msg="'),f(' data-stck="');var eW=f("></template>");function eq(e,t,n){if(c(e,eN),null===n)throw Error(o(395));return c(e,t.boundaryPrefix),c(e,p(n.toString(16))),d(e,eF)}var eG=f('<div hidden id="'),eX=f('">'),eY=f("</div>"),eK=f('<svg aria-hidden="true" style="display:none" id="'),eJ=f('">'),eZ=f("</svg>"),eQ=f('<math aria-hidden="true" style="display:none" id="'),e0=f('">'),e1=f("</math>"),e2=f('<table hidden id="'),e5=f('">'),e3=f("</table>"),e4=f('<table hidden><tbody id="'),e6=f('">'),e8=f("</tbody></table>"),e9=f('<table hidden><tr id="'),e7=f('">'),te=f("</tr></table>"),tt=f('<table hidden><colgroup id="'),tn=f('">'),ti=f("</colgroup></table>"),tr=f('$RS=function(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("'),to=f('$RS("'),ta=f('","'),ts=f('")</script>'),tl=f('<template data-rsi="" data-sid="'),tc=f('" data-pid="'),td=f('$RC=function(b,c,e){c=document.getElementById(c);c.parentNode.removeChild(c);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var d=a.data;if("/$"===d)if(0===f)break;else f--;else"$"!==d&&"$?"!==d&&"$!"!==d||f++}d=a.nextSibling;e.removeChild(a);a=d}while(a);for(;c.firstChild;)e.insertBefore(c.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}};$RC("'),tu=f('$RC("'),th=f('$RC=function(b,c,e){c=document.getElementById(c);c.parentNode.removeChild(c);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var d=a.data;if("/$"===d)if(0===f)break;else f--;else"$"!==d&&"$?"!==d&&"$!"!==d||f++}d=a.nextSibling;e.removeChild(a);a=d}while(a);for(;c.firstChild;)e.insertBefore(c.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}};$RM=new Map;\n$RR=function(r,t,w){for(var u=$RC,n=$RM,p=new Map,q=document,g,b,h=q.querySelectorAll("link[data-precedence],style[data-precedence]"),v=[],k=0;b=h[k++];)"not all"===b.getAttribute("media")?v.push(b):("LINK"===b.tagName&&n.set(b.getAttribute("href"),b),p.set(b.dataset.precedence,g=b));b=0;h=[];var l,a;for(k=!0;;){if(k){var f=w[b++];if(!f){k=!1;b=0;continue}var c=!1,m=0;var d=f[m++];if(a=n.get(d)){var e=a._p;c=!0}else{a=q.createElement("link");a.href=d;a.rel="stylesheet";for(a.dataset.precedence=\nl=f[m++];e=f[m++];)a.setAttribute(e,f[m++]);e=a._p=new Promise(function(x,y){a.onload=x;a.onerror=y});n.set(d,a)}d=a.getAttribute("media");!e||"l"===e.s||d&&!matchMedia(d).matches||h.push(e);if(c)continue}else{a=v[b++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=p.get(l)||g;c===g&&(g=a);p.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=q.head,c.insertBefore(a,c.firstChild))}Promise.all(h).then(u.bind(null,r,t,""),u.bind(null,r,t,"Resource failed to load"))};$RR("'),tp=f('$RM=new Map;\n$RR=function(r,t,w){for(var u=$RC,n=$RM,p=new Map,q=document,g,b,h=q.querySelectorAll("link[data-precedence],style[data-precedence]"),v=[],k=0;b=h[k++];)"not all"===b.getAttribute("media")?v.push(b):("LINK"===b.tagName&&n.set(b.getAttribute("href"),b),p.set(b.dataset.precedence,g=b));b=0;h=[];var l,a;for(k=!0;;){if(k){var f=w[b++];if(!f){k=!1;b=0;continue}var c=!1,m=0;var d=f[m++];if(a=n.get(d)){var e=a._p;c=!0}else{a=q.createElement("link");a.href=d;a.rel="stylesheet";for(a.dataset.precedence=\nl=f[m++];e=f[m++];)a.setAttribute(e,f[m++]);e=a._p=new Promise(function(x,y){a.onload=x;a.onerror=y});n.set(d,a)}d=a.getAttribute("media");!e||"l"===e.s||d&&!matchMedia(d).matches||h.push(e);if(c)continue}else{a=v[b++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=p.get(l)||g;c===g&&(g=a);p.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=q.head,c.insertBefore(a,c.firstChild))}Promise.all(h).then(u.bind(null,r,t,""),u.bind(null,r,t,"Resource failed to load"))};$RR("'),tf=f('$RR("'),tm=f('","'),tg=f('",'),tb=f('"'),tv=f(")</script>"),ty=f('<template data-rci="" data-bid="'),tx=f('<template data-rri="" data-bid="'),tw=f('" data-sid="'),tk=f('" data-sty="'),t_=f('$RX=function(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};;$RX("'),tE=f('$RX("'),tS=f('"'),tC=f(","),tP=f(")</script>"),tT=f('<template data-rxi="" data-bid="'),tO=f('" data-dgst="'),tA=f('" data-msg="'),tI=f('" data-stck="'),tR=/[<\u2028\u2029]/g;function t$(e){return JSON.stringify(e).replace(tR,function(e){switch(e){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}var tL=/[&><\u2028\u2029]/g;function tM(e){return JSON.stringify(e).replace(tL,function(e){switch(e){case"&":return"\\u0026";case">":return"\\u003e";case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSObjectForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}var tj=f('<style media="not all" data-precedence="'),tD=f('" data-href="'),tN=f('">'),tF=f("</style>"),tz=!1,tB=!0;function tH(e){var t=e.rules,n=e.hrefs,i=0;if(n.length){for(c(this,tj),c(this,e.precedence),c(this,tD);i<n.length-1;i++)c(this,n[i]),c(this,tK);for(c(this,n[i]),c(this,tN),i=0;i<t.length;i++)c(this,t[i]);tB=d(this,tF),tz=!0,t.length=0,n.length=0}}function tU(e){return 2!==e.state&&(tz=!0)}function tV(e,t,n){return tz=!1,tB=!0,t.styles.forEach(tH,e),t.stylesheets.forEach(tU),tz&&(n.stylesToHoist=!0),tB}function tW(e){for(var t=0;t<e.length;t++)c(this,e[t]);e.length=0}var tq=[];function tG(e){ek(tq,e.props);for(var t=0;t<tq.length;t++)c(this,tq[t]);tq.length=0,e.state=2}var tX=f('<style data-precedence="'),tY=f('" data-href="'),tK=f(" "),tJ=f('">'),tZ=f("</style>");function tQ(e){var t=0<e.sheets.size;e.sheets.forEach(tG,this),e.sheets.clear();var n=e.rules,i=e.hrefs;if(!t||i.length){if(c(this,tX),c(this,e.precedence),e=0,i.length){for(c(this,tY);e<i.length-1;e++)c(this,i[e]),c(this,tK);c(this,i[e])}for(c(this,tJ),e=0;e<n.length;e++)c(this,n[e]);c(this,tZ),n.length=0,i.length=0}}function t0(e){if(0===e.state){e.state=1;var t=e.props;for(ek(tq,{rel:"preload",as:"style",href:e.props.href,crossOrigin:t.crossOrigin,fetchPriority:t.fetchPriority,integrity:t.integrity,media:t.media,hrefLang:t.hrefLang,referrerPolicy:t.referrerPolicy}),e=0;e<tq.length;e++)c(this,tq[e]);tq.length=0}}function t1(e){e.sheets.forEach(t0,this),e.sheets.clear()}var t2=f("["),t5=f(",["),t3=f(","),t4=f("]");function t6(e,t){null==e.crossOrigin&&(e.crossOrigin=t[0]),null==e.integrity&&(e.integrity=t[1])}function t8(e,t,n){for(var i in t="<"+(e=(""+e).replace(t9,t7))+'>; rel=preload; as="'+(t=(""+t).replace(ne,nt))+'"',n)b.call(n,i)&&"string"==typeof(e=n[i])&&(t+="; "+i.toLowerCase()+'="'+(""+e).replace(ne,nt)+'"');return t}var t9=/[<>\r\n]/g;function t7(e){switch(e){case"<":return"%3C";case">":return"%3E";case"\n":return"%0A";case"\r":return"%0D";default:throw Error("escapeLinkHrefForHeaderContextReplacer encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}}var ne=/["';,\r\n]/g;function nt(e){switch(e){case'"':return"%22";case"'":return"%27";case";":return"%3B";case",":return"%2C";case"\n":return"%0A";case"\r":return"%0D";default:throw Error("escapeStringForLinkHeaderQuotedParamValueContextReplacer encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}}function nn(e){this.styles.add(e)}function ni(e){this.stylesheets.add(e)}function nr(e,t,n){if(t=e.onHeaders){var i=e.headers;if(i){var r=i.preconnects;if(i.fontPreloads&&(r&&(r+=", "),r+=i.fontPreloads),i.highImagePreloads&&(r&&(r+=", "),r+=i.highImagePreloads),!n){var o=(n=e.styles.values()).next();e:for(;0<i.remainingCapacity&&!o.done;o=n.next()){o=o.value.sheets.values();for(var a=o.next();0<i.remainingCapacity&&!a.done;a=o.next()){var s=a.value,l=(a=s.props).href;if(s=t8((s=s.props).href,"style",{crossOrigin:s.crossOrigin,integrity:s.integrity,nonce:s.nonce,type:s.type,fetchPriority:s.fetchPriority,referrerPolicy:s.referrerPolicy,media:s.media}),2<=(i.remainingCapacity-=s.length))e.resets.style[l]=$,r&&(r+=", "),r+=s,e.resets.style[l]="string"==typeof a.crossOrigin||"string"==typeof a.integrity?[a.crossOrigin,a.integrity]:$;else break e}}}t(r?{Link:r}:{}),e.headers=null}}}var no=Symbol.for("react.element"),na=Symbol.for("react.portal"),ns=Symbol.for("react.fragment"),nl=Symbol.for("react.strict_mode"),nc=Symbol.for("react.profiler"),nd=Symbol.for("react.provider"),nu=Symbol.for("react.context"),nh=Symbol.for("react.server_context"),np=Symbol.for("react.forward_ref"),nf=Symbol.for("react.suspense"),nm=Symbol.for("react.suspense_list"),ng=Symbol.for("react.memo"),nb=Symbol.for("react.lazy"),nv=Symbol.for("react.scope"),ny=Symbol.for("react.debug_trace_mode"),nx=Symbol.for("react.offscreen"),nw=Symbol.for("react.legacy_hidden"),nk=Symbol.for("react.cache"),n_=Symbol.for("react.default_value"),nE=Symbol.iterator;function nS(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case ns:return"Fragment";case na:return"Portal";case nc:return"Profiler";case nl:return"StrictMode";case nf:return"Suspense";case nm:return"SuspenseList";case nk:return"Cache"}if("object"==typeof e)switch(e.$$typeof){case nu:return(e.displayName||"Context")+".Consumer";case nd:return(e._context.displayName||"Context")+".Provider";case np:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case ng:return null!==(t=e.displayName||null)?t:nS(e.type)||"Memo";case nb:t=e._payload,e=e._init;try{return nS(e(t))}catch(e){}}return null}var nC={};function nP(e,t){if(!(e=e.contextTypes))return nC;var n,i={};for(n in e)i[n]=t[n];return i}var nT=null;function nO(e,t){if(e!==t){e.context._currentValue=e.parentValue,e=e.parent;var n=t.parent;if(null===e){if(null!==n)throw Error(o(401))}else{if(null===n)throw Error(o(401));nO(e,n)}t.context._currentValue=t.value}}function nA(e){var t=nT;t!==e&&(null===t?function e(t){var n=t.parent;null!==n&&e(n),t.context._currentValue=t.value}(e):null===e?function e(t){t.context._currentValue=t.parentValue,null!==(t=t.parent)&&e(t)}(t):t.depth===e.depth?nO(t,e):t.depth>e.depth?function e(t,n){if(t.context._currentValue=t.parentValue,null===(t=t.parent))throw Error(o(402));t.depth===n.depth?nO(t,n):e(t,n)}(t,e):function e(t,n){var i=n.parent;if(null===i)throw Error(o(402));t.depth===i.depth?nO(t,i):e(t,i),n.context._currentValue=n.value}(t,e),nT=e)}var nI={isMounted:function(){return!1},enqueueSetState:function(e,t){null!==(e=e._reactInternals).queue&&e.queue.push(t)},enqueueReplaceState:function(e,t){(e=e._reactInternals).replace=!0,e.queue=[t]},enqueueForceUpdate:function(){}};function nR(e,t,n,i){var r=void 0!==e.state?e.state:null;e.updater=nI,e.props=n,e.state=r;var o={queue:[],replace:!1};e._reactInternals=o;var a=t.contextType;if(e.context="object"==typeof a&&null!==a?a._currentValue:i,"function"==typeof(a=t.getDerivedStateFromProps)&&(r=null==(a=a(n,r))?r:g({},r,a),e.state=r),"function"!=typeof t.getDerivedStateFromProps&&"function"!=typeof e.getSnapshotBeforeUpdate&&("function"==typeof e.UNSAFE_componentWillMount||"function"==typeof e.componentWillMount)){if(t=e.state,"function"==typeof e.componentWillMount&&e.componentWillMount(),"function"==typeof e.UNSAFE_componentWillMount&&e.UNSAFE_componentWillMount(),t!==e.state&&nI.enqueueReplaceState(e,e.state,null),null!==o.queue&&0<o.queue.length){if(t=o.queue,a=o.replace,o.queue=null,o.replace=!1,a&&1===t.length)e.state=t[0];else{for(o=a?t[0]:e.state,r=!0,a=a?1:0;a<t.length;a++){var s=t[a];null!=(s="function"==typeof s?s.call(e,o,n,i):s)&&(r?(r=!1,o=g({},o,s)):g(o,s))}e.state=o}}else o.queue=null}}var n$={id:1,overflow:""};function nL(e,t,n){var i=e.id;e=e.overflow;var r=32-nM(i)-1;i&=~(1<<r),n+=1;var o=32-nM(t)+r;if(30<o){var a=r-r%5;return o=(i&(1<<a)-1).toString(32),i>>=a,r-=a,{id:1<<32-nM(t)+r|n<<r|i,overflow:o+e}}return{id:1<<o|n<<r|i,overflow:e}}var nM=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(nj(e)/nD|0)|0},nj=Math.log,nD=Math.LN2,nN=Error(o(460));function nF(){}var nz=null;function nB(){if(null===nz)throw Error(o(459));var e=nz;return nz=null,e}var nH="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},nU=null,nV=null,nW=null,nq=null,nG=null,nX=null,nY=!1,nK=!1,nJ=0,nZ=0,nQ=-1,n0=0,n1=null,n2=null,n5=0;function n3(){if(null===nU)throw Error(o(321));return nU}function n4(){if(0<n5)throw Error(o(312));return{memoizedState:null,queue:null,next:null}}function n6(){return null===nX?null===nG?(nY=!1,nG=nX=n4()):(nY=!0,nX=nG):null===nX.next?(nY=!1,nX=nX.next=n4()):(nY=!0,nX=nX.next),nX}function n8(e,t,n,i){for(;nK;)nK=!1,nZ=nJ=0,nQ=-1,n0=0,n5+=1,nX=null,n=e(t,i);return n7(),n}function n9(){var e=n1;return n1=null,e}function n7(){nq=nW=nV=nU=null,nK=!1,nG=null,n5=0,nX=n2=null}function ie(e,t){return"function"==typeof t?t(e):t}function it(e,t,n){if(nU=n3(),nX=n6(),nY){var i=nX.queue;if(t=i.dispatch,null!==n2&&void 0!==(n=n2.get(i))){n2.delete(i),i=nX.memoizedState;do i=e(i,n.action),n=n.next;while(null!==n);return nX.memoizedState=i,[i,t]}return[nX.memoizedState,t]}return e=e===ie?"function"==typeof t?t():t:void 0!==n?n(t):t,nX.memoizedState=e,e=(e=nX.queue={last:null,dispatch:null}).dispatch=ir.bind(null,nU,e),[nX.memoizedState,e]}function ii(e,t){if(nU=n3(),nX=n6(),t=void 0===t?null:t,null!==nX){var n=nX.memoizedState;if(null!==n&&null!==t){var i=n[1];e:if(null===i)i=!1;else{for(var r=0;r<i.length&&r<t.length;r++)if(!nH(t[r],i[r])){i=!1;break e}i=!0}if(i)return n[0]}}return e=e(),nX.memoizedState=[e,t],e}function ir(e,t,n){if(25<=n5)throw Error(o(301));if(e===nU){if(nK=!0,e={action:n,next:null},null===n2&&(n2=new Map),void 0===(n=n2.get(t)))n2.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}}}function io(){throw Error(o(394))}function ia(){throw Error(o(479))}function is(e){var t=n0;return n0+=1,null===n1&&(n1=[]),function(e,t,n){switch(void 0===(n=e[n])?e.push(t):n!==t&&(t.then(nF,nF),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw t.reason;default:if("string"!=typeof t.status)switch((e=t).status="pending",e.then(function(e){if("pending"===t.status){var n=t;n.status="fulfilled",n.value=e}},function(e){if("pending"===t.status){var n=t;n.status="rejected",n.reason=e}}),t.status){case"fulfilled":return t.value;case"rejected":throw t.reason}throw nz=t,nN}}(n1,e,t)}function il(){throw Error(o(393))}function ic(){}var id={readContext:function(e){return e._currentValue},use:function(e){if(null!==e&&"object"==typeof e){if("function"==typeof e.then)return is(e);if(e.$$typeof===nu||e.$$typeof===nh)return e._currentValue}throw Error(o(438,String(e)))},useContext:function(e){return n3(),e._currentValue},useMemo:ii,useReducer:it,useRef:function(e){nU=n3();var t=(nX=n6()).memoizedState;return null===t?(e={current:e},nX.memoizedState=e):t},useState:function(e){return it(ie,e)},useInsertionEffect:ic,useLayoutEffect:ic,useCallback:function(e,t){return ii(function(){return e},t)},useImperativeHandle:ic,useEffect:ic,useDebugValue:ic,useDeferredValue:function(e){return n3(),e},useTransition:function(){return n3(),[!1,io]},useId:function(){var e=nV.treeContext,t=e.overflow;e=((e=e.id)&~(1<<32-nM(e)-1)).toString(32)+t;var n=iu;if(null===n)throw Error(o(404));return t=nJ++,e=":"+n.idPrefix+"R"+e,0<t&&(e+="H"+t.toString(32)),e+":"},useSyncExternalStore:function(e,t,n){if(void 0===n)throw Error(o(407));return n()},useCacheRefresh:function(){return il},useHostTransitionStatus:function(){return n3(),A},useOptimistic:function(e){return n3(),[e,ia]},useFormState:function(e,t,n){n3();var i=nZ++,r=nW;if("function"==typeof e.$$FORM_ACTION){var o=null,s=nq;r=r.formState;var l=e.$$IS_SIGNATURE_EQUAL;if(null!==r&&"function"==typeof l){var c=r[1];l.call(e,r[2],r[3])&&c===(o=void 0!==n?"p"+n:"k"+a(JSON.stringify([s,null,i]),0))&&(nQ=i,t=r[0])}var d=e.bind(null,t);return e=function(e){d(e)},"function"==typeof d.$$FORM_ACTION&&(e.$$FORM_ACTION=function(e){e=d.$$FORM_ACTION(e),void 0!==n&&(n+="",e.action=n);var t=e.data;return t&&(null===o&&(o=void 0!==n?"p"+n:"k"+a(JSON.stringify([s,null,i]),0)),t.append("$ACTION_KEY",o)),e}),[t,e]}var u=e.bind(null,t);return[t,function(e){u(e)}]}},iu=null,ih={getCacheSignal:function(){throw Error(o(248))},getCacheForType:function(){throw Error(o(248))}},ip=O.ReactCurrentDispatcher,im=O.ReactCurrentCache;function ig(e){return console.error(e),null}function ib(){}var iv=null;function iy(e,t){e.pingedTasks.push(t),1===e.pingedTasks.length&&(e.flushScheduled=null!==e.destination,iz(e))}function ix(e,t){return{status:0,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,completedSegments:[],byteSize:0,fallbackAbortableTasks:t,errorDigest:null,resources:{styles:new Set,stylesheets:new Set},trackedContentKeyPath:null,trackedFallbackNode:null}}function iw(e,t,n,i,r,o,a,s,l,c,d,u){e.allPendingTasks++,null===r?e.pendingRootTasks++:r.pendingTasks++;var h={replay:null,node:n,childIndex:i,ping:function(){return iy(e,h)},blockedBoundary:r,blockedSegment:o,abortSet:a,keyPath:s,formatContext:l,legacyContext:c,context:d,treeContext:u,thenableState:t};return a.add(h),h}function ik(e,t,n,i,r,o,a,s,l,c,d,u){e.allPendingTasks++,null===o?e.pendingRootTasks++:o.pendingTasks++,n.pendingTasks++;var h={replay:n,node:i,childIndex:r,ping:function(){return iy(e,h)},blockedBoundary:o,blockedSegment:null,abortSet:a,keyPath:s,formatContext:l,legacyContext:c,context:d,treeContext:u,thenableState:t};return a.add(h),h}function i_(e,t,n,i,r,o){return{status:0,id:-1,index:t,parentFlushed:!1,chunks:[],children:[],parentFormatContext:i,boundary:n,lastPushedText:r,textEmbedded:o}}function iE(e,t){if(null!=(e=e.onError(t))&&"string"!=typeof e)throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof e+'" instead');return e}function iS(e,t){var n=e.onShellError;n(t),(n=e.onFatalError)(t),null!==e.destination?(e.status=2,m(e.destination,t)):(e.status=1,e.fatalError=t)}function iC(e,t,n,i,r){var a=i.render(),s=r.childContextTypes;if(null!=s){if(n=t.legacyContext,"function"!=typeof i.getChildContext)r=n;else{for(var l in i=i.getChildContext())if(!(l in s))throw Error(o(108,nS(r)||"Unknown",l));r=g({},n,i)}t.legacyContext=r,iI(e,t,null,a,-1),t.legacyContext=n}else r=t.keyPath,t.keyPath=n,iI(e,t,null,a,-1),t.keyPath=r}function iP(e,t,n,i,r,o,a){var s=!1;if(0!==o&&null!==e.formState){var l=t.blockedSegment;if(null!==l){s=!0,l=l.chunks;for(var c=0;c<o;c++)c===a?l.push(ex):l.push(ew)}}o=t.keyPath,t.keyPath=n,r?(n=t.treeContext,t.treeContext=nL(n,1,0),i$(e,t,i,-1),t.treeContext=n):s?i$(e,t,i,-1):iI(e,t,null,i,-1),t.keyPath=o}function iT(e,t){if(e&&e.defaultProps)for(var n in t=g({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}function iO(e,t,n,r,a,s,l){if("function"==typeof a){if(a.prototype&&a.prototype.isReactComponent){r=nP(a,t.legacyContext);var c=a.contextType;nR(c=new a(s,"object"==typeof c&&null!==c?c._currentValue:r),a,s,r),iC(e,t,n,c,a)}else{c=nP(a,t.legacyContext),nU={},nV=t,nW=e,nq=n,nZ=nJ=0,nQ=-1,n0=0,n1=r,r=a(s,c),r=n8(a,s,r,c),l=0!==nJ;var d=nZ,u=nQ;"object"==typeof r&&null!==r&&"function"==typeof r.render&&void 0===r.$$typeof?(nR(r,a,s,c),iC(e,t,n,r,a)):iP(e,t,n,r,l,d,u)}}else if("string"==typeof a){if(null===(r=t.blockedSegment))r=s.children,c=t.formatContext,l=t.keyPath,t.formatContext=X(c,a,s),t.keyPath=n,i$(e,t,r,-1),t.formatContext=c,t.keyPath=l;else{l=function(e,t,n,r,a,s,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":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":break;case"select":e.push(eA("select"));var c,d=null,u=null;for(c in n)if(b.call(n,c)){var h=n[c];if(null!=h)switch(c){case"children":d=h;break;case"dangerouslySetInnerHTML":u=h;break;case"defaultValue":case"value":break;default:ep(e,c,h)}}return e.push(ef),eg(e,u,d),d;case"option":var f=s.selectedValue;e.push(eA("option"));var m,v=null,y=null,x=null,k=null;for(m in n)if(b.call(n,m)){var _=n[m];if(null!=_)switch(m){case"children":v=_;break;case"selected":x=_;break;case"dangerouslySetInnerHTML":k=_;break;case"value":y=_;default:ep(e,m,_)}}if(null!=f){var E,C,P=null!==y?""+y:(E=v,C="",i.Children.forEach(E,function(e){null!=e&&(C+=e)}),C);if(T(f)){for(var O=0;O<f.length;O++)if(""+f[O]===P){e.push(eb);break}}else""+f===P&&e.push(eb)}else x&&e.push(eb);return e.push(ef),eg(e,k,v),v;case"textarea":e.push(eA("textarea"));var A,I=null,R=null,L=null;for(A in n)if(b.call(n,A)){var M=n[A];if(null!=M)switch(A){case"children":L=M;break;case"value":I=M;break;case"defaultValue":R=M;break;case"dangerouslySetInnerHTML":throw Error(o(91));default:ep(e,A,M)}}if(null===I&&null!==R&&(I=R),e.push(ef),null!=L){if(null!=I)throw Error(o(92));if(T(L)){if(1<L.length)throw Error(o(93));I=""+L[0]}I=""+L}return"string"==typeof I&&"\n"===I[0]&&e.push(eP),null!==I&&e.push(p(S(""+I))),null;case"input":e.push(eA("input"));var j,D=null,N=null,F=null,z=null,B=null,H=null,U=null,V=null,W=null;for(j in n)if(b.call(n,j)){var q=n[j];if(null!=q)switch(j){case"children":case"dangerouslySetInnerHTML":throw Error(o(399,"input"));case"name":D=q;break;case"formAction":N=q;break;case"formEncType":F=q;break;case"formMethod":z=q;break;case"formTarget":B=q;break;case"defaultChecked":W=q;break;case"defaultValue":U=q;break;case"checked":V=q;break;case"value":H=q;break;default:ep(e,j,q)}}var G=eh(e,r,a,N,F,z,B,D);return null!==V?ea(e,"checked",V):null!==W&&ea(e,"checked",W),null!==H?ep(e,"value",H):null!==U&&ep(e,"value",U),e.push(em),null!==G&&G.forEach(eu,e),null;case"button":e.push(eA("button"));var X,K=null,J=null,Z=null,Q=null,ee=null,eo=null,ev=null;for(X in n)if(b.call(n,X)){var ex=n[X];if(null!=ex)switch(X){case"children":K=ex;break;case"dangerouslySetInnerHTML":J=ex;break;case"name":Z=ex;break;case"formAction":Q=ex;break;case"formEncType":ee=ex;break;case"formMethod":eo=ex;break;case"formTarget":ev=ex;break;default:ep(e,X,ex)}}var ew=eh(e,r,a,Q,ee,eo,ev,Z);if(e.push(ef),null!==ew&&ew.forEach(eu,e),eg(e,J,K),"string"==typeof K){e.push(p(S(K)));var eT=null}else eT=K;return eT;case"form":e.push(eA("form"));var eO,eR=null,eL=null,eM=null,ej=null,eD=null,eN=null;for(eO in n)if(b.call(n,eO)){var eF=n[eO];if(null!=eF)switch(eO){case"children":eR=eF;break;case"dangerouslySetInnerHTML":eL=eF;break;case"action":eM=eF;break;case"encType":ej=eF;break;case"method":eD=eF;break;case"target":eN=eF;break;default:ep(e,eO,eF)}}var ez=null,eB=null;if("function"==typeof eM){if("function"==typeof eM.$$FORM_ACTION){var eH=el(r),eU=eM.$$FORM_ACTION(eH);eM=eU.action||"",ej=eU.encType,eD=eU.method,eN=eU.target,ez=eU.data,eB=eU.name}else e.push(en,p("action"),ei,ec,er),eN=eD=ej=eM=null,ey(r,a)}if(null!=eM&&ep(e,"action",eM),null!=ej&&ep(e,"encType",ej),null!=eD&&ep(e,"method",eD),null!=eN&&ep(e,"target",eN),e.push(ef),null!==eB&&(e.push(ed),es(e,"name",eB),e.push(em),null!==ez&&ez.forEach(eu,e)),eg(e,eL,eR),"string"==typeof eR){e.push(p(S(eR)));var eV=null}else eV=eR;return eV;case"menuitem":for(var eW in e.push(eA("menuitem")),n)if(b.call(n,eW)){var eq=n[eW];if(null!=eq)switch(eW){case"children":case"dangerouslySetInnerHTML":throw Error(o(400));default:ep(e,eW,eq)}}return e.push(ef),null;case"title":if(3===s.insertionMode||1&s.tagScope||null!=n.itemProp)var eG=eE(e,n);else eE(a.hoistableChunks,n),eG=null;return eG;case"link":return function(e,t,n,i,r,o,a){var s=t.rel,l=t.href,c=t.precedence;if(3===o||a||null!=t.itemProp||"string"!=typeof s||"string"!=typeof l||""===l)return ek(e,t),null;if("stylesheet"===t.rel)return"string"!=typeof c||null!=t.disabled||t.onLoad||t.onError?ek(e,t):(o=i.styles.get(c),null!==(a=n.styleResources.hasOwnProperty(l)?n.styleResources[l]:void 0)?(n.styleResources[l]=null,o||(o={precedence:p(S(c)),rules:[],hrefs:[],sheets:new Map},i.styles.set(c,o)),t={state:0,props:g({},t,{"data-precedence":t.precedence,precedence:null})},a&&(2===a.length&&t6(t.props,a),(n=i.preloads.stylesheets.get(l))&&0<n.length?n.length=0:t.state=1),o.sheets.set(l,t),i.boundaryResources&&i.boundaryResources.stylesheets.add(t)):o&&(l=o.sheets.get(l))&&i.boundaryResources&&i.boundaryResources.stylesheets.add(l),r&&e.push(Y),null);if(t.onLoad||t.onError)return ek(e,t);switch(r&&e.push(Y),t.rel){case"preconnect":case"dns-prefetch":return ek(i.preconnectChunks,t);case"preload":return ek(i.preloadChunks,t);default:return ek(i.hoistableChunks,t)}}(e,n,r,a,l,s.insertionMode,!!(1&s.tagScope));case"script":var eX=n.async;if("string"!=typeof n.src||!n.src||!eX||"function"==typeof eX||"symbol"==typeof eX||n.onLoad||n.onError||3===s.insertionMode||1&s.tagScope||null!=n.itemProp)var eY=eS(e,n);else{var eK=n.src;if("module"===n.type)var eJ=r.moduleScriptResources,eZ=a.preloads.moduleScripts;else eJ=r.scriptResources,eZ=a.preloads.scripts;var eQ=eJ.hasOwnProperty(eK)?eJ[eK]:void 0;if(null!==eQ){eJ[eK]=null;var e0=n;if(eQ){2===eQ.length&&t6(e0=g({},n),eQ);var e1=eZ.get(eK);e1&&(e1.length=0)}var e2=[];a.scripts.add(e2),eS(e2,e0)}l&&e.push(Y),eY=null}return eY;case"style":var e5=n.precedence,e3=n.href;if(3===s.insertionMode||1&s.tagScope||null!=n.itemProp||"string"!=typeof e5||"string"!=typeof e3||""===e3){e.push(eA("style"));var e4,e6=null,e8=null;for(e4 in n)if(b.call(n,e4)){var e9=n[e4];if(null!=e9)switch(e4){case"children":e6=e9;break;case"dangerouslySetInnerHTML":e8=e9;break;default:ep(e,e4,e9)}}e.push(ef);var e7=Array.isArray(e6)?2>e6.length?e6[0]:null:e6;"function"!=typeof e7&&"symbol"!=typeof e7&&null!=e7&&e.push(p(S(""+e7))),eg(e,e8,e6),e.push(e$("style"));var te=null}else{var tt=a.styles.get(e5);if(null!==(r.styleResources.hasOwnProperty(e3)?r.styleResources[e3]:void 0)){r.styleResources[e3]=null,tt?tt.hrefs.push(p(S(e3))):(tt={precedence:p(S(e5)),rules:[],hrefs:[p(S(e3))],sheets:new Map},a.styles.set(e5,tt));var tn,ti=tt.rules,tr=null,to=null;for(tn in n)if(b.call(n,tn)){var ta=n[tn];if(null!=ta)switch(tn){case"children":tr=ta;break;case"dangerouslySetInnerHTML":to=ta}}var ts=Array.isArray(tr)?2>tr.length?tr[0]:null:tr;"function"!=typeof ts&&"symbol"!=typeof ts&&null!=ts&&ti.push(p(S(""+ts))),eg(ti,to,tr)}tt&&a.boundaryResources&&a.boundaryResources.styles.add(tt),l&&e.push(Y),te=void 0}return te;case"meta":if(3===s.insertionMode||1&s.tagScope||null!=n.itemProp)var tl=e_(e,n,"meta");else l&&e.push(Y),tl="string"==typeof n.charSet?e_(a.charsetChunks,n,"meta"):"viewport"===n.name?e_(a.preconnectChunks,n,"meta"):e_(a.hoistableChunks,n,"meta");return tl;case"listing":case"pre":e.push(eA(t));var tc,td=null,tu=null;for(tc in n)if(b.call(n,tc)){var th=n[tc];if(null!=th)switch(tc){case"children":td=th;break;case"dangerouslySetInnerHTML":tu=th;break;default:ep(e,tc,th)}}if(e.push(ef),null!=tu){if(null!=td)throw Error(o(60));if("object"!=typeof tu||!("__html"in tu))throw Error(o(61));var tp=tu.__html;null!=tp&&("string"==typeof tp&&0<tp.length&&"\n"===tp[0]?e.push(eP,p(tp)):e.push(p(""+tp)))}return"string"==typeof td&&"\n"===td[0]&&e.push(eP),td;case"img":var tf=n.src,tm=n.srcSet;if(!("lazy"===n.loading||!tf&&!tm||"string"!=typeof tf&&null!=tf||"string"!=typeof tm&&null!=tm)&&"low"!==n.fetchPriority&&!1==!!(2&s.tagScope)&&("string"!=typeof tf||":"!==tf[4]||"d"!==tf[0]&&"D"!==tf[0]||"a"!==tf[1]&&"A"!==tf[1]||"t"!==tf[2]&&"T"!==tf[2]||"a"!==tf[3]&&"A"!==tf[3])&&("string"!=typeof tm||":"!==tm[4]||"d"!==tm[0]&&"D"!==tm[0]||"a"!==tm[1]&&"A"!==tm[1]||"t"!==tm[2]&&"T"!==tm[2]||"a"!==tm[3]&&"A"!==tm[3])){var tg="string"==typeof n.sizes?n.sizes:void 0,tb=tm?tm+"\n"+(tg||""):tf,tv=a.preloads.images,ty=tv.get(tb);if(ty)("high"===n.fetchPriority||10>a.highImagePreloads.size)&&(tv.delete(tb),a.highImagePreloads.add(ty));else if(!r.imageResources.hasOwnProperty(tb)){r.imageResources[tb]=$;var tx,tw=n.crossOrigin,tk="string"==typeof tw?"use-credentials"===tw?tw:"":void 0,t_=a.headers;t_&&0<t_.remainingCapacity&&("high"===n.fetchPriority||500>t_.highImagePreloads.length)&&(tx=t8(tf,"image",{imageSrcSet:n.srcSet,imageSizes:n.sizes,crossOrigin:tk,integrity:n.integrity,nonce:n.nonce,type:n.type,fetchPriority:n.fetchPriority,referrerPolicy:n.refererPolicy}),2<=(t_.remainingCapacity-=tx.length))?(a.resets.image[tb]=$,t_.highImagePreloads&&(t_.highImagePreloads+=", "),t_.highImagePreloads+=tx):(ek(ty=[],{rel:"preload",as:"image",href:tm?void 0:tf,imageSrcSet:tm,imageSizes:tg,crossOrigin:tk,integrity:n.integrity,type:n.type,fetchPriority:n.fetchPriority,referrerPolicy:n.referrerPolicy}),"high"===n.fetchPriority||10>a.highImagePreloads.size?a.highImagePreloads.add(ty):(a.bulkPreloads.add(ty),tv.set(tb,ty)))}}return e_(e,n,"img");case"base":case"area":case"br":case"col":case"embed":case"hr":case"keygen":case"param":case"source":case"track":case"wbr":return e_(e,n,t);case"head":if(2>s.insertionMode&&null===a.headChunks){a.headChunks=[];var tE=eC(a.headChunks,n,"head")}else tE=eC(e,n,"head");return tE;case"html":if(0===s.insertionMode&&null===a.htmlChunks){a.htmlChunks=[eI];var tS=eC(a.htmlChunks,n,"html")}else tS=eC(e,n,"html");return tS;default:if(-1!==t.indexOf("-")){e.push(eA(t));var tC,tP=null,tT=null;for(tC in n)if(b.call(n,tC)){var tO=n[tC];if(null!=tO)switch(tC){case"children":tP=tO;break;case"dangerouslySetInnerHTML":tT=tO;break;case"style":et(e,tO);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:w(tC)&&"function"!=typeof tO&&"symbol"!=typeof tO&&e.push(en,p(tC),ei,p(S(tO)),er)}}return e.push(ef),eg(e,tT,tP),tP}}return eC(e,n,t)}(r.chunks,a,s,e.resumableState,e.renderState,t.formatContext,r.lastPushedText),r.lastPushedText=!1,c=t.formatContext,d=t.keyPath,t.formatContext=X(c,a,s),t.keyPath=n,i$(e,t,l,-1),t.formatContext=c,t.keyPath=d;e:{switch(t=r.chunks,e=e.resumableState,a){case"title":case"style":case"script":case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break e;case"body":if(1>=c.insertionMode){e.hasBody=!0;break e}break;case"html":if(0===c.insertionMode){e.hasHtml=!0;break e}}t.push(e$(a))}r.lastPushedText=!1}}else{switch(a){case nw:case ny:case nl:case nc:case ns:a=t.keyPath,t.keyPath=n,iI(e,t,null,s.children,-1),t.keyPath=a;return;case nx:"hidden"!==s.mode&&(a=t.keyPath,t.keyPath=n,iI(e,t,null,s.children,-1),t.keyPath=a);return;case nm:a=t.keyPath,t.keyPath=n,iI(e,t,null,s.children,-1),t.keyPath=a;return;case nv:throw Error(o(343));case nf:e:if(null!==t.replay){a=t.keyPath,t.keyPath=n,n=s.children;try{i$(e,t,n,-1)}finally{t.keyPath=a}}else{u=t.keyPath,a=t.blockedBoundary;var h=t.blockedSegment;r=s.fallback;var f=s.children;l=ix(e,s=new Set),null!==e.trackedPostpones&&(l.trackedContentKeyPath=n),d=i_(e,h.chunks.length,l,t.formatContext,!1,!1),h.children.push(d),h.lastPushedText=!1;var m=i_(e,0,null,t.formatContext,!1,!1);m.parentFlushed=!0,t.blockedBoundary=l,t.blockedSegment=m,e.renderState.boundaryResources=l.resources,t.keyPath=n;try{if(i$(e,t,f,-1),m.lastPushedText&&m.textEmbedded&&m.chunks.push(Y),m.status=1,iN(l,m),0===l.pendingTasks&&0===l.status){l.status=1;break e}}catch(t){m.status=4,l.status=4,c=iE(e,t),l.errorDigest=c}finally{e.renderState.boundaryResources=a?a.resources:null,t.blockedBoundary=a,t.blockedSegment=h,t.keyPath=u}c=[n[0],"Suspense Fallback",n[2]],null!==(u=e.trackedPostpones)&&(h=[c[1],c[2],[],null],u.workingMap.set(c,h),5===l.status?u.workingMap.get(n)[4]=h:l.trackedFallbackNode=h),t=iw(e,null,r,-1,a,d,s,c,t.formatContext,t.legacyContext,t.context,t.treeContext),e.pingedTasks.push(t)}return}if("object"==typeof a&&null!==a)switch(a.$$typeof){case np:a=a.render,nU={},nV=t,nW=e,nq=n,nZ=nJ=0,nQ=-1,n0=0,n1=r,r=a(s,l),iP(e,t,n,s=n8(a,s,r,l),0!==nJ,nZ,nQ);return;case ng:s=iT(a=a.type,s),iO(e,t,n,r,a,s,l);return;case nd:if(c=s.children,r=t.keyPath,a=a._context,s=s.value,l=a._currentValue,a._currentValue=s,nT=s={parent:d=nT,depth:null===d?0:d.depth+1,context:a,parentValue:l,value:s},t.context=s,t.keyPath=n,iI(e,t,null,c,-1),null===(e=nT))throw Error(o(403));n=e.parentValue,e.context._currentValue=n===n_?e.context._defaultValue:n,e=nT=e.parent,t.context=e,t.keyPath=r;return;case nu:s=(s=s.children)(a._currentValue),a=t.keyPath,t.keyPath=n,iI(e,t,null,s,-1),t.keyPath=a;return;case nb:s=iT(a=(c=a._init)(a._payload),s),iO(e,t,n,r,a,s,void 0);return}throw Error(o(130,null==a?a:typeof a,""))}}function iA(e,t,n,i,r){var o=t.replay,a=t.blockedBoundary,s=i_(e,0,null,t.formatContext,!1,!1);s.id=n,s.parentFlushed=!0;try{t.replay=null,t.blockedSegment=s,i$(e,t,i,r),s.status=1,null===a?e.completedRootSegment=s:(iN(a,s),a.parentFlushed&&e.partialBoundaries.push(a))}finally{t.replay=o,t.blockedSegment=null}}function iI(e,t,n,i,r){if(null!==t.replay&&"number"==typeof t.replay.slots)iA(e,t,t.replay.slots,i,r);else{if(t.node=i,t.childIndex=r,"object"==typeof i&&null!==i){switch(i.$$typeof){case no:var a=i.type,s=i.key,l=i.props,c=i.ref,d=nS(a),u=null==s?-1===r?0:r:s;if(s=[t.keyPath,d,u],null!==t.replay)e:{var h=t.replay;for(i=0,r=h.nodes;i<r.length;i++){var p=r[i];if(u===p[1]){if(4===p.length){if(null!==d&&d!==p[0])throw Error(o(490,p[0],d));d=p[2],p=p[3],u=t.node,t.replay={nodes:d,slots:p,pendingTasks:1};try{if(iO(e,t,s,n,a,l,c),1===t.replay.pendingTasks&&0<t.replay.nodes.length)throw Error(o(488));t.replay.pendingTasks--}catch(i){if("object"==typeof i&&null!==i&&(i===nN||"function"==typeof i.then))throw t.node===u&&(t.replay=h),i;t.replay.pendingTasks--,s=e,e=t.blockedBoundary,l=iE(s,n=i),iM(s,e,d,p,n,l)}t.replay=h}else{if(a!==nf)throw Error(o(490,"Suspense",nS(a)||"Unknown"));t:{h=void 0,n=p[5],a=p[2],c=p[3],d=null===p[4]?[]:p[4][2],p=null===p[4]?null:p[4][3],u=t.keyPath;var f=t.replay,m=t.blockedBoundary,g=l.children;l=l.fallback;var b=new Set,v=ix(e,b);v.parentFlushed=!0,v.rootSegmentID=n,t.blockedBoundary=v,t.replay={nodes:a,slots:c,pendingTasks:1},e.renderState.boundaryResources=v.resources;try{if(i$(e,t,g,-1),1===t.replay.pendingTasks&&0<t.replay.nodes.length)throw Error(o(488));if(t.replay.pendingTasks--,0===v.pendingTasks&&0===v.status){v.status=1,e.completedBoundaries.push(v);break t}}catch(n){v.status=4,h=iE(e,n),v.errorDigest=h,t.replay.pendingTasks--,e.clientRenderedBoundaries.push(v)}finally{e.renderState.boundaryResources=m?m.resources:null,t.blockedBoundary=m,t.replay=f,t.keyPath=u}t=ik(e,null,{nodes:d,slots:p,pendingTasks:0},l,-1,m,b,[s[0],"Suspense Fallback",s[2]],t.formatContext,t.legacyContext,t.context,t.treeContext),e.pingedTasks.push(t)}}r.splice(i,1);break e}}}else iO(e,t,s,n,a,l,c);return;case na:throw Error(o(257));case nb:iI(e,t,null,i=(l=i._init)(i._payload),r);return}if(T(i)){iR(e,t,i,r);return}if((l=null===i||"object"!=typeof i?null:"function"==typeof(l=nE&&i[nE]||i["@@iterator"])?l:null)&&(l=l.call(i))){if(!(i=l.next()).done){s=[];do s.push(i.value),i=l.next();while(!i.done);iR(e,t,s,r)}return}if("function"==typeof i.then)return iI(e,t,null,is(i),r);if(i.$$typeof===nu||i.$$typeof===nh)return iI(e,t,null,i._currentValue,r);throw Error(o(31,"[object Object]"===(r=Object.prototype.toString.call(i))?"object with keys {"+Object.keys(i).join(", ")+"}":r))}"string"==typeof i?null!==(r=t.blockedSegment)&&(r.lastPushedText=K(r.chunks,i,e.renderState,r.lastPushedText)):"number"==typeof i&&null!==(r=t.blockedSegment)&&(r.lastPushedText=K(r.chunks,""+i,e.renderState,r.lastPushedText))}}function iR(e,t,n,i){var r=t.keyPath;if(-1!==i&&(t.keyPath=[t.keyPath,"Fragment",i],null!==t.replay)){for(var a=t.replay,s=a.nodes,l=0;l<s.length;l++){var c=s[l];if(c[1]===i){i=c[2],c=c[3],t.replay={nodes:i,slots:c,pendingTasks:1};try{if(iR(e,t,n,-1),1===t.replay.pendingTasks&&0<t.replay.nodes.length)throw Error(o(488));t.replay.pendingTasks--}catch(r){if("object"==typeof r&&null!==r&&(r===nN||"function"==typeof r.then))throw r;t.replay.pendingTasks--,n=e;var d=t.blockedBoundary;e=iE(n,r),iM(n,d,i,c,r,e)}t.replay=a,s.splice(l,1);break}}t.keyPath=r;return}if(a=t.treeContext,s=n.length,null!==t.replay&&null!==(l=t.replay.slots)&&"object"==typeof l){for(i=0;i<s;i++)c=n[i],t.treeContext=nL(a,s,i),"number"==typeof(d=l[i])?(iA(e,t,d,c,i),delete l[i]):i$(e,t,c,i);t.treeContext=a,t.keyPath=r;return}for(l=0;l<s;l++)i=n[l],t.treeContext=nL(a,s,l),i$(e,t,i,l);t.treeContext=a,t.keyPath=r}function i$(e,t,n,i){var r=t.formatContext,o=t.legacyContext,a=t.context,s=t.keyPath,l=t.treeContext,c=t.blockedSegment;if(null===c)try{return iI(e,t,null,n,i)}catch(c){if(n7(),"object"==typeof(n=c===nN?nB():c)&&null!==n&&"function"==typeof n.then){e=ik(e,i=n9(),t.replay,t.node,t.childIndex,t.blockedBoundary,t.abortSet,t.keyPath,t.formatContext,t.legacyContext,t.context,t.treeContext).ping,n.then(e,e),t.formatContext=r,t.legacyContext=o,t.context=a,t.keyPath=s,t.treeContext=l,nA(a);return}}else{var d=c.children.length,u=c.chunks.length;try{return iI(e,t,null,n,i)}catch(h){if(n7(),c.children.length=d,c.chunks.length=u,"object"==typeof(n=h===nN?nB():h)&&null!==n&&"function"==typeof n.then){i=n9(),d=i_(e,(c=t.blockedSegment).chunks.length,null,t.formatContext,c.lastPushedText,!0),c.children.push(d),c.lastPushedText=!1,e=iw(e,i,t.node,t.childIndex,t.blockedBoundary,d,t.abortSet,t.keyPath,t.formatContext,t.legacyContext,t.context,t.treeContext).ping,n.then(e,e),t.formatContext=r,t.legacyContext=o,t.context=a,t.keyPath=s,t.treeContext=l,nA(a);return}}}throw t.formatContext=r,t.legacyContext=o,t.context=a,t.keyPath=s,t.treeContext=l,nA(a),n}function iL(e){var t=e.blockedBoundary;null!==(e=e.blockedSegment)&&(e.status=3,iF(this,t,e))}function iM(e,t,n,i,r,a){for(var s=0;s<n.length;s++){var l=n[s];if(4===l.length)iM(e,t,l[2],l[3],r,a);else{l=l[5];var c=ix(e,new Set);c.parentFlushed=!0,c.rootSegmentID=l,c.status=4,c.errorDigest=a,c.parentFlushed&&e.clientRenderedBoundaries.push(c)}}if(n.length=0,null!==i){if(null===t)throw Error(o(487));if(4!==t.status&&(t.status=4,t.errorDigest=a,t.parentFlushed&&e.clientRenderedBoundaries.push(t)),"object"==typeof i)for(var d in i)delete i[d]}}function ij(e){null===e.trackedPostpones&&nr(e.renderState,e.resumableState,!0),e.onShellError=ib,(e=e.onShellReady)()}function iD(e){nr(e.renderState,e.resumableState,null===e.trackedPostpones||null===e.completedRootSegment||5!==e.completedRootSegment.status),(e=e.onAllReady)()}function iN(e,t){if(0===t.chunks.length&&1===t.children.length&&null===t.children[0].boundary){var n=t.children[0];n.id=t.id,n.parentFlushed=!0,1===n.status&&iN(e,n)}else e.completedSegments.push(t)}function iF(e,t,n){if(null===t){if(null!==n&&n.parentFlushed){if(null!==e.completedRootSegment)throw Error(o(389));e.completedRootSegment=n}e.pendingRootTasks--,0===e.pendingRootTasks&&ij(e)}else t.pendingTasks--,4!==t.status&&(0===t.pendingTasks?(0===t.status&&(t.status=1),null!==n&&n.parentFlushed&&1===n.status&&iN(t,n),t.parentFlushed&&e.completedBoundaries.push(t),1===t.status&&(t.fallbackAbortableTasks.forEach(iL,e),t.fallbackAbortableTasks.clear())):null!==n&&n.parentFlushed&&1===n.status&&(iN(t,n),1===t.completedSegments.length&&t.parentFlushed&&e.partialBoundaries.push(t)));e.allPendingTasks--,0===e.allPendingTasks&&iD(e)}function iz(e){if(2!==e.status){var t=nT,n=ip.current;ip.current=id;var i=im.current;im.current=ih;var r=iv;iv=e;var a=iu;iu=e.resumableState;try{var s,l=e.pingedTasks;for(s=0;s<l.length;s++){var c=l[s],d=e,u=c.blockedBoundary;d.renderState.boundaryResources=u?u.resources:null;var h=c.blockedSegment;if(null===h){var p=d;if(0!==c.replay.pendingTasks){nA(c.context);try{var f=c.thenableState;if(c.thenableState=null,iI(p,c,f,c.node,c.childIndex),1===c.replay.pendingTasks&&0<c.replay.nodes.length)throw Error(o(488));c.replay.pendingTasks--,c.abortSet.delete(c),iF(p,c.blockedBoundary,null)}catch(e){n7();var m=e===nN?nB():e;if("object"==typeof m&&null!==m&&"function"==typeof m.then){var g=c.ping;m.then(g,g),c.thenableState=n9()}else{c.replay.pendingTasks--,c.abortSet.delete(c),d=void 0;var b=p,v=c.blockedBoundary,y=c.replay.nodes,x=c.replay.slots;d=iE(b,m),iM(b,v,y,x,m,d),p.pendingRootTasks--,0===p.pendingRootTasks&&ij(p),p.allPendingTasks--,0===p.allPendingTasks&&iD(p)}}finally{p.renderState.boundaryResources=null}}}else if(p=void 0,b=h,0===b.status){nA(c.context);var w=b.children.length,k=b.chunks.length;try{var _=c.thenableState;c.thenableState=null,iI(d,c,_,c.node,c.childIndex),b.lastPushedText&&b.textEmbedded&&b.chunks.push(Y),c.abortSet.delete(c),b.status=1,iF(d,c.blockedBoundary,b)}catch(e){n7(),b.children.length=w,b.chunks.length=k;var E=e===nN?nB():e;if("object"==typeof E&&null!==E&&"function"==typeof E.then){var S=c.ping;E.then(S,S),c.thenableState=n9()}else{c.abortSet.delete(c),b.status=4;var C=c.blockedBoundary;p=iE(d,E),null===C?iS(d,E):(C.pendingTasks--,4!==C.status&&(C.status=4,C.errorDigest=p,C.parentFlushed&&d.clientRenderedBoundaries.push(C))),d.allPendingTasks--,0===d.allPendingTasks&&iD(d)}}finally{d.renderState.boundaryResources=null}}}l.splice(0,s),null!==e.destination&&iq(e,e.destination)}catch(t){iE(e,t),iS(e,t)}finally{iu=a,ip.current=n,im.current=i,n===id&&nA(t),iv=r}}}function iB(e,t,n){switch(n.parentFlushed=!0,n.status){case 0:n.id=e.nextSegmentId++;case 5:var i=n.id;return n.lastPushedText=!1,n.textEmbedded=!1,e=e.renderState,c(t,eM),c(t,e.placeholderPrefix),c(t,e=p(i.toString(16))),d(t,ej);case 1:n.status=2;var r=!0;i=n.chunks;var a=0;n=n.children;for(var s=0;s<n.length;s++){for(r=n[s];a<r.index;a++)c(t,i[a]);r=iH(e,t,r)}for(;a<i.length-1;a++)c(t,i[a]);return a<i.length&&(r=d(t,i[a])),r;default:throw Error(o(390))}}function iH(e,t,n){var i=n.boundary;if(null===i)return iB(e,t,n);if(i.parentFlushed=!0,4===i.status)i=i.errorDigest,d(t,ez),c(t,eH),i&&(c(t,eV),c(t,p(S(i))),c(t,eU)),d(t,eW),iB(e,t,n);else if(1!==i.status)0===i.status&&(i.rootSegmentID=e.nextSegmentId++),0<i.completedSegments.length&&e.partialBoundaries.push(i),eq(t,e.renderState,i.rootSegmentID),iB(e,t,n);else if(i.byteSize>e.progressiveChunkSize)i.rootSegmentID=e.nextSegmentId++,e.completedBoundaries.push(i),eq(t,e.renderState,i.rootSegmentID),iB(e,t,n);else{n=i.resources;var r=e.renderState.boundaryResources;if(r&&(n.styles.forEach(nn,r),n.stylesheets.forEach(ni,r)),d(t,eD),1!==(i=i.completedSegments).length)throw Error(o(391));iH(e,t,i[0])}return d(t,eB)}function iU(e,t,n){return function(e,t,n,i){switch(n.insertionMode){case 0:case 1:case 2:return c(e,eG),c(e,t.segmentPrefix),c(e,p(i.toString(16))),d(e,eX);case 3:return c(e,eK),c(e,t.segmentPrefix),c(e,p(i.toString(16))),d(e,eJ);case 4:return c(e,eQ),c(e,t.segmentPrefix),c(e,p(i.toString(16))),d(e,e0);case 5:return c(e,e2),c(e,t.segmentPrefix),c(e,p(i.toString(16))),d(e,e5);case 6:return c(e,e4),c(e,t.segmentPrefix),c(e,p(i.toString(16))),d(e,e6);case 7:return c(e,e9),c(e,t.segmentPrefix),c(e,p(i.toString(16))),d(e,e7);case 8:return c(e,tt),c(e,t.segmentPrefix),c(e,p(i.toString(16))),d(e,tn);default:throw Error(o(397))}}(t,e.renderState,n.parentFormatContext,n.id),iH(e,t,n),function(e,t){switch(t.insertionMode){case 0:case 1:case 2:return d(e,eY);case 3:return d(e,eZ);case 4:return d(e,e1);case 5:return d(e,e3);case 6:return d(e,e8);case 7:return d(e,te);case 8:return d(e,ti);default:throw Error(o(397))}}(t,n.parentFormatContext)}function iV(e,t,n){e.renderState.boundaryResources=n.resources;for(var i,r,a,s,l=n.completedSegments,u=0;u<l.length;u++)iW(e,t,n,l[u]);l.length=0,tV(t,n.resources,e.renderState),l=e.resumableState,e=e.renderState,u=n.rootSegmentID,n=n.resources;var h=e.stylesToHoist;e.stylesToHoist=!1;var f=0===l.streamingFormat;return f?(c(t,e.startInlineScript),h?0==(2&l.instructions)?(l.instructions|=10,c(t,512<th.byteLength?th.slice():th)):0==(8&l.instructions)?(l.instructions|=8,c(t,tp)):c(t,tf):0==(2&l.instructions)?(l.instructions|=2,c(t,td)):c(t,tu)):h?c(t,tx):c(t,ty),l=p(u.toString(16)),c(t,e.boundaryPrefix),c(t,l),f?c(t,tm):c(t,tw),c(t,e.segmentPrefix),c(t,l),h?(f?(c(t,tg),i=n,c(t,t2),r=t2,i.stylesheets.forEach(function(e){if(2!==e.state){if(3===e.state)c(t,r),c(t,p(tM(""+e.props.href))),c(t,t4),r=t5;else{c(t,r);var n=e.props["data-precedence"],i=e.props;for(var a in c(t,p(tM(""+e.props.href))),n=""+n,c(t,t3),c(t,p(tM(n))),i)if(b.call(i,a)){var s=i[a];if(null!=s)switch(a){case"href":case"rel":case"precedence":case"data-precedence":break;case"children":case"dangerouslySetInnerHTML":throw Error(o(399,"link"));default:e:{n=t;var l=a.toLowerCase();switch(typeof s){case"function":case"symbol":break e}switch(a){case"innerHTML":case"dangerouslySetInnerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"style":break e;case"className":l="class",s=""+s;break;case"hidden":if(!1===s)break e;s="";break;case"src":case"href":s=""+s;break;default:if(2<a.length&&("o"===a[0]||"O"===a[0])&&("n"===a[1]||"N"===a[1])||!w(a))break e;s=""+s}c(n,t3),c(n,p(tM(l))),c(n,t3),c(n,p(tM(s)))}}}c(t,t4),r=t5,e.state=3}}})):(c(t,tk),a=n,c(t,t2),s=t2,a.stylesheets.forEach(function(e){if(2!==e.state){if(3===e.state)c(t,s),c(t,p(S(JSON.stringify(""+e.props.href)))),c(t,t4),s=t5;else{c(t,s);var n=e.props["data-precedence"],i=e.props;for(var r in c(t,p(S(JSON.stringify(""+e.props.href)))),n=""+n,c(t,t3),c(t,p(S(JSON.stringify(n)))),i)if(b.call(i,r)){var a=i[r];if(null!=a)switch(r){case"href":case"rel":case"precedence":case"data-precedence":break;case"children":case"dangerouslySetInnerHTML":throw Error(o(399,"link"));default:e:{n=t;var l=r.toLowerCase();switch(typeof a){case"function":case"symbol":break e}switch(r){case"innerHTML":case"dangerouslySetInnerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"style":break e;case"className":l="class",a=""+a;break;case"hidden":if(!1===a)break e;a="";break;case"src":case"href":a=""+a;break;default:if(2<r.length&&("o"===r[0]||"O"===r[0])&&("n"===r[1]||"N"===r[1])||!w(r))break e;a=""+a}c(n,t3),c(n,p(S(JSON.stringify(l)))),c(n,t3),c(n,p(S(JSON.stringify(a))))}}}c(t,t4),s=t5,e.state=3}}})),c(t,t4)):f&&c(t,tb),l=f?d(t,tv):d(t,L),eL(t,e)&&l}function iW(e,t,n,i){if(2===i.status)return!0;var r=i.id;if(-1===r){if(-1===(i.id=n.rootSegmentID))throw Error(o(392));return iU(e,t,i)}return r===n.rootSegmentID?iU(e,t,i):(iU(e,t,i),n=e.resumableState,e=e.renderState,(i=0===n.streamingFormat)?(c(t,e.startInlineScript),0==(1&n.instructions)?(n.instructions|=1,c(t,tr)):c(t,to)):c(t,tl),c(t,e.segmentPrefix),c(t,r=p(r.toString(16))),i?c(t,ta):c(t,tc),c(t,e.placeholderPrefix),c(t,r),t=i?d(t,ts):d(t,L))}function iq(e,t){s=new Uint8Array(512),l=0;try{var n,i=e.completedRootSegment;if(null!==i){if(5===i.status||0!==e.pendingRootTasks)return;var r=e.renderState;if((0!==e.allPendingTasks||null!==e.trackedPostpones)&&r.externalRuntimeScript){var o=r.externalRuntimeScript,a=e.resumableState,h=o.src,f=o.chunks;a.scriptResources.hasOwnProperty(h)||(a.scriptResources[h]=null,r.scripts.add(f))}var m=r.htmlChunks,g=r.headChunks;if(o=0,m){for(o=0;o<m.length;o++)c(t,m[o]);if(g)for(o=0;o<g.length;o++)c(t,g[o]);else c(t,eA("head")),c(t,ef)}else if(g)for(o=0;o<g.length;o++)c(t,g[o]);var b=r.charsetChunks;for(o=0;o<b.length;o++)c(t,b[o]);b.length=0,r.preconnects.forEach(tW,t),r.preconnects.clear();var v=r.preconnectChunks;for(o=0;o<v.length;o++)c(t,v[o]);v.length=0,r.fontPreloads.forEach(tW,t),r.fontPreloads.clear(),r.highImagePreloads.forEach(tW,t),r.highImagePreloads.clear(),r.styles.forEach(tQ,t);var y=r.importMapChunks;for(o=0;o<y.length;o++)c(t,y[o]);y.length=0,r.bootstrapScripts.forEach(tW,t),r.scripts.forEach(tW,t),r.scripts.clear(),r.bulkPreloads.forEach(tW,t),r.bulkPreloads.clear();var x=r.preloadChunks;for(o=0;o<x.length;o++)c(t,x[o]);x.length=0;var w=r.hoistableChunks;for(o=0;o<w.length;o++)c(t,w[o]);w.length=0,m&&null===g&&c(t,e$("head")),iH(e,t,i),e.completedRootSegment=null,eL(t,e.renderState)}var k=e.renderState;i=0,k.preconnects.forEach(tW,t),k.preconnects.clear();var _=k.preconnectChunks;for(i=0;i<_.length;i++)c(t,_[i]);_.length=0,k.fontPreloads.forEach(tW,t),k.fontPreloads.clear(),k.highImagePreloads.forEach(tW,t),k.highImagePreloads.clear(),k.styles.forEach(t1,t),k.scripts.forEach(tW,t),k.scripts.clear(),k.bulkPreloads.forEach(tW,t),k.bulkPreloads.clear();var E=k.preloadChunks;for(i=0;i<E.length;i++)c(t,E[i]);E.length=0;var C=k.hoistableChunks;for(i=0;i<C.length;i++)c(t,C[i]);C.length=0;var P=e.clientRenderedBoundaries;for(n=0;n<P.length;n++){var T=P[n];k=t;var O=e.resumableState,A=e.renderState,I=T.rootSegmentID,R=T.errorDigest,$=T.errorMessage,M=T.errorComponentStack,j=0===O.streamingFormat;if(j?(c(k,A.startInlineScript),0==(4&O.instructions)?(O.instructions|=4,c(k,t_)):c(k,tE)):c(k,tT),c(k,A.boundaryPrefix),c(k,p(I.toString(16))),j&&c(k,tS),(R||$||M)&&(j?(c(k,tC),c(k,p(t$(R||"")))):(c(k,tO),c(k,p(S(R||""))))),($||M)&&(j?(c(k,tC),c(k,p(t$($||"")))):(c(k,tA),c(k,p(S($||""))))),M&&(j?(c(k,tC),c(k,p(t$(M)))):(c(k,tI),c(k,p(S(M))))),j?!d(k,tP):!d(k,L)){e.destination=null,n++,P.splice(0,n);return}}P.splice(0,n);var D=e.completedBoundaries;for(n=0;n<D.length;n++)if(!iV(e,t,D[n])){e.destination=null,n++,D.splice(0,n);return}D.splice(0,n),u(t),s=new Uint8Array(512),l=0;var N=e.partialBoundaries;for(n=0;n<N.length;n++){var F=N[n];e:{P=e,T=t,P.renderState.boundaryResources=F.resources;var z=F.completedSegments;for(O=0;O<z.length;O++)if(!iW(P,T,F,z[O])){O++,z.splice(0,O);var B=!1;break e}z.splice(0,O),B=tV(T,F.resources,P.renderState)}if(!B){e.destination=null,n++,N.splice(0,n);return}}N.splice(0,n);var H=e.completedBoundaries;for(n=0;n<H.length;n++)if(!iV(e,t,H[n])){e.destination=null,n++,H.splice(0,n);return}H.splice(0,n)}finally{0===e.allPendingTasks&&0===e.pingedTasks.length&&0===e.clientRenderedBoundaries.length&&0===e.completedBoundaries.length?(e.flushScheduled=!1,(n=e.resumableState).hasBody&&c(t,e$("body")),n.hasHtml&&c(t,e$("html")),u(t),t.close(),e.destination=null):u(t)}}function iG(e){if(!1===e.flushScheduled&&0===e.pingedTasks.length&&null!==e.destination){e.flushScheduled=!0;var t=e.destination;t?iq(e,t):e.flushScheduled=!1}}function iX(e,t){try{var n=e.abortableTasks;if(0<n.size){var i=void 0===t?Error(o(432)):t;n.forEach(function(t){return function e(t,n,i){var r=t.blockedBoundary,o=t.blockedSegment;if(null!==o&&(o.status=3),null===r){if(1!==n.status&&2!==n.status){if(null===(t=t.replay)){iE(n,i),iS(n,i);return}t.pendingTasks--,0===t.pendingTasks&&0<t.nodes.length&&(r=iE(n,i),iM(n,null,t.nodes,t.slots,i,r)),n.pendingRootTasks--,0===n.pendingRootTasks&&ij(n)}}else r.pendingTasks--,4!==r.status&&(r.status=4,r.errorDigest=iE(n,i),r.parentFlushed&&n.clientRenderedBoundaries.push(r)),r.fallbackAbortableTasks.forEach(function(t){return e(t,n,i)}),r.fallbackAbortableTasks.clear();n.allPendingTasks--,0===n.allPendingTasks&&iD(n)}(t,e,i)}),n.clear()}null!==e.destination&&iq(e,e.destination)}catch(t){iE(e,t),iS(e,t)}}t.renderToReadableStream=function(e,t){return new Promise(function(n,i){var r,o,a,s,l,c,d,u,h,g,b,v,y,x,w,k,_,E,C,P,T,O,A,$,L=new Promise(function(e,t){A=e,O=t}),X=t?t.onHeaders:void 0;X&&($=function(e){X(new Headers(e))});var Y=(r=t?t.identifierPrefix:void 0,o=t?t.unstable_externalRuntimeSrc:void 0,a=t?t.bootstrapScriptContent:void 0,s=t?t.bootstrapScripts:void 0,l=t?t.bootstrapModules:void 0,c=0,void 0!==o&&(c=1),{idPrefix:void 0===r?"":r,nextFormID:0,streamingFormat:c,bootstrapScriptContent:a,bootstrapScripts:s,bootstrapModules:l,instructions:0,hasBody:!1,hasHtml:!1,unknownResources:{},dnsResources:{},connectResources:{default:{},anonymous:{},credentials:{}},imageResources:{},styleResources:{},scriptResources:{},moduleUnknownResources:{},moduleScriptResources:{}}),K=(u=e,h=Y,g=function(e,t,n,i,r,o){var a=void 0===t?M:f('<script nonce="'+S(t)+'">'),s=e.idPrefix,l=[],c=null,d=e.bootstrapScriptContent,u=e.bootstrapScripts,h=e.bootstrapModules;if(void 0!==d&&l.push(a,p((""+d).replace(U,V)),j),void 0!==n&&("string"==typeof n?eS((c={src:n,chunks:[]}).chunks,{src:n,async:!0,integrity:void 0,nonce:t}):eS((c={src:n.src,chunks:[]}).chunks,{src:n.src,async:!0,integrity:n.integrity,nonce:t})),n=[],void 0!==i&&(n.push(W),n.push(p((""+JSON.stringify(i)).replace(U,V))),n.push(q)),i=r?{preconnects:"",fontPreloads:"",highImagePreloads:"",remainingCapacity:"number"==typeof o?o:2e3}:null,r={placeholderPrefix:f(s+"P:"),segmentPrefix:f(s+"S:"),boundaryPrefix:f(s+"B:"),startInlineScript:a,htmlChunks:null,headChunks:null,externalRuntimeScript:c,bootstrapChunks:l,onHeaders:r,headers:i,resets:{font:{},dns:{},connect:{default:{},anonymous:{},credentials:{}},image:{},style:{}},charsetChunks:[],preconnectChunks:[],importMapChunks:n,preloadChunks:[],hoistableChunks:[],preconnects:new Set,fontPreloads:new Set,highImagePreloads:new Set,styles:new Map,bootstrapScripts:new Set,scripts:new Set,bulkPreloads:new Set,preloads:{images:new Map,stylesheets:new Map,scripts:new Map,moduleScripts:new Map},nonce:t,boundaryResources:null,stylesToHoist:!1},void 0!==u)for(a=0;a<u.length;a++)n=u[a],i=c=void 0,o={rel:"preload",as:"script",fetchPriority:"low",nonce:t},"string"==typeof n?o.href=s=n:(o.href=s=n.src,o.integrity=i="string"==typeof n.integrity?n.integrity:void 0,o.crossOrigin=c="string"==typeof n||null==n.crossOrigin?void 0:"use-credentials"===n.crossOrigin?"use-credentials":""),n=e,d=s,n.scriptResources[d]=null,n.moduleScriptResources[d]=null,ek(n=[],o),r.bootstrapScripts.add(n),l.push(D,p(S(s))),t&&l.push(F,p(S(t))),"string"==typeof i&&l.push(z,p(S(i))),"string"==typeof c&&l.push(B,p(S(c))),l.push(H);if(void 0!==h)for(u=0;u<h.length;u++)o=h[u],c=s=void 0,i={rel:"modulepreload",fetchPriority:"low",nonce:t},"string"==typeof o?i.href=a=o:(i.href=a=o.src,i.integrity=c="string"==typeof o.integrity?o.integrity:void 0,i.crossOrigin=s="string"==typeof o||null==o.crossOrigin?void 0:"use-credentials"===o.crossOrigin?"use-credentials":""),o=e,n=a,o.scriptResources[n]=null,o.moduleScriptResources[n]=null,ek(o=[],i),r.bootstrapScripts.add(o),l.push(N,p(S(a))),t&&l.push(F,p(S(t))),"string"==typeof c&&l.push(z,p(S(c))),"string"==typeof s&&l.push(B,p(S(s))),l.push(H);return r}(Y,t?t.nonce:void 0,t?t.unstable_externalRuntimeSrc:void 0,t?t.importMap:void 0,$,t?t.maxHeadersLength:void 0),b=G("http://www.w3.org/2000/svg"===(d=t?t.namespaceURI:void 0)?3:"http://www.w3.org/1998/Math/MathML"===d?4:0,null,0),v=t?t.progressiveChunkSize:void 0,y=t?t.onError:void 0,x=A,w=function(){var e=new ReadableStream({type:"bytes",pull:function(e){if(1===K.status)K.status=2,m(e,K.fatalError);else if(2!==K.status&&null===K.destination){K.destination=e;try{iq(K,e)}catch(e){iE(K,e),iS(K,e)}}},cancel:function(e){K.destination=null,iX(K,e)}},{highWaterMark:0});e.allReady=L,n(e)},k=function(e){L.catch(function(){}),i(e)},_=O,E=t?t.onPostpone:void 0,C=t?t.formState:void 0,I.current=R,P=[],(g=i_(h={destination:null,flushScheduled:!1,resumableState:h,renderState:g,rootFormatContext:b,progressiveChunkSize:void 0===v?12800:v,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:T=new Set,pingedTasks:P,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],trackedPostpones:null,onError:void 0===y?ig:y,onPostpone:void 0===E?ib:E,onAllReady:void 0===x?ib:x,onShellReady:void 0===w?ib:w,onShellError:void 0===k?ib:k,onFatalError:void 0===_?ib:_,formState:void 0===C?null:C},0,null,b,!1,!1)).parentFlushed=!0,u=iw(h,null,u,-1,null,g,T,null,b,nC,null,n$),P.push(u),h);if(t&&t.signal){var J=t.signal;if(J.aborted)iX(K,J.reason);else{var Z=function(){iX(K,J.reason),J.removeEventListener("abort",Z)};J.addEventListener("abort",Z)}}K.flushScheduled=null!==K.destination,iz(K),null===K.trackedPostpones&&nr(K.renderState,K.resumableState,0===K.pendingRootTasks)})},t.version="18.3.0-canary-746890329-20231108"},42291:function(e,t,n){"use strict";var i=n(3458);t.createRoot=i.createRoot,t.hydrateRoot=i.hydrateRoot},3458:function(e,t,n){"use strict";(function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}})(),e.exports=n(510)},13920:function(e,t,n){"use strict";var i,r;i=n(74355),r=n(6583),t.version=i.version,t.renderToString=i.renderToString,t.renderToStaticMarkup=i.renderToStaticMarkup,t.renderToNodeStream=i.renderToNodeStream,t.renderToStaticNodeStream=i.renderToStaticNodeStream,t.renderToReadableStream=r.renderToReadableStream,r.resume&&(t.resume=r.resume)},31337:function(e,t,n){"use strict";var i=n(3458),r=n(7653),o={stream:!0},a=new Map;function s(e){var t=n(e);return"function"!=typeof t.then||"fulfilled"===t.status?null:(t.then(function(e){t.status="fulfilled",t.value=e},function(e){t.status="rejected",t.reason=e}),t)}function l(){}var c=new Map,d=n.u;n.u=function(e){var t=c.get(e);return void 0!==t?t:d(e)};var u=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Dispatcher,h=Symbol.for("react.element"),p=Symbol.for("react.provider"),f=Symbol.for("react.server_context"),m=Symbol.for("react.lazy"),g=Symbol.for("react.default_value"),b=Symbol.iterator,v=Array.isArray,y=Object.getPrototypeOf,x=Object.prototype,w=new WeakMap,k=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ContextRegistry;function _(e,t,n,i){this.status=e,this.value=t,this.reason=n,this._response=i}function E(e){switch(e.status){case"resolved_model":I(e);break;case"resolved_module":R(e)}switch(e.status){case"fulfilled":return e.value;case"pending":case"blocked":case"cyclic":throw e;default:throw e.reason}}function S(e,t){for(var n=0;n<e.length;n++)(0,e[n])(t)}function C(e,t,n){switch(e.status){case"fulfilled":S(t,e.value);break;case"pending":case"blocked":case"cyclic":e.value=t,e.reason=n;break;case"rejected":n&&S(n,e.reason)}}function P(e,t){if("pending"===e.status||"blocked"===e.status){var n=e.reason;e.status="rejected",e.reason=t,null!==n&&S(n,t)}}function T(e,t){if("pending"===e.status||"blocked"===e.status){var n=e.value,i=e.reason;e.status="resolved_module",e.value=t,null!==n&&(R(e),C(e,n,i))}}_.prototype=Object.create(Promise.prototype),_.prototype.then=function(e,t){switch(this.status){case"resolved_model":I(this);break;case"resolved_module":R(this)}switch(this.status){case"fulfilled":e(this.value);break;case"pending":case"blocked":case"cyclic":e&&(null===this.value&&(this.value=[]),this.value.push(e)),t&&(null===this.reason&&(this.reason=[]),this.reason.push(t));break;default:t(this.reason)}};var O=null,A=null;function I(e){var t=O,n=A;O=e,A=null;var i=e.value;e.status="cyclic",e.value=null,e.reason=null;try{var r=JSON.parse(i,e._response._fromJSON);if(null!==A&&0<A.deps)A.value=r,e.status="blocked",e.value=null,e.reason=null;else{var o=e.value;e.status="fulfilled",e.value=r,null!==o&&S(o,r)}}catch(t){e.status="rejected",e.reason=t}finally{O=t,A=n}}function R(e){try{var t=e.value,i=n(t[0]);if(4===t.length&&"function"==typeof i.then){if("fulfilled"===i.status)i=i.value;else throw i.reason}var r="*"===t[2]?i:""===t[2]?i.__esModule?i.default:i:i[t[2]];e.status="fulfilled",e.value=r}catch(t){e.status="rejected",e.reason=t}}function $(e,t){e._chunks.forEach(function(e){"pending"===e.status&&P(e,t)})}function L(e,t){var n=e._chunks,i=n.get(t);return i||(i=new _("pending",null,null,e),n.set(t,i)),i}function M(e,t){if("resolved_model"===(e=L(e,t)).status&&I(e),"fulfilled"===e.status)return e.value;throw e.reason}function j(){throw Error('Trying to call a function from "use server" but the callServer option was not implemented in your router runtime.')}function D(e,t,n,i){var r;return(e={_bundlerConfig:e,_moduleLoading:t,_callServer:void 0!==n?n:j,_nonce:i,_chunks:new Map,_stringDecoder:new TextDecoder,_fromJSON:null,_rowState:0,_rowID:0,_rowTag:0,_rowLength:0,_buffer:[]})._fromJSON=(r=e,function(e,t){return"string"==typeof t?function(e,t,n,i){if("$"===i[0]){if("$"===i)return h;switch(i[1]){case"$":return i.slice(1);case"L":return{$$typeof:m,_payload:e=L(e,t=parseInt(i.slice(2),16)),_init:E};case"@":return L(e,t=parseInt(i.slice(2),16));case"S":return Symbol.for(i.slice(2));case"P":return k[e=i.slice(2)]||((t={$$typeof:f,_currentValue:g,_currentValue2:g,_defaultValue:g,_threadCount:0,Provider:null,Consumer:null,_globalName:e}).Provider={$$typeof:p,_context:t},k[e]=t),k[e].Provider;case"F":return t=M(e,t=parseInt(i.slice(2),16)),function(e,t){function n(){var e=Array.prototype.slice.call(arguments),n=t.bound;return n?"fulfilled"===n.status?i(t.id,n.value.concat(e)):Promise.resolve(n).then(function(n){return i(t.id,n.concat(e))}):i(t.id,e)}var i=e._callServer;return w.set(n,t),n}(e,t);case"Q":return e=M(e,t=parseInt(i.slice(2),16)),new Map(e);case"W":return e=M(e,t=parseInt(i.slice(2),16)),new Set(e);case"I":return 1/0;case"-":return"$-0"===i?-0:-1/0;case"N":return NaN;case"u":return;case"D":return new Date(Date.parse(i.slice(2)));case"n":return BigInt(i.slice(2));default:switch((e=L(e,i=parseInt(i.slice(1),16))).status){case"resolved_model":I(e);break;case"resolved_module":R(e)}switch(e.status){case"fulfilled":return e.value;case"pending":case"blocked":case"cyclic":var r;return i=O,e.then(function(e,t,n,i){if(A){var r=A;i||r.deps++}else r=A={deps:i?0:1,value:null};return function(i){t[n]=i,r.deps--,0===r.deps&&"blocked"===e.status&&(i=e.value,e.status="fulfilled",e.value=r.value,null!==i&&S(i,r.value))}}(i,t,n,"cyclic"===e.status),(r=i,function(e){return P(r,e)})),null;default:throw e.reason}}}return i}(r,this,e,t):"object"==typeof t&&null!==t?e=t[0]===h?{$$typeof:h,type:t[1],key:t[2],ref:null,props:t[3],_owner:null}:t:t}),e}function N(e,t){function i(t){$(e,t)}var r=t.getReader();r.read().then(function t(d){var h=d.value;if(d.done)$(e,Error("Connection closed."));else{var p=0,f=e._rowState,m=e._rowID,g=e._rowTag,b=e._rowLength;d=e._buffer;for(var v=h.length;p<v;){var y=-1;switch(f){case 0:58===(y=h[p++])?f=1:m=m<<4|(96<y?y-87:y-48);continue;case 1:84===(f=h[p])?(g=f,f=2,p++):64<f&&91>f?(g=f,f=3,p++):(g=0,f=3);continue;case 2:44===(y=h[p++])?f=4:b=b<<4|(96<y?y-87:y-48);continue;case 3:y=h.indexOf(10,p);break;case 4:(y=p+b)>h.length&&(y=-1)}var x=h.byteOffset+p;if(-1<y){p=new Uint8Array(h.buffer,x,y-p),b=e,x=g;var w=b._stringDecoder;g="";for(var k=0;k<d.length;k++)g+=w.decode(d[k],o);switch(g+=w.decode(p),x){case 73:!function(e,t,i){var r=e._chunks,o=r.get(t);i=JSON.parse(i,e._fromJSON);var d=function(e,t){if(e){var n=e[t[0]];if(e=n[t[2]])n=e.name;else{if(!(e=n["*"]))throw Error('Could not find the module "'+t[0]+'" in the React SSR Manifest. This is probably a bug in the React Server Components bundler.');n=t[2]}return 4===t.length?[e.id,e.chunks,n,1]:[e.id,e.chunks,n]}return t}(e._bundlerConfig,i);if(i=function(e){for(var t=e[1],i=[],r=0;r<t.length;){var o=t[r++],d=t[r++],u=a.get(o);void 0===u?(c.set(o,d),d=n.e(o),i.push(d),u=a.set.bind(a,o,null),d.then(u,l),a.set(o,d)):null!==u&&i.push(u)}return 4===e.length?0===i.length?s(e[0]):Promise.all(i).then(function(){return s(e[0])}):0<i.length?Promise.all(i):null}(d)){if(o){var u=o;u.status="blocked"}else u=new _("blocked",null,null,e),r.set(t,u);i.then(function(){return T(u,d)},function(e){return P(u,e)})}else o?T(o,d):r.set(t,new _("resolved_module",d,null,e))}(b,m,g);break;case 72:if(m=g[0],b=JSON.parse(g=g.slice(1),b._fromJSON),g=u.current)switch(m){case"D":g.prefetchDNS(b);break;case"C":"string"==typeof b?g.preconnect(b):g.preconnect(b[0],b[1]);break;case"L":m=b[0],p=b[1],3===b.length?g.preload(m,p,b[2]):g.preload(m,p);break;case"m":"string"==typeof b?g.preloadModule(b):g.preloadModule(b[0],b[1]);break;case"S":"string"==typeof b?g.preinitStyle(b):g.preinitStyle(b[0],0===b[1]?void 0:b[1],3===b.length?b[2]:void 0);break;case"X":"string"==typeof b?g.preinitScript(b):g.preinitScript(b[0],b[1]);break;case"M":"string"==typeof b?g.preinitModuleScript(b):g.preinitModuleScript(b[0],b[1])}break;case 69:p=(g=JSON.parse(g)).digest,(g=Error("An error occurred in the Server Components render. The specific message is omitted in production builds to avoid leaking sensitive details. A digest property is included on this error instance which may provide additional details about the nature of the error.")).stack="Error: "+g.message,g.digest=p,(x=(p=b._chunks).get(m))?P(x,g):p.set(m,new _("rejected",null,g,b));break;case 84:b._chunks.set(m,new _("fulfilled",g,null,b));break;default:(x=(p=b._chunks).get(m))?(b=x,m=g,"pending"===b.status&&(g=b.value,p=b.reason,b.status="resolved_model",b.value=m,null!==g&&(I(b),C(b,g,p)))):p.set(m,new _("resolved_model",g,null,b))}p=y,3===f&&p++,b=m=g=f=0,d.length=0}else{h=new Uint8Array(h.buffer,x,h.byteLength-p),d.push(h),b-=h.byteLength;break}}return e._rowState=f,e._rowID=m,e._rowTag=g,e._rowLength=b,r.read().then(t).catch(i)}}).catch(i)}t.createFromFetch=function(e,t){var n=D(null,null,t&&t.callServer?t.callServer:void 0,void 0);return e.then(function(e){N(n,e.body)},function(e){$(n,e)}),L(n,0)},t.createFromReadableStream=function(e,t){return N(t=D(null,null,t&&t.callServer?t.callServer:void 0,void 0),e),L(t,0)},t.createServerReference=function(e,t){function n(){var n=Array.prototype.slice.call(arguments);return t(e,n)}return w.set(n,{id:e,bound:null}),n},t.encodeReply=function(e){return new Promise(function(t,n){var i,r,o,a;r=1,o=0,a=null,i=JSON.stringify(i=e,function e(i,s){if(null===s)return null;if("object"==typeof s){if("function"==typeof s.then){null===a&&(a=new FormData),o++;var l,c,d=r++;return s.then(function(n){n=JSON.stringify(n,e);var i=a;i.append(""+d,n),0==--o&&t(i)},function(e){n(e)}),"$@"+d.toString(16)}if(v(s))return s;if(s instanceof FormData){null===a&&(a=new FormData);var u=a,h=""+(i=r++)+"_";return s.forEach(function(e,t){u.append(h+t,e)}),"$K"+i.toString(16)}if(s instanceof Map)return s=JSON.stringify(Array.from(s),e),null===a&&(a=new FormData),i=r++,a.append(""+i,s),"$Q"+i.toString(16);if(s instanceof Set)return s=JSON.stringify(Array.from(s),e),null===a&&(a=new FormData),i=r++,a.append(""+i,s),"$W"+i.toString(16);if(null===(c=s)||"object"!=typeof c?null:"function"==typeof(c=b&&c[b]||c["@@iterator"])?c:null)return Array.from(s);if((i=y(s))!==x&&(null===i||null!==y(i)))throw Error("Only plain objects, and a few built-ins, can be passed to Server Actions. Classes or null prototypes are not supported.");return s}if("string"==typeof s)return"Z"===s[s.length-1]&&this[i]instanceof Date?"$D"+s:s="$"===s[0]?"$"+s:s;if("boolean"==typeof s)return s;if("number"==typeof s)return Number.isFinite(l=s)?0===l&&-1/0==1/l?"$-0":l:1/0===l?"$Infinity":-1/0===l?"$-Infinity":"$NaN";if(void 0===s)return"$undefined";if("function"==typeof s){if(void 0!==(s=w.get(s)))return s=JSON.stringify(s,e),null===a&&(a=new FormData),i=r++,a.set(""+i,s),"$F"+i.toString(16);throw Error("Client Functions cannot be passed directly to Server Functions. Only Functions passed from the Server can be passed back again.")}if("symbol"==typeof s){if(Symbol.for(i=s.description)!==s)throw Error("Only global symbols received from Symbol.for(...) can be passed to Server Functions. The symbol Symbol.for("+s.description+") cannot be found among global symbols.");return"$S"+i}if("bigint"==typeof s)return"$n"+s.toString(10);throw Error("Type "+typeof s+" is not supported as an argument to a Server Function.")}),null===a?t(i):(a.set("0",i),0===o&&t(a))})}},62279:function(e,t,n){"use strict";e.exports=n(31337)},18786:function(e,t,n){"use strict";e.exports=n(62279)},88294:function(e,t,n){"use strict";var i=n(7653),r=Symbol.for("react.element"),o=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var i,o={},c=null,d=null;for(i in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(d=t.ref),t)a.call(t,i)&&!l.hasOwnProperty(i)&&(o[i]=t[i]);if(e&&e.defaultProps)for(i in t=e.defaultProps)void 0===o[i]&&(o[i]=t[i]);return{$$typeof:r,type:e,key:c,ref:d,props:o,_owner:s.current}}t.Fragment=o,t.jsx=c,t.jsxs=c},3547:function(e,t){"use strict";var n=Symbol.for("react.element"),i=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),p=Symbol.iterator,f={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,g={};function b(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||f}function v(){}function y(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||f}b.prototype.isReactComponent={},b.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)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")},b.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=b.prototype;var x=y.prototype=new v;x.constructor=y,m(x,b.prototype),x.isPureReactComponent=!0;var w=Array.isArray,k=Object.prototype.hasOwnProperty,_={current:null},E={key:!0,ref:!0,__self:!0,__source:!0};function S(e,t,i){var r,o={},a=null,s=null;if(null!=t)for(r in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)k.call(t,r)&&!E.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(1===l)o.children=i;else if(1<l){for(var c=Array(l),d=0;d<l;d++)c[d]=arguments[d+2];o.children=c}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===o[r]&&(o[r]=l[r]);return{$$typeof:n,type:e,key:a,ref:s,props:o,_owner:_.current}}function C(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var P=/\/+/g;function T(e,t){var n,i;return"object"==typeof e&&null!==e&&null!=e.key?(n=""+e.key,i={"=":"=0",":":"=2"},"$"+n.replace(/[=:]/g,function(e){return i[e]})):t.toString(36)}function O(e,t,r){if(null==e)return e;var o=[],a=0;return function e(t,r,o,a,s){var l,c,d,u=typeof t;("undefined"===u||"boolean"===u)&&(t=null);var h=!1;if(null===t)h=!0;else switch(u){case"string":case"number":h=!0;break;case"object":switch(t.$$typeof){case n:case i:h=!0}}if(h)return s=s(h=t),t=""===a?"."+T(h,0):a,w(s)?(o="",null!=t&&(o=t.replace(P,"$&/")+"/"),e(s,r,o,"",function(e){return e})):null!=s&&(C(s)&&(l=s,c=o+(!s.key||h&&h.key===s.key?"":(""+s.key).replace(P,"$&/")+"/")+t,s={$$typeof:n,type:l.type,key:c,ref:l.ref,props:l.props,_owner:l._owner}),r.push(s)),1;if(h=0,a=""===a?".":a+":",w(t))for(var f=0;f<t.length;f++){var m=a+T(u=t[f],f);h+=e(u,r,o,m,s)}else if("function"==typeof(m=null===(d=t)||"object"!=typeof d?null:"function"==typeof(d=p&&d[p]||d["@@iterator"])?d:null))for(t=m.call(t),f=0;!(u=t.next()).done;)m=a+T(u=u.value,f++),h+=e(u,r,o,m,s);else if("object"===u)throw Error("Objects are not valid as a React child (found: "+("[object Object]"===(r=String(t))?"object with keys {"+Object.keys(t).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.");return h}(e,o,"","",function(e){return t.call(r,e,a++)}),o}function A(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){(0===e._status||-1===e._status)&&(e._status=1,e._result=t)},function(t){(0===e._status||-1===e._status)&&(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var I={current:null};function R(){return new WeakMap}function $(){return{s:0,v:void 0,o:null,p:null}}var L={current:null},M={transition:null};t.Children={map:O,forEach:function(e,t,n){O(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return O(e,function(){t++}),t},toArray:function(e){return O(e,function(e){return e})||[]},only:function(e){if(!C(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=b,t.Fragment=r,t.Profiler=a,t.PureComponent=y,t.StrictMode=o,t.Suspense=d,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED={ReactCurrentDispatcher:L,ReactCurrentCache:I,ReactCurrentBatchConfig:M,ReactCurrentOwner:_},t.cache=function(e){return function(){var t=I.current;if(!t)return e.apply(null,arguments);var n=t.getCacheForType(R);void 0===(t=n.get(e))&&(t=$(),n.set(e,t)),n=0;for(var i=arguments.length;n<i;n++){var r=arguments[n];if("function"==typeof r||"object"==typeof r&&null!==r){var o=t.o;null===o&&(t.o=o=new WeakMap),void 0===(t=o.get(r))&&(t=$(),o.set(r,t))}else null===(o=t.p)&&(t.p=o=new Map),void 0===(t=o.get(r))&&(t=$(),o.set(r,t))}if(1===t.s)return t.v;if(2===t.s)throw t.v;try{var a=e.apply(null,arguments);return(n=t).s=1,n.v=a}catch(e){throw(a=t).s=2,a.v=e,e}}},t.cloneElement=function(e,t,i){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=m({},e.props),o=e.key,a=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,s=_.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)k.call(t,c)&&!E.hasOwnProperty(c)&&(r[c]=void 0===t[c]&&void 0!==l?l[c]:t[c])}var c=arguments.length-2;if(1===c)r.children=i;else if(1<c){l=Array(c);for(var d=0;d<c;d++)l[d]=arguments[d+2];r.children=l}return{$$typeof:n,type:e.type,key:o,ref:a,props:r,_owner:s}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=S,t.createFactory=function(e){var t=S.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:c,render:e}},t.isValidElement=C,t.lazy=function(e){return{$$typeof:h,_payload:{_status:-1,_result:e},_init:A}},t.memo=function(e,t){return{$$typeof:u,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=M.transition;M.transition={};try{e()}finally{M.transition=t}},t.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},t.unstable_useCacheRefresh=function(){return L.current.useCacheRefresh()},t.use=function(e){return L.current.use(e)},t.useCallback=function(e,t){return L.current.useCallback(e,t)},t.useContext=function(e){return L.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e,t){return L.current.useDeferredValue(e,t)},t.useEffect=function(e,t){return L.current.useEffect(e,t)},t.useId=function(){return L.current.useId()},t.useImperativeHandle=function(e,t,n){return L.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return L.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return L.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return L.current.useMemo(e,t)},t.useOptimistic=function(e,t){return L.current.useOptimistic(e,t)},t.useReducer=function(e,t,n){return L.current.useReducer(e,t,n)},t.useRef=function(e){return L.current.useRef(e)},t.useState=function(e){return L.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return L.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return L.current.useTransition()},t.version="18.3.0-canary-746890329-20231108"},7653:function(e,t,n){"use strict";e.exports=n(3547)},27573:function(e,t,n){"use strict";e.exports=n(88294)},47232:function(e,t){"use strict";function n(e,t){var n=e.length;for(e.push(t);0<n;){var i=n-1>>>1,r=e[i];if(0<o(r,t))e[i]=t,e[n]=r,n=i;else break}}function i(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;for(var i=0,r=e.length,a=r>>>1;i<a;){var s=2*(i+1)-1,l=e[s],c=s+1,d=e[c];if(0>o(l,n))c<r&&0>o(d,l)?(e[i]=d,e[c]=n,i=c):(e[i]=l,e[s]=n,i=s);else if(c<r&&0>o(d,n))e[i]=d,e[c]=n,i=c;else break}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if(t.unstable_now=void 0,"object"==typeof performance&&"function"==typeof performance.now){var a,s=performance;t.unstable_now=function(){return s.now()}}else{var l=Date,c=l.now();t.unstable_now=function(){return l.now()-c}}var d=[],u=[],h=1,p=null,f=3,m=!1,g=!1,b=!1,v="function"==typeof setTimeout?setTimeout:null,y="function"==typeof clearTimeout?clearTimeout:null,x="undefined"!=typeof setImmediate?setImmediate:null;function w(e){for(var t=i(u);null!==t;){if(null===t.callback)r(u);else if(t.startTime<=e)r(u),t.sortIndex=t.expirationTime,n(d,t);else break;t=i(u)}}function k(e){if(b=!1,w(e),!g){if(null!==i(d))g=!0,I();else{var t=i(u);null!==t&&R(k,t.startTime-e)}}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var _=!1,E=-1,S=5,C=-1;function P(){return!(t.unstable_now()-C<S)}function T(){if(_){var e=t.unstable_now();C=e;var n=!0;try{e:{g=!1,b&&(b=!1,y(E),E=-1),m=!0;var o=f;try{t:{for(w(e),p=i(d);null!==p&&!(p.expirationTime>e&&P());){var s=p.callback;if("function"==typeof s){p.callback=null,f=p.priorityLevel;var l=s(p.expirationTime<=e);if(e=t.unstable_now(),"function"==typeof l){p.callback=l,w(e),n=!0;break t}p===i(d)&&r(d),w(e)}else r(d);p=i(d)}if(null!==p)n=!0;else{var c=i(u);null!==c&&R(k,c.startTime-e),n=!1}}break e}finally{p=null,f=o,m=!1}n=void 0}}finally{n?a():_=!1}}}if("function"==typeof x)a=function(){x(T)};else if("undefined"!=typeof MessageChannel){var O=new MessageChannel,A=O.port2;O.port1.onmessage=T,a=function(){A.postMessage(null)}}else a=function(){v(T,0)};function I(){_||(_=!0,a())}function R(e,n){E=v(function(){e(t.unstable_now())},n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){g||m||(g=!0,I())},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):S=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return f},t.unstable_getFirstCallbackNode=function(){return i(d)},t.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},t.unstable_scheduleCallback=function(e,r,o){var a=t.unstable_now();switch(o="object"==typeof o&&null!==o&&"number"==typeof(o=o.delay)&&0<o?a+o:a,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=o+s,e={id:h++,callback:r,priorityLevel:e,startTime:o,expirationTime:s,sortIndex:-1},o>a?(e.sortIndex=o,n(u,e),null===i(d)&&e===i(u)&&(b?(y(E),E=-1):b=!0,R(k,o-a))):(e.sortIndex=s,n(d,e),g||m||(g=!0,I())),e},t.unstable_shouldYield=P,t.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}},69397:function(e,t,n){"use strict";e.exports=n(47232)},85668:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{NEXT_QUERY_PARAM_PREFIX:function(){return n},PRERENDER_REVALIDATE_HEADER:function(){return i},PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER:function(){return r},NEXT_DID_POSTPONE_HEADER:function(){return o},RSC_PREFETCH_SUFFIX:function(){return a},RSC_SUFFIX:function(){return s},NEXT_CACHE_TAGS_HEADER:function(){return l},NEXT_CACHE_SOFT_TAGS_HEADER:function(){return c},NEXT_CACHE_REVALIDATED_TAGS_HEADER:function(){return d},NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER:function(){return u},NEXT_CACHE_TAG_MAX_LENGTH:function(){return h},NEXT_CACHE_SOFT_TAG_MAX_LENGTH:function(){return p},NEXT_CACHE_IMPLICIT_TAG_ID:function(){return f},CACHE_ONE_YEAR:function(){return m},MIDDLEWARE_FILENAME:function(){return g},MIDDLEWARE_LOCATION_REGEXP:function(){return b},INSTRUMENTATION_HOOK_FILENAME:function(){return v},PAGES_DIR_ALIAS:function(){return y},DOT_NEXT_ALIAS:function(){return x},ROOT_DIR_ALIAS:function(){return w},APP_DIR_ALIAS:function(){return k},RSC_MOD_REF_PROXY_ALIAS:function(){return _},RSC_ACTION_VALIDATE_ALIAS:function(){return E},RSC_ACTION_PROXY_ALIAS:function(){return S},RSC_ACTION_ENCRYPTION_ALIAS:function(){return C},RSC_ACTION_CLIENT_WRAPPER_ALIAS:function(){return P},PUBLIC_DIR_MIDDLEWARE_CONFLICT:function(){return T},SSG_GET_INITIAL_PROPS_CONFLICT:function(){return O},SERVER_PROPS_GET_INIT_PROPS_CONFLICT:function(){return A},SERVER_PROPS_SSG_CONFLICT:function(){return I},STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR:function(){return R},SERVER_PROPS_EXPORT_ERROR:function(){return $},GSP_NO_RETURNED_VALUE:function(){return L},GSSP_NO_RETURNED_VALUE:function(){return M},UNSTABLE_REVALIDATE_RENAME_ERROR:function(){return j},GSSP_COMPONENT_MEMBER_ERROR:function(){return D},NON_STANDARD_NODE_ENV:function(){return N},SSG_FALLBACK_EXPORT_ERROR:function(){return F},ESLINT_DEFAULT_DIRS:function(){return z},ESLINT_PROMPT_VALUES:function(){return B},SERVER_RUNTIME:function(){return H},WEBPACK_LAYERS:function(){return V},WEBPACK_RESOURCE_QUERIES:function(){return W}});let n="nxtP",i="x-prerender-revalidate",r="x-prerender-revalidate-if-generated",o="x-nextjs-postponed",a=".prefetch.rsc",s=".rsc",l="x-next-cache-tags",c="x-next-cache-soft-tags",d="x-next-revalidated-tags",u="x-next-revalidate-tag-token",h=256,p=1024,f="_N_T_",m=31536e3,g="middleware",b=`(?:src/)?${g}`,v="instrumentation",y="private-next-pages",x="private-dot-next",w="private-next-root-dir",k="private-next-app-dir",_="private-next-rsc-mod-ref-proxy",E="private-next-rsc-action-validate",S="private-next-rsc-action-proxy",C="private-next-rsc-action-encryption",P="private-next-rsc-action-client-wrapper",T="You can not have a '_next' folder inside of your public folder. This conflicts with the internal '/_next' route. https://nextjs.org/docs/messages/public-next-folder-conflict",O="You can not use getInitialProps with getStaticProps. To use SSG, please remove your getInitialProps",A="You can not use getInitialProps with getServerSideProps. Please remove getInitialProps.",I="You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps",R="can not have getInitialProps/getServerSideProps, https://nextjs.org/docs/messages/404-get-initial-props",$="pages with `getServerSideProps` can not be exported. See more info here: https://nextjs.org/docs/messages/gssp-export",L="Your `getStaticProps` function did not return an object. Did you forget to add a `return`?",M="Your `getServerSideProps` function did not return an object. Did you forget to add a `return`?",j="The `unstable_revalidate` property is available for general use.\nPlease use `revalidate` instead.",D="can not be attached to a page's component and must be exported from the page. See more info here: https://nextjs.org/docs/messages/gssp-component-member",N='You are using a non-standard "NODE_ENV" value in your environment. This creates inconsistencies in the project and is strongly advised against. Read more: https://nextjs.org/docs/messages/non-standard-node-env',F="Pages with `fallback` enabled in `getStaticPaths` can not be exported. See more info here: https://nextjs.org/docs/messages/ssg-fallback-true-export",z=["app","pages","components","lib","src"],B=[{title:"Strict",recommended:!0,config:{extends:"next/core-web-vitals"}},{title:"Base",config:{extends:"next"}},{title:"Cancel",config:null}],H={edge:"edge",experimentalEdge:"experimental-edge",nodejs:"nodejs"},U={shared:"shared",reactServerComponents:"rsc",serverSideRendering:"ssr",actionBrowser:"action-browser",api:"api",middleware:"middleware",edgeAsset:"edge-asset",appPagesBrowser:"app-pages-browser",appMetadataRoute:"app-metadata-route",appRouteHandler:"app-route-handler"},V={...U,GROUP:{server:[U.reactServerComponents,U.actionBrowser,U.appMetadataRoute,U.appRouteHandler],nonClientServerTarget:[U.middleware,U.api],app:[U.reactServerComponents,U.actionBrowser,U.appMetadataRoute,U.appRouteHandler,U.serverSideRendering,U.appPagesBrowser]}},W={edgeSSREntry:"__next_edge_ssr_entry__",metadata:"__next_metadata__",metadataRoute:"__next_metadata_route__",metadataImageMeta:"__next_metadata_image_meta__"}},1863:function(e,t){"use strict";function n(e){return"/api"===e||!!(null==e?void 0:e.startsWith("/api/"))}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isAPIRoute",{enumerable:!0,get:function(){return n}})},93775:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return r},getProperError:function(){return o}});let i=n(76207);function r(e){return"object"==typeof e&&null!==e&&"name"in e&&"message"in e}function o(e){return r(e)?e:Error((0,i.isPlainObject)(e)?JSON.stringify(e):e+"")}},39441:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSegmentParam",{enumerable:!0,get:function(){return r}});let i=n(12743);function r(e){let t=i.INTERCEPTION_ROUTE_MARKERS.find(t=>e.startsWith(t));return(t&&(e=e.slice(t.length)),e.startsWith("[[...")&&e.endsWith("]]"))?{type:"optional-catchall",param:e.slice(5,-2)}:e.startsWith("[...")&&e.endsWith("]")?{type:"catchall",param:e.slice(4,-1)}:e.startsWith("[")&&e.endsWith("]")?{type:"dynamic",param:e.slice(1,-1)}:null}},12743:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{INTERCEPTION_ROUTE_MARKERS:function(){return r},isInterceptionRouteAppPath:function(){return o},extractInterceptionRouteInformation:function(){return a}});let i=n(85919),r=["(..)(..)","(.)","(..)","(...)"];function o(e){return void 0!==e.split("/").find(e=>r.find(t=>e.startsWith(t)))}function a(e){let t,n,o;for(let i of e.split("/"))if(n=r.find(e=>i.startsWith(e))){[t,o]=e.split(n,2);break}if(!t||!n||!o)throw Error(`Invalid interception route: ${e}. Must be in the format /<intercepting route>/(..|...|..)(..)/<intercepted route>`);switch(t=(0,i.normalizeAppPath)(t),n){case"(.)":o="/"===t?`/${o}`:t+"/"+o;break;case"(..)":if("/"===t)throw Error(`Invalid interception route: ${e}. Cannot use (..) marker at the root level, use (.) instead.`);o=t.split("/").slice(0,-1).concat(o).join("/");break;case"(...)":o="/"+o;break;case"(..)(..)":let a=t.split("/");if(a.length<=2)throw Error(`Invalid interception route: ${e}. Cannot use (..)(..) marker at the root level or one level up.`);o=a.slice(0,-2).concat(o).join("/");break;default:throw Error("Invariant: unexpected marker")}return{interceptingRoute:t,interceptedRoute:o}}},32859:function(e,t,n){e.exports=n(47699)},2296:function(e,t,n){e.exports=n(60770)},78695:function(e,t,n){var i=n(6630);e.exports=function e(t,n,r){var a,s;return(i(n)||(r=n||r,n=[]),r=r||{},t instanceof RegExp)?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var i=0;i<n.length;i++)t.push({name:i,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return e.keys=t,e}(t,n):i(t)?function(t,n,i){for(var r,o=[],a=0;a<t.length;a++)o.push(e(t[a],n,i).source);return(r=RegExp("(?:"+o.join("|")+")",c(i))).keys=n,r}(t,n,r):(a=n,d(o(t,s=r),a,s))},e.exports.parse=o,e.exports.compile=function(e,t){return s(o(e,t),t)},e.exports.tokensToFunction=s,e.exports.tokensToRegExp=d;var r=RegExp("(\\\\.)|([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))","g");function o(e,t){for(var n,i=[],o=0,a=0,s="",c=t&&t.delimiter||"/";null!=(n=r.exec(e));){var d=n[0],u=n[1],h=n.index;if(s+=e.slice(a,h),a=h+d.length,u){s+=u[1];continue}var p=e[a],f=n[2],m=n[3],g=n[4],b=n[5],v=n[6],y=n[7];s&&(i.push(s),s="");var x=null!=f&&null!=p&&p!==f,w="+"===v||"*"===v,k="?"===v||"*"===v,_=n[2]||c,E=g||b;i.push({name:m||o++,prefix:f||"",delimiter:_,optional:k,repeat:w,partial:x,asterisk:!!y,pattern:E?E.replace(/([=!:$\/()])/g,"\\$1"):y?".*":"[^"+l(_)+"]+?"})}return a<e.length&&(s+=e.substr(a)),s&&i.push(s),i}function a(e){return encodeURI(e).replace(/[\/?#]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function s(e,t){for(var n=Array(e.length),r=0;r<e.length;r++)"object"==typeof e[r]&&(n[r]=RegExp("^(?:"+e[r].pattern+")$",c(t)));return function(t,r){for(var o="",s=t||{},l=(r||{}).pretty?a:encodeURIComponent,c=0;c<e.length;c++){var d,u=e[c];if("string"==typeof u){o+=u;continue}var h=s[u.name];if(null==h){if(u.optional){u.partial&&(o+=u.prefix);continue}throw TypeError('Expected "'+u.name+'" to be defined')}if(i(h)){if(!u.repeat)throw TypeError('Expected "'+u.name+'" to not repeat, but received `'+JSON.stringify(h)+"`");if(0===h.length){if(u.optional)continue;throw TypeError('Expected "'+u.name+'" to not be empty')}for(var p=0;p<h.length;p++){if(d=l(h[p]),!n[c].test(d))throw TypeError('Expected all "'+u.name+'" to match "'+u.pattern+'", but received `'+JSON.stringify(d)+"`");o+=(0===p?u.prefix:u.delimiter)+d}continue}if(d=u.asterisk?encodeURI(h).replace(/[?#]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}):l(h),!n[c].test(d))throw TypeError('Expected "'+u.name+'" to match "'+u.pattern+'", but received "'+d+'"');o+=u.prefix+d}return o}}function l(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function c(e){return e&&e.sensitive?"":"i"}function d(e,t,n){i(t)||(n=t||n,t=[]);for(var r,o,a=(n=n||{}).strict,s=!1!==n.end,d="",u=0;u<e.length;u++){var h=e[u];if("string"==typeof h)d+=l(h);else{var p=l(h.prefix),f="(?:"+h.pattern+")";t.push(h),h.repeat&&(f+="(?:"+p+f+")*"),d+=f=h.optional?h.partial?p+"("+f+")?":"(?:"+p+"("+f+"))?":p+"("+f+")"}}var m=l(n.delimiter||"/"),g=d.slice(-m.length)===m;return a||(d=(g?d.slice(0,-m.length):d)+"(?:"+m+"(?=$))?"),s?d+="$":d+=a&&g?"":"(?="+m+"|$)",r=RegExp("^"+d,c(n)),o=t,r.keys=o,r}},6630:function(e){e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},80171:function(e,t,n){"use strict";function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach(function(t){c(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function l(e,t,n){return t&&s(e.prototype,t),n&&s(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(i=n.next()).done)&&(o.push(i.value),!t||o.length!==t);a=!0);}catch(e){s=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw r}}return o}}(e,t)||h(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e){return function(e){if(Array.isArray(e))return p(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||h(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){if(e){if("string"==typeof e)return p(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(e,t):void 0}}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function f(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=h(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}n.d(t,{ZP:function(){return i3}});var m={DEBUG:!1,LIB_VERSION:"1.135.2"},g=Array.isArray,b=Object.prototype,v=b.hasOwnProperty,y=b.toString,x=g||function(e){return"[object Array]"===y.call(e)},w=function(e){return"function"==typeof e},k=function(e){return e===Object(e)&&!x(e)},_=function(e){if(k(e)){for(var t in e)if(v.call(e,t))return!1;return!0}return!1},E=function(e){return void 0===e},S=function(e){return"[object String]"==y.call(e)},C=function(e){return null===e},P=function(e){return E(e)||C(e)},T=function(e){return"[object Number]"==y.call(e)},O=function(e){return"[object Boolean]"===y.call(e)},A="undefined"!=typeof window?window:void 0,I="undefined"!=typeof globalThis?globalThis:A,R=Array.prototype,$=R.forEach,L=R.indexOf,M=null==I?void 0:I.navigator,j=null==I?void 0:I.document,D=null==I?void 0:I.location,N=null==I?void 0:I.fetch,F=null!=I&&I.XMLHttpRequest&&"withCredentials"in new I.XMLHttpRequest?I.XMLHttpRequest:void 0,z=null==I?void 0:I.AbortController,B=null==M?void 0:M.userAgent,H=null!=A?A:{},U="[PostHog.js]",V={_log:function(e){if(A&&(m.DEBUG||H.POSTHOG_DEBUG)&&!E(A.console)&&A.console){for(var t=("__rrweb_original__"in A.console[e])?A.console[e].__rrweb_original__:A.console[e],n=arguments.length,i=Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];t.apply(void 0,[U].concat(i))}},info:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];V._log.apply(V,["log"].concat(t))},warn:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];V._log.apply(V,["warn"].concat(t))},error:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];V._log.apply(V,["error"].concat(t))},critical:function(){for(var e,t=arguments.length,n=Array(t),i=0;i<t;i++)n[i]=arguments[i];(e=console).error.apply(e,[U].concat(n))},uninitializedWarning:function(e){V.error("You must initialize PostHog before calling ".concat(e))}},W={},q=function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")};function G(e,t,n){if(x(e)){if($&&e.forEach===$)e.forEach(t,n);else if("length"in e&&e.length===+e.length){for(var i=0,r=e.length;i<r;i++)if(i in e&&t.call(n,e[i],i)===W)return}}}function X(e,t,n){if(!P(e)){if(x(e))return G(e,t,n);if(e instanceof FormData){var i,r=f(e.entries());try{for(r.s();!(i=r.n()).done;){var o=i.value;if(t.call(n,o[1],o[0])===W)return}}catch(e){r.e(e)}finally{r.f()}}else for(var a in e)if(v.call(e,a)&&t.call(n,e[a],a)===W)return}}var Y=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return G(n,function(t){for(var n in t)void 0!==t[n]&&(e[n]=t[n])}),e};function K(e,t){return -1!==e.indexOf(t)}function J(e){for(var t=Object.keys(e),n=t.length,i=Array(n);n--;)i[n]=[t[n],e[t[n]]];return i}var Z,Q=function(){return Date.now=Date.now||function(){return+new Date},Date.now()},ee=function(e){try{return e()}catch(e){return}},et=function(e){return function(){try{for(var t=arguments.length,n=Array(t),i=0;i<t;i++)n[i]=arguments[i];return e.apply(this,n)}catch(e){V.critical("Implementation error. Please turn on debug mode and open a ticket on https://app.posthog.com/home#panel=support%3Asupport%3A."),V.critical(e)}}},en=function(e){var t={};return X(e,function(e,n){S(e)&&e.length>0&&(t[n]=e)}),t},ei=function(e){var t,n,i,r,o="";for(t=n=0,i=(e=(e+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n")).length,r=0;r<i;r++){var a=e.charCodeAt(r),s=null;a<128?n++:s=a>127&&a<2048?String.fromCharCode(a>>6|192,63&a|128):String.fromCharCode(a>>12|224,a>>6&63|128,63&a|128),C(s)||(n>t&&(o+=e.substring(t,n)),o+=s,t=n=r+1)}return n>t&&(o+=e.substring(t,e.length)),o},er=function(){function e(t){return t&&(t.preventDefault=e.preventDefault,t.stopPropagation=e.stopPropagation),t}return e.preventDefault=function(){this.returnValue=!1},e.stopPropagation=function(){this.cancelBubble=!0},function(t,n,i,r,o){if(t){if(t.addEventListener&&!r)t.addEventListener(n,i,!!o);else{var a="on"+n,s=t[a];t[a]=function(n){if(n=n||e(null==A?void 0:A.event)){var r,o=!0;w(s)&&(r=s(n));var a=i.call(t,n);return!1!==r&&!1!==a||(o=!1),o}}}}else V.error("No valid element provided to register_event")}}();function eo(e,t){var n=function(){if(!j)return t("document not found");var n=j.createElement("script");n.type="text/javascript",n.src=e,n.onload=function(e){return t(void 0,e)},n.onerror=function(e){return t(e)};var i,r=j.querySelectorAll("body > script");r.length>0?null===(i=r[0].parentNode)||void 0===i||i.insertBefore(n,r[0]):j.body.appendChild(n)};null!=j&&j.body?n():null==j||j.addEventListener("DOMContentLoaded",n)}(eH=Z||(Z={})).GZipJS="gzip-js",eH.Base64="base64";var ea="$people_distinct_id",es="__alias",el="__timers",ec="$autocapture_disabled_server_side",ed="$heatmaps_enabled_server_side",eu="$session_recording_enabled_server_side",eh="$console_log_recording_enabled_server_side",ep="$session_recording_network_payload_capture",ef="$session_recording_canvas_recording",em="$replay_sample_rate",eg="$replay_minimum_duration",eb="$sesid",ev="$session_is_sampled",ey="$enabled_feature_flags",ex="$early_access_features",ew="$stored_person_properties",ek="$stored_group_properties",e_="$surveys",eE="$flag_call_reported",eS="$user_state",eC="$client_session_props",eP="$capture_rate_limit",eT="$initial_campaign_params",eO="$initial_referrer_info",eA="$epp",eI="__POSTHOG_TOOLBAR__",eR=[ea,es,"__cmpns",el,eu,ed,eb,ey,eS,ex,ek,ew,e_,eE,eC,eP,eT,eO,eA],e$="$active_feature_flags",eL="$override_feature_flags",eM="$feature_flag_payloads",ej=function(e){var t,n={},i=f(J(e||{}));try{for(i.s();!(t=i.n()).done;){var r=d(t.value,2),o=r[0],a=r[1];a&&(n[o]=a)}}catch(e){i.e(e)}finally{i.f()}return n},eD=function(){function e(t){a(this,e),this.instance=t,this._override_warning=!1,this.featureFlagEventHandlers=[],this.reloadFeatureFlagsQueued=!1,this.reloadFeatureFlagsInAction=!1}return l(e,[{key:"getFlags",value:function(){return Object.keys(this.getFlagVariants())}},{key:"getFlagVariants",value:function(){var e=this.instance.get_property(ey),t=this.instance.get_property(eL);if(!t)return e||{};for(var n=Y({},e),i=Object.keys(t),r=0;r<i.length;r++)n[i[r]]=t[i[r]];return this._override_warning||(V.warn(" Overriding feature flags!",{enabledFlags:e,overriddenFlags:t,finalFlags:n}),this._override_warning=!0),n}},{key:"getFlagPayloads",value:function(){return this.instance.get_property(eM)||{}}},{key:"reloadFeatureFlags",value:function(){this.reloadFeatureFlagsQueued||(this.reloadFeatureFlagsQueued=!0,this._startReloadTimer())}},{key:"setAnonymousDistinctId",value:function(e){this.$anon_distinct_id=e}},{key:"setReloadingPaused",value:function(e){this.reloadFeatureFlagsInAction=e}},{key:"resetRequestQueue",value:function(){this.reloadFeatureFlagsQueued=!1}},{key:"_startReloadTimer",value:function(){var e=this;this.reloadFeatureFlagsQueued&&!this.reloadFeatureFlagsInAction&&setTimeout(function(){!e.reloadFeatureFlagsInAction&&e.reloadFeatureFlagsQueued&&(e.reloadFeatureFlagsQueued=!1,e._reloadFeatureFlagsRequest())},5)}},{key:"_reloadFeatureFlagsRequest",value:function(){var e=this;if(!this.instance.config.advanced_disable_feature_flags){this.setReloadingPaused(!0);var t=this.instance.config.token,n=this.instance.get_property(ew),i=this.instance.get_property(ek),r={token:t,distinct_id:this.instance.get_distinct_id(),groups:this.instance.getGroups(),$anon_distinct_id:this.$anon_distinct_id,person_properties:n,group_properties:i,disable_flags:this.instance.config.advanced_disable_feature_flags||void 0};this.instance._send_request({method:"POST",url:this.instance.requestRouter.endpointFor("api","/decide/?v=3"),data:r,compression:this.instance.config.disable_compression?void 0:Z.Base64,timeout:this.instance.config.feature_flag_request_timeout_ms,callback:function(t){e.setReloadingPaused(!1);var n,i=!0;200===t.statusCode&&(e.$anon_distinct_id=void 0,i=!1),e.receivedFeatureFlags(null!==(n=t.json)&&void 0!==n?n:{},i),e._startReloadTimer()}})}}},{key:"getFeatureFlag",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.instance.decideEndpointWasHit||this.getFlags()&&this.getFlags().length>0){var n,i=this.getFlagVariants()[e],r="".concat(i),o=this.instance.get_property(eE)||{};return!t.send_event&&"send_event"in t||e in o&&o[e].includes(r)||(x(o[e])?o[e].push(r):o[e]=[r],null===(n=this.instance.persistence)||void 0===n||n.register(c({},eE,o)),this.instance.capture("$feature_flag_called",{$feature_flag:e,$feature_flag_response:i})),i}V.warn('getFeatureFlag for key "'+e+"\" failed. Feature flags didn't load in time.")}},{key:"getFeatureFlagPayload",value:function(e){return this.getFlagPayloads()[e]}},{key:"isFeatureEnabled",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.instance.decideEndpointWasHit||this.getFlags()&&this.getFlags().length>0)return!!this.getFeatureFlag(e,t);V.warn('isFeatureEnabled for key "'+e+"\" failed. Feature flags didn't load in time.")}},{key:"addFeatureFlagsHandler",value:function(e){this.featureFlagEventHandlers.push(e)}},{key:"removeFeatureFlagsHandler",value:function(e){this.featureFlagEventHandlers=this.featureFlagEventHandlers.filter(function(t){return t!==e})}},{key:"receivedFeatureFlags",value:function(e,t){if(this.instance.persistence){this.instance.decideEndpointWasHit=!0;var n=this.getFlagVariants(),i=this.getFlagPayloads();(function(e,t){var n,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=e.featureFlags,s=e.featureFlagPayloads;if(a){if(x(a)){var l,d={};if(a)for(var u=0;u<a.length;u++)d[a[u]]=!0;t&&t.register((c(l={},e$,a),c(l,ey,d),l))}else{var h=a,p=s;e.errorsWhileComputingFlags&&(h=r(r({},i),h),p=r(r({},o),p)),t&&t.register((c(n={},e$,Object.keys(ej(h))),c(n,ey,h||{}),c(n,eM,p||{}),n))}}})(e,this.instance.persistence,n,i),this._fireFeatureFlagsCallbacks(t)}}},{key:"override",value:function(e){if(!this.instance.__loaded||!this.instance.persistence)return V.uninitializedWarning("posthog.feature_flags.override");if(this._override_warning=!1,!1===e)this.instance.persistence.unregister(eL);else if(x(e)){for(var t={},n=0;n<e.length;n++)t[e[n]]=!0;this.instance.persistence.register(c({},eL,t))}else this.instance.persistence.register(c({},eL,e))}},{key:"onFeatureFlags",value:function(e){var t=this;if(this.addFeatureFlagsHandler(e),this.instance.decideEndpointWasHit){var n=this._prepareFeatureFlagsForCallbacks();e(n.flags,n.flagVariants)}return function(){return t.removeFeatureFlagsHandler(e)}}},{key:"updateEarlyAccessFeatureEnrollment",value:function(e,t){var n,i,o=c({},"$feature_enrollment/".concat(e),t);this.instance.capture("$feature_enrollment_update",{$feature_flag:e,$feature_enrollment:t,$set:o}),this.setPersonPropertiesForFlags(o,!1);var a=r(r({},this.getFlagVariants()),{},c({},e,t));null===(n=this.instance.persistence)||void 0===n||n.register((c(i={},e$,Object.keys(ej(a))),c(i,ey,a),i)),this._fireFeatureFlagsCallbacks()}},{key:"getEarlyAccessFeatures",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.instance.get_property(ex);if(i&&!n)return e(i);this.instance._send_request({transport:"XHR",url:this.instance.requestRouter.endpointFor("api","/api/early_access_features/?token=".concat(this.instance.config.token)),method:"GET",callback:function(n){var i;if(n.json){var r=n.json.earlyAccessFeatures;return null===(i=t.instance.persistence)||void 0===i||i.register(c({},ex,r)),e(r)}}})}},{key:"_prepareFeatureFlagsForCallbacks",value:function(){var e=this.getFlags(),t=this.getFlagVariants();return{flags:e.filter(function(e){return t[e]}),flagVariants:Object.keys(t).filter(function(e){return t[e]}).reduce(function(e,n){return e[n]=t[n],e},{})}}},{key:"_fireFeatureFlagsCallbacks",value:function(e){var t=this._prepareFeatureFlagsForCallbacks(),n=t.flags,i=t.flagVariants;this.featureFlagEventHandlers.forEach(function(t){return t(n,i,{errorsLoading:e})})}},{key:"setPersonPropertiesForFlags",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.instance.get_property(ew)||{};this.instance.register(c({},ew,r(r({},n),e))),t&&this.instance.reloadFeatureFlags()}},{key:"resetPersonPropertiesForFlags",value:function(){this.instance.unregister(ew)}},{key:"setGroupPropertiesForFlags",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.instance.get_property(ek)||{};0!==Object.keys(n).length&&Object.keys(n).forEach(function(t){n[t]=r(r({},n[t]),e[t]),delete e[t]}),this.instance.register(c({},ek,r(r({},n),e))),t&&this.instance.reloadFeatureFlags()}},{key:"resetGroupPropertiesForFlags",value:function(e){if(e){var t=this.instance.get_property(ek)||{};this.instance.register(c({},ek,r(r({},t),{},c({},e,{}))))}else this.instance.unregister(ek)}}]),e}();Math.trunc||(Math.trunc=function(e){return e<0?Math.ceil(e):Math.floor(e)}),Number.isInteger||(Number.isInteger=function(e){return T(e)&&isFinite(e)&&Math.floor(e)===e});var eN="0123456789abcdef",eF=function(){function e(t){if(a(this,e),this.bytes=t,16!==t.length)throw TypeError("not 128-bit length")}return l(e,[{key:"toString",value:function(){for(var e="",t=0;t<this.bytes.length;t++)e=e+eN.charAt(this.bytes[t]>>>4)+eN.charAt(15&this.bytes[t]),3!==t&&5!==t&&7!==t&&9!==t||(e+="-");if(36!==e.length)throw Error("Invalid UUIDv7 was generated");return e}},{key:"clone",value:function(){return new e(this.bytes.slice(0))}},{key:"equals",value:function(e){return 0===this.compareTo(e)}},{key:"compareTo",value:function(e){for(var t=0;t<16;t++){var n=this.bytes[t]-e.bytes[t];if(0!==n)return Math.sign(n)}return 0}}],[{key:"fromFieldsV7",value:function(t,n,i,r){if(!Number.isInteger(t)||!Number.isInteger(n)||!Number.isInteger(i)||!Number.isInteger(r)||t<0||n<0||i<0||r<0||t>0xffffffffffff||n>4095||i>1073741823||r>4294967295)throw RangeError("invalid field value");var o=new Uint8Array(16);return o[0]=t/1099511627776,o[1]=t/4294967296,o[2]=t/16777216,o[3]=t/65536,o[4]=t/256,o[5]=t,o[6]=112|n>>>8,o[7]=n,o[8]=128|i>>>24,o[9]=i>>>16,o[10]=i>>>8,o[11]=i,o[12]=r>>>24,o[13]=r>>>16,o[14]=r>>>8,o[15]=r,new e(o)}}]),e}(),ez=function(){function e(){a(this,e),c(this,"timestamp",0),c(this,"counter",0),c(this,"random",new eW)}return l(e,[{key:"generate",value:function(){var e=this.generateOrAbort();if(E(e)){this.timestamp=0;var t=this.generateOrAbort();if(E(t))throw Error("Could not generate UUID after timestamp reset");return t}return e}},{key:"generateOrAbort",value:function(){var e=Date.now();if(e>this.timestamp)this.timestamp=e,this.resetCounter();else{if(!(e+1e4>this.timestamp))return;this.counter++,this.counter>4398046511103&&(this.timestamp++,this.resetCounter())}return eF.fromFieldsV7(this.timestamp,Math.trunc(this.counter/1073741824),1073741823&this.counter,this.random.nextUint32())}},{key:"resetCounter",value:function(){this.counter=1024*this.random.nextUint32()+(1023&this.random.nextUint32())}}]),e}(),eB=function(e){if("undefined"!=typeof UUIDV7_DENY_WEAK_RNG&&UUIDV7_DENY_WEAK_RNG)throw Error("no cryptographically strong RNG available");for(var t=0;t<e.length;t++)e[t]=65536*Math.trunc(65536*Math.random())+Math.trunc(65536*Math.random());return e};A&&!E(A.crypto)&&crypto.getRandomValues&&(eB=function(e){return crypto.getRandomValues(e)});var eH,eU,eV,eW=function(){function e(){a(this,e),c(this,"buffer",new Uint32Array(8)),c(this,"cursor",1/0)}return l(e,[{key:"nextUint32",value:function(){return this.cursor>=this.buffer.length&&(eB(this.buffer),this.cursor=0),this.buffer[this.cursor++]}}]),e}(),eq=function(){return eG().toString()},eG=function(){return(eU||(eU=new ez)).generate()},eX="",eY=/[a-z0-9][a-z0-9-]+\.[a-z]{2,}$/i,eK={is_supported:function(){return!!j},error:function(e){V.error("cookieStore error: "+e)},get:function(e){if(j){try{for(var t=e+"=",n=j.cookie.split(";").filter(function(e){return e.length}),i=0;i<n.length;i++){for(var r=n[i];" "==r.charAt(0);)r=r.substring(1,r.length);if(0===r.indexOf(t))return decodeURIComponent(r.substring(t.length,r.length))}}catch(e){}return null}},parse:function(e){var t;try{t=JSON.parse(eK.get(e))||{}}catch(e){}return t},set:function(e,t,n,i,r){if(j)try{var o="",a="",s=function(e,t){if(t){var n=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:j;if(eX)return eX;if(!t||["localhost","127.0.0.1"].includes(e))return"";for(var n=e.split("."),i=Math.min(n.length,8),r="dmn_chk_"+eq(),o=RegExp("(^|;)\\s*"+r+"=1");!eX&&i--;){var a=n.slice(i).join("."),s=r+"=1;domain=."+a;t.cookie=s,o.test(t.cookie)&&(t.cookie=s+";expires=Thu, 01 Jan 1970 00:00:00 GMT",eX=a)}return eX}(e);if(!n){var i,r=(i=e.match(eY))?i[0]:"";r!==n&&V.info("Warning: cookie subdomain discovery mismatch",r,n),n=r}return n?"; domain=."+n:""}return""}(j.location.hostname,i);if(n){var l=new Date;l.setTime(l.getTime()+24*n*36e5),o="; expires="+l.toUTCString()}r&&(a="; secure");var c=e+"="+encodeURIComponent(JSON.stringify(t))+o+"; SameSite=Lax; path=/"+s+a;return c.length>3686.4&&V.warn("cookieStore warning: large cookie, len="+c.length),j.cookie=c,c}catch(e){return}},remove:function(e,t){try{eK.set(e,"",-1,t)}catch(e){return}}},eJ=null,eZ={is_supported:function(){if(!C(eJ))return eJ;var e=!0;if(E(A))e=!1;else try{var t="__mplssupport__";eZ.set(t,"xyz"),'"xyz"'!==eZ.get(t)&&(e=!1),eZ.remove(t)}catch(t){e=!1}return e||V.error("localStorage unsupported; falling back to cookie store"),eJ=e,e},error:function(e){V.error("localStorage error: "+e)},get:function(e){try{return null==A?void 0:A.localStorage.getItem(e)}catch(e){eZ.error(e)}return null},parse:function(e){try{return JSON.parse(eZ.get(e))||{}}catch(e){}return null},set:function(e,t){try{null==A||A.localStorage.setItem(e,JSON.stringify(t))}catch(e){eZ.error(e)}},remove:function(e){try{null==A||A.localStorage.removeItem(e)}catch(e){eZ.error(e)}}},eQ=["distinct_id",eb,ev,eA],e0=r(r({},eZ),{},{parse:function(e){try{var t={};try{t=eK.parse(e)||{}}catch(e){}var n=Y(t,JSON.parse(eZ.get(e)||"{}"));return eZ.set(e,n),n}catch(e){}return null},set:function(e,t,n,i,r){try{eZ.set(e,t);var o={};eQ.forEach(function(e){t[e]&&(o[e]=t[e])}),Object.keys(o).length&&eK.set(e,o,n,i,r)}catch(e){eZ.error(e)}},remove:function(e,t){try{null==A||A.localStorage.removeItem(e),eK.remove(e,t)}catch(e){eZ.error(e)}}}),e1={},e2={is_supported:function(){return!0},error:function(e){V.error("memoryStorage error: "+e)},get:function(e){return e1[e]||null},parse:function(e){return e1[e]||null},set:function(e,t){e1[e]=t},remove:function(e){delete e1[e]}},e5=null,e3={is_supported:function(){if(!C(e5))return e5;if(e5=!0,E(A))e5=!1;else try{var e="__support__";e3.set(e,"xyz"),'"xyz"'!==e3.get(e)&&(e5=!1),e3.remove(e)}catch(e){e5=!1}return e5},error:function(e){V.error("sessionStorage error: ",e)},get:function(e){try{return null==A?void 0:A.sessionStorage.getItem(e)}catch(e){e3.error(e)}return null},parse:function(e){try{return JSON.parse(e3.get(e))||null}catch(e){}return null},set:function(e,t){try{null==A||A.sessionStorage.setItem(e,JSON.stringify(t))}catch(e){e3.error(e)}},remove:function(e){try{null==A||A.sessionStorage.removeItem(e)}catch(e){e3.error(e)}}},e4=["localhost","127.0.0.1"],e6=function(e){var t=null==j?void 0:j.createElement("a");return E(t)?null:(t.href=e,t)},e8=function(e){var t,n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"&",r=[];return X(e,function(e,i){E(e)||E(i)||"undefined"===i||(t=encodeURIComponent(e instanceof File?e.name:e.toString()),n=encodeURIComponent(i),r[r.length]=n+"="+t)}),r.join(i)},e9=function(e,t){for(var n,i=((e.split("#")[0]||"").split("?")[1]||"").split("&"),r=0;r<i.length;r++){var o=i[r].split("=");if(o[0]===t){n=o;break}}if(!x(n)||n.length<2)return"";var a=n[1];try{a=decodeURIComponent(a)}catch(e){V.error("Skipping decoding for malformed query param: "+a)}return a.replace(/\+/g," ")},e7=function(e,t){var n=e.match(RegExp(t+"=([^&]*)"));return n?n[1]:null},te="Mobile",tt="Android",tn="Tablet",ti=tt+" "+tn,tr="iPad",to="Apple",ta=to+" Watch",ts="Safari",tl="BlackBerry",tc="Samsung",td=tc+"Browser",tu=tc+" Internet",th="Chrome",tp=th+" OS",tf=th+" iOS",tm="Internet Explorer",tg=tm+" "+te,tb="Opera",tv=tb+" Mini",ty="Edge",tx="Microsoft "+ty,tw="Firefox",tk=tw+" iOS",t_="Nintendo",tE="PlayStation",tS="Xbox",tC=tt+" "+te,tP=te+" "+ts,tT="Windows",tO=tT+" Phone",tA="Nokia",tI="Ouya",tR="Generic",t$=tR+" "+te.toLowerCase(),tL=tR+" "+tn.toLowerCase(),tM="Konqueror",tj="(\\d+(\\.\\d+)?)",tD=RegExp("Version/"+tj),tN=RegExp(tS,"i"),tF=RegExp(tE+" \\w+","i"),tz=RegExp(t_+" \\w+","i"),tB=RegExp(tl+"|PlayBook|BB10","i"),tH={"NT3.51":"NT 3.11","NT4.0":"NT 4.0","5.0":"2000",5.1:"XP",5.2:"XP","6.0":"Vista",6.1:"7",6.2:"8",6.3:"8.1",6.4:"10","10.0":"10"},tU=function(e,t){var n,i;return t=t||"",K(e," OPR/")&&K(e,"Mini")?tv:K(e," OPR/")?tb:tB.test(e)?tl:K(e,"IE"+te)||K(e,"WPDesktop")?tg:K(e,td)?tu:K(e,ty)||K(e,"Edg/")?tx:K(e,"FBIOS")?"Facebook "+te:K(e,"UCWEB")||K(e,"UCBrowser")?"UC Browser":K(e,"CriOS")?tf:K(e,"CrMo")?th:K(e,tt)&&K(e,ts)?tC:K(e,th)?th:K(e,"FxiOS")?tk:K(e.toLowerCase(),tM.toLowerCase())?tM:(n=e,(i=t)&&K(i,to)||K(n,ts)&&!K(n,th)&&!K(n,tt))?K(e,te)?tP:ts:K(e,tw)?tw:K(e,"MSIE")||K(e,"Trident/")?tm:K(e,"Gecko")?tw:""},tV=(c(eV={},tg,[RegExp("rv:"+tj)]),c(eV,tx,[RegExp(ty+"?\\/"+tj)]),c(eV,th,[RegExp("("+th+"|CrMo)\\/"+tj)]),c(eV,tf,[RegExp("CriOS\\/"+tj)]),c(eV,"UC Browser",[RegExp("(UCBrowser|UCWEB)\\/"+tj)]),c(eV,ts,[tD]),c(eV,tP,[tD]),c(eV,tb,[RegExp("(Opera|OPR)\\/"+tj)]),c(eV,tw,[RegExp(tw+"\\/"+tj)]),c(eV,tk,[RegExp("FxiOS\\/"+tj)]),c(eV,tM,[RegExp("Konqueror[:/]?"+tj,"i")]),c(eV,tl,[RegExp(tl+" "+tj),tD]),c(eV,tC,[RegExp("android\\s"+tj,"i")]),c(eV,tu,[RegExp(td+"\\/"+tj)]),c(eV,tm,[RegExp("(rv:|MSIE )"+tj)]),c(eV,"Mozilla",[RegExp("rv:"+tj)]),eV),tW=[[RegExp(tS+"; "+tS+" (.*?)[);]","i"),function(e){return[tS,e&&e[1]||""]}],[RegExp(t_,"i"),[t_,""]],[RegExp(tE,"i"),[tE,""]],[tB,[tl,""]],[RegExp(tT,"i"),function(e,t){if(/Phone/.test(t)||/WPDesktop/.test(t))return[tO,""];if(new RegExp(te).test(t)&&!/IEMobile\b/.test(t))return[tT+" "+te,""];var n=/Windows NT ([0-9.]+)/i.exec(t);if(n&&n[1]){var i=tH[n[1]]||"";return/arm/i.test(t)&&(i="RT"),[tT,i]}return[tT,""]}],[/((iPhone|iPad|iPod).*?OS (\d+)_(\d+)_?(\d+)?|iPhone)/,function(e){return e&&e[3]?["iOS",[e[3],e[4],e[5]||"0"].join(".")]:["iOS",""]}],[/(watch.*\/(\d+\.\d+\.\d+)|watch os,(\d+\.\d+),)/i,function(e){var t="";return e&&e.length>=3&&(t=E(e[2])?e[3]:e[2]),["watchOS",t]}],[RegExp("("+tt+" (\\d+)\\.(\\d+)\\.?(\\d+)?|"+tt+")","i"),function(e){return e&&e[2]?[tt,[e[2],e[3],e[4]||"0"].join(".")]:[tt,""]}],[/Mac OS X (\d+)[_.](\d+)[_.]?(\d+)?/i,function(e){var t=["Mac OS X",""];if(e&&e[1]){var n=[e[1],e[2],e[3]||"0"];t[1]=n.join(".")}return t}],[/Mac/i,["Mac OS X",""]],[/CrOS/,[tp,""]],[/Linux|debian/i,["Linux",""]]],tq=function(e){return tz.test(e)?t_:tF.test(e)?tE:tN.test(e)?tS:RegExp(tI,"i").test(e)?tI:RegExp("("+tO+"|WPDesktop)","i").test(e)?tO:/iPad/.test(e)?tr:/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(watch)(?: ?os[,/]|\d,\d\/)[\d.]+/i.test(e)?ta:tB.test(e)?tl:/(kobo)\s(ereader|touch)/i.test(e)?"Kobo":RegExp(tA,"i").test(e)?tA:/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i.test(e)||/(kf[a-z]+)( bui|\)).+silk\//i.test(e)?"Kindle Fire":/(Android|ZTE)/i.test(e)?!new RegExp(te).test(e)||/(9138B|TB782B|Nexus [97]|pixel c|HUAWEISHT|BTV|noble nook|smart ultra 6)/i.test(e)?/pixel[\daxl ]{1,6}/i.test(e)&&!/pixel c/i.test(e)||/(huaweimed-al00|tah-|APA|SM-G92|i980|zte|U304AA)/i.test(e)||/lmy47v/i.test(e)&&!/QTAQZ3/i.test(e)?tt:ti:tt:RegExp("(pda|"+te+")","i").test(e)?t$:RegExp(tn,"i").test(e)&&!RegExp(tn+" pc","i").test(e)?tL:""},tG="https?://(.*)",tX=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","gclid","gad_source","gclsrc","dclid","gbraid","wbraid","fbclid","msclkid","twclid","li_fat_id","mc_cid","igshid","ttclid"],tY={campaignParams:function(e){var t=tX.concat(e||[]),n={};return X(t,function(e){var t=j?e9(j.URL,e):"";t.length&&(n[e]=t)}),n},searchEngine:function(){var e=null==j?void 0:j.referrer;return e?0===e.search(tG+"google.([^/?]*)")?"google":0===e.search(tG+"bing.com")?"bing":0===e.search(tG+"yahoo.com")?"yahoo":0===e.search(tG+"duckduckgo.com")?"duckduckgo":null:null},searchInfo:function(){var e=tY.searchEngine(),t={};if(!C(e)){t.$search_engine=e;var n=j?e9(j.referrer,"yahoo"!=e?"q":"p"):"";n.length&&(t.ph_keyword=n)}return t},browser:tU,browserVersion:function(e,t){var n=tV[tU(e,t)];if(E(n))return null;for(var i=0;i<n.length;i++){var r=n[i],o=e.match(r);if(o)return parseFloat(o[o.length-2])}return null},browserLanguage:function(){return navigator.language||navigator.userLanguage},os:function(e){for(var t=0;t<tW.length;t++){var n=d(tW[t],2),i=n[0],r=n[1],o=i.exec(e),a=o&&(w(r)?r(o,e):r);if(a)return a}return["",""]},device:tq,deviceType:function(e){var t=tq(e);return t===tr||t===ti||"Kobo"===t||"Kindle Fire"===t||t===tL?tn:t===t_||t===tS||t===tE||t===tI?"Console":t===ta?"Wearable":t?te:"Desktop"},referrer:function(){return(null==j?void 0:j.referrer)||"$direct"},referringDomain:function(){var e;return null!=j&&j.referrer&&(null===(e=e6(j.referrer))||void 0===e?void 0:e.host)||"$direct"},referrerInfo:function(){return{$referrer:this.referrer(),$referring_domain:this.referringDomain()}},properties:function(){if(!B)return{};var e=d(tY.os(B),2);return Y(en({$os:e[0],$os_version:e[1],$browser:tY.browser(B,navigator.vendor),$device:tY.device(B),$device_type:tY.deviceType(B)}),{$current_url:null==D?void 0:D.href,$host:null==D?void 0:D.host,$pathname:null==D?void 0:D.pathname,$raw_user_agent:B.length>1e3?B.substring(0,997)+"...":B,$browser_version:tY.browserVersion(B,navigator.vendor),$browser_language:tY.browserLanguage(),$screen_height:null==A?void 0:A.screen.height,$screen_width:null==A?void 0:A.screen.width,$viewport_height:null==A?void 0:A.innerHeight,$viewport_width:null==A?void 0:A.innerWidth,$lib:"web",$lib_version:m.LIB_VERSION,$insert_id:Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10),$time:Q()/1e3})},people_properties:function(){if(!B)return{};var e=d(tY.os(B),2);return Y(en({$os:e[0],$os_version:e[1],$browser:tY.browser(B,navigator.vendor)}),{$browser_version:tY.browserVersion(B,navigator.vendor)})}},tK=["cookie","localstorage","localstorage+cookie","sessionstorage","memory"],tJ=function(){function e(t){var n;a(this,e),this.config=t,this.props={},this.campaign_params_saved=!1,this.name=(n="",t.token&&(n=t.token.replace(/\+/g,"PL").replace(/\//g,"SL").replace(/=/g,"EQ")),t.persistence_name?"ph_"+t.persistence_name:"ph_"+n+"_posthog"),this.storage=this.buildStorage(t),this.load(),this.update_config(t,t),this.save()}return l(e,[{key:"buildStorage",value:function(e){-1===tK.indexOf(e.persistence.toLowerCase())&&(V.critical("Unknown persistence type "+e.persistence+"; falling back to localStorage+cookie"),e.persistence="localStorage+cookie");var t=e.persistence.toLowerCase();return"localstorage"===t&&eZ.is_supported()?eZ:"localstorage+cookie"===t&&e0.is_supported()?e0:"sessionstorage"===t&&e3.is_supported()?e3:"memory"===t?e2:"cookie"===t?eK:e0.is_supported()?e0:eK}},{key:"properties",value:function(){var e={};return X(this.props,function(t,n){if(n===ey&&k(t))for(var i,r=Object.keys(t),o=0;o<r.length;o++)e["$feature/".concat(r[o])]=t[r[o]];else i=!1,(C(eR)?i:L&&eR.indexOf===L?-1!=eR.indexOf(n):(X(eR,function(e){if(i||(i=e===n))return W}),i))||(e[n]=t)}),e}},{key:"load",value:function(){if(!this.disabled){var e=this.storage.parse(this.name);e&&(this.props=Y({},e))}}},{key:"save",value:function(){this.disabled||this.storage.set(this.name,this.props,this.expire_days,this.cross_subdomain,this.secure)}},{key:"remove",value:function(){this.storage.remove(this.name,!1),this.storage.remove(this.name,!0)}},{key:"clear",value:function(){this.remove(),this.props={}}},{key:"register_once",value:function(e,t,n){var i=this;if(k(e)){E(t)&&(t="None"),this.expire_days=E(n)?this.default_expiry:n;var r=!1;if(X(e,function(e,n){i.props.hasOwnProperty(n)&&i.props[n]!==t||(i.props[n]=e,r=!0)}),r)return this.save(),!0}return!1}},{key:"register",value:function(e,t){var n=this;if(k(e)){this.expire_days=E(t)?this.default_expiry:t;var i=!1;if(X(e,function(t,r){e.hasOwnProperty(r)&&n.props[r]!==t&&(n.props[r]=t,i=!0)}),i)return this.save(),!0}return!1}},{key:"unregister",value:function(e){e in this.props&&(delete this.props[e],this.save())}},{key:"update_campaign_params",value:function(){this.campaign_params_saved||(this.register(tY.campaignParams(this.config.custom_campaign_params)),this.campaign_params_saved=!0)}},{key:"set_initial_campaign_params",value:function(){this.register_once(c({},eT,tY.campaignParams(this.config.custom_campaign_params)),void 0)}},{key:"update_search_keyword",value:function(){this.register(tY.searchInfo())}},{key:"update_referrer_info",value:function(){this.register(tY.referrerInfo())}},{key:"set_initial_referrer_info",value:function(){this.register_once(c({},eO,tY.referrerInfo()),void 0)}},{key:"get_referrer_info",value:function(){return en({$referrer:this.props.$referrer,$referring_domain:this.props.$referring_domain})}},{key:"get_initial_props",value:function(){var e=this,t={};return X([eO,eT],function(n){var i=e.props[n];i&&X(i,function(e,n){t["$initial_"+n.replace(/^\$/,"")]=e})}),t}},{key:"safe_merge",value:function(e){return X(this.props,function(t,n){n in e||(e[n]=t)}),e}},{key:"update_config",value:function(e,t){if(this.default_expiry=this.expire_days=e.cookie_expiration,this.set_disabled(e.disable_persistence),this.set_cross_subdomain(e.cross_subdomain_cookie),this.set_secure(e.secure_cookie),e.persistence!==t.persistence){var n=this.buildStorage(e),i=this.props;this.clear(),this.storage=n,this.props=i,this.save()}}},{key:"set_disabled",value:function(e){this.disabled=e,this.disabled?this.remove():this.save()}},{key:"set_cross_subdomain",value:function(e){e!==this.cross_subdomain&&(this.cross_subdomain=e,this.remove(),this.save())}},{key:"get_cross_subdomain",value:function(){return!!this.cross_subdomain}},{key:"set_secure",value:function(e){e!==this.secure&&(this.secure=e,this.remove(),this.save())}},{key:"set_event_timer",value:function(e,t){var n=this.props[el]||{};n[e]=t,this.props[el]=n,this.save()}},{key:"remove_event_timer",value:function(e){var t=(this.props[el]||{})[e];return E(t)||(delete this.props[el][e],this.save()),t}},{key:"get_property",value:function(e){return this.props[e]}},{key:"set_property",value:function(e,t){this.props[e]=t,this.save()}}]),e}(),tZ=l(function e(t){var n,i,r=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};a(this,e),c(this,"bucketSize",100),c(this,"refillRate",10),c(this,"mutationBuckets",{}),c(this,"loggedTracker",{}),c(this,"refillBuckets",function(){Object.keys(r.mutationBuckets).forEach(function(e){r.mutationBuckets[e]=r.mutationBuckets[e]+r.refillRate,r.mutationBuckets[e]>=r.bucketSize&&delete r.mutationBuckets[e]})}),c(this,"getNodeOrRelevantParent",function(e){var t=r.rrweb.mirror.getNode(e);if("svg"!==(null==t?void 0:t.nodeName)&&t instanceof Element){var n=t.closest("svg");if(n)return[r.rrweb.mirror.getId(n),n]}return[e,t]}),c(this,"numberOfChanges",function(e){var t,n,i,r,o,a,s,l;return(null!==(t=null===(n=e.removes)||void 0===n?void 0:n.length)&&void 0!==t?t:0)+(null!==(i=null===(r=e.attributes)||void 0===r?void 0:r.length)&&void 0!==i?i:0)+(null!==(o=null===(a=e.texts)||void 0===a?void 0:a.length)&&void 0!==o?o:0)+(null!==(s=null===(l=e.adds)||void 0===l?void 0:l.length)&&void 0!==s?s:0)}),c(this,"throttleMutations",function(e){if(3!==e.type||0!==e.data.source)return e;var t=e.data,n=r.numberOfChanges(t);t.attributes&&(t.attributes=t.attributes.filter(function(e){var t,n,i,o=d(r.getNodeOrRelevantParent(e.id),2),a=o[0],s=o[1];return 0!==r.mutationBuckets[a]&&(r.mutationBuckets[a]=null!==(t=r.mutationBuckets[a])&&void 0!==t?t:r.bucketSize,r.mutationBuckets[a]=Math.max(r.mutationBuckets[a]-1,0),0===r.mutationBuckets[a]&&(r.loggedTracker[a]||(r.loggedTracker[a]=!0,null===(n=(i=r.options).onBlockedNode)||void 0===n||n.call(i,a,s))),e)}));var i=r.numberOfChanges(t);return 0!==i||n===i?e:void 0}),this.rrweb=t,this.options=o,this.refillRate=null!==(n=this.options.refillRate)&&void 0!==n?n:this.refillRate,this.bucketSize=null!==(i=this.options.bucketSize)&&void 0!==i?i:this.bucketSize,setInterval(function(){r.refillBuckets()},1e3)}),tQ=((nA=tQ||{})[nA.DomContentLoaded=0]="DomContentLoaded",nA[nA.Load=1]="Load",nA[nA.FullSnapshot=2]="FullSnapshot",nA[nA.IncrementalSnapshot=3]="IncrementalSnapshot",nA[nA.Meta=4]="Meta",nA[nA.Custom=5]="Custom",nA[nA.Plugin=6]="Plugin",nA);function t0(e){return e?q(e).split(/\s+/):[]}function t1(e){var t="";switch(o(e.className)){case"string":t=e.className;break;case"object":t=("baseVal"in e.className?e.className.baseVal:null)||e.getAttribute("class")||"";break;default:t=""}return t0(t)}function t2(e){return P(e)?null:q(e).split(/(\s+)/).filter(function(e){return nl(e)}).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255)}function t5(e){var t="";return ne(e)&&!nt(e)&&e.childNodes&&e.childNodes.length&&X(e.childNodes,function(e){var n;t6(e)&&e.textContent&&(t+=null!==(n=t2(e.textContent))&&void 0!==n?n:"")}),q(t)}function t3(e){return!!e&&1===e.nodeType}function t4(e,t){return!!e&&!!e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()}function t6(e){return!!e&&3===e.nodeType}function t8(e){return!!e&&11===e.nodeType}var t9=["a","button","form","input","select","textarea","label"];function t7(e){var t=e.parentNode;return!(!t||!t3(t))&&t}function ne(e){for(var t=e;t.parentNode&&!t4(t,"body");t=t.parentNode){var n=t1(t);if(K(n,"ph-sensitive")||K(n,"ph-no-capture"))return!1}if(K(t1(e),"ph-include"))return!0;var i=e.type||"";if(S(i))switch(i.toLowerCase()){case"hidden":case"password":return!1}var r=e.name||e.id||"";return!(S(r)&&/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(r.replace(/[^a-zA-Z0-9]/g,"")))}function nt(e){return!!(t4(e,"input")&&!["button","checkbox","submit","reset"].includes(e.type)||t4(e,"select")||t4(e,"textarea")||"true"===e.getAttribute("contenteditable"))}var nn="(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11})",ni=new RegExp("^(?:".concat(nn,")$")),nr=new RegExp(nn),no="\\d{3}-?\\d{2}-?\\d{4}",na=new RegExp("^(".concat(no,")$")),ns=new RegExp("(".concat(no,")"));function nl(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return!(P(e)||S(e)&&(e=q(e),(t?ni:nr).test((e||"").replace(/[- ]/g,""))||(t?na:ns).test(e)))}function nc(e){var t=t5(e);return nl(t="".concat(t," ").concat(function e(t){var n="";return t&&t.childNodes&&t.childNodes.length&&X(t.childNodes,function(t){var i;if(t&&"span"===(null===(i=t.tagName)||void 0===i?void 0:i.toLowerCase()))try{var r=t5(t);n="".concat(n," ").concat(r).trim(),t.childNodes&&t.childNodes.length&&(n="".concat(n," ").concat(e(t)).trim())}catch(e){V.error(e)}}),n}(e)).trim())?t:""}function nd(e){return e.replace(/"|\\"/g,'\\"')}var nu="[SessionRecording]",nh="redacted",np={initiatorTypes:["audio","beacon","body","css","early-hint","embed","fetch","frame","iframe","icon","image","img","input","link","navigation","object","ping","script","track","video","xmlhttprequest"],maskRequestFn:function(e){return e},recordHeaders:!1,recordBody:!1,recordInitialRequests:!1,recordPerformance:!1,performanceEntryTypeToObserve:["first-input","navigation","paint","resource"],payloadSizeLimitBytes:1e6},nf=["authorization","x-forwarded-for","authorization","cookie","set-cookie","x-api-key","x-real-ip","remote-addr","forwarded","proxy-authorization","x-csrf-token","x-csrftoken","x-xsrf-token"],nm=["password","secret","passwd","api_key","apikey","auth","credentials","mysql_pwd","privatekey","private_key","token"],ng=["/s/","/e/","/i/"];function nb(e,t,n,i){if(P(e))return e;var r=(null==t?void 0:t["content-length"])||new Blob([e]).size;return S(r)&&(r=parseInt(r)),r>n?nu+" ".concat(i," body too large to record (").concat(r," bytes)"):e}function nv(e,t){if(P(e))return e;var n=e;return nl(n,!1)||(n=nu+" "+t+" body "+nh),X(nm,function(e){var i,r;null!==(i=n)&&void 0!==i&&i.length&&-1!==(null===(r=n)||void 0===r?void 0:r.indexOf(e))&&(n=nu+" "+t+" body "+nh+" as might contain: "+e)}),n}var ny=function(e,t){var n,i,o={payloadSizeLimitBytes:np.payloadSizeLimitBytes,performanceEntryTypeToObserve:u(np.performanceEntryTypeToObserve)},a=!1!==e.session_recording.recordHeaders&&t.recordHeaders,s=!1!==e.session_recording.recordBody&&t.recordBody,l=!1!==e.capture_performance&&t.recordPerformance,c=(i=Math.min(1e6,null!==(n=o.payloadSizeLimitBytes)&&void 0!==n?n:1e6),function(e){return null!=e&&e.requestBody&&(e.requestBody=nb(e.requestBody,e.requestHeaders,i,"Request")),null!=e&&e.responseBody&&(e.responseBody=nb(e.responseBody,e.responseHeaders,i,"Response")),e}),d=function(e){var t;return c(function(e){var t=e6(e.name);if(!(t&&t.pathname&&ng.some(function(e){return 0===t.pathname.indexOf(e)})))return e}((P(t=e.requestHeaders)||X(Object.keys(null!=t?t:{}),function(e){nf.includes(e.toLowerCase())&&(t[e]=nh)}),e)))},h=w(e.session_recording.maskNetworkRequestFn);return h&&w(e.session_recording.maskCapturedNetworkRequestFn)&&V.warn("Both `maskNetworkRequestFn` and `maskCapturedNetworkRequestFn` are defined. `maskNetworkRequestFn` will be ignored."),h&&(e.session_recording.maskCapturedNetworkRequestFn=function(t){var n=e.session_recording.maskNetworkRequestFn({url:t.name});return r(r({},t),{},{name:null==n?void 0:n.url})}),o.maskRequestFn=w(e.session_recording.maskCapturedNetworkRequestFn)?function(t){var n,i,r,o=d(t);return o&&null!==(n=null===(i=(r=e.session_recording).maskCapturedNetworkRequestFn)||void 0===i?void 0:i.call(r,o))&&void 0!==n?n:void 0}:function(e){return function(e){if(!E(e))return e.requestBody=nv(e.requestBody,"Request"),e.responseBody=nv(e.responseBody,"Response"),e}(d(e))},r(r(r({},np),o),{},{recordHeaders:a,recordBody:s,recordPerformance:l,recordInitialRequests:l})};function nx(e,t){nT(!0,e,t)}function nw(e,t){nT(!1,e,t)}function nk(e,t){return"1"===nP(e,t)}function n_(e,t){return!!function(e){if(e&&e.respectDnt){var t=e&&e.window||A,n=null==t?void 0:t.navigator,i=!1;return X([null==n?void 0:n.doNotTrack,n.msDoNotTrack,t.doNotTrack],function(e){K([!0,1,"1","yes"],e)&&(i=!0)}),i}return!1}(t)||"0"===nP(e,t)}function nE(e,t){nS(t=t||{}).remove(nC(e,t),!!t.crossSubdomainCookie)}function nS(e){return"localStorage"===(e=e||{}).persistenceType?eZ:"localStorage+cookie"===e.persistenceType?e0:eK}function nC(e,t){return((t=t||{}).persistencePrefix||"__ph_opt_in_out_")+e}function nP(e,t){return nS(t).get(nC(e,t))}function nT(e,t,n){S(t)&&t.length?(nS(n=n||{}).set(nC(t,n),e?1:0,T(n.cookieExpiration)?n.cookieExpiration:null,n.crossSubdomainCookie,n.secureCookie),n.capture&&e&&n.capture(n.captureEventName||"$opt_in",n.captureProperties||{},{send_instantly:!0})):V.error("gdpr."+(e?"optIn":"optOut")+" called with an invalid token")}function nO(e){var t=!1;try{var n=e.config.token,i=e.config.respect_dnt,r=e.config.opt_out_capturing_persistence_type,o=e.config.opt_out_capturing_cookie_prefix||void 0,a=e.config.window;n&&(t=n_(n,{respectDnt:i,persistenceType:r,persistencePrefix:o,window:a}))}catch(e){V.error("Unexpected error when checking capturing opt-out status: "+e)}return t}(nR=nI||(nI={}))[nR.Mutation=0]="Mutation",nR[nR.MouseMove=1]="MouseMove",nR[nR.MouseInteraction=2]="MouseInteraction",nR[nR.Scroll=3]="Scroll",nR[nR.ViewportResize=4]="ViewportResize",nR[nR.Input=5]="Input",nR[nR.TouchMove=6]="TouchMove",nR[nR.MediaInteraction=7]="MediaInteraction",nR[nR.StyleSheetRule=8]="StyleSheetRule",nR[nR.CanvasMutation=9]="CanvasMutation",nR[nR.Font=10]="Font",nR[nR.Log=11]="Log",nR[nR.Drag=12]="Drag",nR[nR.StyleDeclaration=13]="StyleDeclaration",nR[nR.Selection=14]="Selection",nR[nR.AdoptedStyleSheet=15]="AdoptedStyleSheet";var nA,nI,nR,n$,nL=[nI.MouseMove,nI.MouseInteraction,nI.Scroll,nI.ViewportResize,nI.Input,nI.TouchMove,nI.MediaInteraction,nI.Drag],nM=function(e){return{rrwebMethod:e,enqueuedAt:Date.now(),attempt:1}},nj="[SessionRecording]",nD=function(){function e(t){var n=this;if(a(this,e),c(this,"queuedRRWebEvents",[]),c(this,"isIdle",!1),c(this,"_linkedFlagSeen",!1),c(this,"_lastActivityTimestamp",Date.now()),c(this,"windowId",null),c(this,"sessionId",null),c(this,"_linkedFlag",null),c(this,"_forceAllowLocalhostNetworkCapture",!1),c(this,"_samplingSessionListener",null),this.instance=t,this._captureStarted=!1,this._endpoint="/s/",this.stopRrweb=void 0,this.receivedDecide=!1,null==A||A.addEventListener("beforeunload",function(){n._flushBuffer()}),null==A||A.addEventListener("offline",function(){n._tryAddCustomEvent("browser offline",{})}),null==A||A.addEventListener("online",function(){n._tryAddCustomEvent("browser online",{})}),null==A||A.addEventListener("visibilitychange",function(){if(null!=j&&j.visibilityState){var e="window "+j.visibilityState;n._tryAddCustomEvent(e,{})}}),!this.instance.sessionManager)throw V.error(nj+" started without valid sessionManager"),Error(nj+" started without valid sessionManager. This is a bug.");this.buffer=this.clearBuffer(),this._setupSampling()}return l(e,[{key:"rrwebRecord",get:function(){var e;return null==H||null===(e=H.rrweb)||void 0===e?void 0:e.record}},{key:"started",get:function(){return this._captureStarted}},{key:"sessionManager",get:function(){if(!this.instance.sessionManager)throw V.error(nj+" started without valid sessionManager"),Error(nj+" started without valid sessionManager. This is a bug.");return this.instance.sessionManager}},{key:"isSampled",get:function(){var e=this.instance.get_property(ev);return O(e)?e:null}},{key:"sessionDuration",get:function(){var e,t,n=null===(e=this.buffer)||void 0===e?void 0:e.data[(null===(t=this.buffer)||void 0===t?void 0:t.data.length)-1],i=this.sessionManager.checkAndGetSessionAndWindowId(!0).sessionStartTimestamp;return n?n.timestamp-i:null}},{key:"isRecordingEnabled",get:function(){var e=!!this.instance.get_property(eu),t=!this.instance.config.disable_session_recording;return A&&e&&t}},{key:"isConsoleLogCaptureEnabled",get:function(){var e=!!this.instance.get_property(eh),t=this.instance.config.enable_recording_console_log;return null!=t?t:e}},{key:"canvasRecording",get:function(){var e=this.instance.get_property(ef);return e&&e.fps&&e.quality?{enabled:e.enabled,fps:e.fps,quality:e.quality}:void 0}},{key:"networkPayloadCapture",get:function(){var e,t,n=this.instance.get_property(ep),i={recordHeaders:null===(e=this.instance.config.session_recording)||void 0===e?void 0:e.recordHeaders,recordBody:null===(t=this.instance.config.session_recording)||void 0===t?void 0:t.recordBody},r=(null==i?void 0:i.recordHeaders)||(null==n?void 0:n.recordHeaders),o=(null==i?void 0:i.recordBody)||(null==n?void 0:n.recordBody),a=this.instance.config.capture_performance||(null==n?void 0:n.capturePerformance);return r||o||a?{recordHeaders:r,recordBody:o,recordPerformance:a}:void 0}},{key:"sampleRate",get:function(){var e=this.instance.get_property(em);return T(e)?e:null}},{key:"minimumDuration",get:function(){var e=this.instance.get_property(eg);return T(e)?e:null}},{key:"status",get:function(){return this.receivedDecide?this.isRecordingEnabled?P(this._linkedFlag)||this._linkedFlagSeen?O(this.isSampled)?this.isSampled?"sampled":"disabled":"active":"buffering":"disabled":"buffering"}},{key:"startIfEnabledOrStop",value:function(){this.isRecordingEnabled?(this._startCapture(),V.info(nj+" started")):(this.stopRecording(),this.clearBuffer())}},{key:"stopRecording",value:function(){this._captureStarted&&this.stopRrweb&&(this.stopRrweb(),this.stopRrweb=void 0,this._captureStarted=!1,V.info(nj+" stopped"))}},{key:"makeSamplingDecision",value:function(e){var t,n,i=this.sessionId!==e,r=this.sampleRate;if(T(r)){var o,a=this.isSampled,s=i||!O(a);(o=s?Math.random()<r:a)||!s||V.warn(nj+" Sample rate (".concat(r,") has determined that this sessionId (").concat(e,") will not be sent to the server.")),this._tryAddCustomEvent("samplingDecisionMade",{sampleRate:r}),null===(n=this.instance.persistence)||void 0===n||n.register(c({},ev,o))}else null===(t=this.instance.persistence)||void 0===t||t.register(c({},ev,null))}},{key:"afterDecideResponse",value:function(e){var t,n,i,r=this;if(this._persistDecideResponse(e),this._linkedFlag=(null===(t=e.sessionRecording)||void 0===t?void 0:t.linkedFlag)||null,null!==(n=e.sessionRecording)&&void 0!==n&&n.endpoint&&(this._endpoint=null===(i=e.sessionRecording)||void 0===i?void 0:i.endpoint),this._setupSampling(),!P(this._linkedFlag)){var o=S(this._linkedFlag)?this._linkedFlag:this._linkedFlag.flag,a=S(this._linkedFlag)?null:this._linkedFlag.variant;this.instance.onFeatureFlags(function(e,t){var n=k(t)&&o in t,i=a?t[o]===a:n;if(i){var s={linkedFlag:o,linkedVariant:a},l="linked flag matched";V.info(nj+" "+l,s),r._tryAddCustomEvent(l,s)}r._linkedFlagSeen=i})}this.receivedDecide=!0,this.startIfEnabledOrStop()}},{key:"_setupSampling",value:function(){var e=this;T(this.sampleRate)&&C(this._samplingSessionListener)&&(this._samplingSessionListener=this.sessionManager.onSessionId(function(t){e.makeSamplingDecision(t)}))}},{key:"_persistDecideResponse",value:function(e){if(this.instance.persistence){var t=this.instance.persistence,n=function(){var n,i,o,a,s,l,d,u,h=null===(n=e.sessionRecording)||void 0===n?void 0:n.sampleRate,p=P(h)?null:parseFloat(h),f=null===(i=e.sessionRecording)||void 0===i?void 0:i.minimumDurationMilliseconds;t.register((c(u={},eu,!!e.sessionRecording),c(u,eh,null===(o=e.sessionRecording)||void 0===o?void 0:o.consoleLogRecordingEnabled),c(u,ep,r({capturePerformance:e.capturePerformance},null===(a=e.sessionRecording)||void 0===a?void 0:a.networkPayloadCapture)),c(u,ef,{enabled:null===(s=e.sessionRecording)||void 0===s?void 0:s.recordCanvas,fps:null===(l=e.sessionRecording)||void 0===l?void 0:l.canvasFps,quality:null===(d=e.sessionRecording)||void 0===d?void 0:d.canvasQuality}),c(u,em,p),c(u,eg,E(f)?null:f),u))};n(),this.sessionManager.onSessionId(n)}}},{key:"log",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"log";null===(t=this.instance.sessionRecording)||void 0===t||t.onRRwebEmit({type:6,data:{plugin:"rrweb/console@1",payload:{level:n,trace:[],payload:[JSON.stringify(e)]}},timestamp:Q()})}},{key:"_startCapture",value:function(){var e=this;E(Object.assign)||this._captureStarted||this.instance.config.disable_session_recording||nO(this.instance)||(this._captureStarted=!0,this.sessionManager.checkAndGetSessionAndWindowId(),this.rrwebRecord?this._onScriptLoaded():eo(this.instance.requestRouter.endpointFor("assets","/static/recorder.js?v=".concat(m.LIB_VERSION)),function(t){if(t)return V.error(nj+" could not load recorder.js",t);e._onScriptLoaded()}))}},{key:"isInteractiveEvent",value:function(e){var t;return 3===e.type&&-1!==nL.indexOf(null===(t=e.data)||void 0===t?void 0:t.source)}},{key:"_updateWindowAndSessionIds",value:function(e){var t=this.isInteractiveEvent(e);t||this.isIdle||e.timestamp-this._lastActivityTimestamp>3e5&&(this.isIdle=!0,this._tryAddCustomEvent("sessionIdle",{reason:"user inactivity",timeSinceLastActive:e.timestamp-this._lastActivityTimestamp,threshold:3e5}));var n=!1;if(t&&(this._lastActivityTimestamp=e.timestamp,this.isIdle&&(this.isIdle=!1,this._tryAddCustomEvent("sessionNoLongerIdle",{reason:"user activity",type:e.type}),n=!0)),!this.isIdle){var i=this.sessionManager.checkAndGetSessionAndWindowId(!t,e.timestamp),r=i.windowId,o=i.sessionId,a=this.sessionId!==o,s=this.windowId!==r;this.windowId=r,this.sessionId=o,(n||-1===[2,4].indexOf(e.type)&&(s||a))&&this._tryTakeFullSnapshot()}}},{key:"_tryRRWebMethod",value:function(e){try{return e.rrwebMethod(),!0}catch(t){return this.queuedRRWebEvents.length<10?this.queuedRRWebEvents.push({enqueuedAt:e.enqueuedAt||Date.now(),attempt:e.attempt++,rrwebMethod:e.rrwebMethod}):V.warn(nj+" could not emit queued rrweb event.",t,e),!1}}},{key:"_tryAddCustomEvent",value:function(e,t){var n=this;return this._tryRRWebMethod(nM(function(){return n.rrwebRecord.addCustomEvent(e,t)}))}},{key:"_tryTakeFullSnapshot",value:function(){var e=this;return this._tryRRWebMethod(nM(function(){return e.rrwebRecord.takeFullSnapshot()}))}},{key:"_onScriptLoaded",value:function(){for(var e,t=this,n={blockClass:"ph-no-capture",blockSelector:void 0,ignoreClass:"ph-ignore-input",maskTextClass:"ph-mask",maskTextSelector:void 0,maskTextFn:void 0,maskAllInputs:!0,maskInputOptions:{},maskInputFn:void 0,slimDOMOptions:{},collectFonts:!1,inlineStylesheet:!0,recordCrossOriginIframes:!1},i=this.instance.config.session_recording,o=0,a=Object.entries(i||{});o<a.length;o++){var s=d(a[o],2),l=s[0],c=s[1];l in n&&(n[l]=c)}if(this.canvasRecording&&this.canvasRecording.enabled&&(n.recordCanvas=!0,n.sampling={canvas:this.canvasRecording.fps},n.dataURLOptions={type:"image/webp",quality:this.canvasRecording.quality}),this.rrwebRecord){this.mutationRateLimiter=null!==(e=this.mutationRateLimiter)&&void 0!==e?e:new tZ(this.rrwebRecord,{onBlockedNode:function(e,n){var i="Too many mutations on node '".concat(e,"'. Rate limiting. This could be due to SVG animations or something similar");V.info(i,{node:n}),t.log(nj+" "+i,"warn")}}),this._scheduleFullSnapshot();var u=this._gatherRRWebPlugins();this.stopRrweb=this.rrwebRecord(r({emit:function(e){t.onRRwebEmit(e)},plugins:u},n)),this.instance._addCaptureHook(function(e){try{if("$pageview"===e){var n=A?t._maskUrl(A.location.href):"";if(!n)return;t._tryAddCustomEvent("$pageview",{href:n}),t._tryTakeFullSnapshot()}}catch(e){V.error("Could not add $pageview to rrweb session",e)}}),this._lastActivityTimestamp=Date.now(),this.isIdle=!1,this._tryAddCustomEvent("$session_options",{sessionRecordingOptions:n,activePlugins:u.map(function(e){return null==e?void 0:e.name})}),this._tryAddCustomEvent("$posthog_config",{config:this.instance.config})}else V.error(nj+"onScriptLoaded was called but rrwebRecord is not available. This indicates something has gone wrong.")}},{key:"_scheduleFullSnapshot",value:function(){var e=this;this._fullSnapshotTimer&&clearInterval(this._fullSnapshotTimer),this._fullSnapshotTimer=setInterval(function(){e._tryTakeFullSnapshot()},3e5)}},{key:"_gatherRRWebPlugins",value:function(){var e=[];return H.rrwebConsoleRecord&&this.isConsoleLogCaptureEnabled&&e.push(H.rrwebConsoleRecord.getRecordConsolePlugin()),this.networkPayloadCapture&&w(H.getRecordNetworkPlugin)&&(!e4.includes(location.hostname)||this._forceAllowLocalhostNetworkCapture?e.push(H.getRecordNetworkPlugin(ny(this.instance.config,this.networkPayloadCapture))):V.info(nj+" NetworkCapture not started because we are on localhost.")),e}},{key:"onRRwebEmit",value:function(e){if(this._processQueuedEvents(),e&&k(e)){if(e.type===tQ.Meta){var t=this._maskUrl(e.data.href);if(this._lastHref=t,!t)return;e.data.href=t}else this._pageViewFallBack();e.type===tQ.FullSnapshot&&this._scheduleFullSnapshot();var n=this.mutationRateLimiter?this.mutationRateLimiter.throttleMutations(e):e;if(n){var i=function(e){if(e&&k(e)&&6===e.type&&k(e.data)&&"rrweb/console@1"===e.data.plugin){e.data.payload.payload.length>10&&(e.data.payload.payload=e.data.payload.payload.slice(0,10),e.data.payload.payload.push("...[truncated]"));for(var t=[],n=0;n<e.data.payload.payload.length;n++)e.data.payload.payload[n]&&e.data.payload.payload[n].length>2e3?t.push(e.data.payload.payload[n].slice(0,2e3)+"...[truncated]"):t.push(e.data.payload.payload[n]);return e.data.payload.payload=t,e}return e}(n),r=JSON.stringify(i).length;if(this._updateWindowAndSessionIds(i),!this.isIdle||i.type===tQ.Custom){var o={$snapshot_bytes:r,$snapshot_data:i,$session_id:this.sessionId,$window_id:this.windowId};"disabled"!==this.status?this._captureSnapshotBuffered(o):this.clearBuffer()}}}}},{key:"_pageViewFallBack",value:function(){if(!this.instance.config.capture_pageview&&A){var e=this._maskUrl(A.location.href);this._lastHref!==e&&(this._tryAddCustomEvent("$url_changed",{href:e}),this._lastHref=e)}}},{key:"_processQueuedEvents",value:function(){var e=this;if(this.queuedRRWebEvents.length){var t=u(this.queuedRRWebEvents);this.queuedRRWebEvents=[],t.forEach(function(n){Date.now()-n.enqueuedAt>2e3?e._tryAddCustomEvent("rrwebQueueTimeout",{enqueuedAt:n.enqueuedAt,attempt:n.attempt,queueLength:t.length}):e._tryRRWebMethod(n)&&e._tryAddCustomEvent("rrwebQueueSuccess",{enqueuedAt:n.enqueuedAt,attempt:n.attempt,queueLength:t.length})})}}},{key:"_maskUrl",value:function(e){var t=this.instance.config.session_recording;if(t.maskNetworkRequestFn){var n,i={url:e};return null===(n=i=t.maskNetworkRequestFn(i))||void 0===n?void 0:n.url}return e}},{key:"clearBuffer",value:function(){return this.buffer=void 0,{size:0,data:[],sessionId:this.sessionId,windowId:this.windowId}}},{key:"_flushBuffer",value:function(){var e=this;this.flushBufferTimer&&(clearTimeout(this.flushBufferTimer),this.flushBufferTimer=void 0);var t=this.minimumDuration,n=this.sessionDuration,i=T(n)&&n>=0,r=T(t)&&i&&n<t;return"buffering"===this.status||r?(this.flushBufferTimer=setTimeout(function(){e._flushBuffer()},2e3),this.buffer||this.clearBuffer()):this.buffer&&0!==this.buffer.data.length?(this._captureSnapshot({$snapshot_bytes:this.buffer.size,$snapshot_data:this.buffer.data,$session_id:this.buffer.sessionId,$window_id:this.buffer.windowId}),this.clearBuffer()):this.buffer||this.clearBuffer()}},{key:"_captureSnapshotBuffered",value:function(e){var t,n=this,i=2+((null===(t=this.buffer)||void 0===t?void 0:t.data.length)||0);(!this.buffer||this.buffer.size+e.$snapshot_bytes+i>943718.4||this.buffer.sessionId&&this.buffer.sessionId!==this.sessionId)&&(this.buffer=this._flushBuffer()),C(this.buffer.sessionId)&&!C(this.sessionId)&&(this.buffer.sessionId=this.sessionId,this.buffer.windowId=this.windowId),this.buffer.size+=e.$snapshot_bytes,this.buffer.data.push(e.$snapshot_data),this.flushBufferTimer||(this.flushBufferTimer=setTimeout(function(){n._flushBuffer()},2e3))}},{key:"_captureSnapshot",value:function(e){this.instance.capture("$snapshot",e,{_url:this.instance.requestRouter.endpointFor("api",this._endpoint),_noTruncate:!0,_batchKey:"recordings",_noHeatmaps:!0})}}]),e}(),nN=function(){function e(t){a(this,e),this.instance=t,this.instance.decideEndpointWasHit=this.instance._hasBootstrappedFeatureFlags()}return l(e,[{key:"call",value:function(){var e=this,t={token:this.instance.config.token,distinct_id:this.instance.get_distinct_id(),groups:this.instance.getGroups(),person_properties:this.instance.get_property(ew),group_properties:this.instance.get_property(ek),disable_flags:this.instance.config.advanced_disable_feature_flags||this.instance.config.advanced_disable_feature_flags_on_first_load||void 0};this.instance._send_request({method:"POST",url:this.instance.requestRouter.endpointFor("api","/decide/?v=3"),data:t,compression:this.instance.config.disable_compression?void 0:Z.Base64,timeout:this.instance.config.feature_flag_request_timeout_ms,callback:function(t){return e.parseDecideResponse(t.json)}})}},{key:"parseDecideResponse",value:function(e){var t=this;this.instance.featureFlags.setReloadingPaused(!1),this.instance.featureFlags._startReloadTimer();var n=!e;if(this.instance.config.advanced_disable_feature_flags_on_first_load||this.instance.config.advanced_disable_feature_flags||this.instance.featureFlags.receivedFeatureFlags(null!=e?e:{},n),n)V.error("Failed to fetch feature flags from PostHog.");else{if(!j||!j.body)return V.info("document not ready yet, trying again in 500 milliseconds..."),void setTimeout(function(){t.parseDecideResponse(e)},500);this.instance._afterDecideResponse(e);var i=null==A?void 0:A.extendPostHogWithExceptionAutoCapture;if(e.autocaptureExceptions&&e.autocaptureExceptions&&E(i)&&eo(this.instance.requestRouter.endpointFor("assets","/static/exception-autocapture.js"),function(n){if(n)return V.error("Could not load exception autocapture script",n);A.extendPostHogWithExceptionAutocapture(t.instance,e)}),e.siteApps){if(this.instance.config.opt_in_site_apps){var r,o=f(e.siteApps);try{for(o.s();!(r=o.n()).done;)(function(){var e=r.value,n=e.id,i=e.url,o=t.instance.requestRouter.endpointFor("api",i);H["__$$ph_site_app_".concat(n)]=t.instance,eo(o,function(e){e&&V.error("Error while initializing PostHog app with config id ".concat(n),e)})})()}catch(e){o.e(e)}finally{o.f()}}else e.siteApps.length>0&&V.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.')}}}}]),e}(),nF=null!=A&&A.location?e7(A.location.hash,"__posthog")||e7(location.hash,"state"):null,nz="_postHogToolbarParams";(iy=n$||(n$={}))[iy.UNINITIALIZED=0]="UNINITIALIZED",iy[iy.LOADING=1]="LOADING",iy[iy.LOADED=2]="LOADED";var nB=function(){function e(t){a(this,e),this.instance=t}return l(e,[{key:"setToolbarState",value:function(e){H.ph_toolbar_state=e}},{key:"getToolbarState",value:function(){var e;return null!==(e=H.ph_toolbar_state)&&void 0!==e?e:n$.UNINITIALIZED}},{key:"maybeLoadToolbar",value:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;if(!A||!j)return!1;n=null!==(e=n)&&void 0!==e?e:A.location,r=null!==(t=r)&&void 0!==t?t:A.history;try{if(!i){try{A.localStorage.setItem("test","test"),A.localStorage.removeItem("test")}catch(e){return!1}i=null==A?void 0:A.localStorage}var o,a=nF||e7(n.hash,"__posthog")||e7(n.hash,"state"),s=a?ee(function(){return JSON.parse(atob(decodeURIComponent(a)))})||ee(function(){return JSON.parse(decodeURIComponent(a))}):null;return s&&"ph_authorize"===s.action?((o=s).source="url",o&&Object.keys(o).length>0&&(s.desiredHash?n.hash=s.desiredHash:r?r.replaceState(r.state,"",n.pathname+n.search):n.hash="")):((o=JSON.parse(i.getItem(nz)||"{}")).source="localstorage",delete o.userIntent),!(!o.token||this.instance.config.token!==o.token)&&(this.loadToolbar(o),!0)}catch(e){return!1}}},{key:"_callLoadToolbar",value:function(e){(H.ph_load_toolbar||H.ph_load_editor)(e,this.instance)}},{key:"loadToolbar",value:function(e){var t=this,n=!(null==j||!j.getElementById(eI));if(!A||n)return!1;var i="custom"===this.instance.requestRouter.region&&this.instance.config.advanced_disable_toolbar_metrics,o=r(r({token:this.instance.config.token},e),{},{apiURL:this.instance.requestRouter.endpointFor("ui")},i?{instrument:!1}:{});if(A.localStorage.setItem(nz,JSON.stringify(r(r({},o),{},{source:void 0}))),this.getToolbarState()===n$.LOADED)this._callLoadToolbar(o);else if(this.getToolbarState()===n$.UNINITIALIZED){this.setToolbarState(n$.LOADING);var a=3e5*Math.floor(Date.now()/3e5);eo(this.instance.requestRouter.endpointFor("assets","/static/toolbar.js?t=".concat(a)),function(e){if(e)return V.error("Failed to load toolbar",e),void t.setToolbarState(n$.UNINITIALIZED);t.setToolbarState(n$.LOADED),t._callLoadToolbar(o)}),er(A,"turbolinks:load",function(){t.setToolbarState(n$.UNINITIALIZED),t.loadToolbar(o)})}return!0}},{key:"_loadEditor",value:function(e){return this.loadToolbar(e)}},{key:"maybeLoadEditor",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;return this.maybeLoadToolbar(e,t,n)}}]),e}(),nH=function(){function e(t){a(this,e),c(this,"isPaused",!0),c(this,"queue",[]),c(this,"flushTimeoutMs",3e3),this.sendRequest=t}return l(e,[{key:"enqueue",value:function(e){this.queue.push(e),this.flushTimeout||this.setFlushTimeout()}},{key:"unload",value:function(){var e=this;this.clearFlushTimeout();var t=Object.values(this.queue.length>0?this.formatQueue():{});[].concat(u(t.filter(function(e){return 0===e.url.indexOf("/e")})),u(t.filter(function(e){return 0!==e.url.indexOf("/e")}))).map(function(t){e.sendRequest(r(r({},t),{},{transport:"sendBeacon"}))})}},{key:"enable",value:function(){this.isPaused=!1,this.setFlushTimeout()}},{key:"setFlushTimeout",value:function(){var e=this;this.isPaused||(this.flushTimeout=setTimeout(function(){if(e.clearFlushTimeout(),e.queue.length>0){var t=e.formatQueue();for(var n in t)(function(n){var i=t[n],r=(new Date).getTime();i.data&&x(i.data)&&X(i.data,function(e){e.offset=Math.abs(e.timestamp-r),delete e.timestamp}),e.sendRequest(i)})(n)}},this.flushTimeoutMs))}},{key:"clearFlushTimeout",value:function(){clearTimeout(this.flushTimeout),this.flushTimeout=void 0}},{key:"formatQueue",value:function(){var e={};return X(this.queue,function(t){var n,i=(t?t.batchKey:null)||t.url;E(e[i])&&(e[i]=r(r({},t),{},{data:[]})),null===(n=e[i].data)||void 0===n||n.push(t.data)}),this.queue=[],e}}]),e}(),nU=Uint8Array,nV=Uint16Array,nW=Uint32Array,nq=new nU([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),nG=new nU([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),nX=new nU([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),nY=function(e,t){for(var n=new nV(31),i=0;i<31;++i)n[i]=t+=1<<e[i-1];var r=new nW(n[30]);for(i=1;i<30;++i)for(var o=n[i];o<n[i+1];++o)r[o]=o-n[i]<<5|i;return[n,r]},nK=nY(nq,2),nJ=nK[0],nZ=nK[1];nJ[28]=258,nZ[258]=28;for(var nQ=nY(nG,0)[1],n0=new nV(32768),n1=0;n1<32768;++n1){var n2=(43690&n1)>>>1|(21845&n1)<<1;n2=(61680&(n2=(52428&n2)>>>2|(13107&n2)<<2))>>>4|(3855&n2)<<4,n0[n1]=((65280&n2)>>>8|(255&n2)<<8)>>>1}var n5=function(e,t,n){for(var i=e.length,r=0,o=new nV(t);r<i;++r)++o[e[r]-1];var a,s=new nV(t);for(r=0;r<t;++r)s[r]=s[r-1]+o[r-1]<<1;if(n){a=new nV(1<<t);var l=15-t;for(r=0;r<i;++r)if(e[r])for(var c=r<<4|e[r],d=t-e[r],u=s[e[r]-1]++<<d,h=u|(1<<d)-1;u<=h;++u)a[n0[u]>>>l]=c}else for(a=new nV(i),r=0;r<i;++r)a[r]=n0[s[e[r]-1]++]>>>15-e[r];return a},n3=new nU(288);for(n1=0;n1<144;++n1)n3[n1]=8;for(n1=144;n1<256;++n1)n3[n1]=9;for(n1=256;n1<280;++n1)n3[n1]=7;for(n1=280;n1<288;++n1)n3[n1]=8;var n4=new nU(32);for(n1=0;n1<32;++n1)n4[n1]=5;var n6=n5(n3,9,0),n8=n5(n4,5,0),n9=function(e){return(e/8>>0)+(7&e&&1)},n7=function(e,t,n){(null==t||t<0)&&(t=0),(null==n||n>e.length)&&(n=e.length);var i=new(e instanceof nV?nV:e instanceof nW?nW:nU)(n-t);return i.set(e.subarray(t,n)),i},ie=function(e,t,n){n<<=7&t;var i=t/8>>0;e[i]|=n,e[i+1]|=n>>>8},it=function(e,t,n){n<<=7&t;var i=t/8>>0;e[i]|=n,e[i+1]|=n>>>8,e[i+2]|=n>>>16},ii=function(e,t){for(var n=[],i=0;i<e.length;++i)e[i]&&n.push({s:i,f:e[i]});var r=n.length,o=n.slice();if(!r)return[new nU(0),0];if(1==r){var a=new nU(n[0].s+1);return a[n[0].s]=1,[a,1]}n.sort(function(e,t){return e.f-t.f}),n.push({s:-1,f:25001});var s=n[0],l=n[1],c=0,d=1,u=2;for(n[0]={s:-1,f:s.f+l.f,l:s,r:l};d!=r-1;)s=n[n[c].f<n[u].f?c++:u++],l=n[c!=d&&n[c].f<n[u].f?c++:u++],n[d++]={s:-1,f:s.f+l.f,l:s,r:l};var h=o[0].s;for(i=1;i<r;++i)o[i].s>h&&(h=o[i].s);var p=new nV(h+1),f=ir(n[d-1],p,0);if(f>t){i=0;var m=0,g=f-t,b=1<<g;for(o.sort(function(e,t){return p[t.s]-p[e.s]||e.f-t.f});i<r;++i){var v=o[i].s;if(!(p[v]>t))break;m+=b-(1<<f-p[v]),p[v]=t}for(m>>>=g;m>0;){var y=o[i].s;p[y]<t?m-=1<<t-p[y]++-1:++i}for(;i>=0&&m;--i){var x=o[i].s;p[x]==t&&(--p[x],++m)}f=t}return[new nU(p),f]},ir=function e(t,n,i){return -1==t.s?Math.max(e(t.l,n,i+1),e(t.r,n,i+1)):n[t.s]=i},io=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new nV(++t),i=0,r=e[0],o=1,a=function(e){n[i++]=e},s=1;s<=t;++s)if(e[s]==r&&s!=t)++o;else{if(!r&&o>2){for(;o>138;o-=138)a(32754);o>2&&(a(o>10?o-11<<5|28690:o-3<<5|12305),o=0)}else if(o>3){for(a(r),--o;o>6;o-=6)a(8304);o>2&&(a(o-3<<5|8208),o=0)}for(;o--;)a(r);o=1,r=e[s]}return[n.subarray(0,i),t]},ia=function(e,t){for(var n=0,i=0;i<t.length;++i)n+=e[i]*t[i];return n},is=function(e,t,n){var i=n.length,r=n9(t+2);e[r]=255&i,e[r+1]=i>>>8,e[r+2]=255^e[r],e[r+3]=255^e[r+1];for(var o=0;o<i;++o)e[r+o+4]=n[o];return 8*(r+4+i)},il=function(e,t,n,i,r,o,a,s,l,c,d){ie(t,d++,n),++r[256];for(var u=ii(r,15),h=u[0],p=u[1],f=ii(o,15),m=f[0],g=f[1],b=io(h),v=b[0],y=b[1],x=io(m),w=x[0],k=x[1],_=new nV(19),E=0;E<v.length;++E)_[31&v[E]]++;for(E=0;E<w.length;++E)_[31&w[E]]++;for(var S=ii(_,7),C=S[0],P=S[1],T=19;T>4&&!C[nX[T-1]];--T);var O,A,I,R,$=c+5<<3,L=ia(r,n3)+ia(o,n4)+a,M=ia(r,h)+ia(o,m)+a+14+3*T+ia(_,C)+(2*_[16]+3*_[17]+7*_[18]);if($<=L&&$<=M)return is(t,d,e.subarray(l,l+c));if(ie(t,d,1+(M<L)),d+=2,M<L){O=n5(h,p,0),A=h,I=n5(m,g,0),R=m;var j=n5(C,P,0);for(ie(t,d,y-257),ie(t,d+5,k-1),ie(t,d+10,T-4),d+=14,E=0;E<T;++E)ie(t,d+3*E,C[nX[E]]);d+=3*T;for(var D=[v,w],N=0;N<2;++N){var F=D[N];for(E=0;E<F.length;++E){var z=31&F[E];ie(t,d,j[z]),d+=C[z],z>15&&(ie(t,d,F[E]>>>5&127),d+=F[E]>>>12)}}}else O=n6,A=n3,I=n8,R=n4;for(E=0;E<s;++E)if(i[E]>255){it(t,d,O[(z=i[E]>>>18&31)+257]),d+=A[z+257],z>7&&(ie(t,d,i[E]>>>23&31),d+=nq[z]);var B=31&i[E];it(t,d,I[B]),d+=R[B],B>3&&(it(t,d,i[E]>>>5&8191),d+=nG[B])}else it(t,d,O[i[E]]),d+=A[i[E]];return it(t,d,O[256]),d+A[256]},ic=new nW([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),id=new nU(0),iu=function(){for(var e=new nW(256),t=0;t<256;++t){for(var n=t,i=9;--i;)n=(1&n&&3988292384)^n>>>1;e[t]=n}return e}(),ih=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8},ip=!!F||!!N,im="text/plain",ig=function(e,t){var n=d(e.split("?"),2),i=n[0],o=n[1],a=r({},t);null==o||o.split("&").forEach(function(e){var t=d(e.split("="),1)[0];delete a[t]});var s=e8(a);return s=s?(o?o+"&":"")+s:o,"".concat(i,"?").concat(s)},ib=function(e){var t=e.data,n=e.compression;if(t){if(n===Z.GZipJS){var i,r,o,a,s,l,c,d,u,h=(r=function(e,t){var n=e.length;if(!t&&"undefined"!=typeof TextEncoder)return(new TextEncoder).encode(e);for(var i=new nU(e.length+(e.length>>>1)),r=0,o=function(e){i[r++]=e},a=0;a<n;++a){if(r+5>i.length){var s=new nU(r+8+(n-a<<1));s.set(i),i=s}var l=e.charCodeAt(a);l<128||t?o(l):(l<2048?o(192|l>>>6):(l>55295&&l<57344?(o(240|(l=65536+(1047552&l)|1023&e.charCodeAt(++a))>>>18),o(128|l>>>12&63)):o(224|l>>>12),o(128|l>>>6&63)),o(128|63&l))}return n7(i,0,r)}(JSON.stringify(t)),o={mtime:0},a=4294967295,s={p:function(e){for(var t=a,n=0;n<e.length;++n)t=iu[255&t^e[n]]^t>>>8;a=t},d:function(){return 4294967295^a}},l=r.length,s.p(r),u=(c=10+(o.filename&&o.filename.length+1||0),d=function(e,t,n,i,r,o){var a=e.length,s=new nU(i+a+5*(1+Math.floor(a/7e3))+r),l=s.subarray(i,s.length-r),c=0;if(!t||a<8)for(var d=0;d<=a;d+=65535){var u=d+65535;u<a?c=is(l,c,e.subarray(d,u)):(l[d]=o,c=is(l,c,e.subarray(d,a)))}else{for(var h=ic[t-1],p=h>>>13,f=8191&h,m=(1<<n)-1,g=new nV(32768),b=new nV(m+1),v=Math.ceil(n/3),y=2*v,x=function(t){return(e[t]^e[t+1]<<v^e[t+2]<<y)&m},w=new nW(25e3),k=new nV(288),_=new nV(32),E=0,S=0,C=(d=0,0),P=0,T=0;d<a;++d){var O=x(d),A=32767&d,I=b[O];if(g[A]=I,b[O]=A,P<=d){var R=a-d;if((E>7e3||C>24576)&&R>423){c=il(e,l,0,w,k,_,S,C,T,d-T,c),C=E=S=0,T=d;for(var $=0;$<286;++$)k[$]=0;for($=0;$<30;++$)_[$]=0}var L=2,M=0,j=f,D=A-I&32767;if(R>2&&O==x(d-D))for(var N=Math.min(p,R)-1,F=Math.min(32767,d),z=Math.min(258,R);D<=F&&--j&&A!=I;){if(e[d+L]==e[d+L-D]){for(var B=0;B<z&&e[d+B]==e[d+B-D];++B);if(B>L){if(L=B,M=D,B>N)break;var H=Math.min(D,B-2),U=0;for($=0;$<H;++$){var V=d-D+$+32768&32767,W=V-g[V]+32768&32767;W>U&&(U=W,I=V)}}}D+=(A=I)-(I=g[A])+32768&32767}if(M){w[C++]=268435456|nZ[L]<<18|nQ[M];var q=31&nZ[L],G=31&nQ[M];S+=nq[q]+nG[G],++k[257+q],++_[G],P=d+L,++E}else w[C++]=e[d],++k[e[d]]}}c=il(e,l,o,w,k,_,S,C,T,d-T,c),o||(c=is(l,c,id))}return n7(s,0,i+n9(c)+r)}(r,null==o.level?6:o.level,null==o.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(r.length)))):12+o.mem,c,8,!0)).length,function(e,t){var n=t.filename;if(e[0]=31,e[1]=139,e[2]=8,e[8]=t.level<2?4:9==t.level?2:0,e[9]=3,0!=t.mtime&&ih(e,4,Math.floor(new Date(t.mtime||Date.now())/1e3)),n){e[3]=8;for(var i=0;i<=n.length;++i)e[i+10]=n.charCodeAt(i)}}(d,o),ih(d,u-8,s.d()),ih(d,u-4,l),d);return{contentType:im,body:new Blob([h],{type:im})}}return n===Z.Base64?{contentType:"application/x-www-form-urlencoded",body:"data="+encodeURIComponent("string"==typeof(i=function(e){var t,n,i,r,o,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",s=0,l=0,c="",d=[];if(!e)return e;e=ei(e);do t=(o=e.charCodeAt(s++)<<16|e.charCodeAt(s++)<<8|e.charCodeAt(s++))>>18&63,n=o>>12&63,i=o>>6&63,r=63&o,d[l++]=a.charAt(t)+a.charAt(n)+a.charAt(i)+a.charAt(r);while(s<e.length);switch(c=d.join(""),e.length%3){case 1:c=c.slice(0,-2)+"==";break;case 2:c=c.slice(0,-1)+"="}return c}(JSON.stringify(t)))?i:JSON.stringify(i))}:{contentType:"application/json",body:JSON.stringify(t)}}},iv=[];F&&iv.push({transport:"XHR",method:function(e){var t,n=new F;n.open(e.method||"GET",e.url,!0);var i=null!==(t=ib(e))&&void 0!==t?t:{},r=i.contentType,o=i.body;X(e.headers,function(e,t){n.setRequestHeader(t,e)}),r&&n.setRequestHeader("Content-Type",r),e.timeout&&(n.timeout=e.timeout),n.withCredentials=!0,n.onreadystatechange=function(){if(4===n.readyState){var t,i={statusCode:n.status,text:n.responseText};if(200===n.status)try{i.json=JSON.parse(n.responseText)}catch(e){}null===(t=e.callback)||void 0===t||t.call(e,i)}},n.send(o)}}),N&&iv.push({transport:"fetch",method:function(e){var t,n,i=null!==(t=ib(e))&&void 0!==t?t:{},r=i.contentType,o=i.body,a=new Headers;X(a,function(e,t){a.append(t,e)}),r&&a.append("Content-Type",r);var s=e.url,l=null;if(z){var c=new z;l={signal:c.signal,timeout:setTimeout(function(){return c.abort()},e.timeout)}}N(s,{method:(null==e?void 0:e.method)||"GET",headers:a,keepalive:"POST"===e.method,body:o,signal:null===(n=l)||void 0===n?void 0:n.signal}).then(function(t){return t.text().then(function(n){var i,r={statusCode:t.status,text:n};if(200===t.status)try{r.json=JSON.parse(n)}catch(e){V.error(e)}null===(i=e.callback)||void 0===i||i.call(e,r)})}).catch(function(t){var n;V.error(t),null===(n=e.callback)||void 0===n||n.call(e,{statusCode:0,text:t})}).finally(function(){return l?clearTimeout(l.timeout):null})}}),null!=M&&M.sendBeacon&&iv.push({transport:"sendBeacon",method:function(e){var t=ig(e.url,{beacon:"1"});try{var n,i=null!==(n=ib(e))&&void 0!==n?n:{},r=i.contentType,o=i.body,a="string"==typeof o?new Blob([o],{type:r}):o;M.sendBeacon(t,a)}catch(e){}}});var iy,ix,iw=["retriesPerformedSoFar"],ik=function(){function e(t){var n=this;a(this,e),c(this,"isPolling",!1),c(this,"pollIntervalMs",3e3),c(this,"queue",[]),this.instance=t,this.queue=[],this.areWeOnline=!0,!E(A)&&"onLine"in A.navigator&&(this.areWeOnline=A.navigator.onLine,A.addEventListener("online",function(){n.areWeOnline=!0,n.flush()}),A.addEventListener("offline",function(){n.areWeOnline=!1}))}return l(e,[{key:"retriableRequest",value:function(e){var t=this,n=e.retriesPerformedSoFar,i=function(e,t){if(null==e)return{};var n,i,r=function(e,t){if(null==e)return{};var n,i,r={},o=Object.keys(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,iw);T(n)&&n>0&&(i.url=ig(i.url,{retry_count:n})),this.instance._send_request(r(r({},i),{},{callback:function(e){var o;200!==e.statusCode&&(e.statusCode<400||e.statusCode>=500)&&(null!=n?n:0)<10?t.enqueue(r({retriesPerformedSoFar:n},i)):null===(o=i.callback)||void 0===o||o.call(i,e)}}))}},{key:"enqueue",value:function(e){var t,n,i,r=e.retriesPerformedSoFar||0;e.retriesPerformedSoFar=r+1;var o=(i=(Math.random()-.5)*((n=Math.min(18e5,t=3e3*Math.pow(2,r)))-t/2),Math.ceil(n+i)),a=Date.now()+o;this.queue.push({retryAt:a,requestOptions:e});var s="Enqueued failed request for retry in ".concat(o);navigator.onLine||(s+=" (Browser is offline)"),V.warn(s),this.isPolling||(this.isPolling=!0,this.poll())}},{key:"poll",value:function(){var e=this;this.poller&&clearTimeout(this.poller),this.poller=setTimeout(function(){e.areWeOnline&&e.queue.length>0&&e.flush(),e.poll()},this.pollIntervalMs)}},{key:"flush",value:function(){var e=Date.now(),t=[],n=this.queue.filter(function(n){return n.retryAt<e||(t.push(n),!1)});if(this.queue=t,n.length>0){var i,r=f(n);try{for(r.s();!(i=r.n()).done;){var o=i.value.requestOptions;this.retriableRequest(o)}}catch(e){r.e(e)}finally{r.f()}}}},{key:"unload",value:function(){this.poller&&(clearTimeout(this.poller),this.poller=void 0);var e,t=f(this.queue);try{for(t.s();!(e=t.n()).done;){var n=e.value.requestOptions;try{this.instance._send_request(r(r({},n),{},{transport:"sendBeacon"}))}catch(e){V.error(e)}}}catch(e){t.e(e)}finally{t.f()}this.queue=[]}}]),e}(),i_=function(){function e(t,n,i,r){a(this,e),c(this,"_sessionIdChangedHandlers",[]),this.config=t,this.persistence=n,this._windowId=void 0,this._sessionId=void 0,this._sessionStartTimestamp=null,this._sessionActivityTimestamp=null,this._sessionIdGenerator=i||eq,this._windowIdGenerator=r||eq;var o=t.persistence_name||t.token,s=t.session_idle_timeout_seconds||1800;if(T(s)?s>1800?V.warn("session_idle_timeout_seconds cannot be  greater than 30 minutes. Using 30 minutes instead."):s<60&&V.warn("session_idle_timeout_seconds cannot be less than 60 seconds. Using 60 seconds instead."):(V.warn("session_idle_timeout_seconds must be a number. Defaulting to 30 minutes."),s=1800),this._sessionTimeoutMs=1e3*Math.min(Math.max(s,60),1800),this._window_id_storage_key="ph_"+o+"_window_id",this._primary_window_exists_storage_key="ph_"+o+"_primary_window_exists",this._canUseSessionStorage()){var l=e3.parse(this._window_id_storage_key),d=e3.parse(this._primary_window_exists_storage_key);l&&!d?this._windowId=l:e3.remove(this._window_id_storage_key),e3.set(this._primary_window_exists_storage_key,!0)}this._listenToReloadWindow()}return l(e,[{key:"onSessionId",value:function(e){var t=this;return E(this._sessionIdChangedHandlers)&&(this._sessionIdChangedHandlers=[]),this._sessionIdChangedHandlers.push(e),this._sessionId&&e(this._sessionId,this._windowId),function(){t._sessionIdChangedHandlers=t._sessionIdChangedHandlers.filter(function(t){return t!==e})}}},{key:"_canUseSessionStorage",value:function(){return"memory"!==this.config.persistence&&!this.persistence.disabled&&e3.is_supported()}},{key:"_setWindowId",value:function(e){e!==this._windowId&&(this._windowId=e,this._canUseSessionStorage()&&e3.set(this._window_id_storage_key,e))}},{key:"_getWindowId",value:function(){return this._windowId?this._windowId:this._canUseSessionStorage()?e3.parse(this._window_id_storage_key):null}},{key:"_setSessionId",value:function(e,t,n){e===this._sessionId&&t===this._sessionActivityTimestamp&&n===this._sessionStartTimestamp||(this._sessionStartTimestamp=n,this._sessionActivityTimestamp=t,this._sessionId=e,this.persistence.register(c({},eb,[t,e,n])))}},{key:"_getSessionId",value:function(){if(this._sessionId&&this._sessionActivityTimestamp&&this._sessionStartTimestamp)return[this._sessionActivityTimestamp,this._sessionId,this._sessionStartTimestamp];var e=this.persistence.props[eb];return x(e)&&2===e.length&&e.push(e[0]),e||[0,null,0]}},{key:"resetSessionId",value:function(){this._setSessionId(null,null,null)}},{key:"_listenToReloadWindow",value:function(){var e=this;null==A||A.addEventListener("beforeunload",function(){e._canUseSessionStorage()&&e3.remove(e._primary_window_exists_storage_key)})}},{key:"checkAndGetSessionAndWindowId",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:null)||(new Date).getTime(),n=d(this._getSessionId(),3),i=n[0],r=n[1],o=n[2],a=this._getWindowId(),s=o&&o>0&&Math.abs(t-o)>864e5,l=!1,c=!r,u=!e&&Math.abs(t-i)>this._sessionTimeoutMs;c||u||s?(r=this._sessionIdGenerator(),a=this._windowIdGenerator(),V.info("[SessionId] new session ID generated",{sessionId:r,windowId:a,changeReason:{noSessionId:c,activityTimeout:u,sessionPastMaximumLength:s}}),o=t,l=!0):a||(a=this._windowIdGenerator(),l=!0);var h=0===i||!e||s?t:i,p=0===o?(new Date).getTime():o;return this._setWindowId(a),this._setSessionId(r,h,p),l&&this._sessionIdChangedHandlers.forEach(function(e){return e(r,a)}),{sessionId:r,windowId:a,sessionStartTimestamp:p}}}]),e}();(iZ=ix||(ix={})).US="us",iZ.EU="eu",iZ.CUSTOM="custom";var iE="i.posthog.com",iS=function(){function e(t){a(this,e),c(this,"_regionCache",{}),this.instance=t}return l(e,[{key:"apiHost",get:function(){return this.instance.config.api_host.trim().replace(/\/$/,"")}},{key:"uiHost",get:function(){var e,t=null===(e=this.instance.config.ui_host)||void 0===e?void 0:e.replace(/\/$/,"");return"https://app.posthog.com"===t?"https://us.posthog.com":t}},{key:"region",get:function(){return this._regionCache[this.apiHost]||(/https:\/\/(app|us|us-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?this._regionCache[this.apiHost]=ix.US:/https:\/\/(eu|eu-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?this._regionCache[this.apiHost]=ix.EU:this._regionCache[this.apiHost]=ix.CUSTOM),this._regionCache[this.apiHost]}},{key:"endpointFor",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(t&&(t="/"===t[0]?t:"/".concat(t)),"ui"===e)return(this.uiHost||this.apiHost.replace(".".concat(iE),".posthog.com"))+t;if(this.region===ix.CUSTOM)return this.apiHost+t;var n=iE+t;switch(e){case"assets":return"https://".concat(this.region,"-assets.").concat(n);case"api":return"https://".concat(this.region,".").concat(n)}}}]),e}(),iC=l(function e(t,n,i,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:["error"];a(this,e),this.name="posthog-js",this.setupOnce=function(e){e(function(e){if(!("*"===o||o.includes(e.level))||!t.__loaded)return e;e.tags||(e.tags={});var a,s,l,c,d,u=t.requestRouter.endpointFor("ui","/project/".concat(t.config.token,"/person/").concat(t.get_distinct_id()));e.tags["PostHog Person URL"]=u,t.sessionRecordingStarted()&&(e.tags["PostHog Recording URL"]=t.get_session_replay_url({withTimestamp:!0}));var h=(null===(a=e.exception)||void 0===a?void 0:a.values)||[],p={$exception_message:(null===(s=h[0])||void 0===s?void 0:s.value)||e.message,$exception_type:null===(l=h[0])||void 0===l?void 0:l.type,$exception_personURL:u,$sentry_event_id:e.event_id,$sentry_exception:e.exception,$sentry_exception_message:(null===(c=h[0])||void 0===c?void 0:c.value)||e.message,$sentry_exception_type:null===(d=h[0])||void 0===d?void 0:d.type,$sentry_tags:e.tags,$level:e.level};return n&&i&&(p.$sentry_url=(r||"https://sentry.io/organizations/")+n+"/issues/?project="+i+"&query="+e.event_id),t.capture("$exception",p),e})}}),iP=function(){function e(t){a(this,e),this._instance=t}return l(e,[{key:"doPageView",value:function(){var e,t=this._previousScrollProperties();return this._currentPath=null!==(e=null==A?void 0:A.location.pathname)&&void 0!==e?e:"",this._instance.scrollManager.resetContext(),t}},{key:"doPageLeave",value:function(){return this._previousScrollProperties()}},{key:"_previousScrollProperties",value:function(){var e=this._currentPath,t=this._instance.scrollManager.getContext();if(!e||!t)return{};var n=t.maxScrollHeight,i=t.lastScrollY,r=t.maxScrollY,o=t.maxContentHeight,a=t.lastContentY,s=t.maxContentY;return E(n)||E(i)||E(r)||E(o)||E(a)||E(s)?{}:(n=Math.ceil(n),i=Math.ceil(i),r=Math.ceil(r),o=Math.ceil(o),a=Math.ceil(a),s=Math.ceil(s),{$prev_pageview_pathname:e,$prev_pageview_last_scroll:i,$prev_pageview_last_scroll_percentage:n<=1?1:iT(i/n,0,1),$prev_pageview_max_scroll:r,$prev_pageview_max_scroll_percentage:n<=1?1:iT(r/n,0,1),$prev_pageview_last_content:a,$prev_pageview_last_content_percentage:o<=1?1:iT(a/o,0,1),$prev_pageview_max_content:s,$prev_pageview_max_content_percentage:o<=1?1:iT(s/o,0,1)})}}]),e}();function iT(e,t,n){return Math.max(t,Math.min(e,n))}var iO={icontains:function(e){return!!A&&A.location.href.toLowerCase().indexOf(e.toLowerCase())>-1},regex:function(e){var t;return!!A&&(t=A.location.href,!!function(e){try{new RegExp(e)}catch(e){return!1}return!0}(e)&&new RegExp(e).test(t))},exact:function(e){return(null==A?void 0:A.location.href)===e}},iA=function(){function e(t){a(this,e),this.instance=t}return l(e,[{key:"afterDecideResponse",value:function(e){this._decideServerResponse=!!e.surveys,this.loadIfEnabled()}},{key:"loadIfEnabled",value:function(){var e=this,t=null==H?void 0:H.extendPostHogWithSurveys;this.instance.config.disable_surveys||!this._decideServerResponse||t||eo(this.instance.requestRouter.endpointFor("assets","/static/surveys.js"),function(t){if(t)return V.error("Could not load surveys script",t);H.extendPostHogWithSurveys(e.instance)})}},{key:"getSurveys",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this.instance.config.disable_surveys)return e([]);var i=this.instance.get_property(e_);if(i&&!n)return e(i);this.instance._send_request({url:this.instance.requestRouter.endpointFor("api","/api/surveys/?token=".concat(this.instance.config.token)),method:"GET",transport:"XHR",callback:function(n){if(200!==n.statusCode||!n.json)return e([]);var i,r=n.json.surveys||[];return null===(i=t.instance.persistence)||void 0===i||i.register(c({},e_,r)),e(r)}})}},{key:"getActiveMatchingSurveys",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.getSurveys(function(n){return e(n.filter(function(e){return!(!e.start_date||e.end_date)}).filter(function(e){if(!e.conditions)return!0;var t,n,i,r,o=null===(t=e.conditions)||void 0===t||!t.url||iO[null!==(n=null===(i=e.conditions)||void 0===i?void 0:i.urlMatchType)&&void 0!==n?n:"icontains"](e.conditions.url),a=null===(r=e.conditions)||void 0===r||!r.selector||(null==j?void 0:j.querySelector(e.conditions.selector));return o&&a}).filter(function(e){if(!e.linked_flag_key&&!e.targeting_flag_key&&!e.internal_targeting_flag_key)return!0;var n=!e.linked_flag_key||t.instance.featureFlags.isFeatureEnabled(e.linked_flag_key),i=!e.targeting_flag_key||t.instance.featureFlags.isFeatureEnabled(e.targeting_flag_key),r=!e.internal_targeting_flag_key||t.instance.featureFlags.isFeatureEnabled(e.internal_targeting_flag_key);return n&&i&&r}))},n)}}]),e}(),iI=function(){function e(t){var n,i,r=this;a(this,e),c(this,"serverLimits",{}),c(this,"lastEventRateLimited",!1),c(this,"checkForLimiting",function(e){var t=e.text;if(t&&t.length)try{(JSON.parse(t).quota_limited||[]).forEach(function(e){V.info("[RateLimiter] ".concat(e||"events"," is quota limited.")),r.serverLimits[e]=(new Date).getTime()+6e4})}catch(e){return void V.warn('[RateLimiter] could not rate limit - continuing. Error: "'.concat(null==e?void 0:e.message,'"'),{text:t})}}),this.instance=t,this.captureEventsPerSecond=(null===(n=t.config.rate_limiting)||void 0===n?void 0:n.events_per_second)||10,this.captureEventsBurstLimit=Math.max((null===(i=t.config.rate_limiting)||void 0===i?void 0:i.events_burst_limit)||10*this.captureEventsPerSecond,this.captureEventsPerSecond),this.lastEventRateLimited=this.clientRateLimitContext(!0).isRateLimited}return l(e,[{key:"clientRateLimitContext",value:function(){var e,t,n,i=arguments.length>0&&void 0!==arguments[0]&&arguments[0],r=(new Date).getTime(),o=null!==(e=null===(t=this.instance.persistence)||void 0===t?void 0:t.get_property(eP))&&void 0!==e?e:{tokens:this.captureEventsBurstLimit,last:r};o.tokens+=(r-o.last)/1e3*this.captureEventsPerSecond,o.last=r,o.tokens>this.captureEventsBurstLimit&&(o.tokens=this.captureEventsBurstLimit);var a=o.tokens<1;return a||i||(o.tokens=Math.max(0,o.tokens-1)),!a||this.lastEventRateLimited||i||this.instance.capture("$$client_ingestion_warning",{$$client_ingestion_warning_message:"posthog-js client rate limited. Config is set to ".concat(this.captureEventsPerSecond," events per second and ").concat(this.captureEventsBurstLimit," events burst limit.")},{skip_client_rate_limiting:!0}),this.lastEventRateLimited=a,null===(n=this.instance.persistence)||void 0===n||n.set_property(eP,o),{isRateLimited:a,remainingTokens:o.tokens}}},{key:"isServerRateLimited",value:function(e){var t=this.serverLimits[e||"events"]||!1;return!1!==t&&(new Date).getTime()<t}}]),e}(),iR=function(){return r({initialPathName:(null==D?void 0:D.pathname)||"",referringDomain:tY.referringDomain()},tY.campaignParams())},i$=function(){function e(t,n,i){var r=this;a(this,e),c(this,"_onSessionIdCallback",function(e){var t=r._getStoredProps();if(!t||t.sessionId!==e){var n={sessionId:e,props:r._sessionSourceParamGenerator()};r._persistence.register(c({},eC,n))}}),this._sessionIdManager=t,this._persistence=n,this._sessionSourceParamGenerator=i||iR,this._sessionIdManager.onSessionId(this._onSessionIdCallback)}return l(e,[{key:"_getStoredProps",value:function(){return this._persistence.props[eC]}},{key:"getSessionProps",value:function(){var e,t=null===(e=this._getStoredProps())||void 0===e?void 0:e.props;return t?{$client_session_initial_referring_host:t.referringDomain,$client_session_initial_pathname:t.initialPathName,$client_session_initial_utm_source:t.utm_source,$client_session_initial_utm_campaign:t.utm_campaign,$client_session_initial_utm_medium:t.utm_medium,$client_session_initial_utm_content:t.utm_content,$client_session_initial_utm_term:t.utm_term}:{}}}]),e}(),iL=["ahrefsbot","ahrefssiteaudit","applebot","baiduspider","bingbot","bingpreview","bot.htm","bot.php","crawler","deepscan","duckduckbot","facebookexternal","facebookcatalog","gptbot","http://yandex.com/bots","hubspot","ia_archiver","linkedinbot","mj12bot","msnbot","nessus","petalbot","pinterest","prerender","rogerbot","screaming frog","semrushbot","sitebulb","slurp","turnitin","twitterbot","vercelbot","yahoo! slurp","yandexbot","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleweblight","mediapartners-google","storebot-google","Bytespider;"],iM=function(e,t){if(!e)return!1;var n=e.toLowerCase();return iL.concat(t||[]).some(function(e){var t=e.toLowerCase();return -1!==n.indexOf(t)})},ij=function(){function e(){a(this,e),this.clicks=[]}return l(e,[{key:"isRageClick",value:function(e,t,n){var i=this.clicks[this.clicks.length-1];if(i&&Math.abs(e-i.x)+Math.abs(t-i.y)<30&&n-i.timestamp<1e3){if(this.clicks.push({x:e,y:t,timestamp:n}),3===this.clicks.length)return!0}else this.clicks=[{x:e,y:t,timestamp:n}];return!1}}]),e}();function iD(e){var t;return e.id===eI||!(null===(t=e.closest)||void 0===t||!t.call(e,"#"+eI))}var iN=function(){function e(t){var n;a(this,e),c(this,"rageclicks",new ij),c(this,"_enabledServerSide",!1),c(this,"_initialized",!1),this.instance=t,this._enabledServerSide=!(null===(n=this.instance.persistence)||void 0===n||!n.props[ed])}return l(e,[{key:"startIfEnabled",value:function(){this.isEnabled&&!this._initialized&&(V.info("[heatmaps] Heatmaps enabled, starting..."),this._setupListeners())}},{key:"isEnabled",get:function(){return E(this.instance.config.enable_heatmaps)?this._enabledServerSide:this.instance.config.enable_heatmaps}},{key:"afterDecideResponse",value:function(e){var t=!!e.heatmaps;this.instance.persistence&&this.instance.persistence.register(c({},ed,t)),this._enabledServerSide=t,this.startIfEnabled()}},{key:"getAndClearBuffer",value:function(){var e=this.buffer;return this.buffer=void 0,e}},{key:"_setupListeners",value:function(){var e=this;A&&j&&(er(j,"click",function(t){return e._onClick(t||(null==A?void 0:A.event))},!1,!0),er(j,"mousemove",function(t){return e._onMouseMove(t||(null==A?void 0:A.event))},!1,!0),this._initialized=!0)}},{key:"_getProperties",value:function(e,t){var n=this.instance.scrollManager.scrollY(),i=this.instance.scrollManager.scrollX(),r=this.instance.scrollManager.scrollElement(),o=function(e,t,n){for(var i=e;i&&!t4(i,"body")&&i!==n;){if(K(t,null==A?void 0:A.getComputedStyle(i).position))return!0;i=t7(i)}return!1}(e.target,["fixed","sticky"],r);return{x:e.clientX+(o?0:i),y:e.clientY+(o?0:n),target_fixed:o,type:t}}},{key:"_onClick",value:function(e){var t;if(!iD(e.target)){var n=this._getProperties(e,"click");null!==(t=this.rageclicks)&&void 0!==t&&t.isRageClick(e.clientX,e.clientY,(new Date).getTime())&&this._capture(r(r({},n),{},{type:"rageclick"})),this._capture(n)}}},{key:"_onMouseMove",value:function(e){var t=this;iD(e.target)||(clearTimeout(this._mouseMoveTimeout),this._mouseMoveTimeout=setTimeout(function(){t._capture(t._getProperties(e,"mousemove"))},500))}},{key:"_capture",value:function(e){if(A){var t=A.location.href;this.buffer=this.buffer||{},this.buffer[t]||(this.buffer[t]=[]),this.buffer[t].push(e)}}}]),e}(),iF=function(){function e(t){var n=this;a(this,e),c(this,"_updateScrollData",function(){n.context||(n.context={});var e,t,i,r,o=n.scrollElement(),a=n.scrollY(),s=o?Math.max(0,o.scrollHeight-o.clientHeight):0,l=a+((null==o?void 0:o.clientHeight)||0),c=(null==o?void 0:o.scrollHeight)||0;n.context.lastScrollY=Math.ceil(a),n.context.maxScrollY=Math.max(a,null!==(e=n.context.maxScrollY)&&void 0!==e?e:0),n.context.maxScrollHeight=Math.max(s,null!==(t=n.context.maxScrollHeight)&&void 0!==t?t:0),n.context.lastContentY=l,n.context.maxContentY=Math.max(l,null!==(i=n.context.maxContentY)&&void 0!==i?i:0),n.context.maxContentHeight=Math.max(c,null!==(r=n.context.maxContentHeight)&&void 0!==r?r:0)}),this.instance=t}return l(e,[{key:"getContext",value:function(){return this.context}},{key:"resetContext",value:function(){var e=this.context;return setTimeout(this._updateScrollData,0),e}},{key:"startMeasuringScrollPosition",value:function(){null==A||A.addEventListener("scroll",this._updateScrollData,!0),null==A||A.addEventListener("scrollend",this._updateScrollData,!0),null==A||A.addEventListener("resize",this._updateScrollData)}},{key:"scrollElement",value:function(){if(!this.instance.config.scroll_root_selector)return null==A?void 0:A.document.documentElement;var e,t=f(x(this.instance.config.scroll_root_selector)?this.instance.config.scroll_root_selector:[this.instance.config.scroll_root_selector]);try{for(t.s();!(e=t.n()).done;){var n=e.value,i=null==A?void 0:A.document.querySelector(n);if(i)return i}}catch(e){t.e(e)}finally{t.f()}}},{key:"scrollY",value:function(){if(this.instance.config.scroll_root_selector){var e=this.scrollElement();return e&&e.scrollTop||0}return A&&(A.scrollY||A.pageYOffset||A.document.documentElement.scrollTop)||0}},{key:"scrollX",value:function(){if(this.instance.config.scroll_root_selector){var e=this.scrollElement();return e&&e.scrollLeft||0}return A&&(A.scrollX||A.pageXOffset||A.document.documentElement.scrollLeft)||0}}]),e}(),iz=function(){function e(){a(this,e),c(this,"events",{}),this.events={}}return l(e,[{key:"on",value:function(e,t){var n=this;return this.events[e]||(this.events[e]=[]),this.events[e].push(t),function(){n.events[e]=n.events[e].filter(function(e){return e!==t})}}},{key:"emit",value:function(e,t){var n,i=f(this.events[e]||[]);try{for(i.s();!(n=i.n()).done;)(0,n.value)(t)}catch(e){i.e(e)}finally{i.f()}var r,o=f(this.events["*"]||[]);try{for(o.s();!(r=o.n()).done;)(0,r.value)(e,t)}catch(e){o.e(e)}finally{o.f()}}}]),e}(),iB="$copy_autocapture";function iH(e,t){return t.length>e?t.slice(0,e)+"...":t}var iU=function(){function e(t){a(this,e),c(this,"_initialized",!1),c(this,"_isDisabledServerSide",null),c(this,"rageclicks",new ij),c(this,"_elementsChainAsString",!1),this.instance=t}return l(e,[{key:"config",get:function(){var e,t=k(this.instance.config.autocapture)?this.instance.config.autocapture:{};return t.url_allowlist=null===(e=t.url_allowlist)||void 0===e?void 0:e.map(function(e){return new RegExp(e)}),t}},{key:"_addDomEventHandlers",value:function(){var e=this;if(this.isBrowserSupported()){if(A&&j){var t=function(t){t=t||(null==A?void 0:A.event);try{e._captureEvent(t)}catch(e){V.error("Failed to capture event",e)}},n=function(t){t=t||(null==A?void 0:A.event),e._captureEvent(t,iB)};er(j,"submit",t,!1,!0),er(j,"change",t,!1,!0),er(j,"click",t,!1,!0),this.config.capture_copied_text&&(er(j,"copy",n,!1,!0),er(j,"cut",n,!1,!0))}}else V.info("Disabling Automatic Event Collection because this browser is not supported")}},{key:"startIfEnabled",value:function(){this.isEnabled&&!this._initialized&&(this._addDomEventHandlers(),this._initialized=!0)}},{key:"afterDecideResponse",value:function(e){e.elementsChainAsString&&(this._elementsChainAsString=e.elementsChainAsString),this.instance.persistence&&this.instance.persistence.register(c({},ec,!!e.autocapture_opt_out)),this._isDisabledServerSide=!!e.autocapture_opt_out,this.startIfEnabled()}},{key:"isEnabled",get:function(){var e,t,n=null===(e=this.instance.persistence)||void 0===e?void 0:e.props[ec];if(C(this._isDisabledServerSide)&&!O(n)&&!this.instance.config.advanced_disable_decide)return!1;var i=null!==(t=this._isDisabledServerSide)&&void 0!==t?t:!!n;return!!this.instance.config.autocapture&&!i}},{key:"_previousElementSibling",value:function(e){if(e.previousElementSibling)return e.previousElementSibling;var t=e;do t=t.previousSibling;while(t&&!t3(t));return t}},{key:"_getAugmentPropertiesFromElement",value:function(e){if(!ne(e))return{};var t={};return X(e.attributes,function(e){if(e.name&&0===e.name.indexOf("data-ph-capture-attribute")){var n=e.name.replace("data-ph-capture-attribute-",""),i=e.value;n&&i&&nl(i)&&(t[n]=i)}}),t}},{key:"_getPropertiesFromElement",value:function(e,t,n){var i,r=e.tagName.toLowerCase(),o={tag_name:r};t9.indexOf(r)>-1&&!n&&("a"===r.toLowerCase()||"button"===r.toLowerCase()?o.$el_text=iH(1024,nc(e)):o.$el_text=iH(1024,t5(e)));var a=t1(e);a.length>0&&(o.classes=a.filter(function(e){return""!==e}));var s=null===(i=this.config)||void 0===i?void 0:i.element_attribute_ignorelist;X(e.attributes,function(n){var i;if((!nt(e)||-1!==["name","id","class","aria-label"].indexOf(n.name))&&(null==s||!s.includes(n.name))&&!t&&nl(n.value)&&(!S(i=n.name)||"_ngcontent"!==i.substring(0,10)&&"_nghost"!==i.substring(0,7))){var r=n.value;"class"===n.name&&(r=t0(r).join(" ")),o["attr__"+n.name]=iH(1024,r)}});for(var l=1,c=1,d=e;d=this._previousElementSibling(d);)l++,d.tagName===e.tagName&&c++;return o.nth_child=l,o.nth_of_type=c,o}},{key:"_getDefaultProperties",value:function(e){return{$event_type:e,$ce_version:1}}},{key:"_getEventTarget",value:function(e){var t;return E(e.target)?e.srcElement||null:null!==(t=e.target)&&void 0!==t&&t.shadowRoot?e.composedPath()[0]||null:e.target||null}},{key:"_captureEvent",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"$autocapture";if(this.isEnabled){var i,a=this._getEventTarget(e);t6(a)&&(a=a.parentNode||null),"$autocapture"===n&&"click"===e.type&&e instanceof MouseEvent&&this.instance.config.rageclick&&null!==(i=this.rageclicks)&&void 0!==i&&i.isRageClick(e.clientX,e.clientY,(new Date).getTime())&&this._captureEvent(e,"$rageclick");var s=n===iB;if(a&&function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,r=arguments.length>4?arguments[4]:void 0;if(!A||!e||t4(e,"html")||!t3(e))return!1;if(null!=n&&n.url_allowlist){var a=A.location.href,s=n.url_allowlist;if(s&&!s.some(function(e){return a.match(e)}))return!1}if(null!=n&&n.dom_event_allowlist){var l=n.dom_event_allowlist;if(l&&!l.some(function(e){return t.type===e}))return!1}for(var c=!1,d=[e],u=!0,h=e;h.parentNode&&!t4(h,"body");)if(t8(h.parentNode))d.push(h.parentNode.host),h=h.parentNode.host;else{if(!(u=t7(h)))break;if(i||t9.indexOf(u.tagName.toLowerCase())>-1)c=!0;else{var p=A.getComputedStyle(u);p&&"pointer"===p.getPropertyValue("cursor")&&(c=!0)}d.push(u),h=u}if(!function(e,t){var n=null==t?void 0:t.element_allowlist;if(E(n))return!0;var i,r=f(e);try{for(r.s();!(i=r.n()).done;){var a=function(){var e=i.value;if(n.some(function(t){return e.tagName.toLowerCase()===t}))return{v:!0}}();if("object"===o(a))return a.v}}catch(e){r.e(e)}finally{r.f()}return!1}(d,n)||!function(e,t){var n=null==t?void 0:t.css_selector_allowlist;if(E(n))return!0;var i,r=f(e);try{for(r.s();!(i=r.n()).done;){var a=function(){var e=i.value;if(n.some(function(t){return e.matches(t)}))return{v:!0}}();if("object"===o(a))return a.v}}catch(e){r.e(e)}finally{r.f()}return!1}(d,n))return!1;var m=A.getComputedStyle(e);if(m&&"pointer"===m.getPropertyValue("cursor")&&"click"===t.type)return!0;var g=e.tagName.toLowerCase();switch(g){case"html":return!1;case"form":return(r||["submit"]).indexOf(t.type)>=0;case"input":case"select":case"textarea":return(r||["change","click"]).indexOf(t.type)>=0;default:return c?(r||["click"]).indexOf(t.type)>=0:(r||["click"]).indexOf(t.type)>=0&&(t9.indexOf(g)>-1||"true"===e.getAttribute("contenteditable"))}}(a,e,this.config,s,s?["copy","cut"]:void 0)){for(var l,c,u=[a],h=a;h.parentNode&&!t4(h,"body");)t8(h.parentNode)?(u.push(h.parentNode.host),h=h.parentNode.host):(u.push(h.parentNode),h=h.parentNode);var p,m=[],g={},b=!1;if(X(u,function(e){var n=ne(e);"a"===e.tagName.toLowerCase()&&(p=e.getAttribute("href"),p=n&&nl(p)&&p),K(t1(e),"ph-no-capture")&&(b=!0),m.push(t._getPropertiesFromElement(e,t.instance.config.mask_all_element_attributes,t.instance.config.mask_all_text)),Y(g,t._getAugmentPropertiesFromElement(e))}),this.instance.config.mask_all_text||("a"===a.tagName.toLowerCase()||"button"===a.tagName.toLowerCase()?m[0].$el_text=nc(a):m[0].$el_text=t5(a)),p&&(m[0].attr__href=p),b)return!1;var v=Y(this._getDefaultProperties(e.type),this._elementsChainAsString?{$elements_chain:m.map(function(e){var t,n,i,r={text:null===(n=e.$el_text)||void 0===n?void 0:n.slice(0,400),tag_name:e.tag_name,href:null===(i=e.attr__href)||void 0===i?void 0:i.slice(0,2048),attr_class:(t=e.attr__class)?x(t)?t:t0(t):void 0,attr_id:e.attr__id,nth_child:e.nth_child,nth_of_type:e.nth_of_type,attributes:{}};return J(e).filter(function(e){return 0===d(e,1)[0].indexOf("attr__")}).forEach(function(e){var t=d(e,2),n=t[0],i=t[1];return r.attributes[n]=i}),r}).map(function(e){var t,n,i="";if(e.tag_name&&(i+=e.tag_name),e.attr_class){e.attr_class.sort();var o,a=f(e.attr_class);try{for(a.s();!(o=a.n()).done;){var s=o.value;i+=".".concat(s.replace(/"/g,""))}}catch(e){a.e(e)}finally{a.f()}}var l=r(r(r(r({},e.text?{text:e.text}:{}),{},{"nth-child":null!==(t=e.nth_child)&&void 0!==t?t:0,"nth-of-type":null!==(n=e.nth_of_type)&&void 0!==n?n:0},e.href?{href:e.href}:{}),e.attr_id?{attr_id:e.attr_id}:{}),e.attributes),c={};return J(l).sort(function(e,t){var n=d(e,1)[0],i=d(t,1)[0];return n.localeCompare(i)}).forEach(function(e){var t=d(e,2),n=t[0],i=t[1];return c[nd(n.toString())]=nd(i.toString())}),i+=":"+J(l).map(function(e){var t=d(e,2),n=t[0],i=t[1];return"".concat(n,'="').concat(i,'"')}).join("")}).join(";")}:{$elements:m},null!==(l=m[0])&&void 0!==l&&l.$el_text?{$el_text:null===(c=m[0])||void 0===c?void 0:c.$el_text}:{},g);if(n===iB){var y,w=t2(null==A||null===(y=A.getSelection())||void 0===y?void 0:y.toString()),k=e.type||"clipboard";if(!w)return!1;v.$selected_content=w,v.$copy_type=k}return this.instance.capture(n,v),!0}}}},{key:"isBrowserSupported",value:function(){return w(null==j?void 0:j.querySelectorAll)}}]),e}(),iV={},iW=function(){},iq="posthog",iG=!ip&&-1===(null==B?void 0:B.indexOf("MSIE"))&&-1===(null==B?void 0:B.indexOf("Mozilla")),iX=function(){var e,t,n;return{api_host:"https://us.i.posthog.com",ui_host:null,token:"",autocapture:!0,rageclick:!0,cross_subdomain_cookie:!!S(n=null==(t=null==j?void 0:j.location)?void 0:t.hostname)&&"herokuapp.com"!==n.split(".").slice(-2).join("."),persistence:"localStorage+cookie",persistence_name:"",loaded:iW,store_google:!0,custom_campaign_params:[],custom_blocked_useragents:[],save_referrer:!0,capture_pageview:!0,capture_pageleave:"if_capture_pageview",debug:D&&S(null==D?void 0:D.search)&&-1!==D.search.indexOf("__posthog_debug=true")||!1,verbose:!1,cookie_expiration:365,upgrade:!1,disable_session_recording:!1,disable_persistence:!1,disable_surveys:!1,enable_recording_console_log:void 0,secure_cookie:"https:"===(null==A||null===(e=A.location)||void 0===e?void 0:e.protocol),ip:!0,opt_out_capturing_by_default:!1,opt_out_persistence_by_default:!1,opt_out_useragent_filter:!1,opt_out_capturing_persistence_type:"localStorage",opt_out_capturing_cookie_prefix:null,opt_in_site_apps:!1,property_denylist:[],respect_dnt:!1,sanitize_properties:null,request_headers:{},inapp_protocol:"//",inapp_link_new_window:!1,request_batching:!0,properties_string_max_length:65535,session_recording:{},mask_all_element_attributes:!1,mask_all_text:!1,advanced_disable_decide:!1,advanced_disable_feature_flags:!1,advanced_disable_feature_flags_on_first_load:!1,advanced_disable_toolbar_metrics:!1,feature_flag_request_timeout_ms:3e3,on_request_error:function(e){var t="Bad HTTP status: "+e.statusCode+" "+e.text;V.error(t)},get_device_id:function(e){return e},_onCapture:iW,capture_performance:void 0,name:"posthog",bootstrap:{},disable_compression:!1,session_idle_timeout_seconds:1800,person_profiles:"always"}},iY=function(e){var t={};E(e.process_person)||(t.person_profiles=e.process_person),E(e.xhr_headers)||(t.request_headers=e.xhr_headers),E(e.cookie_name)||(t.persistence_name=e.cookie_name),E(e.disable_cookie)||(t.disable_persistence=e.disable_cookie);var n=Y({},t,e);return x(e.property_blacklist)&&(E(e.property_denylist)?n.property_denylist=e.property_blacklist:x(e.property_denylist)?n.property_denylist=[].concat(u(e.property_blacklist),u(e.property_denylist)):V.error("Invalid value for property_denylist config: "+e.property_denylist)),n},iK=function(){function e(){a(this,e),c(this,"__forceAllowLocalhost",!1)}return l(e,[{key:"_forceAllowLocalhost",get:function(){return this.__forceAllowLocalhost},set:function(e){V.error("WebPerformanceObserver is deprecated and has no impact on network capture. Use `_forceAllowLocalhostNetworkCapture` on `posthog.sessionRecording`"),this.__forceAllowLocalhost=e}}]),e}(),iJ=function(){function e(){var t=this;a(this,e),c(this,"webPerformance",new iK),c(this,"_debugEventEmitter",new iz),this.config=iX(),this.decideEndpointWasHit=!1,this.SentryIntegration=iC,this.__request_queue=[],this.__loaded=!1,this.analyticsDefaultEndpoint="/e/",this.featureFlags=new eD(this),this.toolbar=new nB(this),this.scrollManager=new iF(this),this.pageViewManager=new iP(this),this.surveys=new iA(this),this.rateLimiter=new iI(this),this.requestRouter=new iS(this),this.people={set:function(e,n,i){var r=S(e)?c({},e,n):e;t.setPersonProperties(r),null==i||i({})},set_once:function(e,n,i){var r=S(e)?c({},e,n):e;t.setPersonProperties(void 0,r),null==i||i({})}},this.on("eventCaptured",function(e){return V.info("send",e)})}return l(e,[{key:"init",value:function(t,n,i){if(i&&i!==iq){var r,o=null!==(r=iV[i])&&void 0!==r?r:new e;return o._init(t,n,i),iV[i]=o,iV[iq][i]=o,o}return this._init(t,n,i)}},{key:"_init",value:function(e){var t,n,i=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=arguments.length>2?arguments[2]:void 0;if(E(e)||S(e)&&0===e.trim().length)return V.critical("PostHog was initialized without a token. This likely indicates a misconfiguration. Please check the first argument passed to posthog.init()"),this;if(this.__loaded)return V.warn("You have already initialized PostHog! Re-initializing is a no-op"),this;if(this.__loaded=!0,this.config={},this._triggered_notifs=[],this.set_config(Y({},iX(),iY(o),{name:a,token:e})),this.compression=o.disable_compression?void 0:Z.Base64,this.persistence=new tJ(this.config),this.sessionPersistence="sessionStorage"===this.config.persistence?this.persistence:new tJ(r(r({},this.config),{},{persistence:"sessionStorage"})),this._requestQueue=new nH(function(e){return i._send_retriable_request(e)}),this._retryQueue=new ik(this),this.__request_queue=[],this.sessionManager=new i_(this.config,this.persistence),this.sessionPropsManager=new i$(this.sessionManager,this.persistence),this.sessionRecording=new nD(this),this.sessionRecording.startIfEnabledOrStop(),this.config.disable_scroll_properties||this.scrollManager.startMeasuringScrollPosition(),this.autocapture=new iU(this),this.autocapture.startIfEnabled(),this.surveys.loadIfEnabled(),this.heatmaps=new iN(this),this.heatmaps.startIfEnabled(),m.DEBUG=m.DEBUG||this.config.debug,this._gdpr_init(),void 0!==(null===(t=o.bootstrap)||void 0===t?void 0:t.distinctID)){var s,l,c=this.config.get_device_id(eq()),d=null!==(s=o.bootstrap)&&void 0!==s&&s.isIdentifiedID?c:o.bootstrap.distinctID;this.persistence.set_property(eS,null!==(l=o.bootstrap)&&void 0!==l&&l.isIdentifiedID?"identified":"anonymous"),this.register({distinct_id:o.bootstrap.distinctID,$device_id:d})}if(this._hasBootstrappedFeatureFlags()){var u,h,p=Object.keys((null===(u=o.bootstrap)||void 0===u?void 0:u.featureFlags)||{}).filter(function(e){var t,n;return!(null===(t=o.bootstrap)||void 0===t||null===(n=t.featureFlags)||void 0===n||!n[e])}).reduce(function(e,t){var n,i;return e[t]=(null===(n=o.bootstrap)||void 0===n||null===(i=n.featureFlags)||void 0===i?void 0:i[t])||!1,e},{}),f=Object.keys((null===(h=o.bootstrap)||void 0===h?void 0:h.featureFlagPayloads)||{}).filter(function(e){return p[e]}).reduce(function(e,t){var n,i,r,a;return null!==(n=o.bootstrap)&&void 0!==n&&null!==(i=n.featureFlagPayloads)&&void 0!==i&&i[t]&&(e[t]=null===(r=o.bootstrap)||void 0===r||null===(a=r.featureFlagPayloads)||void 0===a?void 0:a[t]),e},{});this.featureFlags.receivedFeatureFlags({featureFlags:p,featureFlagPayloads:f})}if(!this.get_distinct_id()){var g=this.config.get_device_id(eq());this.register_once({distinct_id:g,$device_id:g},""),this.persistence.set_property(eS,"anonymous")}return null==A||null===(n=A.addEventListener)||void 0===n||n.call(A,"onpagehide"in self?"pagehide":"unload",this._handle_unload.bind(this)),this.toolbar.maybeLoadToolbar(),o.segment?function(e,t){var n=e.config.segment;if(!n)return t();!function(e,t){var n=e.config.segment;if(!n)return t();var i=function(n){var i=function(){return n.anonymousId()||eq()};e.config.get_device_id=i,n.id()&&(e.register({distinct_id:n.id(),$device_id:i()}),e.persistence.set_property(eS,"identified")),t()},r=n.user();"then"in r&&w(r.then)?r.then(function(e){return i(e)}):i(r)}(e,function(){var i;n.register((Promise&&Promise.resolve||V.warn("This browser does not have Promise support, and can not use the segment integration"),i=function(t,n){if(!n)return t;t.event.userId||t.event.anonymousId===e.get_distinct_id()||e.reset(),t.event.userId&&t.event.userId!==e.get_distinct_id()&&(e.register({distinct_id:t.event.userId}),e.reloadFeatureFlags());var i,r=e._calculate_event_properties(n,null!==(i=t.event.properties)&&void 0!==i?i:{});return t.event.properties=Object.assign({},r,t.event.properties),t},{name:"PostHog JS",type:"enrichment",version:"1.0.0",isLoaded:function(){return!0},load:function(){return Promise.resolve()},track:function(e){return i(e,e.event.event)},page:function(e){return i(e,"$pageview")},identify:function(e){return i(e,"$identify")},screen:function(e){return i(e,"$screen")}})).then(function(){t()})})}(this,function(){return i._loaded()}):this._loaded(),w(this.config._onCapture)&&this.on("eventCaptured",function(e){return i.config._onCapture(e.event,e)}),this}},{key:"_afterDecideResponse",value:function(e){var t,n,i,r,o;this.compression=void 0,e.supportedCompression&&!this.config.disable_compression&&(this.compression=K(e.supportedCompression,Z.GZipJS)?Z.GZipJS:K(e.supportedCompression,Z.Base64)?Z.Base64:void 0),null!==(t=e.analytics)&&void 0!==t&&t.endpoint&&(this.analyticsDefaultEndpoint=e.analytics.endpoint),null===(n=this.sessionRecording)||void 0===n||n.afterDecideResponse(e),null===(i=this.autocapture)||void 0===i||i.afterDecideResponse(e),null===(r=this.heatmaps)||void 0===r||r.afterDecideResponse(e),null===(o=this.surveys)||void 0===o||o.afterDecideResponse(e)}},{key:"_loaded",value:function(){var e=this,t=this.config.advanced_disable_decide;t||this.featureFlags.setReloadingPaused(!0);try{this.config.loaded(this)}catch(e){V.critical("`loaded` function failed",e)}this._start_queue_if_opted_in(),this.config.capture_pageview&&setTimeout(function(){j&&e.capture("$pageview",{title:j.title},{send_instantly:!0})},1),t||(new nN(this).call(),this.featureFlags.resetRequestQueue())}},{key:"_start_queue_if_opted_in",value:function(){var e;this.has_opted_out_capturing()||this.config.request_batching&&(null===(e=this._requestQueue)||void 0===e||e.enable())}},{key:"_dom_loaded",value:function(){var e=this;this.has_opted_out_capturing()||G(this.__request_queue,function(t){return e._send_retriable_request(t)}),this.__request_queue=[],this._start_queue_if_opted_in()}},{key:"_handle_unload",value:function(){var e,t;this.config.request_batching?(this._shouldCapturePageleave()&&this.capture("$pageleave"),null===(e=this._requestQueue)||void 0===e||e.unload(),null===(t=this._retryQueue)||void 0===t||t.unload()):this._shouldCapturePageleave()&&this.capture("$pageleave",null,{transport:"sendBeacon"})}},{key:"_send_request",value:function(e){var t=this;this.__loaded&&(iG?this.__request_queue.push(e):this.rateLimiter.isServerRateLimited(e.batchKey)||(e.transport=e.transport||this.config.api_transport,e.url=ig(e.url,{ip:this.config.ip?1:0}),e.headers=this.config.request_headers,e.compression="best-available"===e.compression?this.compression:e.compression,function(e){var t,n,i,o=r({},e);o.timeout=o.timeout||6e4,o.url=ig(o.url,{_:(new Date).getTime().toString(),ver:m.LIB_VERSION,compression:o.compression});var a=null!==(t=o.transport)&&void 0!==t?t:"XHR",s=null!==(n=null===(i=function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return e[n]}(iv,function(e){return e.transport===a}))||void 0===i?void 0:i.method)&&void 0!==n?n:iv[0].method;if(!s)throw Error("No available transport method");s(o)}(r(r({},e),{},{callback:function(n){var i,r,o;t.rateLimiter.checkForLimiting(n),n.statusCode>=400&&(null===(r=(o=t.config).on_request_error)||void 0===r||r.call(o,n)),null===(i=e.callback)||void 0===i||i.call(e,n)}}))))}},{key:"_send_retriable_request",value:function(e){this._retryQueue?this._retryQueue.retriableRequest(e):this._send_request(e)}},{key:"_execute_array",value:function(e){var t,n=this,i=[],r=[],o=[];G(e,function(e){e&&(x(t=e[0])?o.push(e):w(e)?e.call(n):x(e)&&"alias"===t?i.push(e):x(e)&&-1!==t.indexOf("capture")&&w(n[t])?o.push(e):r.push(e))});var a=function(e,t){G(e,function(e){if(x(e[0])){var n=t;X(e,function(e){n=n[e[0]].apply(n,e.slice(1))})}else this[e[0]].apply(this,e.slice(1))},t)};a(i,this),a(r,this),a(o,this)}},{key:"_hasBootstrappedFeatureFlags",value:function(){var e,t;return(null===(e=this.config.bootstrap)||void 0===e?void 0:e.featureFlags)&&Object.keys(null===(t=this.config.bootstrap)||void 0===t?void 0:t.featureFlags).length>0||!1}},{key:"push",value:function(e){this._execute_array([e])}},{key:"capture",value:function(e,t,n){var i;if(!(this.__loaded&&this.persistence&&this.sessionPersistence&&this._requestQueue))return V.uninitializedWarning("posthog.capture");if(!nO(this)){if(!E(e)&&S(e)){if(!B||this.config.opt_out_useragent_filter||!iM(B,this.config.custom_blocked_useragents)){var o=null!=n&&n.skip_client_rate_limiting?void 0:this.rateLimiter.clientRateLimitContext();if(null==o||!o.isRateLimited){this.sessionPersistence.update_search_keyword(),this.config.store_google&&(this.sessionPersistence.update_campaign_params(),this.persistence.set_initial_campaign_params()),this.config.save_referrer&&(this.sessionPersistence.update_referrer_info(),this.persistence.set_initial_referrer_info());var a,s,l,c,d={uuid:eq(),event:e,properties:this._calculate_event_properties(e,t||{})};if(null==n||!n._noHeatmaps){var u,h=null===(u=this.heatmaps)||void 0===u?void 0:u.getAndClearBuffer();h&&(d.properties.$heatmap_data=h)}o&&(d.properties.$lib_rate_limit_remaining_tokens=o.remainingTokens),(null==n?void 0:n.$set)&&(d.$set=null==n?void 0:n.$set);var p=this._calculate_set_once_properties(null==n?void 0:n.$set_once);p&&(d.$set_once=p),(a=d,s=null!=n&&n._noTruncate?null:this.config.properties_string_max_length,l=function(e){return S(e)&&!C(s)?e.slice(0,s):e},c=new Set,d=function e(t,n){var i;return t!==Object(t)?l?l(t,n):t:c.has(t)?void 0:(c.add(t),x(t)?(i=[],G(t,function(t){i.push(e(t))})):(i={},X(t,function(t,n){c.has(t)||(i[n]=e(t,n))})),i)}(a)).timestamp=(null==n?void 0:n.timestamp)||new Date,E(null==n?void 0:n.timestamp)||(d.properties.$event_time_override_provided=!0,d.properties.$event_time_override_system_time=new Date);var f=r(r({},d.properties.$set),d.$set);_(f)||this.setPersonPropertiesForFlags(f),this._debugEventEmitter.emit("eventCaptured",d);var m={method:"POST",url:null!==(i=null==n?void 0:n._url)&&void 0!==i?i:this.requestRouter.endpointFor("api",this.analyticsDefaultEndpoint),data:d,compression:"best-available",batchKey:null==n?void 0:n._batchKey};return!this.config.request_batching||n&&(null==n||!n._batchKey)||null!=n&&n.send_instantly?this._send_retriable_request(m):this._requestQueue.enqueue(m),d}V.critical("This capture call is ignored due to client rate limiting.")}}else V.error("No event name provided to posthog.capture")}}},{key:"_addCaptureHook",value:function(e){this.on("eventCaptured",function(t){return e(t.event)})}},{key:"_calculate_event_properties",value:function(e,t){if(!this.persistence||!this.sessionPersistence)return t;var n=this.persistence.remove_event_timer(e),i=r({},t);if(i.token=this.config.token,"$snapshot"===e){var o=r(r({},this.persistence.properties()),this.sessionPersistence.properties());return i.distinct_id=o.distinct_id,i}var a=tY.properties();if(this.sessionManager){var s=this.sessionManager.checkAndGetSessionAndWindowId(),l=s.sessionId,c=s.windowId;i.$session_id=l,i.$window_id=c}if(this.requestRouter.region===ix.CUSTOM&&(i.$lib_custom_api_host=this.config.api_host),this.sessionPropsManager&&this.config.__preview_send_client_session_params&&("$pageview"===e||"$pageleave"===e||"$autocapture"===e)){var d=this.sessionPropsManager.getSessionProps();i=Y(i,d)}if(!this.config.disable_scroll_properties){var u={};"$pageview"===e?u=this.pageViewManager.doPageView():"$pageleave"===e&&(u=this.pageViewManager.doPageLeave()),i=Y(i,u)}if("$pageview"===e&&j&&(i.title=j.title),!E(n)){var h=(new Date).getTime()-n;i.$duration=parseFloat((h/1e3).toFixed(3))}B&&this.config.opt_out_useragent_filter&&(i.$browser_type=iM(B,this.config.custom_blocked_useragents)?"bot":"browser"),(i=Y({},a,this.persistence.properties(),this.sessionPersistence.properties(),i)).$is_identified=this._isIdentified(),x(this.config.property_denylist)?X(this.config.property_denylist,function(e){delete i[e]}):V.error("Invalid value for property_denylist config: "+this.config.property_denylist+" or property_blacklist config: "+this.config.property_blacklist);var p=this.config.sanitize_properties;return p&&(i=p(i,e)),i.$process_person_profile=this._hasPersonProcessing(),i}},{key:"_calculate_set_once_properties",value:function(e){if(!this.persistence||!this._hasPersonProcessing())return e;var t=Y({},this.persistence.get_initial_props(),e||{});return _(t)?void 0:t}},{key:"register",value:function(e,t){var n;null===(n=this.persistence)||void 0===n||n.register(e,t)}},{key:"register_once",value:function(e,t,n){var i;null===(i=this.persistence)||void 0===i||i.register_once(e,t,n)}},{key:"register_for_session",value:function(e){var t;null===(t=this.sessionPersistence)||void 0===t||t.register(e)}},{key:"unregister",value:function(e){var t;null===(t=this.persistence)||void 0===t||t.unregister(e)}},{key:"unregister_for_session",value:function(e){var t;null===(t=this.sessionPersistence)||void 0===t||t.unregister(e)}},{key:"_register_single",value:function(e,t){this.register(c({},e,t))}},{key:"getFeatureFlag",value:function(e,t){return this.featureFlags.getFeatureFlag(e,t)}},{key:"getFeatureFlagPayload",value:function(e){var t=this.featureFlags.getFeatureFlagPayload(e);try{return JSON.parse(t)}catch(e){return t}}},{key:"isFeatureEnabled",value:function(e,t){return this.featureFlags.isFeatureEnabled(e,t)}},{key:"reloadFeatureFlags",value:function(){this.featureFlags.reloadFeatureFlags()}},{key:"updateEarlyAccessFeatureEnrollment",value:function(e,t){this.featureFlags.updateEarlyAccessFeatureEnrollment(e,t)}},{key:"getEarlyAccessFeatures",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.featureFlags.getEarlyAccessFeatures(e,t)}},{key:"on",value:function(e,t){return this._debugEventEmitter.on(e,t)}},{key:"onFeatureFlags",value:function(e){return this.featureFlags.onFeatureFlags(e)}},{key:"onSessionId",value:function(e){var t,n;return null!==(t=null===(n=this.sessionManager)||void 0===n?void 0:n.onSessionId(e))&&void 0!==t?t:function(){}}},{key:"getSurveys",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.surveys.getSurveys(e,t)}},{key:"getActiveMatchingSurveys",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.surveys.getActiveMatchingSurveys(e,t)}},{key:"identify",value:function(e,t,n){if(!this.__loaded||!this.persistence)return V.uninitializedWarning("posthog.identify");if(T(e)&&(e=e.toString(),V.warn("The first argument to posthog.identify was a number, but it should be a string. It has been converted to a string.")),e){if(["distinct_id","distinctid"].includes(e.toLowerCase()))V.critical('The string "'.concat(e,'" was set in posthog.identify which indicates an error. This ID should be unique to the user and not a hardcoded string.'));else if(this._requirePersonProcessing("posthog.identify")){var i=this.get_distinct_id();this.register({$user_id:e}),this.get_property("$device_id")||this.register_once({$had_persisted_distinct_id:!0,$device_id:i},""),e!==i&&e!==this.get_property(es)&&(this.unregister(es),this.register({distinct_id:e}));var r="anonymous"===(this.persistence.get_property(eS)||"anonymous");e!==i&&r?(this.persistence.set_property(eS,"identified"),this.setPersonPropertiesForFlags(t||{},!1),this.capture("$identify",{distinct_id:e,$anon_distinct_id:i},{$set:t||{},$set_once:n||{}}),this.featureFlags.setAnonymousDistinctId(i)):(t||n)&&this.setPersonProperties(t,n),e!==i&&(this.reloadFeatureFlags(),this.unregister(eE))}}else V.error("Unique user id has not been set in posthog.identify")}},{key:"setPersonProperties",value:function(e,t){(e||t)&&this._requirePersonProcessing("posthog.setPersonProperties")&&(this.setPersonPropertiesForFlags(e||{}),this.capture("$set",{$set:e||{},$set_once:t||{}}))}},{key:"group",value:function(e,t,n){if(e&&t){if(this._requirePersonProcessing("posthog.group")){var i=this.getGroups();i[e]!==t&&this.resetGroupPropertiesForFlags(e),this.register({$groups:r(r({},i),{},c({},e,t))}),n&&(this.capture("$groupidentify",{$group_type:e,$group_key:t,$group_set:n}),this.setGroupPropertiesForFlags(c({},e,n))),i[e]===t||n||this.reloadFeatureFlags()}}else V.error("posthog.group requires a group type and group key")}},{key:"resetGroups",value:function(){this.register({$groups:{}}),this.resetGroupPropertiesForFlags(),this.reloadFeatureFlags()}},{key:"setPersonPropertiesForFlags",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this._requirePersonProcessing("posthog.setPersonPropertiesForFlags")&&this.featureFlags.setPersonPropertiesForFlags(e,t)}},{key:"resetPersonPropertiesForFlags",value:function(){this.featureFlags.resetPersonPropertiesForFlags()}},{key:"setGroupPropertiesForFlags",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this._requirePersonProcessing("posthog.setGroupPropertiesForFlags")&&this.featureFlags.setGroupPropertiesForFlags(e,t)}},{key:"resetGroupPropertiesForFlags",value:function(e){this.featureFlags.resetGroupPropertiesForFlags(e)}},{key:"reset",value:function(e){if(!this.__loaded)return V.uninitializedWarning("posthog.reset");var t,n,i,r,o=this.get_property("$device_id");null===(t=this.persistence)||void 0===t||t.clear(),null===(n=this.sessionPersistence)||void 0===n||n.clear(),null===(i=this.persistence)||void 0===i||i.set_property(eS,"anonymous"),null===(r=this.sessionManager)||void 0===r||r.resetSessionId();var a=this.config.get_device_id(eq());this.register_once({distinct_id:a,$device_id:e?a:o},"")}},{key:"get_distinct_id",value:function(){return this.get_property("distinct_id")}},{key:"getGroups",value:function(){return this.get_property("$groups")||{}}},{key:"get_session_id",value:function(){var e,t;return null!==(e=null===(t=this.sessionManager)||void 0===t?void 0:t.checkAndGetSessionAndWindowId(!0).sessionId)&&void 0!==e?e:""}},{key:"get_session_replay_url",value:function(e){if(!this.sessionManager)return"";var t=this.sessionManager.checkAndGetSessionAndWindowId(!0),n=t.sessionId,i=t.sessionStartTimestamp,r=this.requestRouter.endpointFor("ui","/project/".concat(this.config.token,"/replay/").concat(n));if(null!=e&&e.withTimestamp&&i){var o,a=null!==(o=e.timestampLookBack)&&void 0!==o?o:10;if(!i)return r;var s=Math.max(Math.floor(((new Date).getTime()-i)/1e3)-a,0);r+="?t=".concat(s)}return r}},{key:"alias",value:function(e,t){return e===this.get_property(ea)?(V.critical("Attempting to create alias for existing People user - aborting."),-2):this._requirePersonProcessing("posthog.alias")?(E(t)&&(t=this.get_distinct_id()),e!==t?(this._register_single(es,e),this.capture("$create_alias",{alias:e,distinct_id:t})):(V.warn("alias matches current distinct_id - skipping api call."),this.identify(e),-1)):void 0}},{key:"set_config",value:function(e){var t,n,i,o,a=r({},this.config);k(e)&&(Y(this.config,iY(e)),null===(t=this.persistence)||void 0===t||t.update_config(this.config,a),this.sessionPersistence="sessionStorage"===this.config.persistence?this.persistence:new tJ(r(r({},this.config),{},{persistence:"sessionStorage"})),eZ.is_supported()&&"true"===eZ.get("ph_debug")&&(this.config.debug=!0),this.config.debug&&(m.DEBUG=!0),null===(n=this.sessionRecording)||void 0===n||n.startIfEnabledOrStop(),null===(i=this.autocapture)||void 0===i||i.startIfEnabled(),null===(o=this.heatmaps)||void 0===o||o.startIfEnabled(),this.surveys.loadIfEnabled())}},{key:"startSessionRecording",value:function(e){if(null!=e&&e.sampling){var t,n,i=null===(t=this.sessionManager)||void 0===t?void 0:t.checkAndGetSessionAndWindowId();null===(n=this.persistence)||void 0===n||n.register(c({},ev,!0)),V.info("Session recording started with sampling override for session: ",null==i?void 0:i.sessionId)}this.set_config({disable_session_recording:!1})}},{key:"stopSessionRecording",value:function(){this.set_config({disable_session_recording:!0})}},{key:"sessionRecordingStarted",value:function(){var e;return!(null===(e=this.sessionRecording)||void 0===e||!e.started)}},{key:"loadToolbar",value:function(e){return this.toolbar.loadToolbar(e)}},{key:"get_property",value:function(e){var t;return null===(t=this.persistence)||void 0===t?void 0:t.props[e]}},{key:"getSessionProperty",value:function(e){var t;return null===(t=this.sessionPersistence)||void 0===t?void 0:t.props[e]}},{key:"toString",value:function(){var e,t=null!==(e=this.config.name)&&void 0!==e?e:iq;return t!==iq&&(t=iq+"."+t),t}},{key:"_isIdentified",value:function(){var e,t;return"identified"===(null===(e=this.persistence)||void 0===e?void 0:e.get_property(eS))||"identified"===(null===(t=this.sessionPersistence)||void 0===t?void 0:t.get_property(eS))}},{key:"_hasPersonProcessing",value:function(){var e,t,n,i;return!("never"===this.config.person_profiles||"identified_only"===this.config.person_profiles&&!this._isIdentified()&&_(this.getGroups())&&(null===(e=this.persistence)||void 0===e||null===(t=e.props)||void 0===t||!t[es])&&(null===(n=this.persistence)||void 0===n||null===(i=n.props)||void 0===i||!i[eA]))}},{key:"_shouldCapturePageleave",value:function(){return!0===this.config.capture_pageleave||"if_capture_pageview"===this.config.capture_pageleave&&this.config.capture_pageview}},{key:"createPersonProfile",value:function(){this._hasPersonProcessing()||this._requirePersonProcessing("posthog.createPersonProfile")&&this.setPersonProperties({},{})}},{key:"_requirePersonProcessing",value:function(e){return"never"===this.config.person_profiles?(V.error(e+' was called, but process_person is set to "never". This call will be ignored.'),!1):(this._register_single(eA,!0),!0)}},{key:"_gdpr_init",value:function(){"localStorage"===this.config.opt_out_capturing_persistence_type&&eZ.is_supported()&&(!this.has_opted_in_capturing()&&this.has_opted_in_capturing({persistence_type:"cookie"})&&this.opt_in_capturing({enable_persistence:!1}),!this.has_opted_out_capturing()&&this.has_opted_out_capturing({persistence_type:"cookie"})&&this.opt_out_capturing({clear_persistence:!1}),this.clear_opt_in_out_capturing({persistence_type:"cookie",enable_persistence:!1})),this.has_opted_out_capturing()?this._gdpr_update_persistence({clear_persistence:!0}):!this.has_opted_in_capturing()&&(this.config.opt_out_capturing_by_default||eK.get("ph_optout"))&&(eK.remove("ph_optout"),this.opt_out_capturing({clear_persistence:this.config.opt_out_persistence_by_default}))}},{key:"_gdpr_update_persistence",value:function(e){var t,n,i,r,o;if(e&&e.clear_persistence)i=!0;else{if(!e||!e.enable_persistence)return;i=!1}this.config.disable_persistence||(null===(t=this.persistence)||void 0===t?void 0:t.disabled)===i||null===(r=this.persistence)||void 0===r||r.set_disabled(i),this.config.disable_persistence||(null===(n=this.sessionPersistence)||void 0===n?void 0:n.disabled)===i||null===(o=this.sessionPersistence)||void 0===o||o.set_disabled(i)}},{key:"_gdpr_call_func",value:function(e,t){return t=Y({capture:this.capture.bind(this),persistence_type:this.config.opt_out_capturing_persistence_type,cookie_prefix:this.config.opt_out_capturing_cookie_prefix,cookie_expiration:this.config.cookie_expiration,cross_subdomain_cookie:this.config.cross_subdomain_cookie,secure_cookie:this.config.secure_cookie},t||{}),eZ.is_supported()||"localStorage"!==t.persistence_type||(t.persistence_type="cookie"),e(this.config.token,{capture:t.capture,captureEventName:t.capture_event_name,captureProperties:t.capture_properties,persistenceType:t.persistence_type,persistencePrefix:t.cookie_prefix,cookieExpiration:t.cookie_expiration,crossSubdomainCookie:t.cross_subdomain_cookie,secureCookie:t.secure_cookie})}},{key:"opt_in_capturing",value:function(e){e=Y({enable_persistence:!0},e||{}),this._gdpr_call_func(nx,e),this._gdpr_update_persistence(e)}},{key:"opt_out_capturing",value:function(e){var t=Y({clear_persistence:!0},e||{});this._gdpr_call_func(nw,t),this._gdpr_update_persistence(t)}},{key:"has_opted_in_capturing",value:function(e){return this._gdpr_call_func(nk,e)}},{key:"has_opted_out_capturing",value:function(e){return this._gdpr_call_func(n_,e)}},{key:"clear_opt_in_out_capturing",value:function(e){var t=Y({enable_persistence:!0},null!=e?e:{});this._gdpr_call_func(nE,t),this._gdpr_update_persistence(t)}},{key:"debug",value:function(e){!1===e?(null==A||A.console.log("You've disabled debug mode."),localStorage&&localStorage.removeItem("ph_debug"),this.set_config({debug:!1})):(null==A||A.console.log("You're now in debug mode. All calls to PostHog will be logged in your console.\nYou can disable this with `posthog.debug(false)`."),localStorage&&localStorage.setItem("ph_debug","true"),this.set_config({debug:!0}))}}]),e}();(function(e,t){for(var n=0;n<t.length;n++)e.prototype[t[n]]=et(e.prototype[t[n]])})(iJ,["identify"]),(iQ=i1||(i1={})).Popover="popover",iQ.API="api",iQ.Widget="widget",(i0=i2||(i2={})).Open="open",i0.MultipleChoice="multiple_choice",i0.SingleChoice="single_choice",i0.Rating="rating",i0.Link="link";var iZ,iQ,i0,i1,i2,i5,i3=(i5=iV[iq]=new iJ,function(){function e(){e.done||(e.done=!0,iG=!1,X(iV,function(e){e._dom_loaded()}))}null!=j&&j.addEventListener&&("complete"===j.readyState?e():j.addEventListener("DOMContentLoaded",e,!1)),A&&er(A,"load",e,!0)}(),i5)},26368:function(e,t,n){"use strict";n.d(t,{dl:function(){return l},yZ:function(){return c},zf:function(){return a}});var i=n(80171),r=n(7653),o=(0,r.createContext)({client:i.ZP});function a(e){var t=e.children,n=e.client,a=e.apiKey,s=e.options,l=(0,r.useMemo)(function(){return(n&&a&&console.warn("[PostHog.js] You have provided both a client and an apiKey to PostHogProvider. The apiKey will be ignored in favour of the client."),n&&s&&console.warn("[PostHog.js] You have provided both a client and options to PostHogProvider. The options will be ignored in favour of the client."),n)?n:(a&&(i.ZP.__loaded&&console.warn("[PostHog.js] was already loaded elsewhere. This may cause issues."),i.ZP.init(a,s)),i.ZP)},[n,a]);return r.createElement(o.Provider,{value:{client:l}},t)}var s=function(){return(0,r.useContext)(o).client};function l(e){var t=s(),n=(0,r.useState)(),i=n[0],o=n[1];return(0,r.useEffect)(function(){return t.onFeatureFlags(function(){o(t.isFeatureEnabled(e))})},[t,e]),i}function c(e){var t=s(),n=(0,r.useState)(),i=n[0],o=n[1];return(0,r.useEffect)(function(){return t.onFeatureFlags(function(){o(t.getFeatureFlagPayload(e))})},[t,e]),i}},68571:function(e){var t,n,i,r=e.exports={};function o(){throw Error("setTimeout has not been defined")}function a(){throw Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var l=[],c=!1,d=-1;function u(){c&&i&&(c=!1,i.length?l=i.concat(l):d=-1,l.length&&h())}function h(){if(!c){var e=s(u);c=!0;for(var t=l.length;t;){for(i=l,l=[];++d<t;)i&&i[d].run();d=-1,t=l.length}i=null,c=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function f(){}r.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new p(e,t)),1!==l.length||c||s(h)},p.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=f,r.addListener=f,r.once=f,r.off=f,r.removeListener=f,r.removeAllListeners=f,r.emit=f,r.prependListener=f,r.prependOnceListener=f,r.listeners=function(e){return[]},r.binding=function(e){throw Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw Error("process.chdir is not supported")},r.umask=function(){return 0}},35599:function(e,t,n){"use strict";var i=n(14823);function r(){}function o(){}o.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,o,a){if(a!==i){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:r};return n.PropTypes=n,n}},3436:function(e,t,n){e.exports=n(35599)()},14823:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},91070:function(e,t,n){"use strict";n.d(t,{E:function(){return P}});var i=n(7653),r=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","#","$","%","*","+",",","-",".",":",";","=","?","@","[","]","^","_","{","|","}","~"],o=e=>{let t=0;for(let n=0;n<e.length;n++){let i=e[n];t=83*t+r.indexOf(i)}return t},a=e=>{let t=e/255;return t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)},s=e=>{let t=Math.max(0,Math.min(1,e));return t<=.0031308?Math.trunc(3294.6*t+.5):Math.trunc((1.055*Math.pow(t,.4166666666666667)-.055)*255+.5)},l=e=>e<0?-1:1,c=(e,t)=>l(e)*Math.pow(Math.abs(e),t),d=class extends Error{constructor(e){super(e),this.name="ValidationError",this.message=e}},u=e=>{if(!e||e.length<6)throw new d("The blurhash string must be at least 6 characters");let t=o(e[0]),n=Math.floor(t/9)+1,i=t%9+1;if(e.length!==4+2*i*n)throw new d(`blurhash length mismatch: length is ${e.length} but it should be ${4+2*i*n}`)},h=e=>[a(e>>16),a(e>>8&255),a(255&e)],p=(e,t)=>{let n=Math.floor(e/361),i=Math.floor(e/19)%19;return[c((n-9)/9,2)*t,c((i-9)/9,2)*t,c((e%19-9)/9,2)*t]},f=(e,t,n,i)=>{u(e),i|=1;let r=o(e[0]),a=Math.floor(r/9)+1,l=r%9+1,c=(o(e[1])+1)/166,d=Array(l*a);for(let t=0;t<d.length;t++)if(0===t){let n=o(e.substring(2,6));d[t]=h(n)}else{let n=o(e.substring(4+2*t,6+2*t));d[t]=p(n,c*i)}let f=4*t,m=new Uint8ClampedArray(f*n);for(let e=0;e<n;e++)for(let i=0;i<t;i++){let r=0,o=0,c=0;for(let s=0;s<a;s++)for(let a=0;a<l;a++){let u=Math.cos(Math.PI*i*a/t)*Math.cos(Math.PI*e*s/n),h=d[a+s*l];r+=h[0]*u,o+=h[1]*u,c+=h[2]*u}let u=s(r),h=s(o),p=s(c);m[4*i+0+e*f]=u,m[4*i+1+e*f]=h,m[4*i+2+e*f]=p,m[4*i+3+e*f]=255}return m},m=Object.defineProperty,g=Object.defineProperties,b=Object.getOwnPropertyDescriptors,v=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,w=(e,t,n)=>t in e?m(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,k=(e,t)=>{for(var n in t||(t={}))y.call(t,n)&&w(e,n,t[n]);if(v)for(var n of v(t))x.call(t,n)&&w(e,n,t[n]);return e},_=(e,t)=>g(e,b(t)),E=(e,t)=>{var n={};for(var i in e)y.call(e,i)&&0>t.indexOf(i)&&(n[i]=e[i]);if(null!=e&&v)for(var i of v(e))0>t.indexOf(i)&&x.call(e,i)&&(n[i]=e[i]);return n},S=class extends i.PureComponent{constructor(){super(...arguments),this.canvas=null,this.handleRef=e=>{this.canvas=e,this.draw()},this.draw=()=>{let{hash:e,height:t,punch:n,width:i}=this.props;if(this.canvas){let r=f(e,i,t,n),o=this.canvas.getContext("2d"),a=o.createImageData(i,t);a.data.set(r),o.putImageData(a,0,0)}}}componentDidUpdate(){this.draw()}render(){let e=this.props,{hash:t,height:n,width:r}=e,o=E(e,["hash","height","width"]);return i.createElement("canvas",_(k({},o),{height:n,width:r,ref:this.handleRef}))}};S.defaultProps={height:128,width:128};var C={position:"absolute",top:0,bottom:0,left:0,right:0,width:"100%",height:"100%"},P=class extends i.PureComponent{componentDidUpdate(){if(this.props.resolutionX<=0)throw Error("resolutionX must be larger than zero");if(this.props.resolutionY<=0)throw Error("resolutionY must be larger than zero")}render(){let e=this.props,{hash:t,height:n,width:r,punch:o,resolutionX:a,resolutionY:s,style:l}=e,c=E(e,["hash","height","width","punch","resolutionX","resolutionY","style"]);return i.createElement("div",_(k({},c),{style:_(k({display:"inline-block",height:n,width:r},l),{position:"relative"})}),i.createElement(S,{hash:t,height:s,width:a,punch:o,style:C}))}};P.defaultProps={height:128,width:128,resolutionX:32,resolutionY:32}},74345:function(e,t,n){"use strict";n.d(t,{$Pu:function(){return z},$Rx:function(){return ea},$aX:function(){return A},AlO:function(){return E},B0P:function(){return Z},Bw1:function(){return W},C3L:function(){return y},E33:function(){return O},EQ9:function(){return D},Ekg:function(){return b},IC0:function(){return N},JYw:function(){return a},K9M:function(){return F},KCr:function(){return U},L$C:function(){return ee},LFN:function(){return R},LbG:function(){return X},MJI:function(){return T},NNy:function(){return Q},NOg:function(){return P},OvN:function(){return V},PMT:function(){return K},PdD:function(){return ei},R4s:function(){return B},Rgz:function(){return l},Tfp:function(){return g},U0j:function(){return o},UIZ:function(){return L},UgA:function(){return f},XKb:function(){return $},YFh:function(){return m},Ybf:function(){return en},_hL:function(){return k},_rq:function(){return p},bGz:function(){return x},bax:function(){return I},bcx:function(){return r},bfl:function(){return J},cur:function(){return j},dyY:function(){return v},fzv:function(){return eo},hT1:function(){return w},jRj:function(){return G},kV7:function(){return q},kXG:function(){return et},l$i:function(){return c},l1M:function(){return h},nbt:function(){return Y},q5L:function(){return es},rDJ:function(){return C},rzC:function(){return S},tUt:function(){return H},tv1:function(){return s},vPQ:function(){return _},vWP:function(){return d},xqh:function(){return M},yK7:function(){return u},zy7:function(){return er}});var i=n(75559);function r(e){return(0,i.w_)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"10"}},{tag:"line",attr:{x1:"12",y1:"8",x2:"12",y2:"12"}},{tag:"line",attr:{x1:"12",y1:"16",x2:"12.01",y2:"16"}}]})(e)}function o(e){return(0,i.w_)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polygon",attr:{points:"7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86 7.86 2"}},{tag:"line",attr:{x1:"12",y1:"8",x2:"12",y2:"12"}},{tag:"line",attr:{x1:"12",y1:"16",x2:"12.01",y2:"16"}}]})(e)}function a(e){return(0,i.w_)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"21 8 21 21 3 21 3 8"}},{tag:"rect",attr:{x:"1",y:"3",width:"22",height:"5"}},{tag:"line",attr:{x1:"10",y1:"12",x2:"14",y2:"12"}}]})(e)}function s(e){return(0,i.w_)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"12",y1:"5",x2:"12",y2:"19"}},{tag:"polyline",attr:{points:"19 12 12 19 5 12"}}]})(e)}function l(e){return(0,i.w_)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"5",y1:"12",x2:"19",y2:"12"}},{tag:"polyline",attr:{points:"12 5 19 12 12 19"}}]})(e)}function c(e){return(0,i.w_)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M13.73 21a2 2 0 0 1-3.46 0"}},{tag:"path",attr:{d:"M18.63 13A17.89 17.89 0 0 1 18 8"}},{tag:"path",attr:{d:"M6.26 6.26A5.86 5.86 0 0 0 6 8c0 7-3 9-3 9h14"}},{tag:"path",attr:{d:"M18 8a6 6 0 0 0-9.33-5"}},{tag:"line",attr:{x1:"1",y1:"1",x2:"23",y2:"23"}}]})(e)}function d(e){return(0,i.w_)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"}},{tag:"path",attr:{d:"M13.73 21a2 2 0 0 1-3.46 0"}}]})(e)}function u(e){return(0,i.w_)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M4 19.5A2.5 2.5 0 0 1 6.5 17H20"}},{tag:"path",attr:{d:"M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z"}}]})(e)}function h(e){return(0,i.w_)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M19 21l-7-5-7 5V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z"}}]})(e)}function p(e){return(0,i.w_)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14"}},{tag:"polyline",attr:{points:"22 4 12 14.01 9 11.01"}}]})(e)}function f(e){return(0,i.w_)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"20 6 9 17 4 12"}}]})(e)}function m(e){return(0,i.w_)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"15 18 9 12 15 6"}}]})(e)}function g(e){return(0,i.w_)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"9 18 15 12 9 6"}}]})(e)}function b(e){return(0,i.w_)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"}},{tag:"polyline",attr:{points:"7.5 4.21 12 6.81 16.5 4.21"}},{tag:"polyline",attr:{points:"7.5 19.79 7.5 14.6 3 12"}},{tag:"polyline",attr:{points:"21 12 16.5 14.6 16.5 19.79"}},{tag:"polyline",attr:{points:"3.27 6.96 12 12.01 20.73 6.96"}},{tag:"line",attr:{x1:"12",y1:"22.08",x2:"12",y2:"12"}}]})(e)}function v(e){return(0,i.w_)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"10"}},{tag:"polygon",attr:{points:"16.24 7.76 14.12 14.12 7.76 16.24 9.88 9.88 16.24 7.76"}}]})(e)}function y(e){return(0,i.w_)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"}},{tag:"path",attr:{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"}}]})(e)}function x(e){return(0,i.w_)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"ellipse",attr:{cx:"12",cy:"5",rx:"9",ry:"3"}},{tag:"path",attr:{d:"M21 12c0 1.66-4 3-9 3s-9-1.34-9-3"}},{tag:"path",attr:{d:"M3 5v14c0 1.66 4 3 9 3s9-1.34 9-3V5"}}]})(e)}function w(e){return(0,i.w_)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M21 4H8l-7 8 7 8h13a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2z"}},{tag:"line",attr:{x1:"18",y1:"9",x2:"12",y2:"15"}},{tag:"line",attr:{x1:"12",y1:"9",x2:"18",y2:"15"}}]})(e)}function k(e){return(0,i.w_)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}},{tag:"polyline",attr:{points:"7 10 12 15 17 10"}},{tag:"line",attr:{x1:"12",y1:"15",x2:"12",y2:"3"}}]})(e)}function _(e){return(0,i.w_)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"}},{tag:"path",attr:{d:"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"}}]})(e)}function E(e){return(0,i.w_)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}},{tag:"polyline",attr:{points:"15 3 21 3 21 9"}},{tag:"line",attr:{x1:"10",y1:"14",x2:"21",y2:"3"}}]})(e)}function S(e){return(0,i.w_)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24"}},{tag:"line",attr:{x1:"1",y1:"1",x2:"23",y2:"23"}}]})(e)}function C(e){return(0,i.w_)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"}},{tag:"circle",attr:{cx:"12",cy:"12",r:"3"}}]})(e)}function P(e){return(0,i.w_)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}},{tag:"polyline",attr:{points:"14 2 14 8 20 8"}},{tag:"line",attr:{x1:"16",y1:"13",x2:"8",y2:"13"}},{tag:"line",attr:{x1:"16",y1:"17",x2:"8",y2:"17"}},{tag:"polyline",attr:{points:"10 9 9 9 8 9"}}]})(e)}function T(e){return(0,i.w_)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M4 15s1-1 4-1 5 2 8 2 4-1 4-1V3s-1 1-4 1-5-2-8-2-4 1-4 1z"}},{tag:"line",attr:{x1:"4",y1:"22",x2:"4",y2:"15"}}]})(e)}function O(e){return(0,i.w_)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"20 12 20 22 4 22 4 12"}},{tag:"rect",attr:{x:"2",y:"7",width:"20",height:"5"}},{tag:"line",attr:{x1:"12",y1:"22",x2:"12",y2:"7"}},{tag:"path",attr:{d:"M12 7H7.5a2.5 2.5 0 0 1 0-5C11 2 12 7 12 7z"}},{tag:"path",attr:{d:"M12 7h4.5a2.5 2.5 0 0 0 0-5C13 2 12 7 12 7z"}}]})(e)}function A(e){return(0,i.w_)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z"}}]})(e)}function I(e){return(0,i.w_)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"10"}},{tag:"path",attr:{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"}},{tag:"line",attr:{x1:"12",y1:"17",x2:"12.01",y2:"17"}}]})(e)}function R(e){return(0,i.w_)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{x:"3",y:"3",width:"18",height:"18",rx:"2",ry:"2"}},{tag:"circle",attr:{cx:"8.5",cy:"8.5",r:"1.5"}},{tag:"polyline",attr:{points:"21 15 16 10 5 21"}}]})(e)}function $(e){return(0,i.w_)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"}},{tag:"path",attr:{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"}}]})(e)}function L(e){return(0,i.w_)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{x:"3",y:"11",width:"18",height:"11",rx:"2",ry:"2"}},{tag:"path",attr:{d:"M7 11V7a5 5 0 0 1 10 0v4"}}]})(e)}function M(e){return(0,i.w_)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"}},{tag:"polyline",attr:{points:"16 17 21 12 16 7"}},{tag:"line",attr:{x1:"21",y1:"12",x2:"9",y2:"12"}}]})(e)}function j(e){return(0,i.w_)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"3",y1:"12",x2:"21",y2:"12"}},{tag:"line",attr:{x1:"3",y1:"6",x2:"21",y2:"6"}},{tag:"line",attr:{x1:"3",y1:"18",x2:"21",y2:"18"}}]})(e)}function D(e){return(0,i.w_)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z"}}]})(e)}function N(e){return(0,i.w_)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"}}]})(e)}function F(e){return(0,i.w_)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"1"}},{tag:"circle",attr:{cx:"19",cy:"12",r:"1"}},{tag:"circle",attr:{cx:"5",cy:"12",r:"1"}}]})(e)}function z(e){return(0,i.w_)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"1"}},{tag:"circle",attr:{cx:"12",cy:"5",r:"1"}},{tag:"circle",attr:{cx:"12",cy:"19",r:"1"}}]})(e)}function B(e){return(0,i.w_)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{x:"6",y:"4",width:"4",height:"16"}},{tag:"rect",attr:{x:"14",y:"4",width:"4",height:"16"}}]})(e)}function H(e){return(0,i.w_)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"}}]})(e)}function U(e){return(0,i.w_)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polygon",attr:{points:"5 3 19 12 5 21 5 3"}}]})(e)}function V(e){return(0,i.w_)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"12",y1:"5",x2:"12",y2:"19"}},{tag:"line",attr:{x1:"5",y1:"12",x2:"19",y2:"12"}}]})(e)}function W(e){return(0,i.w_)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"23 4 23 10 17 10"}},{tag:"polyline",attr:{points:"1 20 1 14 7 14"}},{tag:"path",attr:{d:"M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15"}}]})(e)}function q(e){return(0,i.w_)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"23 4 23 10 17 10"}},{tag:"path",attr:{d:"M20.49 15a9 9 0 1 1-2.12-9.36L23 10"}}]})(e)}function G(e){return(0,i.w_)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"11",cy:"11",r:"8"}},{tag:"line",attr:{x1:"21",y1:"21",x2:"16.65",y2:"16.65"}}]})(e)}function X(e){return(0,i.w_)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"22",y1:"2",x2:"11",y2:"13"}},{tag:"polygon",attr:{points:"22 2 15 22 11 13 2 9 22 2"}}]})(e)}function Y(e){return(0,i.w_)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"3"}},{tag:"path",attr:{d:"M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"}}]})(e)}function K(e){return(0,i.w_)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"18",cy:"5",r:"3"}},{tag:"circle",attr:{cx:"6",cy:"12",r:"3"}},{tag:"circle",attr:{cx:"18",cy:"19",r:"3"}},{tag:"line",attr:{x1:"8.59",y1:"13.51",x2:"15.42",y2:"17.49"}},{tag:"line",attr:{x1:"15.41",y1:"6.51",x2:"8.59",y2:"10.49"}}]})(e)}function J(e){return(0,i.w_)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"}}]})(e)}function Z(e){return(0,i.w_)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"10"}},{tag:"line",attr:{x1:"4.93",y1:"4.93",x2:"19.07",y2:"19.07"}}]})(e)}function Q(e){return(0,i.w_)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"4",y1:"21",x2:"4",y2:"14"}},{tag:"line",attr:{x1:"4",y1:"10",x2:"4",y2:"3"}},{tag:"line",attr:{x1:"12",y1:"21",x2:"12",y2:"12"}},{tag:"line",attr:{x1:"12",y1:"8",x2:"12",y2:"3"}},{tag:"line",attr:{x1:"20",y1:"21",x2:"20",y2:"16"}},{tag:"line",attr:{x1:"20",y1:"12",x2:"20",y2:"3"}},{tag:"line",attr:{x1:"1",y1:"14",x2:"7",y2:"14"}},{tag:"line",attr:{x1:"9",y1:"8",x2:"15",y2:"8"}},{tag:"line",attr:{x1:"17",y1:"16",x2:"23",y2:"16"}}]})(e)}function ee(e){return(0,i.w_)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{x:"5",y:"2",width:"14",height:"20",rx:"2",ry:"2"}},{tag:"line",attr:{x1:"12",y1:"18",x2:"12.01",y2:"18"}}]})(e)}function et(e){return(0,i.w_)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"5"}},{tag:"line",attr:{x1:"12",y1:"1",x2:"12",y2:"3"}},{tag:"line",attr:{x1:"12",y1:"21",x2:"12",y2:"23"}},{tag:"line",attr:{x1:"4.22",y1:"4.22",x2:"5.64",y2:"5.64"}},{tag:"line",attr:{x1:"18.36",y1:"18.36",x2:"19.78",y2:"19.78"}},{tag:"line",attr:{x1:"1",y1:"12",x2:"3",y2:"12"}},{tag:"line",attr:{x1:"21",y1:"12",x2:"23",y2:"12"}},{tag:"line",attr:{x1:"4.22",y1:"19.78",x2:"5.64",y2:"18.36"}},{tag:"line",attr:{x1:"18.36",y1:"5.64",x2:"19.78",y2:"4.22"}}]})(e)}function en(e){return(0,i.w_)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"3 6 5 6 21 6"}},{tag:"path",attr:{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"}},{tag:"line",attr:{x1:"10",y1:"11",x2:"10",y2:"17"}},{tag:"line",attr:{x1:"14",y1:"11",x2:"14",y2:"17"}}]})(e)}function ei(e){return(0,i.w_)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{x:"3",y:"11",width:"18",height:"11",rx:"2",ry:"2"}},{tag:"path",attr:{d:"M7 11V7a5 5 0 0 1 9.9-1"}}]})(e)}function er(e){return(0,i.w_)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"}},{tag:"circle",attr:{cx:"8.5",cy:"7",r:"4"}},{tag:"line",attr:{x1:"20",y1:"8",x2:"20",y2:"14"}},{tag:"line",attr:{x1:"23",y1:"11",x2:"17",y2:"11"}}]})(e)}function eo(e){return(0,i.w_)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"}},{tag:"circle",attr:{cx:"12",cy:"7",r:"4"}}]})(e)}function ea(e){return(0,i.w_)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"10"}},{tag:"line",attr:{x1:"15",y1:"9",x2:"9",y2:"15"}},{tag:"line",attr:{x1:"9",y1:"9",x2:"15",y2:"15"}}]})(e)}function es(e){return(0,i.w_)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"18",y1:"6",x2:"6",y2:"18"}},{tag:"line",attr:{x1:"6",y1:"6",x2:"18",y2:"18"}}]})(e)}},75559:function(e,t,n){"use strict";n.d(t,{w_:function(){return l}});var i=n(7653),r={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},o=i.createContext&&i.createContext(r),a=function(){return(a=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},s=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)0>t.indexOf(i[r])&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n};function l(e){return function(t){return i.createElement(c,a({attr:a({},e.attr)},t),function e(t){return t&&t.map(function(t,n){return i.createElement(t.tag,a({key:n},t.attr),e(t.child))})}(e.child))}}function c(e){var t=function(t){var n,r=e.attr,o=e.size,l=e.title,c=s(e,["attr","size","title"]),d=o||t.size||"1em";return t.className&&(n=t.className),e.className&&(n=(n?n+" ":"")+e.className),i.createElement("svg",a({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,r,c,{className:n,style:a(a({color:e.color||t.color},t.style),e.style),height:d,width:d,xmlns:"http://www.w3.org/2000/svg"}),l&&i.createElement("title",null,l),e.children)};return void 0!==o?i.createElement(o.Consumer,null,function(e){return t(e)}):t(r)}},95398:function(e,t){"use strict";/** @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 n="function"==typeof Symbol&&Symbol.for,i=n?Symbol.for("react.element"):60103,r=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,d=n?Symbol.for("react.async_mode"):60111,u=n?Symbol.for("react.concurrent_mode"):60111,h=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,f=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,b=n?Symbol.for("react.block"):60121,v=n?Symbol.for("react.fundamental"):60117,y=n?Symbol.for("react.responder"):60118,x=n?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case i:switch(e=e.type){case d:case u:case o:case s:case a:case p:return e;default:switch(e=e&&e.$$typeof){case c:case h:case g:case m:case l:return e;default:return t}}case r:return t}}}function k(e){return w(e)===u}t.AsyncMode=d,t.ConcurrentMode=u,t.ContextConsumer=c,t.ContextProvider=l,t.Element=i,t.ForwardRef=h,t.Fragment=o,t.Lazy=g,t.Memo=m,t.Portal=r,t.Profiler=s,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return k(e)||w(e)===d},t.isConcurrentMode=k,t.isContextConsumer=function(e){return w(e)===c},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===i},t.isForwardRef=function(e){return w(e)===h},t.isFragment=function(e){return w(e)===o},t.isLazy=function(e){return w(e)===g},t.isMemo=function(e){return w(e)===m},t.isPortal=function(e){return w(e)===r},t.isProfiler=function(e){return w(e)===s},t.isStrictMode=function(e){return w(e)===a},t.isSuspense=function(e){return w(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===u||e===s||e===a||e===p||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===h||e.$$typeof===v||e.$$typeof===y||e.$$typeof===x||e.$$typeof===b)},t.typeOf=w},31306:function(e,t,n){"use strict";e.exports=n(95398)},79545:function(e,t,n){"use strict";n.d(t,{F0:function(){return f},LX:function(){return b},TH:function(){return x},k6:function(){return y},s6:function(){return p}});var i=n(5530),r=n(7653),o=n(3436),a=n.n(o),s=(n(6821),n(16389),n(27198),n(78695)),l=n.n(s);n(31306),n(85906),n(20022);var c="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:{},d=r.createContext||function(e,t){var n,o,s,l="__create-react-context-"+(c[n="__global_unique_id__"]=(c[n]||0)+1)+"__",d=function(e){function n(){for(var t,n,i,r=arguments.length,o=Array(r),a=0;a<r;a++)o[a]=arguments[a];return(t=e.call.apply(e,[this].concat(o))||this).emitter=(n=t.props.value,i=[],{on:function(e){i.push(e)},off:function(e){i=i.filter(function(t){return t!==e})},get:function(){return n},set:function(e,t){n=e,i.forEach(function(e){return e(n,t)})}}),t}(0,i.Z)(n,e);var r=n.prototype;return r.getChildContext=function(){var e;return(e={})[l]=this.emitter,e},r.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n,i=this.props.value,r=e.value;(i===r?0!==i||1/i==1/r:i!=i&&r!=r)?n=0:0!=(n=("function"==typeof t?t(i,r):1073741823)|0)&&this.emitter.set(e.value,n)}},r.render=function(){return this.props.children},n}(r.Component);d.childContextTypes=((o={})[l]=a().object.isRequired,o);var u=function(t){function n(){for(var e,n=arguments.length,i=Array(n),r=0;r<n;r++)i[r]=arguments[r];return(e=t.call.apply(t,[this].concat(i))||this).observedBits=void 0,e.state={value:e.getValue()},e.onUpdate=function(t,n){((0|e.observedBits)&n)!=0&&e.setState({value:e.getValue()})},e}(0,i.Z)(n,t);var r=n.prototype;return r.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=null==t?1073741823:t},r.componentDidMount=function(){this.context[l]&&this.context[l].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=null==e?1073741823:e},r.componentWillUnmount=function(){this.context[l]&&this.context[l].off(this.onUpdate)},r.getValue=function(){return this.context[l]?this.context[l].get():e},r.render=function(){var e;return(Array.isArray(e=this.props.children)?e[0]:e)(this.state.value)},n}(r.Component);return u.contextTypes=((s={})[l]=a().object,s),{Provider:d,Consumer:u}},u=function(e){var t=d();return t.displayName=e,t},h=u("Router-History"),p=u("Router"),f=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen(function(e){n._pendingLocation=e})),n}(0,i.Z)(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){var e=this;this._isMounted=!0,this.unlisten&&this.unlisten(),this.props.staticContext||(this.unlisten=this.props.history.listen(function(t){e._isMounted&&e.setState({location:t})})),this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&(this.unlisten(),this._isMounted=!1,this._pendingLocation=null)},n.render=function(){return r.createElement(p.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},r.createElement(h.Provider,{children:this.props.children||null,value:this.props.history}))},t}(r.Component);r.Component,r.Component;var m={},g=0;function b(e,t){void 0===t&&(t={}),("string"==typeof t||Array.isArray(t))&&(t={path:t});var n=t,i=n.path,r=n.exact,o=void 0!==r&&r,a=n.strict,s=void 0!==a&&a,c=n.sensitive,d=void 0!==c&&c;return[].concat(i).reduce(function(t,n){if(!n&&""!==n)return null;if(t)return t;var i=function(e,t){var n=""+t.end+t.strict+t.sensitive,i=m[n]||(m[n]={});if(i[e])return i[e];var r=[],o={regexp:l()(e,r,t),keys:r};return g<1e4&&(i[e]=o,g++),o}(n,{end:o,strict:s,sensitive:d}),r=i.regexp,a=i.keys,c=r.exec(e);if(!c)return null;var u=c[0],h=c.slice(1),p=e===u;return o&&!p?null:{path:n,url:"/"===n&&""===u?"/":u,isExact:p,params:a.reduce(function(e,t,n){return e[t.name]=h[n],e},{})}},null)}r.Component,r.Component,r.Component;var v=r.useContext;function y(){return v(h)}function x(){return v(p).location}},27198:function(e,t,n){"use strict";function i(){return(i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}n.d(t,{Z:function(){return i}})},5530:function(e,t,n){"use strict";function i(e,t){return(i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,i(e,t)}n.d(t,{Z:function(){return r}})},85906:function(e,t,n){"use strict";function i(e,t){if(null==e)return{};var n,i,r={},o=Object.keys(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||(r[n]=e[n]);return r}n.d(t,{Z:function(){return i}})},76794:function(e,t,n){"use strict";n.d(t,{d:function(){return u},f:function(){return d}});var i=n(7653),r=n(45636),o=n(52690),a=n(34003),s=n(88572),l=n(94791);let c=(0,i.createContext)(null);function d(){let[e,t]=(0,i.useState)([]);return[e.length>0?e.join(" "):void 0,(0,i.useMemo)(()=>function(e){let n=(0,l.z)(e=>(t(t=>[...t,e]),()=>t(t=>{let n=t.slice(),i=n.indexOf(e);return -1!==i&&n.splice(i,1),n}))),r=(0,i.useMemo)(()=>({register:n,slot:e.slot,name:e.name,props:e.props}),[n,e.slot,e.name,e.props]);return i.createElement(c.Provider,{value:r},e.children)},[t])]}let u=Object.assign((0,o.yV)(function(e,t){let n=(0,r.M)(),{id:l=`headlessui-description-${n}`,...d}=e,u=function e(){let t=(0,i.useContext)(c);if(null===t){let t=Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,e),t}return t}(),h=(0,s.T)(t);(0,a.e)(()=>u.register(l),[l,u.register]);let p={ref:h,...u.props,id:l};return(0,o.sY)({ourProps:p,theirProps:d,slot:u.slot||{},defaultTag:"p",name:u.name||"Description"})}),{})},1211:function(e,t,n){"use strict";let i,r;n.d(t,{V:function(){return ec}});var o,a,s,l,c,d=n(7653),u=n.t(d,2),h=n(26788),p=n(52690),f=n(88572),m=n(86011),g=n(73366),b=n(45636),v=n(4638),y=n(12754),x=n(28705),w=n(94791),k=n(99116),_=n(26747),E=n(99559),S=n(92588),C=n(49569),P=n(99982),T=n(37703),O=n(73969);function A(e){if(!e)return new Set;if("function"==typeof e)return new Set(e());let t=new Set;for(let n of e.current)n.current instanceof HTMLElement&&t.add(n.current);return t}var I=((o=I||{})[o.None=1]="None",o[o.InitialFocus=2]="InitialFocus",o[o.TabLock=4]="TabLock",o[o.FocusLock=8]="FocusLock",o[o.RestoreFocus=16]="RestoreFocus",o[o.All=30]="All",o);let R=Object.assign((0,p.yV)(function(e,t){let n=(0,d.useRef)(null),i=(0,f.T)(n,t),{initialFocus:r,containers:o,features:a=30,...s}=e;(0,v.H)()||(a=1);let l=(0,E.i)(n);(function({ownerDocument:e},t){let n=function(e=!0){let t=(0,d.useRef)($.slice());return(0,P.q)(([e],[n])=>{!0===n&&!1===e&&(0,C.Y)(()=>{t.current.splice(0)}),!1===n&&!0===e&&(t.current=$.slice())},[e,$,t]),(0,w.z)(()=>{var e;return null!=(e=t.current.find(e=>null!=e&&e.isConnected))?e:null})}(t);(0,P.q)(()=>{t||(null==e?void 0:e.activeElement)===(null==e?void 0:e.body)&&(0,x.C5)(n())},[t]),(0,O.L)(()=>{t&&(0,x.C5)(n())})})({ownerDocument:l},!!(16&a));let c=function({ownerDocument:e,container:t,initialFocus:n},i){let r=(0,d.useRef)(null),o=(0,_.t)();return(0,P.q)(()=>{if(!i)return;let a=t.current;a&&(0,C.Y)(()=>{if(!o.current)return;let t=null==e?void 0:e.activeElement;if(null!=n&&n.current){if((null==n?void 0:n.current)===t){r.current=t;return}}else if(a.contains(t)){r.current=t;return}null!=n&&n.current?(0,x.C5)(n.current):(0,x.jA)(a,x.TO.First)===x.fE.Error&&console.warn("There are no focusable elements inside the <FocusTrap />"),r.current=null==e?void 0:e.activeElement})},[i]),r}({ownerDocument:l,container:n,initialFocus:r},!!(2&a));(function({ownerDocument:e,container:t,containers:n,previousActiveElement:i},r){let o=(0,_.t)();(0,S.O)(null==e?void 0:e.defaultView,"focus",e=>{if(!r||!o.current)return;let a=A(n);t.current instanceof HTMLElement&&a.add(t.current);let s=i.current;if(!s)return;let l=e.target;l&&l instanceof HTMLElement?L(a,l)?(i.current=l,(0,x.C5)(l)):(e.preventDefault(),e.stopPropagation(),(0,x.C5)(s)):(0,x.C5)(i.current)},!0)})({ownerDocument:l,container:n,containers:o,previousActiveElement:c},!!(8&a));let u=(0,k.l)(),m=(0,w.z)(e=>{let t=n.current;t&&(0,h.E)(u.current,{[k.N.Forwards]:()=>{(0,x.jA)(t,x.TO.First,{skipElements:[e.relatedTarget]})},[k.N.Backwards]:()=>{(0,x.jA)(t,x.TO.Last,{skipElements:[e.relatedTarget]})}})}),g=(0,T.G)(),b=(0,d.useRef)(!1);return d.createElement(d.Fragment,null,!!(4&a)&&d.createElement(y._,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:m,features:y.A.Focusable}),(0,p.sY)({ourProps:{ref:i,onKeyDown(e){"Tab"==e.key&&(b.current=!0,g.requestAnimationFrame(()=>{b.current=!1}))},onBlur(e){let t=A(o);n.current instanceof HTMLElement&&t.add(n.current);let i=e.relatedTarget;i instanceof HTMLElement&&"true"!==i.dataset.headlessuiFocusGuard&&(L(t,i)||(b.current?(0,x.jA)(n.current,(0,h.E)(u.current,{[k.N.Forwards]:()=>x.TO.Next,[k.N.Backwards]:()=>x.TO.Previous})|x.TO.WrapAround,{relativeTo:e.target}):e.target instanceof HTMLElement&&(0,x.C5)(e.target)))}},theirProps:s,defaultTag:"div",name:"FocusTrap"}),!!(4&a)&&d.createElement(y._,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:m,features:y.A.Focusable}))}),{features:I}),$=[];function L(e,t){for(let n of e)if(n.contains(t))return!0;return!1}!function(e){function t(){"loading"!==document.readyState&&(e(),document.removeEventListener("DOMContentLoaded",t))}"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("DOMContentLoaded",t),t())}(()=>{function e(e){e.target instanceof HTMLElement&&e.target!==document.body&&$[0]!==e.target&&($.unshift(e.target),($=$.filter(e=>null!=e&&e.isConnected)).splice(10))}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});var M=n(66947),j=n(65564),D=n(76794),N=n(82507),F=n(34003);let z=(0,d.createContext)(()=>{});z.displayName="StackContext";var B=((a=B||{})[a.Add=0]="Add",a[a.Remove=1]="Remove",a);function H({children:e,onUpdate:t,type:n,element:i,enabled:r}){let o=(0,d.useContext)(z),a=(0,w.z)((...e)=>{null==t||t(...e),o(...e)});return(0,F.e)(()=>{let e=void 0===r||!0===r;return e&&a(0,n,i),()=>{e&&a(1,n,i)}},[a,n,i,r]),d.createElement(z.Provider,{value:a},e)}var U=n(62818);let{useState:V,useEffect:W,useLayoutEffect:q,useDebugValue:G}=u;"undefined"!=typeof window&&void 0!==window.document&&window.document.createElement;let X=u.useSyncExternalStore;var Y=n(93561),K=n(96692);let J=(s={PUSH(e,t){var n;let i=null!=(n=this.get(e))?n:{doc:e,count:0,d:(0,Y.k)(),meta:new Set};return i.count++,i.meta.add(t),this.set(e,i),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:n}){let i,r;let o={doc:e,d:t,meta:function(e){let t={};for(let n of e)Object.assign(t,n(t));return t}(n)},a=[(0,K.gn)()?{before(){i=window.pageYOffset},after({doc:e,d:t,meta:n}){function r(e){return n.containers.flatMap(e=>e()).some(t=>t.contains(e))}t.microTask(()=>{if("auto"!==window.getComputedStyle(e.documentElement).scrollBehavior){let n=(0,Y.k)();n.style(e.documentElement,"scroll-behavior","auto"),t.add(()=>t.microTask(()=>n.dispose()))}t.style(e.body,"marginTop",`-${i}px`),window.scrollTo(0,0);let n=null;t.addEventListener(e,"click",t=>{if(t.target instanceof HTMLElement)try{let i=t.target.closest("a");if(!i)return;let{hash:o}=new URL(i.href),a=e.querySelector(o);a&&!r(a)&&(n=a)}catch{}},!0),t.addEventListener(e,"touchmove",e=>{e.target instanceof HTMLElement&&!r(e.target)&&e.preventDefault()},{passive:!1}),t.add(()=>{window.scrollTo(0,window.pageYOffset+i),n&&n.isConnected&&(n.scrollIntoView({block:"nearest"}),n=null)})})}}:{},{before({doc:e}){var t;let n=e.documentElement;r=(null!=(t=e.defaultView)?t:window).innerWidth-n.clientWidth},after({doc:e,d:t}){let n=e.documentElement,i=n.clientWidth-n.offsetWidth,o=r-i;t.style(n,"paddingRight",`${o}px`)}},{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}];a.forEach(({before:e})=>null==e?void 0:e(o)),a.forEach(({after:e})=>null==e?void 0:e(o))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}},i=new Map,r=new Set,{getSnapshot:()=>i,subscribe:e=>(r.add(e),()=>r.delete(e)),dispatch(e,...t){let n=s[e].call(i,...t);n&&(i=n,r.forEach(e=>e()))}});J.subscribe(()=>{let e=J.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let e="hidden"===t.get(n.doc),i=0!==n.count;(i&&!e||!i&&e)&&J.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),0===n.count&&J.dispatch("TEARDOWN",n)}});let Z=new Map,Q=new Map;function ee(e,t=!0){(0,F.e)(()=>{var n;if(!t)return;let i="function"==typeof e?e():e.current;if(!i)return;let r=null!=(n=Q.get(i))?n:0;return Q.set(i,r+1),0!==r||(Z.set(i,{"aria-hidden":i.getAttribute("aria-hidden"),inert:i.inert}),i.setAttribute("aria-hidden","true"),i.inert=!0),function(){var e;if(!i)return;let t=null!=(e=Q.get(i))?e:1;if(1===t?Q.delete(i):Q.set(i,t-1),1!==t)return;let n=Z.get(i);n&&(null===n["aria-hidden"]?i.removeAttribute("aria-hidden"):i.setAttribute("aria-hidden",n["aria-hidden"]),i.inert=n.inert,Z.delete(i))}},[e,t])}var et=n(9189),en=((l=en||{})[l.Open=0]="Open",l[l.Closed=1]="Closed",l),ei=((c=ei||{})[c.SetTitleId=0]="SetTitleId",c);let er={0:(e,t)=>e.titleId===t.id?e:{...e,titleId:t.id}},eo=(0,d.createContext)(null);function ea(e){let t=(0,d.useContext)(eo);if(null===t){let t=Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,ea),t}return t}function es(e,t){return(0,h.E)(t.type,er,e,t)}eo.displayName="DialogContext";let el=p.AN.RenderStrategy|p.AN.Static,ec=Object.assign((0,p.yV)(function(e,t){var n;let i=(0,b.M)(),{id:r=`headlessui-dialog-${i}`,open:o,onClose:a,initialFocus:s,__demoMode:l=!1,...c}=e,[u,g]=(0,d.useState)(0),y=(0,N.oJ)();void 0===o&&null!==y&&(o=(y&N.ZM.Open)===N.ZM.Open);let x=(0,d.useRef)(null),k=(0,f.T)(x,t),_=(0,E.i)(x),C=e.hasOwnProperty("open")||null!==y,P=e.hasOwnProperty("onClose");if(!C&&!P)throw Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!C)throw Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!P)throw Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if("boolean"!=typeof o)throw Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${o}`);if("function"!=typeof a)throw Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${a}`);let T=o?0:1,[O,A]=(0,d.useReducer)(es,{titleId:null,descriptionId:null,panelRef:(0,d.createRef)()}),I=(0,w.z)(()=>a(!1)),$=(0,w.z)(e=>A({type:0,id:e})),L=!!(0,v.H)()&&!l&&0===T,z=u>1,V=null!==(0,d.useContext)(eo),[W,q]=(0,M.k)(),{resolveContainers:G,mainTreeNodeRef:Y,MainTreeNode:K}=(0,et.v)({portals:W,defaultContainers:[null!=(n=O.panelRef.current)?n:x.current]}),Z=null!==y&&(y&N.ZM.Closing)===N.ZM.Closing,Q=!V&&!Z&&L;ee((0,d.useCallback)(()=>{var e,t;return null!=(t=Array.from(null!=(e=null==_?void 0:_.querySelectorAll("body > *"))?e:[]).find(e=>"headlessui-portal-root"!==e.id&&e.contains(Y.current)&&e instanceof HTMLElement))?t:null},[Y]),Q);let en=!!z||L;ee((0,d.useCallback)(()=>{var e,t;return null!=(t=Array.from(null!=(e=null==_?void 0:_.querySelectorAll("[data-headlessui-portal]"))?e:[]).find(e=>e.contains(Y.current)&&e instanceof HTMLElement))?t:null},[Y]),en);let ei=!(!L||z);(0,U.O)(G,I,ei);let er=!(z||0!==T);(0,S.O)(null==_?void 0:_.defaultView,"keydown",e=>{er&&(e.defaultPrevented||e.key===m.R.Escape&&(e.preventDefault(),e.stopPropagation(),I()))}),function(e,t,n=()=>[document.body]){var i;let r,o;i=e=>{var t;return{containers:[...null!=(t=e.containers)?t:[],n]}},r=X(J.subscribe,J.getSnapshot,J.getSnapshot),(o=e?r.get(e):void 0)&&o.count,(0,F.e)(()=>{if(!(!e||!t))return J.dispatch("PUSH",e,i),()=>J.dispatch("POP",e,i)},[t,e])}(_,!(Z||0!==T||V),G),(0,d.useEffect)(()=>{if(0!==T||!x.current)return;let e=new ResizeObserver(e=>{for(let t of e){let e=t.target.getBoundingClientRect();0===e.x&&0===e.y&&0===e.width&&0===e.height&&I()}});return e.observe(x.current),()=>e.disconnect()},[T,x,I]);let[ea,ec]=(0,D.f)(),ed=(0,d.useMemo)(()=>[{dialogState:T,close:I,setTitleId:$},O],[T,O,I,$]),eu=(0,d.useMemo)(()=>({open:0===T}),[T]),eh={ref:k,id:r,role:"dialog","aria-modal":0===T||void 0,"aria-labelledby":O.titleId,"aria-describedby":ea};return d.createElement(H,{type:"Dialog",enabled:0===T,element:x,onUpdate:(0,w.z)((e,t)=>{"Dialog"===t&&(0,h.E)(e,{[B.Add]:()=>g(e=>e+1),[B.Remove]:()=>g(e=>e-1)})})},d.createElement(j.O,{force:!0},d.createElement(M.h,null,d.createElement(eo.Provider,{value:ed},d.createElement(M.h.Group,{target:x},d.createElement(j.O,{force:!1},d.createElement(ec,{slot:eu,name:"Dialog.Description"},d.createElement(R,{initialFocus:s,containers:G,features:L?(0,h.E)(z?"parent":"leaf",{parent:R.features.RestoreFocus,leaf:R.features.All&~R.features.FocusLock}):R.features.None},d.createElement(q,null,(0,p.sY)({ourProps:eh,theirProps:c,slot:eu,defaultTag:"div",features:el,visible:0===T,name:"Dialog"}))))))))),d.createElement(K,null))}),{Backdrop:(0,p.yV)(function(e,t){let n=(0,b.M)(),{id:i=`headlessui-dialog-backdrop-${n}`,...r}=e,[{dialogState:o},a]=ea("Dialog.Backdrop"),s=(0,f.T)(t);(0,d.useEffect)(()=>{if(null===a.panelRef.current)throw Error("A <Dialog.Backdrop /> component is being used, but a <Dialog.Panel /> component is missing.")},[a.panelRef]);let l=(0,d.useMemo)(()=>({open:0===o}),[o]);return d.createElement(j.O,{force:!0},d.createElement(M.h,null,(0,p.sY)({ourProps:{ref:s,id:i,"aria-hidden":!0},theirProps:r,slot:l,defaultTag:"div",name:"Dialog.Backdrop"})))}),Panel:(0,p.yV)(function(e,t){let n=(0,b.M)(),{id:i=`headlessui-dialog-panel-${n}`,...r}=e,[{dialogState:o},a]=ea("Dialog.Panel"),s=(0,f.T)(t,a.panelRef),l=(0,d.useMemo)(()=>({open:0===o}),[o]),c=(0,w.z)(e=>{e.stopPropagation()});return(0,p.sY)({ourProps:{ref:s,id:i,onClick:c},theirProps:r,slot:l,defaultTag:"div",name:"Dialog.Panel"})}),Overlay:(0,p.yV)(function(e,t){let n=(0,b.M)(),{id:i=`headlessui-dialog-overlay-${n}`,...r}=e,[{dialogState:o,close:a}]=ea("Dialog.Overlay"),s=(0,f.T)(t),l=(0,w.z)(e=>{if(e.target===e.currentTarget){if((0,g.P)(e.currentTarget))return e.preventDefault();e.preventDefault(),e.stopPropagation(),a()}}),c=(0,d.useMemo)(()=>({open:0===o}),[o]);return(0,p.sY)({ourProps:{ref:s,id:i,"aria-hidden":!0,onClick:l},theirProps:r,slot:c,defaultTag:"div",name:"Dialog.Overlay"})}),Title:(0,p.yV)(function(e,t){let n=(0,b.M)(),{id:i=`headlessui-dialog-title-${n}`,...r}=e,[{dialogState:o,setTitleId:a}]=ea("Dialog.Title"),s=(0,f.T)(t);(0,d.useEffect)(()=>(a(i),()=>a(null)),[i,a]);let l=(0,d.useMemo)(()=>({open:0===o}),[o]);return(0,p.sY)({ourProps:{ref:s,id:i},theirProps:r,slot:l,defaultTag:"h2",name:"Dialog.Title"})}),Description:D.d})},86011:function(e,t,n){"use strict";n.d(t,{R:function(){return r}});var i,r=((i=r||{}).Space=" ",i.Enter="Enter",i.Escape="Escape",i.Backspace="Backspace",i.Delete="Delete",i.ArrowLeft="ArrowLeft",i.ArrowUp="ArrowUp",i.ArrowRight="ArrowRight",i.ArrowDown="ArrowDown",i.Home="Home",i.End="End",i.PageUp="PageUp",i.PageDown="PageDown",i.Tab="Tab",i)},66947:function(e,t,n){"use strict";n.d(t,{h:function(){return y},k:function(){return v}});var i=n(7653),r=n(3458),o=n(52690),a=n(34003),s=n(65564),l=n(4638),c=n(88572),d=n(73969),u=n(99559),h=n(84948),p=n(94791);let f=i.Fragment,m=i.Fragment,g=(0,i.createContext)(null),b=(0,i.createContext)(null);function v(){let e=(0,i.useContext)(b),t=(0,i.useRef)([]),n=(0,p.z)(n=>(t.current.push(n),e&&e.register(n),()=>r(n))),r=(0,p.z)(n=>{let i=t.current.indexOf(n);-1!==i&&t.current.splice(i,1),e&&e.unregister(n)}),o=(0,i.useMemo)(()=>({register:n,unregister:r,portals:t}),[n,r,t]);return[t,(0,i.useMemo)(()=>function({children:e}){return i.createElement(b.Provider,{value:o},e)},[o])]}let y=Object.assign((0,o.yV)(function(e,t){let n=(0,i.useRef)(null),p=(0,c.T)((0,c.h)(e=>{n.current=e}),t),m=(0,u.i)(n),v=function(e){let t=(0,s.n)(),n=(0,i.useContext)(g),r=(0,u.i)(e),[o,a]=(0,i.useState)(()=>{if(!t&&null!==n||h.O.isServer)return null;let e=null==r?void 0:r.getElementById("headlessui-portal-root");if(e)return e;if(null===r)return null;let i=r.createElement("div");return i.setAttribute("id","headlessui-portal-root"),r.body.appendChild(i)});return(0,i.useEffect)(()=>{null!==o&&(null!=r&&r.body.contains(o)||null==r||r.body.appendChild(o))},[o,r]),(0,i.useEffect)(()=>{t||null!==n&&a(n.current)},[n,a,t]),o}(n),[y]=(0,i.useState)(()=>{var e;return h.O.isServer?null:null!=(e=null==m?void 0:m.createElement("div"))?e:null}),x=(0,i.useContext)(b),w=(0,l.H)();return(0,a.e)(()=>{!v||!y||v.contains(y)||(y.setAttribute("data-headlessui-portal",""),v.appendChild(y))},[v,y]),(0,a.e)(()=>{if(y&&x)return x.register(y)},[x,y]),(0,d.L)(()=>{var e;v&&y&&(y instanceof Node&&v.contains(y)&&v.removeChild(y),v.childNodes.length<=0&&(null==(e=v.parentElement)||e.removeChild(v)))}),w&&v&&y?(0,r.createPortal)((0,o.sY)({ourProps:{ref:p},theirProps:e,defaultTag:f,name:"Portal"}),y):null}),{Group:(0,o.yV)(function(e,t){let{target:n,...r}=e,a={ref:(0,c.T)(t)};return i.createElement(g.Provider,{value:n},(0,o.sY)({ourProps:a,theirProps:r,defaultTag:m,name:"Popover.Group"}))})})},28192:function(e,t,n){"use strict";n.d(t,{u:function(){return $}});var i,r=n(7653),o=n(52690),a=n(82507),s=n(26788),l=n(26747),c=n(34003),d=n(57168),u=n(4638),h=n(88572),p=n(93561);function f(e,...t){e&&t.length>0&&e.classList.add(...t)}function m(e,...t){e&&t.length>0&&e.classList.remove(...t)}var g=n(37703),b=n(94791),v=n(49708),y=n(68944);function x(e=""){return e.split(" ").filter(e=>e.trim().length>1)}let w=(0,r.createContext)(null);w.displayName="TransitionContext";var k=((i=k||{}).Visible="visible",i.Hidden="hidden",i);let _=(0,r.createContext)(null);function E(e){return"children"in e?E(e.children):e.current.filter(({el:e})=>null!==e.current).filter(({state:e})=>"visible"===e).length>0}function S(e,t){let n=(0,d.E)(e),i=(0,r.useRef)([]),a=(0,l.t)(),c=(0,g.G)(),u=(0,b.z)((e,t=o.l4.Hidden)=>{let r=i.current.findIndex(({el:t})=>t===e);-1!==r&&((0,s.E)(t,{[o.l4.Unmount](){i.current.splice(r,1)},[o.l4.Hidden](){i.current[r].state="hidden"}}),c.microTask(()=>{var e;!E(i)&&a.current&&(null==(e=n.current)||e.call(n))}))}),h=(0,b.z)(e=>{let t=i.current.find(({el:t})=>t===e);return t?"visible"!==t.state&&(t.state="visible"):i.current.push({el:e,state:"visible"}),()=>u(e,o.l4.Unmount)}),p=(0,r.useRef)([]),f=(0,r.useRef)(Promise.resolve()),m=(0,r.useRef)({enter:[],leave:[],idle:[]}),v=(0,b.z)((e,n,i)=>{p.current.splice(0),t&&(t.chains.current[n]=t.chains.current[n].filter(([t])=>t!==e)),null==t||t.chains.current[n].push([e,new Promise(e=>{p.current.push(e)})]),null==t||t.chains.current[n].push([e,new Promise(e=>{Promise.all(m.current[n].map(([e,t])=>t)).then(()=>e())})]),"enter"===n?f.current=f.current.then(()=>null==t?void 0:t.wait.current).then(()=>i(n)):i(n)}),y=(0,b.z)((e,t,n)=>{Promise.all(m.current[t].splice(0).map(([e,t])=>t)).then(()=>{var e;null==(e=p.current.shift())||e()}).then(()=>n(t))});return(0,r.useMemo)(()=>({children:i,register:h,unregister:u,onStart:v,onStop:y,wait:f,chains:m}),[h,u,i,v,y,m,f])}function C(){}_.displayName="NestingContext";let P=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function T(e){var t;let n={};for(let i of P)n[i]=null!=(t=e[i])?t:C;return n}let O=o.AN.RenderStrategy,A=(0,o.yV)(function(e,t){let{show:n,appear:i=!1,unmount:s=!0,...l}=e,d=(0,r.useRef)(null),p=(0,h.T)(d,t);(0,u.H)();let f=(0,a.oJ)();if(void 0===n&&null!==f&&(n=(f&a.ZM.Open)===a.ZM.Open),![!0,!1].includes(n))throw Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[m,g]=(0,r.useState)(n?"visible":"hidden"),v=S(()=>{g("hidden")}),[y,x]=(0,r.useState)(!0),k=(0,r.useRef)([n]);(0,c.e)(()=>{!1!==y&&k.current[k.current.length-1]!==n&&(k.current.push(n),x(!1))},[k,n]);let C=(0,r.useMemo)(()=>({show:n,appear:i,initial:y}),[n,i,y]);(0,r.useEffect)(()=>{if(n)g("visible");else if(E(v)){let e=d.current;if(!e)return;let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&g("hidden")}else g("hidden")},[n,v]);let P={unmount:s},T=(0,b.z)(()=>{var t;y&&x(!1),null==(t=e.beforeEnter)||t.call(e)}),A=(0,b.z)(()=>{var t;y&&x(!1),null==(t=e.beforeLeave)||t.call(e)});return r.createElement(_.Provider,{value:v},r.createElement(w.Provider,{value:C},(0,o.sY)({ourProps:{...P,as:r.Fragment,children:r.createElement(I,{ref:p,...P,...l,beforeEnter:T,beforeLeave:A})},theirProps:{},defaultTag:r.Fragment,features:O,visible:"visible"===m,name:"Transition"})))}),I=(0,o.yV)(function(e,t){var n,i,k;let C;let{beforeEnter:P,afterEnter:A,beforeLeave:I,afterLeave:R,enter:$,enterFrom:L,enterTo:M,entered:j,leave:D,leaveFrom:N,leaveTo:F,...z}=e,B=(0,r.useRef)(null),H=(0,h.T)(B,t),U=null==(n=z.unmount)||n?o.l4.Unmount:o.l4.Hidden,{show:V,appear:W,initial:q}=function(){let e=(0,r.useContext)(w);if(null===e)throw Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),[G,X]=(0,r.useState)(V?"visible":"hidden"),Y=function(){let e=(0,r.useContext)(_);if(null===e)throw Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),{register:K,unregister:J}=Y;(0,r.useEffect)(()=>K(B),[K,B]),(0,r.useEffect)(()=>{if(U===o.l4.Hidden&&B.current){if(V&&"visible"!==G){X("visible");return}return(0,s.E)(G,{hidden:()=>J(B),visible:()=>K(B)})}},[G,B,K,J,V,U]);let Z=(0,d.E)({base:x(z.className),enter:x($),enterFrom:x(L),enterTo:x(M),entered:x(j),leave:x(D),leaveFrom:x(N),leaveTo:x(F)}),Q=(k={beforeEnter:P,afterEnter:A,beforeLeave:I,afterLeave:R},C=(0,r.useRef)(T(k)),(0,r.useEffect)(()=>{C.current=T(k)},[k]),C),ee=(0,u.H)();(0,r.useEffect)(()=>{if(ee&&"visible"===G&&null===B.current)throw Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[B,G,ee]);let et=W&&V&&q,en=ee&&(!q||W)?V?"enter":"leave":"idle",ei=(0,y.V)(0),er=(0,b.z)(e=>(0,s.E)(e,{enter:()=>{ei.addFlag(a.ZM.Opening),Q.current.beforeEnter()},leave:()=>{ei.addFlag(a.ZM.Closing),Q.current.beforeLeave()},idle:()=>{}})),eo=(0,b.z)(e=>(0,s.E)(e,{enter:()=>{ei.removeFlag(a.ZM.Opening),Q.current.afterEnter()},leave:()=>{ei.removeFlag(a.ZM.Closing),Q.current.afterLeave()},idle:()=>{}})),ea=S(()=>{X("hidden"),J(B)},Y);!function({immediate:e,container:t,direction:n,classes:i,onStart:r,onStop:o}){let a=(0,l.t)(),u=(0,g.G)(),h=(0,d.E)(n);(0,c.e)(()=>{e&&(h.current="enter")},[e]),(0,c.e)(()=>{let e=(0,p.k)();u.add(e.dispose);let n=t.current;if(n&&"idle"!==h.current&&a.current){var l,c,d;let t,a,u,g,b,v,y;return e.dispose(),r.current(h.current),e.add((l=i.current,c="enter"===h.current,d=()=>{e.dispose(),o.current(h.current)},a=c?"enter":"leave",u=(0,p.k)(),g=void 0!==d?(t={called:!1},(...e)=>{if(!t.called)return t.called=!0,d(...e)}):()=>{},"enter"===a&&(n.removeAttribute("hidden"),n.style.display=""),b=(0,s.E)(a,{enter:()=>l.enter,leave:()=>l.leave}),v=(0,s.E)(a,{enter:()=>l.enterTo,leave:()=>l.leaveTo}),y=(0,s.E)(a,{enter:()=>l.enterFrom,leave:()=>l.leaveFrom}),m(n,...l.base,...l.enter,...l.enterTo,...l.enterFrom,...l.leave,...l.leaveFrom,...l.leaveTo,...l.entered),f(n,...l.base,...b,...y),u.nextFrame(()=>{m(n,...l.base,...b,...y),f(n,...l.base,...b,...v),function(e,t){let n=(0,p.k)();if(!e)return n.dispose;let{transitionDuration:i,transitionDelay:r}=getComputedStyle(e),[o,a]=[i,r].map(e=>{let[t=0]=e.split(",").filter(Boolean).map(e=>e.includes("ms")?parseFloat(e):1e3*parseFloat(e)).sort((e,t)=>t-e);return t}),s=o+a;if(0!==s){n.group(n=>{n.setTimeout(()=>{t(),n.dispose()},s),n.addEventListener(e,"transitionrun",e=>{e.target===e.currentTarget&&n.dispose()})});let i=n.addEventListener(e,"transitionend",e=>{e.target===e.currentTarget&&(t(),i())})}else t();n.add(()=>t()),n.dispose}(n,()=>(m(n,...l.base,...b),f(n,...l.base,...l.entered),g()))}),u.dispose)),e.dispose}},[n])}({immediate:et,container:B,classes:Z,direction:en,onStart:(0,d.E)(e=>{ea.onStart(B,e,er)}),onStop:(0,d.E)(e=>{ea.onStop(B,e,eo),"leave"!==e||E(ea)||(X("hidden"),J(B))})});let es=z;return et?es={...es,className:(0,v.A)(z.className,...Z.current.enter,...Z.current.enterFrom)}:(es.className=(0,v.A)(z.className,null==(i=B.current)?void 0:i.className),""===es.className&&delete es.className),r.createElement(_.Provider,{value:ea},r.createElement(a.up,{value:(0,s.E)(G,{visible:a.ZM.Open,hidden:a.ZM.Closed})|ei.flags},(0,o.sY)({ourProps:{ref:H},theirProps:es,defaultTag:"div",features:O,visible:"visible"===G,name:"Transition.Child"})))}),R=(0,o.yV)(function(e,t){let n=null!==(0,r.useContext)(w),i=null!==(0,a.oJ)();return r.createElement(r.Fragment,null,!n&&i?r.createElement(A,{ref:t,...e}):r.createElement(I,{ref:t,...e}))}),$=Object.assign(A,{Child:R,Root:A})},37703:function(e,t,n){"use strict";n.d(t,{G:function(){return o}});var i=n(7653),r=n(93561);function o(){let[e]=(0,i.useState)(r.k);return(0,i.useEffect)(()=>()=>e.dispose(),[e]),e}},92588:function(e,t,n){"use strict";n.d(t,{O:function(){return o}});var i=n(7653),r=n(57168);function o(e,t,n,o){let a=(0,r.E)(n);(0,i.useEffect)(()=>{function n(e){a.current(e)}return(e=null!=e?e:window).addEventListener(t,n,o),()=>e.removeEventListener(t,n,o)},[e,t,o])}},94791:function(e,t,n){"use strict";n.d(t,{z:function(){return o}});var i=n(7653),r=n(57168);let o=function(e){let t=(0,r.E)(e);return i.useCallback((...e)=>t.current(...e),[t])}},68944:function(e,t,n){"use strict";n.d(t,{V:function(){return o}});var i=n(7653),r=n(26747);function o(e=0){let[t,n]=(0,i.useState)(e),o=(0,r.t)(),a=(0,i.useCallback)(e=>{o.current&&n(t=>t|e)},[t,o]),s=(0,i.useCallback)(e=>!!(t&e),[t]);return{flags:t,addFlag:a,hasFlag:s,removeFlag:(0,i.useCallback)(e=>{o.current&&n(t=>t&~e)},[n,o]),toggleFlag:(0,i.useCallback)(e=>{o.current&&n(t=>t^e)},[n])}}},45636:function(e,t,n){"use strict";n.d(t,{M:function(){return l}});var i,r=n(7653),o=n(34003),a=n(4638),s=n(84948);let l=null!=(i=r.useId)?i:function(){let e=(0,a.H)(),[t,n]=r.useState(e?()=>s.O.nextId():null);return(0,o.e)(()=>{null===t&&n(s.O.nextId())},[t]),null!=t?""+t:void 0}},26747:function(e,t,n){"use strict";n.d(t,{t:function(){return o}});var i=n(7653),r=n(34003);function o(){let e=(0,i.useRef)(!1);return(0,r.e)(()=>(e.current=!0,()=>{e.current=!1}),[]),e}},34003:function(e,t,n){"use strict";n.d(t,{e:function(){return o}});var i=n(7653),r=n(84948);let o=(e,t)=>{r.O.isServer?(0,i.useEffect)(e,t):(0,i.useLayoutEffect)(e,t)}},57168:function(e,t,n){"use strict";n.d(t,{E:function(){return o}});var i=n(7653),r=n(34003);function o(e){let t=(0,i.useRef)(e);return(0,r.e)(()=>{t.current=e},[e]),t}},73969:function(e,t,n){"use strict";n.d(t,{L:function(){return a}});var i=n(7653),r=n(49569),o=n(94791);function a(e){let t=(0,o.z)(e),n=(0,i.useRef)(!1);(0,i.useEffect)(()=>(n.current=!1,()=>{n.current=!0,(0,r.Y)(()=>{n.current&&t()})}),[t])}},62818:function(e,t,n){"use strict";n.d(t,{O:function(){return l}});var i=n(7653),r=n(28705),o=n(57168);function a(e,t,n){let r=(0,o.E)(t);(0,i.useEffect)(()=>{function t(e){r.current(e)}return document.addEventListener(e,t,n),()=>document.removeEventListener(e,t,n)},[e,n])}var s=n(50024);function l(e,t,n=!0){let o=(0,i.useRef)(!1);function l(n,i){if(!o.current||n.defaultPrevented)return;let a=i(n);if(null!==a&&a.getRootNode().contains(a)&&a.isConnected){for(let t of function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(e)){if(null===t)continue;let e=t instanceof HTMLElement?t:t.current;if(null!=e&&e.contains(a)||n.composed&&n.composedPath().includes(e))return}return(0,r.sP)(a,r.tJ.Loose)||-1===a.tabIndex||n.preventDefault(),t(n,a)}}(0,i.useEffect)(()=>{requestAnimationFrame(()=>{o.current=n})},[n]);let c=(0,i.useRef)(null);a("pointerdown",e=>{var t,n;o.current&&(c.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target)},!0),a("mousedown",e=>{var t,n;o.current&&(c.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target)},!0),a("click",e=>{c.current&&(l(e,()=>c.current),c.current=null)},!0),a("touchend",e=>l(e,()=>e.target instanceof HTMLElement?e.target:null),!0),(0,s.s)("blur",e=>l(e,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}},99559:function(e,t,n){"use strict";n.d(t,{i:function(){return o}});var i=n(7653),r=n(90158);function o(...e){return(0,i.useMemo)(()=>(0,r.r)(...e),[...e])}},9189:function(e,t,n){"use strict";n.d(t,{H:function(){return l},v:function(){return s}});var i=n(7653),r=n(12754),o=n(94791),a=n(99559);function s({defaultContainers:e=[],portals:t,mainTreeNodeRef:n}={}){var s;let l=(0,i.useRef)(null!=(s=null==n?void 0:n.current)?s:null),c=(0,a.i)(l),d=(0,o.z)(()=>{var n;let i=[];for(let t of e)null!==t&&(t instanceof HTMLElement?i.push(t):"current"in t&&t.current instanceof HTMLElement&&i.push(t.current));if(null!=t&&t.current)for(let e of t.current)i.push(e);for(let e of null!=(n=null==c?void 0:c.querySelectorAll("html > *, body > *"))?n:[])e!==document.body&&e!==document.head&&e instanceof HTMLElement&&"headlessui-portal-root"!==e.id&&(e.contains(l.current)||i.some(t=>e.contains(t))||i.push(e));return i});return{resolveContainers:d,contains:(0,o.z)(e=>d().some(t=>t.contains(e))),mainTreeNodeRef:l,MainTreeNode:(0,i.useMemo)(()=>function(){return null!=n?null:i.createElement(r._,{features:r.A.Hidden,ref:l})},[l,n])}}function l(){let e=(0,i.useRef)(null);return{mainTreeNodeRef:e,MainTreeNode:(0,i.useMemo)(()=>function(){return i.createElement(r._,{features:r.A.Hidden,ref:e})},[e])}}},4638:function(e,t,n){"use strict";n.d(t,{H:function(){return a}});var i,r=n(7653),o=n(84948);function a(){let e;let t=(e="undefined"==typeof document,(0,(i||(i=n.t(r,2))).useSyncExternalStore)(()=>()=>{},()=>!1,()=>!e)),[a,s]=r.useState(o.O.isHandoffComplete);return a&&!1===o.O.isHandoffComplete&&s(!1),r.useEffect(()=>{!0!==a&&s(!0)},[a]),r.useEffect(()=>o.O.handoff(),[]),!t&&a}},88572:function(e,t,n){"use strict";n.d(t,{T:function(){return s},h:function(){return a}});var i=n(7653),r=n(94791);let o=Symbol();function a(e,t=!0){return Object.assign(e,{[o]:t})}function s(...e){let t=(0,i.useRef)(e);(0,i.useEffect)(()=>{t.current=e},[e]);let n=(0,r.z)(e=>{for(let n of t.current)null!=n&&("function"==typeof n?n(e):n.current=e)});return e.every(e=>null==e||(null==e?void 0:e[o]))?void 0:n}},99116:function(e,t,n){"use strict";n.d(t,{N:function(){return a},l:function(){return s}});var i,r=n(7653),o=n(50024),a=((i=a||{})[i.Forwards=0]="Forwards",i[i.Backwards=1]="Backwards",i);function s(){let e=(0,r.useRef)(0);return(0,o.s)("keydown",t=>{"Tab"===t.key&&(e.current=t.shiftKey?1:0)},!0),e}},99982:function(e,t,n){"use strict";n.d(t,{q:function(){return o}});var i=n(7653),r=n(94791);function o(e,t){let n=(0,i.useRef)([]),o=(0,r.z)(e);(0,i.useEffect)(()=>{let e=[...n.current];for(let[i,r]of t.entries())if(n.current[i]!==r){let i=o(t,e);return n.current=t,i}},[o,...t])}},50024:function(e,t,n){"use strict";n.d(t,{s:function(){return o}});var i=n(7653),r=n(57168);function o(e,t,n){let o=(0,r.E)(t);(0,i.useEffect)(()=>{function t(e){o.current(e)}return window.addEventListener(e,t,n),()=>window.removeEventListener(e,t,n)},[e,n])}},12754:function(e,t,n){"use strict";n.d(t,{A:function(){return o},_:function(){return a}});var i,r=n(52690),o=((i=o||{})[i.None=1]="None",i[i.Focusable=2]="Focusable",i[i.Hidden=4]="Hidden",i);let a=(0,r.yV)(function(e,t){let{features:n=1,...i}=e,o={ref:t,"aria-hidden":(2&n)==2||void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(4&n)==4&&(2&n)!=2&&{display:"none"}}};return(0,r.sY)({ourProps:o,theirProps:i,slot:{},defaultTag:"div",name:"Hidden"})})},82507:function(e,t,n){"use strict";n.d(t,{ZM:function(){return a},oJ:function(){return s},up:function(){return l}});var i,r=n(7653);let o=(0,r.createContext)(null);o.displayName="OpenClosedContext";var a=((i=a||{})[i.Open=1]="Open",i[i.Closed=2]="Closed",i[i.Closing=4]="Closing",i[i.Opening=8]="Opening",i);function s(){return(0,r.useContext)(o)}function l({value:e,children:t}){return r.createElement(o.Provider,{value:e},t)}},65564:function(e,t,n){"use strict";n.d(t,{O:function(){return a},n:function(){return o}});var i=n(7653);let r=(0,i.createContext)(!1);function o(){return(0,i.useContext)(r)}function a(e){return i.createElement(r.Provider,{value:e.force},e.children)}},73366:function(e,t,n){"use strict";function i(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let i=(null==t?void 0:t.getAttribute("disabled"))==="";return!(i&&function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}(n))&&i}n.d(t,{P:function(){return i}})},49708:function(e,t,n){"use strict";function i(...e){return Array.from(new Set(e.flatMap(e=>"string"==typeof e?e.split(" "):[]))).filter(Boolean).join(" ")}n.d(t,{A:function(){return i}})},93561:function(e,t,n){"use strict";n.d(t,{k:function(){return function e(){let t=[],n={addEventListener:(e,t,i,r)=>(e.addEventListener(t,i,r),n.add(()=>e.removeEventListener(t,i,r))),requestAnimationFrame(...e){let t=requestAnimationFrame(...e);return n.add(()=>cancelAnimationFrame(t))},nextFrame:(...e)=>n.requestAnimationFrame(()=>n.requestAnimationFrame(...e)),setTimeout(...e){let t=setTimeout(...e);return n.add(()=>clearTimeout(t))},microTask(...e){let t={current:!0};return(0,i.Y)(()=>{t.current&&e[0]()}),n.add(()=>{t.current=!1})},style(e,t,n){let i=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:n}),this.add(()=>{Object.assign(e.style,{[t]:i})})},group(t){let n=e();return t(n),this.add(()=>n.dispose())},add:e=>(t.push(e),()=>{let n=t.indexOf(e);if(n>=0)for(let e of t.splice(n,1))e()}),dispose(){for(let e of t.splice(0))e()}};return n}}});var i=n(49569)},84948:function(e,t,n){"use strict";n.d(t,{O:function(){return s}});var i=Object.defineProperty,r=(e,t,n)=>t in e?i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,o=(e,t,n)=>(r(e,"symbol"!=typeof t?t+"":t,n),n);class a{constructor(){o(this,"current",this.detect()),o(this,"handoffState","pending"),o(this,"currentId",0)}set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"undefined"==typeof window||"undefined"==typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}}let s=new a},28705:function(e,t,n){"use strict";n.d(t,{C5:function(){return x},EO:function(){return k},GO:function(){return m},TO:function(){return h},fE:function(){return p},jA:function(){return _},sP:function(){return b},tJ:function(){return g},wI:function(){return v},z2:function(){return w}});var i,r,o,a,s,l=n(93561),c=n(26788),d=n(90158);let u=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var h=((i=h||{})[i.First=1]="First",i[i.Previous=2]="Previous",i[i.Next=4]="Next",i[i.Last=8]="Last",i[i.WrapAround=16]="WrapAround",i[i.NoScroll=32]="NoScroll",i),p=((r=p||{})[r.Error=0]="Error",r[r.Overflow=1]="Overflow",r[r.Success=2]="Success",r[r.Underflow=3]="Underflow",r),f=((o=f||{})[o.Previous=-1]="Previous",o[o.Next=1]="Next",o);function m(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(u)).sort((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER)))}var g=((a=g||{})[a.Strict=0]="Strict",a[a.Loose=1]="Loose",a);function b(e,t=0){var n;return e!==(null==(n=(0,d.r)(e))?void 0:n.body)&&(0,c.E)(t,{0:()=>e.matches(u),1(){let t=e;for(;null!==t;){if(t.matches(u))return!0;t=t.parentElement}return!1}})}function v(e){let t=(0,d.r)(e);(0,l.k)().nextFrame(()=>{t&&!b(t.activeElement,0)&&x(e)})}var y=((s=y||{})[s.Keyboard=0]="Keyboard",s[s.Mouse=1]="Mouse",s);function x(e){null==e||e.focus({preventScroll:!0})}function w(e,t=e=>e){return e.slice().sort((e,n)=>{let i=t(e),r=t(n);if(null===i||null===r)return 0;let o=i.compareDocumentPosition(r);return o&Node.DOCUMENT_POSITION_FOLLOWING?-1:o&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function k(e,t){return _(m(),t,{relativeTo:e})}function _(e,t,{sorted:n=!0,relativeTo:i=null,skipElements:r=[]}={}){var o,a,s;let l=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,c=Array.isArray(e)?n?w(e):e:m(e);r.length>0&&c.length>1&&(c=c.filter(e=>!r.includes(e))),i=null!=i?i:l.activeElement;let d=(()=>{if(5&t)return 1;if(10&t)return -1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,c.indexOf(i))-1;if(4&t)return Math.max(0,c.indexOf(i))+1;if(8&t)return c.length-1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),h=32&t?{preventScroll:!0}:{},p=0,f=c.length,g;do{if(p>=f||p+f<=0)return 0;let e=u+p;if(16&t)e=(e+f)%f;else{if(e<0)return 3;if(e>=f)return 1}null==(g=c[e])||g.focus(h),p+=d}while(g!==l.activeElement);return 6&t&&null!=(s=null==(a=null==(o=g)?void 0:o.matches)?void 0:a.call(o,"textarea,input"))&&s&&g.select(),2}"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{1===e.detail?delete document.documentElement.dataset.headlessuiFocusVisible:0===e.detail&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0))},26788:function(e,t,n){"use strict";function i(e,t,...n){if(e in t){let i=t[e];return"function"==typeof i?i(...n):i}let r=Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(e=>`"${e}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,i),r}n.d(t,{E:function(){return i}})},49569:function(e,t,n){"use strict";function i(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch(e=>setTimeout(()=>{throw e}))}n.d(t,{Y:function(){return i}})},90158:function(e,t,n){"use strict";n.d(t,{r:function(){return r}});var i=n(84948);function r(e){return i.O.isServer?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}},96692:function(e,t,n){"use strict";function i(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function r(){return i()||/Android/gi.test(window.navigator.userAgent)}n.d(t,{gn:function(){return i},tq:function(){return r}})},52690:function(e,t,n){"use strict";n.d(t,{AN:function(){return l},l4:function(){return c},oA:function(){return f},sY:function(){return d},yV:function(){return p}});var i,r,o=n(7653),a=n(49708),s=n(26788),l=((i=l||{})[i.None=0]="None",i[i.RenderStrategy=1]="RenderStrategy",i[i.Static=2]="Static",i),c=((r=c||{})[r.Unmount=0]="Unmount",r[r.Hidden=1]="Hidden",r);function d({ourProps:e,theirProps:t,slot:n,defaultTag:i,features:r,visible:o=!0,name:a}){let l=h(t,e);if(o)return u(l,n,i,a);let c=null!=r?r:0;if(2&c){let{static:e=!1,...t}=l;if(e)return u(t,n,i,a)}if(1&c){let{unmount:e=!0,...t}=l;return(0,s.E)(e?0:1,{0:()=>null,1:()=>u({...t,hidden:!0,style:{display:"none"}},n,i,a)})}return u(l,n,i,a)}function u(e,t={},n,i){let{as:r=n,children:s,refName:l="ref",...c}=m(e,["unmount","static"]),d=void 0!==e.ref?{[l]:e.ref}:{},u="function"==typeof s?s(t):s;"className"in c&&c.className&&"function"==typeof c.className&&(c.className=c.className(t));let p={};if(t){let e=!1,n=[];for(let[i,r]of Object.entries(t))"boolean"==typeof r&&(e=!0),!0===r&&n.push(i);e&&(p["data-headlessui-state"]=n.join(" "))}if(r===o.Fragment&&Object.keys(f(c)).length>0){if(!(0,o.isValidElement)(u)||Array.isArray(u)&&u.length>1)throw Error(['Passing props on "Fragment"!',"",`The current component <${i} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(c).map(e=>`  - ${e}`).join(`
`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(e=>`  - ${e}`).join(`
`)].join(`
`));let e=u.props,t="function"==typeof(null==e?void 0:e.className)?(...t)=>(0,a.A)(null==e?void 0:e.className(...t),c.className):(0,a.A)(null==e?void 0:e.className,c.className);return(0,o.cloneElement)(u,Object.assign({},h(u.props,f(m(c,["ref"]))),p,d,function(...e){return{ref:e.every(e=>null==e)?void 0:t=>{for(let n of e)null!=n&&("function"==typeof n?n(t):n.current=t)}}}(u.ref,d.ref),t?{className:t}:{}))}return(0,o.createElement)(r,Object.assign({},m(c,["ref"]),r!==o.Fragment&&d,r!==o.Fragment&&p),u)}function h(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},n={};for(let i of e)for(let e in i)e.startsWith("on")&&"function"==typeof i[e]?(null!=n[e]||(n[e]=[]),n[e].push(i[e])):t[e]=i[e];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map(e=>[e,void 0])));for(let e in n)Object.assign(t,{[e](t,...i){for(let r of n[e]){if((t instanceof Event||(null==t?void 0:t.nativeEvent)instanceof Event)&&t.defaultPrevented)return;r(t,...i)}}});return t}function p(e){var t;return Object.assign((0,o.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})}function f(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function m(e,t=[]){let n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}},13426:function(e,t,n){"use strict";n.d(t,{X:function(){return i}});let i=!1},39098:function(e,t,n){"use strict";n.d(t,{L2:function(){return l},_6:function(){return c},iK:function(){return d}});var i=n(72216),r=n(98199),o=n(13426),a=n(8447);let s={};function l(e){let t=s[e];if(t)return t;let n=a.m[e];if((0,i.QC)(n))return s[e]=n.bind(a.m);let l=a.m.document;if(l&&"function"==typeof l.createElement)try{let t=l.createElement("iframe");t.hidden=!0,l.head.appendChild(t);let i=t.contentWindow;i&&i[e]&&(n=i[e]),l.head.removeChild(t)}catch(t){o.X&&r.kg.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,t)}return n?s[e]=n.bind(a.m):n}function c(e){s[e]=void 0}function d(...e){return l("setTimeout")(...e)}},63255:function(e,t,n){"use strict";let i,r,o;n.d(t,{O:function(){return d}});var a=n(91176),s=n(81269),l=n(31967),c=n(8447);function d(e){(0,a.Hj)("dom",e),(0,a.D2)("dom",u)}function u(){if(!c.m.document)return;let e=a.rK.bind(null,"dom"),t=h(e,!0);c.m.document.addEventListener("click",t,!1),c.m.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(t=>{let n=c.m[t]&&c.m[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&((0,s.hl)(n,"addEventListener",function(t){return function(n,i,r){if("click"===n||"keypress"==n)try{let i=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},o=i[n]=i[n]||{refCount:0};if(!o.handler){let i=h(e);o.handler=i,t.call(this,n,i,r)}o.refCount++}catch(e){}return t.call(this,n,i,r)}}),(0,s.hl)(n,"removeEventListener",function(e){return function(t,n,i){if("click"===t||"keypress"==t)try{let n=this.__sentry_instrumentation_handlers__||{},r=n[t];r&&(r.refCount--,r.refCount<=0&&(e.call(this,t,r.handler,i),r.handler=void 0,delete n[t]),0===Object.keys(n).length&&delete this.__sentry_instrumentation_handlers__)}catch(e){}return e.call(this,t,n,i)}}))})}function h(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;let a=function(e){try{return e.target}catch(e){return null}}(n);if("keypress"===n.type&&(!a||!a.tagName||"INPUT"!==a.tagName&&"TEXTAREA"!==a.tagName&&!a.isContentEditable))return;(0,s.xp)(n,"_sentryCaptured",!0),a&&!a._sentryId&&(0,s.xp)(a,"_sentryId",(0,l.DM)());let d="keypress"===n.type?"input":n.type;!function(e){if(e.type!==r)return!1;try{if(!e.target||e.target._sentryId!==o)return!1}catch(e){}return!0}(n)&&(e({event:n,name:d,global:t}),r=n.type,o=a?a._sentryId:void 0),clearTimeout(i),i=c.m.setTimeout(()=>{o=void 0,r=void 0},1e3)}}},90741:function(e,t,n){"use strict";let i;n.d(t,{a:function(){return c}});var r=n(91176),o=n(26406);let a=o.GLOBAL_OBJ;var s=n(81269),l=n(8447);function c(e){let t="history";(0,r.Hj)(t,e),(0,r.D2)(t,d)}function d(){if(!function(){let e=a.chrome,t=e&&e.app&&e.app.runtime,n="history"in a&&!!a.history.pushState&&!!a.history.replaceState;return!t&&n}())return;let e=l.m.onpopstate;function t(e){return function(...t){let n=t.length>2?t[2]:void 0;if(n){let e=i,t=String(n);i=t,(0,r.rK)("history",{from:e,to:t})}return e.apply(this,t)}}l.m.onpopstate=function(...t){let n=l.m.location.href,o=i;if(i=n,(0,r.rK)("history",{from:o,to:n}),e)try{return e.apply(this,t)}catch(e){}},(0,s.hl)(l.m.history,"pushState",t),(0,s.hl)(l.m.history,"replaceState",t)}},18486:function(e,t,n){"use strict";n.d(t,{UK:function(){return c},xU:function(){return l}});var i=n(91176),r=n(81269),o=n(78769),a=n(22608),s=n(8447);let l="__sentry_xhr_v3__";function c(e){(0,i.Hj)("xhr",e),(0,i.D2)("xhr",d)}function d(){if(!s.m.XMLHttpRequest)return;let e=XMLHttpRequest.prototype;(0,r.hl)(e,"open",function(e){return function(...t){let n=1e3*(0,o.ph)(),s=(0,a.HD)(t[0])?t[0].toUpperCase():void 0,c=function(e){if((0,a.HD)(e))return e;try{return e.toString()}catch(e){}}(t[1]);if(!s||!c)return e.apply(this,t);this[l]={method:s,url:c,request_headers:{}},"POST"===s&&c.match(/sentry_key/)&&(this.__sentry_own_request__=!0);let d=()=>{let e=this[l];if(e&&4===this.readyState){try{e.status_code=this.status}catch(e){}let t={endTimestamp:1e3*(0,o.ph)(),startTimestamp:n,xhr:this};(0,i.rK)("xhr",t)}};return"onreadystatechange"in this&&"function"==typeof this.onreadystatechange?(0,r.hl)(this,"onreadystatechange",function(e){return function(...t){return d(),e.apply(this,t)}}):this.addEventListener("readystatechange",d),(0,r.hl)(this,"setRequestHeader",function(e){return function(...t){let[n,i]=t,r=this[l];return r&&(0,a.HD)(n)&&(0,a.HD)(i)&&(r.request_headers[n.toLowerCase()]=i),e.apply(this,t)}}),e.apply(this,t)}}),(0,r.hl)(e,"send",function(e){return function(...t){let n=this[l];if(!n)return e.apply(this,t);void 0!==t[0]&&(n.body=t[0]);let r={startTimestamp:1e3*(0,o.ph)(),xhr:this};return(0,i.rK)("xhr",r),e.apply(this,t)}})}},13259:function(e,t,n){"use strict";let i,r,o,a,s,l;n.d(t,{PR:function(){return J},to:function(){return Q},YF:function(){return et},$A:function(){return Z},_j:function(){return en},_4:function(){return ee}});var c=n(98199),d=n(88965),u=n(13426);let h=(e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good",p=(e,t,n,i)=>{let r,o;return a=>{t.value>=0&&(a||i)&&((o=t.value-(r||0))||void 0===r)&&(r=t.value,t.delta=o,t.rating=h(t.value,n),e(t))}};var f=n(8447);let m=()=>`v3-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`;var g=n(68239);let b=()=>{let e=(0,g.W)();return e&&e.activationStart||0},v=(e,t)=>{let n=(0,g.W)(),i="navigate";return n&&(f.m.document&&f.m.document.prerendering||b()>0?i="prerender":f.m.document&&f.m.document.wasDiscarded?i="restore":n.type&&(i=n.type.replace(/_/g,"-"))),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:m(),navigationType:i}},y=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){let i=new PerformanceObserver(e=>{Promise.resolve().then(()=>{t(e.getEntries())})});return i.observe(Object.assign({type:e,buffered:!0},n||{})),i}}catch(e){}},x=e=>{let t=t=>{("pagehide"===t.type||f.m.document&&"hidden"===f.m.document.visibilityState)&&e(t)};f.m.document&&(addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0))},w=e=>{let t=!1;return n=>{t||(e(n),t=!0)}};var k=n(69126);let _=e=>{f.m.document&&f.m.document.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()},E=[1800,3e3],S=(e,t={})=>{_(()=>{let n;let i=(0,k.Y)(),r=v("FCP"),o=y("paint",e=>{e.forEach(e=>{"first-contentful-paint"===e.name&&(o.disconnect(),e.startTime<i.firstHiddenTime&&(r.value=Math.max(e.startTime-b(),0),r.entries.push(e),n(!0)))})});o&&(n=p(e,r,E,t.reportAllChanges))})},C=[.1,.25],P=(e,t={})=>{S(w(()=>{let n;let i=v("CLS",0),r=0,o=[],a=e=>{e.forEach(e=>{if(!e.hadRecentInput){let t=o[0],n=o[o.length-1];r&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(r+=e.value,o.push(e)):(r=e.value,o=[e])}}),r>i.value&&(i.value=r,i.entries=o,n())},s=y("layout-shift",a);s&&(n=p(e,i,C,t.reportAllChanges),x(()=>{a(s.takeRecords()),n(!0)}),setTimeout(n,0))}))},T=[100,300],O=(e,t={})=>{_(()=>{let n;let i=(0,k.Y)(),r=v("FID"),o=e=>{e.startTime<i.firstHiddenTime&&(r.value=e.processingStart-e.startTime,r.entries.push(e),n(!0))},a=e=>{e.forEach(o)},s=y("first-input",a);n=p(e,r,T,t.reportAllChanges),s&&x(w(()=>{a(s.takeRecords()),s.disconnect()}))})},A=0,I=1/0,R=0,$=e=>{e.forEach(e=>{e.interactionId&&(I=Math.min(I,e.interactionId),A=(R=Math.max(R,e.interactionId))?(R-I)/7+1:0)})},L=()=>i?A:performance.interactionCount||0,M=()=>{"interactionCount"in performance||i||(i=y("event",$,{type:"event",buffered:!0,durationThreshold:0}))},j=[200,500],D=()=>L()-0,N=[],F={},z=e=>{let t=N[N.length-1],n=F[e.interactionId];if(n||N.length<10||e.duration>t.latency){if(n)n.entries.push(e),n.latency=Math.max(n.latency,e.duration);else{let t={id:e.interactionId,latency:e.duration,entries:[e]};F[t.id]=t,N.push(t)}N.sort((e,t)=>t.latency-e.latency),N.splice(10).forEach(e=>{delete F[e.id]})}},B=()=>{let e=Math.min(N.length-1,Math.floor(D()/50));return N[e]},H=(e,t={})=>{_(()=>{let n;M();let i=v("INP"),r=e=>{e.forEach(e=>{if(e.interactionId&&z(e),"first-input"===e.entryType){let t=!N.some(t=>t.entries.some(t=>e.duration===t.duration&&e.startTime===t.startTime));t&&z(e)}});let t=B();t&&t.latency!==i.value&&(i.value=t.latency,i.entries=t.entries,n())},o=y("event",r,{durationThreshold:null!=t.durationThreshold?t.durationThreshold:40});n=p(e,i,j,t.reportAllChanges),o&&("PerformanceEventTiming"in f.m&&"interactionId"in PerformanceEventTiming.prototype&&o.observe({type:"first-input",buffered:!0}),x(()=>{r(o.takeRecords()),i.value<0&&D()>0&&(i.value=0,i.entries=[]),n(!0)}))})},U=[2500,4e3],V={},W=(e,t={})=>{_(()=>{let n;let i=(0,k.Y)(),r=v("LCP"),o=e=>{let t=e[e.length-1];t&&t.startTime<i.firstHiddenTime&&(r.value=Math.max(t.startTime-b(),0),r.entries=[t],n())},a=y("largest-contentful-paint",o);if(a){n=p(e,r,U,t.reportAllChanges);let i=w(()=>{V[r.id]||(o(a.takeRecords()),a.disconnect(),V[r.id]=!0,n(!0))});["keydown","click"].forEach(e=>{f.m.document&&addEventListener(e,()=>setTimeout(i,0),!0)}),x(i)}})},q=[800,1800],G=e=>{f.m.document&&f.m.document.prerendering?_(()=>G(e)):f.m.document&&"complete"!==f.m.document.readyState?addEventListener("load",()=>G(e),!0):setTimeout(e,0)},X=(e,t={})=>{let n=v("TTFB"),i=p(e,n,q,t.reportAllChanges);G(()=>{let e=(0,g.W)();if(e){let t=e.responseStart;if(t<=0||t>performance.now())return;n.value=Math.max(t-b(),0),n.entries=[e],i(!0)}})},Y={},K={};function J(e,t=!1){return ec("cls",e,er,r,t)}function Z(e,t=!1){return ec("lcp",e,ea,a,t)}function Q(e){return ec("fid",e,eo,o)}function ee(e){return ec("ttfb",e,es,s)}function et(e){return ec("inp",e,el,l)}function en(e,t){return ed(e,t),K[e]||(function(e){let t={};"event"===e&&(t.durationThreshold=0),y(e,t=>{ei(e,{entries:t})},t)}(e),K[e]=!0),eu(e,t)}function ei(e,t){let n=Y[e];if(n&&n.length)for(let i of n)try{i(t)}catch(t){u.X&&c.kg.error(`Error while triggering instrumentation handler.
Type: ${e}
Name: ${(0,d.$P)(i)}
Error:`,t)}}function er(){return P(e=>{ei("cls",{metric:e}),r=e},{reportAllChanges:!0})}function eo(){return O(e=>{ei("fid",{metric:e}),o=e})}function ea(){return W(e=>{ei("lcp",{metric:e}),a=e})}function es(){return X(e=>{ei("ttfb",{metric:e}),s=e})}function el(){return H(e=>{ei("inp",{metric:e}),l=e})}function ec(e,t,n,i,r=!1){let o;return ed(e,t),K[e]||(o=n(),K[e]=!0),i&&t({metric:i}),eu(e,t,r?o:void 0)}function ed(e,t){Y[e]=Y[e]||[],Y[e].push(t)}function eu(e,t,n){return()=>{n&&n();let i=Y[e];if(!i)return;let r=i.indexOf(t);-1!==r&&i.splice(r,1)}}},68239:function(e,t,n){"use strict";n.d(t,{W:function(){return r}});var i=n(8447);let r=()=>i.m.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]},69126:function(e,t,n){"use strict";n.d(t,{Y:function(){return l}});var i=n(8447);let r=-1,o=()=>{r="hidden"!==i.m.document.visibilityState||i.m.document.prerendering?1/0:0},a=e=>{"hidden"===i.m.document.visibilityState&&r>-1&&(r="visibilitychange"===e.type?e.timeStamp:0,removeEventListener("visibilitychange",a,!0),removeEventListener("prerenderingchange",a,!0))},s=()=>{addEventListener("visibilitychange",a,!0),addEventListener("prerenderingchange",a,!0)},l=()=>(i.m.document&&r<0&&(o(),s()),{get firstHiddenTime(){return r}})},8447:function(e,t,n){"use strict";n.d(t,{m:function(){return r}});var i=n(26406);let r=i.GLOBAL_OBJ},46167:function(e,t,n){"use strict";n.d(t,{U:function(){return a},h:function(){return s}});var i=n(81269),r=n(70249);function o(e){let t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function a(e,t,n){return t||`${o(e)}${e.projectId}/envelope/?${(0,i._j)({sentry_key:e.publicKey,sentry_version:"7",...n&&{sentry_client:`${n.name}/${n.version}`}})}`}function s(e,t){let n=(0,r.vK)(e);if(!n)return"";let i=`${o(n)}embed/error-page/`,a=`dsn=${(0,r.RA)(n)}`;for(let e in t)if("dsn"!==e&&"onClose"!==e){if("user"===e){let e=t.user;if(!e)continue;e.name&&(a+=`&name=${encodeURIComponent(e.name)}`),e.email&&(a+=`&email=${encodeURIComponent(e.email)}`)}else a+=`&${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`}return`${i}?${a}`}},79378:function(e,t,n){"use strict";n.d(t,{G:function(){return h}});var i=n(57575),r=n(22608),o=n(26406),a=n(74871);class s{constructor(e,t){let n,i;n=e||new a.s,i=t||new a.s,this._stack=[{scope:n}],this._isolationScope=i}withScope(e){let t;let n=this._pushScope();try{t=e(n)}catch(e){throw this._popScope(),e}return(0,r.J8)(t)?t.then(e=>(this._popScope(),e),e=>{throw this._popScope(),e}):(this._popScope(),t)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){let e=this.getScope().clone();return this.getStack().push({client:this.getClient(),scope:e}),e}_popScope(){return!(this.getStack().length<=1)&&!!this.getStack().pop()}}function l(){let e=(0,i.c)(),t=(0,i.q)(e);return t.stack=t.stack||new s((0,o.Y)("defaultCurrentScope",()=>new a.s),(0,o.Y)("defaultIsolationScope",()=>new a.s))}function c(e){return l().withScope(e)}function d(e,t){let n=l();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function u(e){return l().withScope(()=>e(l().getIsolationScope()))}function h(e){let t=(0,i.q)(e);return t.acs?t.acs:{withIsolationScope:u,withScope:c,withSetScope:d,withSetIsolationScope:(e,t)=>u(t),getCurrentScope:()=>l().getScope(),getIsolationScope:()=>l().getIsolationScope()}}},50842:function(e,t,n){"use strict";n.d(t,{n:function(){return a}});var i=n(78769),r=n(98199),o=n(46640);function a(e,t){let n=(0,o.s3)(),a=(0,o.aF)();if(!n)return;let{beforeBreadcrumb:s=null,maxBreadcrumbs:l=100}=n.getOptions();if(l<=0)return;let c=(0,i.yW)(),d={timestamp:c,...e},u=s?(0,r.Cf)(()=>s(d,t)):d;null!==u&&(n.emit&&n.emit("beforeAddBreadcrumb",u,t),a.addBreadcrumb(u,l))}},57575:function(e,t,n){"use strict";n.d(t,{c:function(){return o},q:function(){return a}});var i=n(26406),r=n(31801);function o(){return a(i.GLOBAL_OBJ),i.GLOBAL_OBJ}function a(e){let t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||r.J,t[r.J]=t[r.J]||{}}},73883:function(e,t,n){"use strict";n.d(t,{J:function(){return i}});let i="production"},46640:function(e,t,n){"use strict";n.d(t,{$e:function(){return d},aF:function(){return l},lW:function(){return c},nZ:function(){return s},s3:function(){return h},wi:function(){return u}});var i=n(26406),r=n(79378),o=n(57575),a=n(74871);function s(){let e=(0,o.c)(),t=(0,r.G)(e);return t.getCurrentScope()}function l(){let e=(0,o.c)(),t=(0,r.G)(e);return t.getIsolationScope()}function c(){return(0,i.Y)("globalScope",()=>new a.s)}function d(...e){let t=(0,o.c)(),n=(0,r.G)(t);if(2===e.length){let[t,i]=e;return t?n.withSetScope(t,i):n.withScope(i)}return n.withScope(e[0])}function u(...e){let t=(0,o.c)(),n=(0,r.G)(t);if(2===e.length){let[t,i]=e;return t?n.withSetIsolationScope(t,i):n.withIsolationScope(i)}return n.withIsolationScope(e[0])}function h(){return s().getClient()}},64076:function(e,t,n){"use strict";n.d(t,{X:function(){return i}});let i=!1},50717:function(e,t,n){"use strict";n.d(t,{Mq:function(){return l},Q3:function(){return s},uE:function(){return c}});var i=n(32111),r=n(70249),o=n(44097),a=n(44179);function s(e,t,n,o){let a=(0,i.HY)(n),s={sent_at:new Date().toISOString(),...a&&{sdk:a},...!!o&&t&&{dsn:(0,r.RA)(t)}},l="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return(0,i.Jd)(s,[l])}function l(e,t,n,r){var o;let a=(0,i.HY)(n),s=e.type&&"replay_event"!==e.type?e.type:"event";(o=n&&n.sdk)&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||o.name,e.sdk.version=e.sdk.version||o.version,e.sdk.integrations=[...e.sdk.integrations||[],...o.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...o.packages||[]]);let l=(0,i.Cd)(e,a,r,t);delete e.sdkProcessingMetadata;let c=[{type:s},e];return(0,i.Jd)(l,[c])}function c(e,t){let n=(0,o.jC)(e[0]),s=t&&t.getDsn(),l=t&&t.getOptions().tunnel,c={sent_at:new Date().toISOString(),...!!n.trace_id&&!!n.public_key&&{trace:n},...!!l&&s&&{dsn:(0,r.RA)(s)}},d=t&&t.getOptions().beforeSendSpan,u=d?e=>d((0,a.XU)(e)):e=>(0,a.XU)(e),h=[];for(let t of e){let e=u(t);e&&h.push((0,i.KQ)(e))}return(0,i.Jd)(c,h)}},22509:function(e,t,n){"use strict";n.d(t,{Qy:function(){return S},TM:function(){return P},Tb:function(){return u},YA:function(){return v},av:function(){return y},c:function(){return w},cg:function(){return O},dk:function(){return E},eN:function(){return p},eW:function(){return x},mG:function(){return b},rJ:function(){return m},sU:function(){return g},uT:function(){return h},v:function(){return f},xv:function(){return _},yj:function(){return C},yl:function(){return k}});var i=n(98199),r=n(31967),o=n(26406),a=n(73883),s=n(46640),l=n(64076),c=n(76530),d=n(27996);function u(e,t){return(0,s.nZ)().captureException(e,(0,d.U0)(t))}function h(e,t){let n="string"==typeof t?t:void 0,i="string"!=typeof t?{captureContext:t}:void 0;return(0,s.nZ)().captureMessage(e,n,i)}function p(e,t){return(0,s.nZ)().captureEvent(e,t)}function f(e,t){(0,s.aF)().setContext(e,t)}function m(e){(0,s.aF)().setExtras(e)}function g(e,t){(0,s.aF)().setExtra(e,t)}function b(e){(0,s.aF)().setTags(e)}function v(e,t){(0,s.aF)().setTag(e,t)}function y(e){(0,s.aF)().setUser(e)}function x(){return(0,s.aF)().lastEventId()}function w(e,t){let n=(0,s.nZ)(),o=(0,s.s3)();if(o){if(o.captureCheckIn)return o.captureCheckIn(e,t,n);l.X&&i.kg.warn("Cannot capture check-in. Client does not support sending check-ins.")}else l.X&&i.kg.warn("Cannot capture check-in. No client defined.");return(0,r.DM)()}async function k(e){let t=(0,s.s3)();return t?t.flush(e):(l.X&&i.kg.warn("Cannot flush events. No client defined."),Promise.resolve(!1))}async function _(e){let t=(0,s.s3)();return t?t.close(e):(l.X&&i.kg.warn("Cannot flush events and disable SDK. No client defined."),Promise.resolve(!1))}function E(){return!!(0,s.s3)()}function S(e){(0,s.aF)().addEventProcessor(e)}function C(e){let t=(0,s.s3)(),n=(0,s.aF)(),i=(0,s.nZ)(),{release:r,environment:l=a.J}=t&&t.getOptions()||{},{userAgent:d}=o.GLOBAL_OBJ.navigator||{},u=(0,c.Hv)({release:r,environment:l,user:i.getUser()||n.getUser(),...d&&{userAgent:d},...e}),h=n.getSession();return h&&"ok"===h.status&&(0,c.CT)(h,{status:"exited"}),P(),n.setSession(u),i.setSession(u),u}function P(){let e=(0,s.aF)(),t=(0,s.nZ)(),n=t.getSession()||e.getSession();n&&(0,c.RJ)(n),T(),e.setSession(),t.setSession()}function T(){let e=(0,s.aF)(),t=(0,s.nZ)(),n=(0,s.s3)(),i=t.getSession()||e.getSession();i&&n&&n.captureSession(i)}function O(e=!1){if(e){P();return}T()}},71198:function(e,t,n){"use strict";n.d(t,{M5:function(){return h},_I:function(){return p},m7:function(){return u},m8:function(){return l},q4:function(){return c},uf:function(){return d}});var i=n(31967),r=n(98199),o=n(46640),a=n(64076);let s=[];function l(e){let t;let n=e.defaultIntegrations||[],r=e.integrations;n.forEach(e=>{e.isDefaultInstance=!0}),t=Array.isArray(r)?[...n,...r]:"function"==typeof r?(0,i.lE)(r(n)):n;let o=function(e){let t={};return e.forEach(e=>{let{name:n}=e,i=t[n];i&&!i.isDefaultInstance&&e.isDefaultInstance||(t[n]=e)}),Object.keys(t).map(e=>t[e])}(t),a=function(e,t){for(let n=0;n<e.length;n++)if(!0===t(e[n]))return n;return -1}(o,e=>"Debug"===e.name);if(-1!==a){let[e]=o.splice(a,1);o.push(e)}return o}function c(e,t){let n={};return t.forEach(t=>{t&&u(e,t,n)}),n}function d(e,t){for(let n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function u(e,t,n){if(n[t.name]){a.X&&r.kg.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,-1===s.indexOf(t.name)&&"function"==typeof t.setupOnce&&(t.setupOnce(),s.push(t.name)),t.setup&&"function"==typeof t.setup&&t.setup(e),"function"==typeof t.preprocessEvent){let n=t.preprocessEvent.bind(t);e.on("preprocessEvent",(t,i)=>n(t,i,e))}if("function"==typeof t.processEvent){let n=t.processEvent.bind(t),i=Object.assign((t,i)=>n(t,i,e),{id:t.name});e.addEventProcessor(i)}a.X&&r.kg.log(`Integration installed: ${t.name}`)}function h(e){let t=(0,o.s3)();if(!t){a.X&&r.kg.warn(`Cannot add integration "${e.name}" because no SDK Client is available.`);return}t.addIntegration(e)}function p(e){return e}},44653:function(e,t,n){"use strict";n.d(t,{R:function(){return a}});var i=n(98199),r=n(71198),o=n(64076);let a=(0,r._I)(()=>{let e;return{name:"Dedupe",processEvent(t){if(t.type)return t;try{var n;if((n=e)&&(function(e,t){let n=e.message,i=t.message;return!!((n||i)&&(!n||i)&&(n||!i)&&n===i&&l(e,t)&&s(e,t))}(t,n)||function(e,t){let n=c(t),i=c(e);return!!(n&&i&&n.type===i.type&&n.value===i.value&&l(e,t)&&s(e,t))}(t,n)))return o.X&&i.kg.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(e){}return e=t}}});function s(e,t){let n=d(e),i=d(t);if(!n&&!i)return!0;if(n&&!i||!n&&i||i.length!==n.length)return!1;for(let e=0;e<i.length;e++){let t=i[e],r=n[e];if(t.filename!==r.filename||t.lineno!==r.lineno||t.colno!==r.colno||t.function!==r.function)return!1}return!0}function l(e,t){let n=e.fingerprint,i=t.fingerprint;if(!n&&!i)return!0;if(n&&!i||!n&&i)return!1;try{return!(n.join("")!==i.join(""))}catch(e){return!1}}function c(e){return e.exception&&e.exception.values&&e.exception.values[0]}function d(e){let t=e.exception;if(t)try{return t.values[0].stacktrace.frames}catch(e){}}},53918:function(e,t,n){"use strict";n.d(t,{E:function(){return c}});var i=n(22608),r=n(51240),o=n(81269),a=n(98199),s=n(71198),l=n(64076);let c=(0,s._I)((e={})=>{let{depth:t=3,captureErrorCause:n=!0}=e;return{name:"ExtraErrorData",processEvent:(e,s)=>(function(e,t={},n,s){if(!t.originalException||!(0,i.VZ)(t.originalException))return e;let c=t.originalException.name||t.originalException.constructor.name,d=function(e,t){try{let n=["name","message","stack","line","column","fileName","lineNumber","columnNumber","toJSON"],r={};for(let t of Object.keys(e)){if(-1!==n.indexOf(t))continue;let o=e[t];r[t]=(0,i.VZ)(o)?o.toString():o}if(t&&void 0!==e.cause&&(r.cause=(0,i.VZ)(e.cause)?e.cause.toString():e.cause),"function"==typeof e.toJSON){let t=e.toJSON();for(let e of Object.keys(t)){let n=t[e];r[e]=(0,i.VZ)(n)?n.toString():n}}return r}catch(e){l.X&&a.kg.error("Unable to extract extra data from the Error object:",e)}return null}(t.originalException,s);if(d){let t={...e.contexts},a=(0,r.Fv)(d,n);return(0,i.PO)(a)&&((0,o.xp)(a,"__sentry_skip_normalization__",!0),t[c]=a),{...e,contexts:t}}return e})(e,s,t,n)}})},83180:function(e,t,n){"use strict";let i;n.d(t,{C:function(){return l}});var r=n(81269),o=n(46640),a=n(71198);let s=new WeakMap,l=(0,a._I)(()=>({name:"FunctionToString",setupOnce(){i=Function.prototype.toString;try{Function.prototype.toString=function(...e){let t=(0,r.HK)(this),n=s.has((0,o.s3)())&&void 0!==t?t:this;return i.apply(n,e)}}catch(e){}},setup(e){s.set(e,!0)}}))},54263:function(e,t,n){"use strict";n.d(t,{S:function(){return c}});var i=n(98199),r=n(31967),o=n(34393),a=n(64076),s=n(71198);let l=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/],c=(0,s._I)((e={})=>({name:"InboundFilters",processEvent(t,n,s){var c;let u=s.getOptions(),h=function(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:l],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]],ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(e,u);return(h.ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(e){}return!1}(t)?(a.X&&i.kg.warn(`Event dropped due to being internal Sentry Error.
Event: ${(0,r.jH)(t)}`),0):(c=h.ignoreErrors,!t.type&&c&&c.length&&(function(e){let t;let n=[];e.message&&n.push(e.message);try{t=e.exception.values[e.exception.values.length-1]}catch(e){}return t&&t.value&&(n.push(t.value),t.type&&n.push(`${t.type}: ${t.value}`)),n})(t).some(e=>(0,o.U0)(e,c)))?(a.X&&i.kg.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
Event: ${(0,r.jH)(t)}`),0):!function(e,t){if("transaction"!==e.type||!t||!t.length)return!1;let n=e.transaction;return!!n&&(0,o.U0)(n,t)}(t,h.ignoreTransactions)?!function(e,t){if(!t||!t.length)return!1;let n=d(e);return!!n&&(0,o.U0)(n,t)}(t,h.denyUrls)?function(e,t){if(!t||!t.length)return!0;let n=d(e);return!n||(0,o.U0)(n,t)}(t,h.allowUrls)||(a.X&&i.kg.warn(`Event dropped due to not being matched by \`allowUrls\` option.
Event: ${(0,r.jH)(t)}.
Url: ${d(t)}`),0):(a.X&&i.kg.warn(`Event dropped due to being matched by \`denyUrls\` option.
Event: ${(0,r.jH)(t)}.
Url: ${d(t)}`),0):(a.X&&i.kg.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
Event: ${(0,r.jH)(t)}`),0))?t:null}}));function d(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch(e){}return t?function(e=[]){for(let t=e.length-1;t>=0;t--){let n=e[t];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(t):null}catch(t){return a.X&&i.kg.error(`Cannot extract url for event ${(0,r.jH)(e)}`),null}}},38506:function(e,t,n){"use strict";n.d(t,{w:function(){return l}});var i=n(32111),r=n(71198),o=n(26406);let a=new Map,s=new Set,l=(0,r._I)(()=>({name:"ModuleMetadata",setup(e){e.on("beforeEnvelope",e=>{(0,i.gv)(e,(e,t)=>{if("event"===t){let t=Array.isArray(e)?e[1]:void 0;t&&(function(e){try{e.exception.values.forEach(e=>{if(e.stacktrace)for(let t of e.stacktrace.frames||[])delete t.module_metadata})}catch(e){}}(t),e[1]=t)}})})},processEvent(e,t,n){let i=n.getOptions().stackParser;return function(e,t){try{t.exception.values.forEach(t=>{if(t.stacktrace)for(let i of t.stacktrace.frames||[]){var n;if(!i.filename)continue;let t=(n=i.filename,function(e){if(o.GLOBAL_OBJ._sentryModuleMetadata)for(let t of Object.keys(o.GLOBAL_OBJ._sentryModuleMetadata)){let n=o.GLOBAL_OBJ._sentryModuleMetadata[t];if(s.has(t))continue;s.add(t);let i=e(t);for(let e of i.reverse())if(e.filename){a.set(e.filename,n);break}}}(e),a.get(n));t&&(i.module_metadata=t)}})}catch(e){}}(i,e),e}}))},13896:function(e,t,n){"use strict";n.d(t,{v:function(){return l}});var i=n(26406);let r=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function o(...e){let t="",n=!1;for(let i=e.length-1;i>=-1&&!n;i--){let r=i>=0?e[i]:"/";r&&(t=`${r}/${t}`,n="/"===r.charAt(0))}return t=(function(e,t){let n=0;for(let t=e.length-1;t>=0;t--){let i=e[t];"."===i?e.splice(t,1):".."===i?(e.splice(t,1),n++):n&&(e.splice(t,1),n--)}if(t)for(;n--;n)e.unshift("..");return e})(t.split("/").filter(e=>!!e),!n).join("/"),(n?"/":"")+t||"."}function a(e){let t=0;for(;t<e.length&&""===e[t];t++);let n=e.length-1;for(;n>=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}var s=n(71198);let l=(0,s._I)((e={})=>{let t=e.root,n=e.prefix||"app:///",s="window"in i.GLOBAL_OBJ&&void 0!==i.GLOBAL_OBJ.window,l=e.iteratee||function({isBrowser:e,root:t,prefix:n}){return i=>{if(!i.filename)return i;let s=/^[a-zA-Z]:\\/.test(i.filename)||i.filename.includes("\\")&&!i.filename.includes("/"),l=/^\//.test(i.filename);if(e){if(t){let e=i.filename;0===e.indexOf(t)&&(i.filename=e.replace(t,n))}}else if(s||l){var c;let e;let l=s?i.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):i.filename,d=t?function(e,t){e=o(e).slice(1),t=o(t).slice(1);let n=a(e.split("/")),i=a(t.split("/")),r=Math.min(n.length,i.length),s=r;for(let e=0;e<r;e++)if(n[e]!==i[e]){s=e;break}let l=[];for(let e=s;e<n.length;e++)l.push("..");return(l=l.concat(i.slice(s))).join("/")}(t,l):(e=function(e){let t=e.length>1024?`<truncated>${e.slice(-1024)}`:e,n=r.exec(t);return n?n.slice(1):[]}(l)[2],c&&e.slice(-1*c.length)===c&&(e=e.slice(0,e.length-c.length)),e);i.filename=`${n}${d}`}return i}}({isBrowser:s,root:t,prefix:n});return{name:"RewriteFrames",processEvent(e){let t=e;return e.exception&&Array.isArray(e.exception.values)&&(t=function(e){try{return{...e,exception:{...e.exception,values:e.exception.values.map(e=>{var t;return{...e,...e.stacktrace&&{stacktrace:{...t=e.stacktrace,frames:t&&t.frames&&t.frames.map(e=>l(e))}}}})}}}catch(t){return e}}(t)),t}}})},27918:function(e,t,n){"use strict";n.d(t,{r:function(){return o}});var i=n(78769),r=n(71198);let o=(0,r._I)(()=>{let e=1e3*(0,i.ph)();return{name:"SessionTiming",processEvent(t){let n=1e3*(0,i.ph)();return{...t,extra:{...t.extra,"session:start":e,"session:duration":n-e,"session:end":n}}}}})},24472:function(e,t,n){"use strict";n.d(t,{V:function(){return a},y:function(){return o}});var i=n(81269);let r="_sentryMetrics";function o(e){let t=e[r];if(!t)return;let n={};for(let[,[e,r]]of t)n[e]||(n[e]=[]),n[e].push((0,i.Jr)(r));return n}function a(e,t,n,i,o,a,s){let l=e[r],c=l||(e[r]=new Map),d=`${t}:${n}@${o}`,u=c.get(s);if(u){let[,e]=u;c.set(s,[d,{min:Math.min(e.min,i),max:Math.max(e.max,i),count:e.count+=1,sum:e.sum+=i,tags:e.tags}])}else c.set(s,[d,{min:i,max:i,count:1,sum:i,tags:a}])}},74871:function(e,t,n){"use strict";n.d(t,{s:function(){return u}});var i=n(92024),r=n(22608),o=n(78769),a=n(31967),s=n(98199),l=n(76530),c=n(13451);class d{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=(0,i.Q)()}clone(){let e=new d;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,(0,c.D)(e,(0,c.Y)(this)),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&(0,l.CT)(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;let t="function"==typeof e?e(this):e,[n,i]=t instanceof u?[t.getScopeData(),t.getRequestSession()]:(0,r.PO)(t)?[e,e.requestSession]:[],{tags:o,extra:a,user:s,contexts:l,level:c,fingerprint:d=[],propagationContext:h}=n||{};return this._tags={...this._tags,...o},this._extra={...this._extra,...a},this._contexts={...this._contexts,...l},s&&Object.keys(s).length&&(this._user=s),c&&(this._level=c),d.length&&(this._fingerprint=d),h&&(this._propagationContext=h),i&&(this._requestSession=i),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,(0,c.D)(this,void 0),this._attachments=[],this._propagationContext=(0,i.Q)(),this._notifyScopeListeners(),this}addBreadcrumb(e,t){let n="number"==typeof t?t:100;if(n<=0)return this;let i={timestamp:(0,o.yW)(),...e},r=this._breadcrumbs;return r.push(i),this._breadcrumbs=r.length>n?r.slice(-n):r,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:(0,c.Y)(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){let n=t&&t.event_id?t.event_id:(0,a.DM)();if(!this._client)return s.kg.warn("No client configured on scope - will not capture exception!"),n;let i=Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:i,...t,event_id:n},this),n}captureMessage(e,t,n){let i=n&&n.event_id?n.event_id:(0,a.DM)();if(!this._client)return s.kg.warn("No client configured on scope - will not capture message!"),i;let r=Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:r,...n,event_id:i},this),i}captureEvent(e,t){let n=t&&t.event_id?t.event_id:(0,a.DM)();return this._client?this._client.captureEvent(e,{...t,event_id:n},this):s.kg.warn("No client configured on scope - will not capture event!"),n}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}}let u=d},63573:function(e,t,n){"use strict";n.d(t,{K:function(){return s},M:function(){return a}});var i=n(98199),r=n(46640),o=n(64076);function a(e,t){!0===t.debug&&(o.X?i.kg.enable():(0,i.Cf)(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")}));let n=(0,r.nZ)();n.update(t.initialScope);let a=new e(t);s(a),a.init()}function s(e){(0,r.nZ)().setClient(e)}},40389:function(e,t,n){"use strict";n.d(t,{$J:function(){return o},E1:function(){return l},JQ:function(){return u},S3:function(){return a},TE:function(){return r},Wb:function(){return c},Zj:function(){return i},ju:function(){return s},p6:function(){return d}});let i="sentry.source",r="sentry.sample_rate",o="sentry.op",a="sentry.origin",s="sentry.idle_span_finish_reason",l="sentry.measurement_unit",c="sentry.measurement_value",d="sentry.profile_id",u="sentry.exclusive_time"},76530:function(e,t,n){"use strict";n.d(t,{CT:function(){return s},Hv:function(){return a},RJ:function(){return l}});var i=n(78769),r=n(31967),o=n(81269);function a(e){let t=(0,i.ph)(),n={sid:(0,r.DM)(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>(0,o.Jr)({sid:`${n.sid}`,init:n.init,started:new Date(1e3*n.started).toISOString(),timestamp:new Date(1e3*n.timestamp).toISOString(),status:n.status,errors:n.errors,did:"number"==typeof n.did||"string"==typeof n.did?`${n.did}`:void 0,duration:n.duration,abnormal_mechanism:n.abnormal_mechanism,attrs:{release:n.release,environment:n.environment,ip_address:n.ipAddress,user_agent:n.userAgent}})};return e&&s(n,e),n}function s(e,t={}){if(!t.user||(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||(0,i.ph)(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:(0,r.DM)()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{let t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function l(e,t){let n={};t?n={status:t}:"ok"===e.status&&(n={status:"exited"}),s(e,n)}},44097:function(e,t,n){"use strict";n.d(t,{Lh:function(){return d},_l:function(){return u},jC:function(){return h},uc:function(){return p}});var i=n(81269),r=n(62462),o=n(73883),a=n(46640),s=n(40389),l=n(44179);let c="_frozenDsc";function d(e,t){(0,i.xp)(e,c,t)}function u(e,t){let n=t.getOptions(),{publicKey:r}=t.getDsn()||{},a=(0,i.Jr)({environment:n.environment||o.J,release:n.release,public_key:r,trace_id:e});return t.emit("createDsc",a),a}function h(e){let t=(0,a.s3)();if(!t)return{};let n=u((0,l.XU)(e).trace_id||"",t),i=(0,l.Gx)(e);if(!i)return n;let r=i[c];if(r)return r;let o=(0,l.XU)(i),d=o.data||{},h=d[s.TE];null!=h&&(n.sample_rate=`${h}`);let p=d[s.Zj];return p&&"url"!==p&&(n.transaction=o.description),n.sampled=String((0,l.Tt)(i)),t.emit("createDsc",n),n}function p(e){let t=h(e);return(0,r.IQ)(t)}},75625:function(e,t,n){"use strict";n.d(t,{a:function(){return d}});var i=n(29772),r=n(35368),o=n(98199),a=n(64076),s=n(44179),l=n(73837);let c=!1;function d(){c||(c=!0,(0,i.V)(u),(0,r.h)(u))}function u(){let e=(0,s.HN)(),t=e&&(0,s.Gx)(e);if(t){let e="internal_error";a.X&&o.kg.log(`[Tracing] Root span: ${e} -> Global error occured`),t.setStatus({code:l.jt,message:e})}}u.tag="sentry_tracingErrorCallback"},50156:function(e,t,n){"use strict";n.d(t,{l:function(){return a},o:function(){return o}});var i=n(40389),r=n(44179);function o(e,t,n){let o=(0,r.HN)(),a=o&&(0,r.Gx)(o);a&&a.addEvent(e,{[i.Wb]:t,[i.E1]:n})}function a(e){if(!e||0===e.length)return;let t={};return e.forEach(e=>{let n=e.attributes||{},r=n[i.E1],o=n[i.Wb];"string"==typeof r&&"number"==typeof o&&(t[e.name]={value:o,unit:r})}),t}},27110:function(e,t,n){"use strict";n.d(t,{b:function(){return o}});var i=n(31967),r=n(44179);class o{constructor(e={}){this._traceId=e.traceId||(0,i.DM)(),this._spanId=e.spanId||(0,i.DM)().substring(16)}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:r.ve}}end(e){}setAttribute(e,t){return this}setAttributes(e){return this}setStatus(e){return this}updateName(e){return this}isRecording(){return!1}addEvent(e,t,n){return this}}},73837:function(e,t,n){"use strict";n.d(t,{OP:function(){return r},Q0:function(){return s},ix:function(){return a},jt:function(){return o},pq:function(){return i}});let i=0,r=1,o=2;function a(e){if(e<400&&e>=100)return{code:r};if(e>=400&&e<500)switch(e){case 401:return{code:o,message:"unauthenticated"};case 403:return{code:o,message:"permission_denied"};case 404:return{code:o,message:"not_found"};case 409:return{code:o,message:"already_exists"};case 413:return{code:o,message:"failed_precondition"};case 429:return{code:o,message:"resource_exhausted"};case 499:return{code:o,message:"cancelled"};default:return{code:o,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:o,message:"unimplemented"};case 503:return{code:o,message:"unavailable"};case 504:return{code:o,message:"deadline_exceeded"};default:return{code:o,message:"internal_error"}}return{code:o,message:"unknown_error"}}function s(e,t){e.setAttribute("http.response.status_code",t);let n=a(t);"unknown_error"!==n.message&&e.setStatus(n)}},85976:function(e,t,n){"use strict";n.d(t,{yn:function(){return M},qp:function(){return L},Iw:function(){return D},GK:function(){return R},V0:function(){return $},_d:function(){return j}});var i=n(43159),r=n(92024),o=n(98199),a=n(57575),s=n(46640),l=n(79378),c=n(64076),d=n(40389),u=n(15927),h=n(88011),p=n(13451),f=n(44179),m=n(44097),g=n(28289),b=n(27110),v=n(31967),y=n(78769),x=n(81269),w=n(50717),k=n(24472),_=n(50156);let E="_sentryScope",S="_sentryIsolationScope";function C(e){return{scope:e[E],isolationScope:e[S]}}class P{constructor(e={}){this._traceId=e.traceId||(0,v.DM)(),this._spanId=e.spanId||(0,v.DM)().substring(16),this._startTime=e.startTimestamp||(0,y.ph)(),this._attributes={},this.setAttributes({[d.S3]:"manual",[d.$J]:e.op,...e.attributes}),this._name=e.name,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),"sampled"in e&&(this._sampled=e.sampled),e.endTimestamp&&(this._endTime=e.endTimestamp),this._events=[],this._isStandaloneSpan=e.isStandalone,this._endTime&&this._onSpanEnded()}spanContext(){let{_spanId:e,_traceId:t,_sampled:n}=this;return{spanId:e,traceId:t,traceFlags:n?f.i0:f.ve}}setAttribute(e,t){void 0===t?delete this._attributes[e]:this._attributes[e]=t}setAttributes(e){Object.keys(e).forEach(t=>this.setAttribute(t,e[t]))}updateStartTime(e){this._startTime=(0,f.$k)(e)}setStatus(e){return this._status=e,this}updateName(e){return this._name=e,this}end(e){this._endTime||(this._endTime=(0,f.$k)(e),function(e){if(!c.X)return;let{description:t="< unknown name >",op:n="< unknown op >"}=(0,f.XU)(e),{spanId:i}=e.spanContext(),r=(0,f.Gx)(e),a=r===e,s=`[Tracing] Finishing "${n}" ${a?"root ":""}span "${t}" with ID ${i}`;o.kg.log(s)}(this),this._onSpanEnded())}getSpanJSON(){return(0,x.Jr)({data:this._attributes,description:this._name,op:this._attributes[d.$J],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:(0,f._4)(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[d.S3],_metrics_summary:(0,k.y)(this),profile_id:this._attributes[d.p6],exclusive_time:this._attributes[d.JQ],measurements:(0,_.l)(this._events),is_segment:this._isStandaloneSpan&&(0,f.Gx)(this)===this||void 0,segment_id:this._isStandaloneSpan?(0,f.Gx)(this).spanContext().spanId:void 0})}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,t,n){c.X&&o.kg.log("[Tracing] Adding an event to span:",e);let i=T(t)?t:n||(0,y.ph)(),r=T(t)?{}:t||{},a={name:e,time:(0,f.$k)(i),attributes:r};return this._events.push(a),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){let e=(0,s.s3)();e&&e.emit("spanEnd",this);let t=this._isStandaloneSpan||this===(0,f.Gx)(this);if(!t)return;if(this._isStandaloneSpan){(function(e){let t=(0,s.s3)();if(!t)return;let n=e[1];if(!n||0===n.length){t.recordDroppedEvent("before_send","span");return}let i=t.getTransport();i&&i.send(e).then(null,e=>{c.X&&o.kg.error("Error while sending span:",e)})})((0,w.uE)([this],e));return}let n=this._convertSpanToTransaction();if(n){let e=C(this).scope||(0,s.nZ)();e.captureEvent(n)}}_convertSpanToTransaction(){if(!O((0,f.XU)(this)))return;this._name||(c.X&&o.kg.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");let{scope:e,isolationScope:t}=C(this),n=e||(0,s.nZ)(),i=n.getClient()||(0,s.s3)();if(!0!==this._sampled){c.X&&o.kg.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),i&&i.recordDroppedEvent("sample_rate","transaction");return}let r=(0,f.Dp)(this).filter(e=>e!==this&&!(e instanceof P&&e.isStandaloneSpan())),a=r.map(e=>(0,f.XU)(e)).filter(O),l=this._attributes[d.Zj],u={contexts:{trace:(0,f.HR)(this)},spans:a.length>1e3?a.sort((e,t)=>e.start_timestamp-t.start_timestamp).slice(0,1e3):a,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:e,capturedSpanIsolationScope:t,...(0,x.Jr)({dynamicSamplingContext:(0,m.jC)(this)})},_metrics_summary:(0,k.y)(this),...l&&{transaction_info:{source:l}}},h=(0,_.l)(this._events),p=h&&Object.keys(h).length;return p&&(c.X&&o.kg.log("[Measurements] Adding measurements to transaction",JSON.stringify(h,void 0,2)),u.measurements=h),u}}function T(e){return e&&"number"==typeof e||e instanceof Date||Array.isArray(e)}function O(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}var A=n(73837);let I="__SENTRY_SUPPRESS_TRACING__";function R(e,t){let n=z();if(n.startSpan)return n.startSpan(e,t);let i=F(e);return(0,s.$e)(e.scope,n=>{let r=H(n),o=e.onlyIfParent&&!r,a=o?new b.b:N({parentSpan:r,spanContext:i,forceTransaction:e.forceTransaction,scope:n});return(0,p.D)(n,a),(0,u.i)(()=>t(a),()=>{let{status:e}=(0,f.XU)(a);a.isRecording()&&(!e||"ok"===e)&&a.setStatus({code:A.jt,message:"internal_error"})},()=>a.end())})}function $(e,t){let n=z();if(n.startSpanManual)return n.startSpanManual(e,t);let i=F(e);return(0,s.$e)(e.scope,n=>{let r=H(n),o=e.onlyIfParent&&!r,a=o?new b.b:N({parentSpan:r,spanContext:i,forceTransaction:e.forceTransaction,scope:n});function s(){a.end()}return(0,p.D)(n,a),(0,u.i)(()=>t(a,s),()=>{let{status:e}=(0,f.XU)(a);a.isRecording()&&(!e||"ok"===e)&&a.setStatus({code:A.jt,message:"internal_error"})})})}function L(e){let t=z();if(t.startInactiveSpan)return t.startInactiveSpan(e);let n=F(e),i=e.scope||(0,s.nZ)(),r=H(i),o=e.onlyIfParent&&!r;return o?new b.b:N({parentSpan:r,spanContext:n,forceTransaction:e.forceTransaction,scope:i})}let M=({sentryTrace:e,baggage:t},n)=>(0,s.$e)(r=>{let o=(0,i.pT)(e,t);return r.setPropagationContext(o),n()});function j(e,t){let n=z();return n.withActiveSpan?n.withActiveSpan(e,t):(0,s.$e)(n=>((0,p.D)(n,e||void 0),t(n)))}function D(e){return(0,s.$e)(t=>(t.setPropagationContext((0,r.Q)()),c.X&&o.kg.info(`Starting a new trace with id ${t.getPropagationContext().traceId}`),j(null,e)))}function N({parentSpan:e,spanContext:t,forceTransaction:n,scope:i}){var r;let a;if(!(0,h.z)())return new b.b;let l=(0,s.aF)();if(e&&!n)a=function(e,t,n){let{spanId:i,traceId:r}=e.spanContext(),o=!t.getScopeData().sdkProcessingMetadata[I]&&(0,f.Tt)(e),a=o?new P({...n,parentSpanId:i,traceId:r,sampled:o}):new b.b({traceId:r});(0,f.j5)(e,a);let l=(0,s.s3)();return l&&(l.emit("spanStart",a),n.endTimestamp&&l.emit("spanEnd",a)),a}(e,i,t),(0,f.j5)(e,a);else if(e){let n=(0,m.jC)(e),{traceId:r,spanId:o}=e.spanContext(),s=(0,f.Tt)(e);a=B({traceId:r,parentSpanId:o,...t},i,s),(0,m.Lh)(a,n)}else{let{traceId:e,dsc:n,parentSpanId:r,sampled:o}={...l.getPropagationContext(),...i.getPropagationContext()};a=B({traceId:e,parentSpanId:r,...t},i,o),n&&(0,m.Lh)(a,n)}return function(e){if(!c.X)return;let{description:t="< unknown name >",op:n="< unknown op >",parent_span_id:i}=(0,f.XU)(e),{spanId:r}=e.spanContext(),a=(0,f.Tt)(e),s=(0,f.Gx)(e),l=s===e,d=`[Tracing] Starting ${a?"sampled":"unsampled"} ${l?"root ":""}span`,u=[`op: ${n}`,`name: ${t}`,`ID: ${r}`];if(i&&u.push(`parent ID: ${i}`),!l){let{op:e,description:t}=(0,f.XU)(s);u.push(`root ID: ${s.spanContext().spanId}`),e&&u.push(`root op: ${e}`),t&&u.push(`root description: ${t}`)}o.kg.log(`${d}
  ${u.join("\n  ")}`)}(a),(r=a)&&((0,x.xp)(r,S,l),(0,x.xp)(r,E,i)),a}function F(e){let t=e.experimental||{},n={isStandalone:t.standalone,...e};if(e.startTime){let t={...n};return t.startTimestamp=(0,f.$k)(e.startTime),delete t.startTime,t}return n}function z(){let e=(0,a.c)();return(0,l.G)(e)}function B(e,t,n){let i=(0,s.s3)(),r=i&&i.getOptions()||{},{name:a="",attributes:l}=e,[u,p]=t.getScopeData().sdkProcessingMetadata[I]?[!1]:function(e,t){let n;if(!(0,h.z)(e))return[!1];n="function"==typeof e.tracesSampler?e.tracesSampler(t):void 0!==t.parentSampled?t.parentSampled:void 0!==e.tracesSampleRate?e.tracesSampleRate:1;let i=(0,g.o)(n);if(void 0===i)return c.X&&o.kg.warn("[Tracing] Discarding transaction because of invalid sample rate."),[!1];if(!i)return c.X&&o.kg.log(`[Tracing] Discarding transaction because ${"function"==typeof e.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),[!1,i];let r=Math.random()<i;return r?[!0,i]:(c.X&&o.kg.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(n)})`),[!1,i])}(r,{name:a,parentSampled:n,attributes:l,transactionContext:{name:a,parentSampled:n}}),f=new P({...e,attributes:{[d.Zj]:"custom",...e.attributes},sampled:u});return void 0!==p&&f.setAttribute(d.TE,p),i&&i.emit("spanStart",f),f}function H(e){let t=(0,p.Y)(e);if(!t)return;let n=(0,s.s3)(),i=n?n.getOptions():{};return i.parentSpanIsAlwaysRootSpan?(0,f.Gx)(t):t}},63123:function(e,t,n){"use strict";n.d(t,{q:function(){return c}});var i=n(12788),r=n(74734),o=n(32111),a=n(77134),s=n(98199),l=n(64076);function c(e,t,n=function(e){let t=[];function n(e){return t.splice(t.indexOf(e),1)[0]}return{$:t,add:function(o){if(!(void 0===e||t.length<e))return(0,r.$2)(new i.b("Not adding Promise because buffer limit was reached."));let a=o();return -1===t.indexOf(a)&&t.push(a),a.then(()=>n(a)).then(null,()=>n(a).then(null,()=>{})),a},drain:function(e){return new r.cW((n,i)=>{let o=t.length;if(!o)return n(!0);let a=setTimeout(()=>{e&&e>0&&n(!1)},e);t.forEach(e=>{(0,r.WD)(e).then(()=>{--o||(clearTimeout(a),n(!0))},i)})})}}}(e.bufferSize||64)){let c={};return{send:function(u){let h=[];if((0,o.gv)(u,(t,n)=>{let i=(0,o.mL)(n);if((0,a.Q)(c,i)){let r=d(t,n);e.recordDroppedEvent("ratelimit_backoff",i,r)}else h.push(t)}),0===h.length)return(0,r.WD)({});let p=(0,o.Jd)(u[0],h),f=t=>{(0,o.gv)(p,(n,i)=>{let r=d(n,i);e.recordDroppedEvent(t,(0,o.mL)(i),r)})};return n.add(()=>t({body:(0,o.V$)(p)}).then(e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&l.X&&s.kg.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),c=(0,a.WG)(c,e),e),e=>{throw f("network_error"),e})).then(e=>e,e=>{if(e instanceof i.b)return l.X&&s.kg.error("Skipped sending event because buffer is full."),f("queue_overflow"),(0,r.WD)({});throw e})},flush:e=>n.drain(e)}}function d(e,t){if("event"===t||"transaction"===t)return Array.isArray(e)?e[1]:void 0}},15927:function(e,t,n){"use strict";n.d(t,{i:function(){return r}});var i=n(22608);function r(e,t,n=()=>{}){var r;let o;try{o=e()}catch(e){throw t(e),n(),e}return r=o,(0,i.J8)(r)?r.then(e=>(n(),e),e=>{throw t(e),n(),e}):(n(),r)}},88011:function(e,t,n){"use strict";n.d(t,{z:function(){return r}});var i=n(46640);function r(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;let t=e||function(){let e=(0,i.s3)();return e&&e.getOptions()}();return!!t&&(t.enableTracing||"tracesSampleRate"in t||"tracesSampler"in t)}},1286:function(e,t,n){"use strict";function i(e,t){let n=t&&t.getDsn(),i=t&&t.getOptions().tunnel;return!!n&&e.includes(n.host)||!!i&&r(e)===r(i)}function r(e){return"/"===e[e.length-1]?e.slice(0,-1):e}n.d(t,{W:function(){return i}})},28289:function(e,t,n){"use strict";n.d(t,{o:function(){return o}});var i=n(98199),r=n(64076);function o(e){if("boolean"==typeof e)return Number(e);let t="string"==typeof e?parseFloat(e):e;if("number"!=typeof t||isNaN(t)||t<0||t>1){r.X&&i.kg.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`);return}return t}},27996:function(e,t,n){"use strict";n.d(t,{U0:function(){return k},R:function(){return x}});var i=n(31967),r=n(78769),o=n(34393),a=n(26406),s=n(51240),l=n(73883),c=n(46640),d=n(74734),u=n(98199),h=n(22608),p=n(64076),f=n(74871),m=n(81269),g=n(44097),b=n(44179);function v(e,t){let{extra:n,tags:i,user:r,contexts:o,level:a,sdkProcessingMetadata:s,breadcrumbs:l,fingerprint:c,eventProcessors:d,attachments:u,propagationContext:h,transactionName:p,span:f}=t;y(e,"extra",n),y(e,"tags",i),y(e,"user",r),y(e,"contexts",o),y(e,"sdkProcessingMetadata",s),a&&(e.level=a),p&&(e.transactionName=p),f&&(e.span=f),l.length&&(e.breadcrumbs=[...e.breadcrumbs,...l]),c.length&&(e.fingerprint=[...e.fingerprint,...c]),d.length&&(e.eventProcessors=[...e.eventProcessors,...d]),u.length&&(e.attachments=[...e.attachments,...u]),e.propagationContext={...e.propagationContext,...h}}function y(e,t,n){if(n&&Object.keys(n).length)for(let i in e[t]={...e[t]},n)Object.prototype.hasOwnProperty.call(n,i)&&(e[t][i]=n[i])}function x(e,t,n,y,x,k){let{normalizeDepth:_=3,normalizeMaxBreadth:E=1e3}=e,S={...t,event_id:t.event_id||n.event_id||(0,i.DM)(),timestamp:t.timestamp||(0,r.yW)()},C=n.integrations||e.integrations.map(e=>e.name);(function(e,t){let{environment:n,release:i,dist:r,maxValueLength:a=250}=t;"environment"in e||(e.environment="environment"in t?n:l.J),void 0===e.release&&void 0!==i&&(e.release=i),void 0===e.dist&&void 0!==r&&(e.dist=r),e.message&&(e.message=(0,o.$G)(e.message,a));let s=e.exception&&e.exception.values&&e.exception.values[0];s&&s.value&&(s.value=(0,o.$G)(s.value,a));let c=e.request;c&&c.url&&(c.url=(0,o.$G)(c.url,a))})(S,e),C.length>0&&(S.sdk=S.sdk||{},S.sdk.integrations=[...S.sdk.integrations||[],...C]),void 0===t.type&&function(e,t){let n;let i=a.GLOBAL_OBJ._sentryDebugIds;if(!i)return;let r=w.get(t);r?n=r:(n=new Map,w.set(t,n));let o=Object.keys(i).reduce((e,r)=>{let o;let a=n.get(r);a?o=a:(o=t(r),n.set(r,o));for(let t=o.length-1;t>=0;t--){let n=o[t];if(n.filename){e[n.filename]=i[r];break}}return e},{});try{e.exception.values.forEach(e=>{e.stacktrace.frames.forEach(e=>{e.filename&&(e.debug_id=o[e.filename])})})}catch(e){}}(S,e.stackParser);let P=function(e,t){if(!t)return e;let n=e?e.clone():new f.s;return n.update(t),n}(y,n.captureContext);n.mechanism&&(0,i.EG)(S,n.mechanism);let T=x?x.getEventProcessors():[],O=(0,c.lW)().getScopeData();if(k){let e=k.getScopeData();v(O,e)}if(P){let e=P.getScopeData();v(O,e)}let A=[...n.attachments||[],...O.attachments];A.length&&(n.attachments=A),function(e,t){let{fingerprint:n,span:r,breadcrumbs:o,sdkProcessingMetadata:a}=t;(function(e,t){let{extra:n,tags:i,user:r,contexts:o,level:a,transactionName:s}=t,l=(0,m.Jr)(n);l&&Object.keys(l).length&&(e.extra={...l,...e.extra});let c=(0,m.Jr)(i);c&&Object.keys(c).length&&(e.tags={...c,...e.tags});let d=(0,m.Jr)(r);d&&Object.keys(d).length&&(e.user={...d,...e.user});let u=(0,m.Jr)(o);u&&Object.keys(u).length&&(e.contexts={...u,...e.contexts}),a&&(e.level=a),s&&"transaction"!==e.type&&(e.transaction=s)})(e,t),r&&function(e,t){e.contexts={trace:(0,b.wy)(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:(0,g.jC)(t),...e.sdkProcessingMetadata};let n=(0,b.Gx)(t),i=(0,b.XU)(n).description;i&&!e.transaction&&"transaction"===e.type&&(e.transaction=i)}(e,r),e.fingerprint=e.fingerprint?(0,i.lE)(e.fingerprint):[],n&&(e.fingerprint=e.fingerprint.concat(n)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint,function(e,t){let n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}(e,o),e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...a}}(S,O);let I=[...T,...O.eventProcessors],R=function e(t,n,i,r=0){return new d.cW((o,a)=>{let s=t[r];if(null===n||"function"!=typeof s)o(n);else{let l=s({...n},i);p.X&&s.id&&null===l&&u.kg.log(`Event processor "${s.id}" dropped event`),(0,h.J8)(l)?l.then(n=>e(t,n,i,r+1).then(o)).then(null,a):e(t,l,i,r+1).then(o).then(null,a)}})}(I,S,n);return R.then(e=>(e&&function(e){let t={};try{e.exception.values.forEach(e=>{e.stacktrace.frames.forEach(e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)})})}catch(e){}if(0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];let n=e.debug_meta.images;Object.keys(t).forEach(e=>{n.push({type:"sourcemap",code_file:e,debug_id:t[e]})})}(e),"number"==typeof _&&_>0)?function(e,t,n){if(!e)return null;let i={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:(0,s.Fv)(e.data,t,n)}}))},...e.user&&{user:(0,s.Fv)(e.user,t,n)},...e.contexts&&{contexts:(0,s.Fv)(e.contexts,t,n)},...e.extra&&{extra:(0,s.Fv)(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&i.contexts&&(i.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(i.contexts.trace.data=(0,s.Fv)(e.contexts.trace.data,t,n))),e.spans&&(i.spans=e.spans.map(e=>({...e,...e.data&&{data:(0,s.Fv)(e.data,t,n)}}))),i}(e,_,E):e)}let w=new WeakMap;function k(e){return e?e instanceof f.s||"function"==typeof e||Object.keys(e).some(e=>_.includes(e))?{captureContext:e}:e:void 0}let _=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"]},7933:function(e,t,n){"use strict";n.d(t,{V:function(){return r}});var i=n(31801);function r(e,t,n=[t],r="npm"){let o=e._metadata||{};o.sdk||(o.sdk={name:`sentry.javascript.${t}`,packages:n.map(e=>({name:`${r}:@sentry/${e}`,version:i.J})),version:i.J}),e._metadata=o}},13451:function(e,t,n){"use strict";n.d(t,{D:function(){return o},Y:function(){return a}});var i=n(81269);let r="_sentrySpan";function o(e,t){t?(0,i.xp)(e,r,t):delete e[r]}function a(e){return e[r]}},44179:function(e,t,n){"use strict";n.d(t,{$k:function(){return v},Dp:function(){return P},Gx:function(){return T},HN:function(){return O},HR:function(){return m},Hb:function(){return b},Tt:function(){return w},XU:function(){return x},_4:function(){return k},ed:function(){return C},i0:function(){return f},j5:function(){return S},ve:function(){return p},wy:function(){return g},yc:function(){return A}});var i=n(81269),r=n(43159),o=n(78769),a=n(79378),s=n(57575),l=n(46640),c=n(24472),d=n(40389),u=n(73837),h=n(13451);let p=0,f=1;function m(e){let{spanId:t,traceId:n}=e.spanContext(),{data:r,op:o,parent_span_id:a,status:s,origin:l}=x(e);return(0,i.Jr)({parent_span_id:a,span_id:t,trace_id:n,data:r,op:o,status:s,origin:l})}function g(e){let{spanId:t,traceId:n}=e.spanContext(),{parent_span_id:r}=x(e);return(0,i.Jr)({parent_span_id:r,span_id:t,trace_id:n})}function b(e){let{traceId:t,spanId:n}=e.spanContext(),i=w(e);return(0,r.$p)(t,n,i)}function v(e){return"number"==typeof e?y(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?y(e.getTime()):(0,o.ph)()}function y(e){return e>9999999999?e/1e3:e}function x(e){if("function"==typeof e.getSpanJSON)return e.getSpanJSON();try{let{spanId:t,traceId:n}=e.spanContext();if(e.attributes&&e.startTime&&e.name&&e.endTime&&e.status){let{attributes:r,startTime:o,name:a,endTime:s,parentSpanId:l,status:u}=e;return(0,i.Jr)({span_id:t,trace_id:n,data:r,description:a,parent_span_id:l,start_timestamp:v(o),timestamp:v(s)||void 0,status:k(u),op:r[d.$J],origin:r[d.S3],_metrics_summary:(0,c.y)(e)})}return{span_id:t,trace_id:n}}catch(e){return{}}}function w(e){let{traceFlags:t}=e.spanContext();return t===f}function k(e){return e&&e.code!==u.pq?e.code===u.OP?"ok":e.message||"unknown_error":void 0}let _="_sentryChildSpans",E="_sentryRootSpan";function S(e,t){let n=e[E]||e;(0,i.xp)(t,E,n),e[_]?e[_].add(t):(0,i.xp)(e,_,new Set([t]))}function C(e,t){e[_]&&e[_].delete(t)}function P(e){let t=new Set;return function e(n){if(!t.has(n)&&w(n)){t.add(n);let i=n[_]?Array.from(n[_]):[];for(let t of i)e(t)}}(e),Array.from(t)}function T(e){return e[E]||e}function O(){let e=(0,s.c)(),t=(0,a.G)(e);return t.getActiveSpan?t.getActiveSpan():(0,h.Y)((0,l.nZ)())}function A(e,t,n,i,r,o){let a=O();a&&(0,c.V)(a,e,t,n,i,r,o)}},17006:function(e,t,n){"use strict";n.d(t,{E:function(){return f}});var i=n(91680),r=n(3689),o=n(40389),a=n(78769),s=n(49783),l=n(98199),c=n(30819),d=n(2296),u=n(75693);let h=d.events?d:d.default,p=r.m9;function f(e={}){let t=(0,i.E8)({...e,instrumentNavigation:!1,instrumentPageLoad:!1}),{instrumentPageLoad:n=!0,instrumentNavigation:d=!0}=e;return{...t,afterAllSetup(e){d&&function(e){let t=!r.m9.document.getElementById("__NEXT_DATA__");t?(0,s.U)(t=>{if(void 0!==t.endTimestamp||"GET"!==t.fetchData.method)return;let n=function(e){if(!e[0]||"object"!=typeof e[0]||void 0===e[0].searchParams||!e[1]||"object"!=typeof e[1]||!("headers"in e[1]))return null;try{let t=e[0],n=e[1].headers;if("1"!==n.RSC||"1"===n["Next-Router-Prefetch"])return null;return{targetPathname:t.pathname}}catch(e){return null}}(t.args);if(null===n)return;let r=n.targetPathname;(0,i.og)(e,{name:r,attributes:{[o.$J]:"navigation",[o.S3]:"auto.navigation.nextjs.app_router_instrumentation",[o.Zj]:"url"}})}):h.events.on("routeChangeStart",t=>{let n,r;let a=(0,c.rt)(t),s=function(e){let t=(p.__BUILD_MANIFEST||{}).sortedPages;if(t)return t.find(t=>{let n=function(e){let t=e.split("/"),n="";t[t.length-1].match(/^\[\[\.\.\..+\]\]$/)&&(t.pop(),n="(?:/(.+?))?");let i=t.map(e=>e.replace(/^\[\.\.\..+\]$/,"(.+?)").replace(/^\[.*\]$/,"([^/]+?)")).join("/");return RegExp(`^${i}${n}(?:/)?$`)}(t);return e.match(n)})}(a);s?(n=s,r="route"):(n=a,r="url"),(0,i.og)(e,{name:n,attributes:{[o.$J]:"navigation",[o.S3]:"auto.navigation.nextjs.pages_router_instrumentation",[o.Zj]:r}})})}(e),t.afterAllSetup(e),n&&function(e){let t=!r.m9.document.getElementById("__NEXT_DATA__");t?(0,i.Wo)(e,{name:r.m9.location.pathname,startTime:a.Z1?a.Z1/1e3:void 0,attributes:{[o.$J]:"pageload",[o.S3]:"auto.pageload.nextjs.app_router_instrumentation",[o.Zj]:"url"}}):!function(e){let{route:t,params:n,sentryTrace:r,baggage:s}=function(){let e;let t=p.document.getElementById("__NEXT_DATA__");if(t&&t.innerHTML)try{e=JSON.parse(t.innerHTML)}catch(e){u.X&&l.kg.warn("Could not extract __NEXT_DATA__")}if(!e)return{};let n={},{page:i,query:r,props:o}=e;return n.route=i,n.params=r,o&&o.pageProps&&(n.sentryTrace=o.pageProps._sentryTraceData,n.baggage=o.pageProps._sentryBaggage),n}(),c=t||p.location.pathname;(0,i.Wo)(e,{name:c,startTime:a.Z1?a.Z1/1e3:void 0,attributes:{[o.$J]:"pageload",[o.S3]:"auto.pageload.nextjs.pages_router_instrumentation",[o.Zj]:t?"route":"url",...n&&e.getOptions().sendDefaultPii&&{...n}}},{sentryTrace:r,baggage:s})}(e)}(e)}}}},13963:function(e,t,n){"use strict";n.d(t,{S1:function(){return v},wO:function(){return y}});var i=n(7933),r=n(22509),o=n(88011),a=n(69675),s=n(26406),l=n(17006),c=n(580),d=n(71198),u=n(13896);let h=(0,d._I)(({assetPrefixPath:e})=>{let t=(0,u.v)({iteratee:t=>{try{let{origin:n}=new URL(t.filename);t.filename=(0,c.x)([t,"access",e=>e.filename,"optionalAccess",e=>e.replace,"call",e=>e(n,"app://"),"access",e=>e.replace,"call",t=>t(e,"")])}catch(e){}return t.filename&&t.filename.startsWith("app:///_next")&&(t.filename=decodeURI(t.filename)),t.filename&&t.filename.match(/^app:\/\/\/_next\/static\/chunks\/(main-|main-app-|polyfills-|webpack-|framework-|framework\.)[0-9a-f]+\.js$/)&&(t.in_app=!1),t}});return{...t,name:"NextjsClientStackFrameNormalization"}});var p=n(70249),f=n(98199),m=n(75693);let g=s.GLOBAL_OBJ,b=s.GLOBAL_OBJ;function v(e){let t={environment:function(e){let t="production";return t?`vercel-${t}`:void 0}(0)||"production",defaultIntegrations:function(e){let t=(0,a.nV)(e);("undefined"==typeof __SENTRY_TRACING__||__SENTRY_TRACING__)&&(0,o.z)(e)&&t.push((0,l.E)());let n=b.__rewriteFramesAssetPrefixPath__||"";return t.push(h({assetPrefixPath:n})),t}(e),...e};(function(e){let t=g.__sentryRewritesTunnelPath__;if(t&&e.dsn){let n=(0,p.U4)(e.dsn);if(!n)return;let i=n.host.match(/^o(\d+)\.ingest(?:\.([a-z]{2}))?\.sentry\.io$/);if(i){let r=i[1],o=i[2],a=`${t}?o=${r}&p=${n.projectId}`;o&&(a+=`&r=${o}`),e.tunnel=a,m.X&&f.kg.info(`Tunneling events to "${a}"`)}else m.X&&f.kg.warn("Provided DSN is not a Sentry SaaS DSN. Will not tunnel events.")}})(t),(0,i.V)(t,"nextjs",["nextjs","react"]),function(e){let t={...e};(0,i.V)(t,"react"),(0,a.S1)(t)}(t),(0,r.YA)("runtime","browser");let n=e=>"transaction"===e.type&&"/404"===e.transaction?null:e;n.id="NextClient404Filter",(0,r.Qy)(n)}function y(e){return e}},75693:function(e,t,n){"use strict";n.d(t,{X:function(){return i}});let i=!1},30177:function(e,t,n){"use strict";let i,r,o,a,s,l,c;n.r(t),n.d(t,{BrowserClient:function(){return eH.R},ErrorBoundary:function(){return i9},Profiler:function(){return i3},SDK_VERSION:function(){return eu.J},SEMANTIC_ATTRIBUTE_SENTRY_OP:function(){return T.$J},SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN:function(){return T.S3},SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE:function(){return T.TE},SEMANTIC_ATTRIBUTE_SENTRY_SOURCE:function(){return T.Zj},Scope:function(){return A.s},WINDOW:function(){return eB.m9},addBreadcrumb:function(){return eh.n},addEventProcessor:function(){return h.Qy},addIntegration:function(){return ep.M5},addTracingExtensions:function(){return em},breadcrumbsIntegration:function(){return eX.f},browserApiErrorsIntegration:function(){return eZ.t},browserProfilingIntegration:function(){return iK},browserTracingIntegration:function(){return _.E},captureConsoleIntegration:function(){return ey},captureEvent:function(){return h.eN},captureException:function(){return h.Tb},captureFeedback:function(){return ex},captureMessage:function(){return h.uT},captureSession:function(){return h.cg},captureUnderscoreErrorException:function(){return k},captureUserFeedback:function(){return eG.Jd},chromeStackLineParser:function(){return eV.$3},close:function(){return h.xv},contextLinesIntegration:function(){return e7},continueTrace:function(){return P.yn},createReduxEnhancer:function(){return rt},createTransport:function(){return ew.q},createUserFeedbackEnvelope:function(){return eq.r},debugIntegration:function(){return ek},dedupeIntegration:function(){return e_.R},defaultRequestInstrumentationOptions:function(){return iP.k3},defaultStackLineParsers:function(){return eV.d8},defaultStackParser:function(){return eV.Dt},endSession:function(){return h.TM},eventFromException:function(){return eW.dr},eventFromMessage:function(){return eW.aB},exceptionFromError:function(){return eW.GJ},extraErrorDataIntegration:function(){return eE.E},feedbackAsyncIntegration:function(){return ic},feedbackIntegration:function(){return id},feedbackSyncIntegration:function(){return id},flush:function(){return h.yl},forceLoad:function(){return eG.Eg},functionToStringIntegration:function(){return eS.C},geckoStackLineParser:function(){return eV.$Q},getActiveSpan:function(){return U.HN},getClient:function(){return u.s3},getCurrentHub:function(){return eC},getCurrentScope:function(){return u.nZ},getDefaultIntegrations:function(){return eG.nV},getFeedback:function(){return t1},getGlobalScope:function(){return u.lW},getIsolationScope:function(){return u.aF},getReplay:function(){return te.T},getRootSpan:function(){return U.Gx},getSpanDescendants:function(){return U.Dp},getSpanStatusFromHttpCode:function(){return p.ix},globalHandlersIntegration:function(){return eY.k},httpClientIntegration:function(){return e6.l},httpContextIntegration:function(){return eK.s},inboundFiltersIntegration:function(){return eP.S},init:function(){return d.S1},instrumentOutgoingRequests:function(){return iP.L7},isInitialized:function(){return h.dk},lastEventId:function(){return h.eW},lazyLoadIntegration:function(){return e1},linkedErrorsIntegration:function(){return eJ.O},makeBrowserOfflineTransport:function(){return i$},makeFetchTransport:function(){return eU.f},makeMultiplexedTransport:function(){return eR},metrics:function(){return iC},moduleMetadataIntegration:function(){return e$.w},onLoad:function(){return eG.lA},opera10StackLineParser:function(){return eV.NP},opera11StackLineParser:function(){return eV.HH},parameterize:function(){return eL},reactErrorHandler:function(){return iQ},reactRouterV3BrowserTracingIntegration:function(){return rn},reactRouterV4BrowserTracingIntegration:function(){return ra},reactRouterV5BrowserTracingIntegration:function(){return rs},reactRouterV6BrowserTracingIntegration:function(){return rh},registerSpanErrorInstrumentation:function(){return ef.a},replayCanvasIntegration:function(){return tC},replayIntegration:function(){return te.G},reportingObserverIntegration:function(){return e4},rewriteFramesIntegration:function(){return eM.v},sendFeedback:function(){return tG},sessionTimingIntegration:function(){return ej.r},setContext:function(){return h.v},setCurrentClient:function(){return eD.K},setExtra:function(){return h.sU},setExtras:function(){return h.rJ},setHttpStatus:function(){return p.Q0},setMeasurement:function(){return eN.o},setTag:function(){return h.YA},setTags:function(){return h.mG},setUser:function(){return h.av},showReportDialog:function(){return eG.jp},spanToBaggageHeader:function(){return V.uc},spanToJSON:function(){return U.XU},spanToTraceHeader:function(){return U.Hb},startBrowserTracingNavigationSpan:function(){return iT.og},startBrowserTracingPageLoadSpan:function(){return iT.Wo},startInactiveSpan:function(){return P.qp},startNewTrace:function(){return P.Iw},startSession:function(){return h.yj},startSpan:function(){return P.GK},startSpanManual:function(){return P.V0},tanstackRouterBrowserTracingIntegration:function(){return rr},useProfiler:function(){return i6},winjsStackLineParser:function(){return eV.R2},withActiveSpan:function(){return P._d},withErrorBoundary:function(){return i7},withIsolationScope:function(){return u.wi},withProfiler:function(){return i4},withScope:function(){return u.$e},withSentryConfig:function(){return d.wO},withSentryReactRouterV6Routing:function(){return rb},withSentryRouting:function(){return rc},withServerActionInstrumentation:function(){return ec},wrapApiHandlerWithSentryVercelCrons:function(){return eo},wrapAppGetInitialPropsWithSentry:function(){return G},wrapCreateBrowserRouter:function(){return ry},wrapDocumentGetInitialPropsWithSentry:function(){return X},wrapErrorGetInitialPropsWithSentry:function(){return Y},wrapGenerationFunctionWithSentry:function(){return el},wrapGetInitialPropsWithSentry:function(){return q},wrapGetServerSidePropsWithSentry:function(){return K},wrapGetStaticPropsWithSentry:function(){return B},wrapMiddlewareWithSentry:function(){return ea},wrapPageComponentWithSentry:function(){return es},wrapRouteHandlerWithSentry:function(){return er},wrapServerComponentWithSentry:function(){return ei},wrapUseRoutes:function(){return rv},zodErrorsIntegration:function(){return ez}});var d=n(13963),u=n(46640),h=n(22509),p=n(73837),f=n(81269),m=n(98199),g=n(75693);async function b(){try{g.X&&m.kg.log("Flushing events..."),await new Promise(e=>setTimeout(e,50)),await (0,h.yl)(2e3),g.X&&m.kg.log("Done flushing events")}catch(e){g.X&&m.kg.log("Error while flushing events:\n",e)}}var v=n(15809),y=n(580),x=n(26406);function w(e){let t=x.GLOBAL_OBJ[Symbol.for("@vercel/request-context")],n=(0,v.h)((0,y.x)([t,"optionalAccess",e=>e.get,"optionalCall",e=>e()]),()=>({}));(0,y.x)([n,"access",e=>e.waitUntil,"optionalCall",t=>t(e)])}async function k(e){let{req:t,res:n,err:i}=e,r=n&&n.statusCode||e.statusCode;if(r&&r<500||!e.pathname)return Promise.resolve();(0,u.$e)(e=>{t&&e.setSDKProcessingMetadata({request:t}),(0,h.Tb)(i||`_error.js called with falsy error (${i})`,{mechanism:{type:"instrument",handled:!1,data:{function:"_error.getInitialProps"}}})}),w(b())}var _=n(17006),E=n(92045),S=n(68571);function C(){return S.env.NEXT_PHASE===E.PHASE_PRODUCTION_BUILD}var P=n(85976),T=n(40389),O=n(22608),A=n(74871),I=n(31967);let R=new WeakMap;function $(e,t){if("object"!=typeof e||!e)return t;{let n=R.get(e);return n||(R.set(e,t),t)}}let L=new WeakMap;function M(e){if("object"!=typeof e||!e)return new A.s;{let t=L.get(e);if(t)return t;{let t=new A.s;return L.set(e,t),t}}}function j(e){let t=x.GLOBAL_OBJ.AsyncLocalStorage;return t?(i||(i=new t),i.getStore())?e():(0,P._d)(null,()=>((0,u.nZ)().setPropagationContext({traceId:(0,I.DM)(),spanId:(0,I.DM)().substring(16)}),i.run(!0,()=>e()))):(g.X&&m.kg.warn("Tried to register AsyncLocalStorage async context strategy in a runtime that doesn't support AsyncLocalStorage."),e())}function D(e){return e._sentrySpan}function N(e){return async function(...t){try{return await e.apply(this,t)}catch(e){throw(0,h.Tb)(e,{mechanism:{handled:!1}}),e}}}function F(e,t,n,i){return async function(...r){return j(()=>{let o=M(t);return(0,u.wi)(o,()=>{o.setTransactionName(`${i.dataFetchingMethodName} (${i.dataFetcherRouteName})`),o.setSDKProcessingMetadata({request:t});let a=t.headers&&(0,O.HD)(t.headers["sentry-trace"])?t.headers["sentry-trace"]:void 0,s=(0,y.x)([t,"access",e=>e.headers,"optionalAccess",e=>e.baggage]);return(0,P.yn)({sentryTrace:a,baggage:s},()=>{let o=function(e,t,n){let i=D(e);if(i)return i;let r=(0,P.qp)({name:n,forceTransaction:!0,op:"http.server",attributes:{[T.S3]:"auto.function.nextjs",[T.Zj]:"route"}});return r.setStatus({code:p.OP}),e._sentrySpan=r,t.end&&!t.end.__sentry_original__&&(0,f.hl)(t,"end",e=>function(...t){return(0,p.Q0)(r,this.statusCode),r.end(),e.call(this,...t)}),r}(t,n,i.requestedRouteName);return(0,P._d)(o,()=>(0,P.V0)({op:"function.nextjs",name:`${i.dataFetchingMethodName} (${i.dataFetcherRouteName})`,attributes:{[T.S3]:"auto.function.nextjs",[T.Zj]:"route"}},async t=>{t.setStatus({code:p.OP});try{return await e.apply(this,r)}catch(e){throw t.setStatus({code:p.jt,message:"internal_error"}),(0,y.x)([o,"optionalAccess",e=>e.setStatus,"call",e=>e({code:p.jt,message:"internal_error"})]),e}finally{t.end()}}))})})}).finally(()=>{w(b())})}}async function z(e,t,n){let{parameterizedRoute:i,dataFetchingMethodName:r}=n;return(0,P.GK)({op:"function.nextjs",name:`${r} (${i})`,onlyIfParent:!0,attributes:{[T.S3]:"auto.function.nextjs",[T.Zj]:"route"}},async n=>{n.setStatus({code:p.OP});try{return await e(...t)}catch(e){throw n.setStatus({code:p.jt,message:"internal_error"}),(0,h.Tb)(e,{mechanism:{handled:!1}}),e}finally{n.end()}}).finally(()=>{w(b())})}function B(e,t){return new Proxy(e,{apply:(e,n,i)=>{if(C())return e.apply(n,i);let r=N(e);return z(r,i,{parameterizedRoute:t,dataFetchingMethodName:"getStaticProps"})}})}async function H(e,t){return(0,v.h)(e,t)}var U=n(44179),V=n(44097),W=n(62462);function q(e){return new Proxy(e,{apply:async(e,t,n)=>{if(C())return e.apply(t,n);let[i]=n,{req:r,res:o}=i,a=N(e);if(!r||!o)return a.apply(t,n);{let e=F(a,r,o,{dataFetcherRouteName:i.pathname,requestedRouteName:i.pathname,dataFetchingMethodName:"getInitialProps"}),s=await H(await e.apply(t,n),async()=>({})),l=(0,U.HN)(),c=(0,v.h)(D(r),()=>l?(0,U.Gx)(l):void 0);if(c){let e=(0,U.Hb)(c);e&&(s._sentryTraceData=e);let t=(0,V.jC)(c),n=(0,W.IQ)(t);n&&(s._sentryBaggage=n)}return s}}})}function G(e){return new Proxy(e,{apply:async(e,t,n)=>{if(C())return e.apply(t,n);let[i]=n,{req:r,res:o}=i.ctx,a=N(e);if(!r||!o)return a.apply(t,n);{let e=F(a,r,o,{dataFetcherRouteName:"/_app",requestedRouteName:i.ctx.pathname,dataFetchingMethodName:"getInitialProps"}),s=await e.apply(t,n),l=(0,U.HN)(),c=(0,v.h)(D(r),()=>l?(0,U.Gx)(l):void 0);if(s.pageProps||(s.pageProps={}),c){let e=(0,U.Hb)(c);e&&(s.pageProps._sentryTraceData=e);let t=(0,V.jC)(c),n=(0,W.IQ)(t);n&&(s.pageProps._sentryBaggage=n)}return s}}})}function X(e){return new Proxy(e,{apply:(e,t,n)=>{if(C())return e.apply(t,n);let[i]=n,{req:r,res:o}=i,a=N(e);if(!r||!o)return a.apply(t,n);{let e=F(a,r,o,{dataFetcherRouteName:"/_document",requestedRouteName:i.pathname,dataFetchingMethodName:"getInitialProps"});return e.apply(t,n)}}})}function Y(e){return new Proxy(e,{apply:async(e,t,n)=>{if(C())return e.apply(t,n);let[i]=n,{req:r,res:o}=i,a=N(e);if(!r||!o)return a.apply(t,n);{let e=F(a,r,o,{dataFetcherRouteName:"/_error",requestedRouteName:i.pathname,dataFetchingMethodName:"getInitialProps"}),s=await e.apply(t,n),l=(0,U.HN)(),c=(0,v.h)(D(r),()=>l?(0,U.Gx)(l):void 0);if(c){let e=(0,U.Hb)(c);e&&(s._sentryTraceData=e);let t=(0,V.jC)(c),n=(0,W.IQ)(t);n&&(s._sentryBaggage=n)}return s}}})}function K(e,t){return new Proxy(e,{apply:async(e,n,i)=>{if(C())return e.apply(n,i);let[r]=i,{req:o,res:a}=r,s=N(e),l=F(s,o,a,{dataFetcherRouteName:t,requestedRouteName:t,dataFetchingMethodName:"getServerSideProps"}),c=await l.apply(n,i);if(c&&"props"in c){let e=(0,U.HN)(),t=(0,v.h)(D(o),()=>e?(0,U.Gx)(e):void 0);if(t){let e=(0,U.Hb)(t);e&&(c.props._sentryTraceData=e);let n=(0,V.jC)(t),i=(0,W.IQ)(n);i&&(c.props._sentryBaggage=i)}}return c}})}var J=n(15927),Z=n(21530);function Q(e){let t={};try{e.forEach((e,n)=>{"string"==typeof e&&(t[n]=e)})}catch(e){Z.X&&m.kg.warn("Sentry failed extracting headers from a request object. If you see this, please file an issue.")}return t}var ee=n(43159);function et(e){return(0,O.VZ)(e)&&"NEXT_NOT_FOUND"===e.digest}function en(e){return(0,O.VZ)(e)&&"string"==typeof e.digest&&e.digest.startsWith("NEXT_REDIRECT;")}function ei(e,t){let{componentRoute:n,componentType:i}=t;return new Proxy(e,{apply:(e,r,o)=>{let a=(0,y.x)([U.HN,"call",e=>e(),"optionalAccess",e=>e.spanContext,"call",e=>e(),"access",e=>e.traceId]);return j(()=>{let s=M(t.headers),l=t.headers?Q(t.headers):void 0;return s.setSDKProcessingMetadata({request:{headers:l}}),(0,u.wi)(s,()=>(0,u.$e)(s=>{s.setTransactionName(`${i} Server Component (${n})`);let c=$(t.headers,(0,y.x)([l,"optionalAccess",e=>e["sentry-trace"]])?(0,ee.pT)(l["sentry-trace"],l.baggage):{traceId:a||(0,I.DM)(),spanId:(0,I.DM)().substring(16)});return s.setPropagationContext(c),(0,P.V0)({op:"function.nextjs",name:`${i} Server Component (${n})`,forceTransaction:!0,attributes:{[T.Zj]:"component",[T.S3]:"auto.function.nextjs"}},t=>(0,J.i)(()=>e.apply(r,o),e=>{et(e)?t.setStatus({code:p.jt,message:"not_found"}):en(e)?t.setStatus({code:p.OP}):(t.setStatus({code:p.jt,message:"internal_error"}),(0,h.Tb)(e,{mechanism:{handled:!1}}))},()=>{t.end(),w(b())}))}))})}})}function er(e,t){let{method:n,parameterizedRoute:i,headers:r}=t;return new Proxy(e,{apply:(e,t,o)=>j(()=>{let a=M(r),s=r?Q(r):{};a.setSDKProcessingMetadata({request:{headers:s}});let l=(0,ee.pT)(s["sentry-trace"],s.baggage),c=$(r,l);return(0,u.wi)(a,()=>(0,u.$e)(async r=>{r.setTransactionName(`${n} ${i}`),r.setPropagationContext(c);try{return(0,P.GK)({name:`${n} ${i}`,attributes:{[T.Zj]:"route",[T.$J]:"http.server",[T.S3]:"auto.function.nextjs"},forceTransaction:!0},async n=>{let i=await (0,J.i)(()=>e.apply(t,o),e=>{en(e)||(et(e)&&n?n.setStatus({code:p.jt,message:"not_found"}):(0,h.Tb)(e,{mechanism:{handled:!1}}))});try{n&&i.status&&(0,p.Q0)(n,i.status)}catch(e){}return i})}finally{w(b())}}))})})}function eo(e,t){return new Proxy(e,{apply:(e,n,i)=>{let r;if(!i||!i[0])return e.apply(n,i);let[o]=i,a="nextUrl"in o?o.nextUrl.pathname:o.url,s="nextUrl"in o?o.headers.get("user-agent"):o.headers["user-agent"];if(!t||!(0,y.x)([s,"optionalAccess",e=>e.includes,"call",e=>e("vercel-cron")]))return e.apply(n,i);let l=t.find(e=>e.path===a);if(!l||!l.path||!l.schedule)return e.apply(n,i);let c=l.path,d=(0,h.c)({monitorSlug:c,status:"in_progress"},{maxRuntime:720,schedule:{type:"crontab",value:l.schedule}}),u=Date.now()/1e3,p=()=>{(0,h.c)({checkInId:d,monitorSlug:c,status:"error",duration:Date.now()/1e3-u})};try{r=e.apply(n,i)}catch(e){throw p(),e}return"object"==typeof r&&null!==r&&"then"in r?Promise.resolve(r).then(()=>{(0,h.c)({checkInId:d,monitorSlug:c,status:"ok",duration:Date.now()/1e3-u})},()=>{p()}):(0,h.c)({checkInId:d,monitorSlug:c,status:"ok",duration:Date.now()/1e3-u}),r}})}function ea(e){return new Proxy(e,{apply:(e,t,n)=>{var i;return(i={spanDescription:"middleware",spanOp:"middleware.nextjs",mechanismFunctionName:"withSentryMiddleware"},async function(...t){return j(()=>{let n=t[0];return(0,u.wi)(M(n),r=>{let o,a;return n instanceof Request&&(o=n.headers.get("sentry-trace")||"",a=n.headers.get("baggage"),r.setSDKProcessingMetadata({request:function(e){let t=Q(e.headers);return{method:e.method,url:e.url,headers:t}}(n)})),r.setTransactionName(i.spanDescription),(0,P.yn)({sentryTrace:o,baggage:a},()=>(0,P.GK)({name:i.spanDescription,op:i.spanOp,forceTransaction:!0,attributes:{[T.Zj]:"route",[T.S3]:"auto.function.nextjs.withEdgeWrapping"}},async n=>{let r=await (0,J.i)(()=>e.apply(this,t),e=>{(0,h.Tb)(e,{mechanism:{type:"instrument",handled:!1,data:{function:i.mechanismFunctionName}}})});return r instanceof Response?(0,p.Q0)(n,r.status):n.setStatus({code:p.OP}),r})).finally(()=>{w(b())})})})}).apply(t,n)}})}function es(e){return"function"==typeof e&&(0,y.x)([e,"optionalAccess",e=>e.prototype,"optionalAccess",e=>e.isReactComponent])?class extends e{render(...e){return j(()=>(0,u.wi)(()=>{let t=(0,u.nZ)(),n="object"==typeof this.props&&null!==this.props&&"_sentryTraceData"in this.props&&"string"==typeof this.props._sentryTraceData?this.props._sentryTraceData:void 0;if(n){let e=(0,ee.qG)(n);t.setContext("trace",{span_id:(0,y.x)([e,"optionalAccess",e=>e.parentSpanId]),trace_id:(0,y.x)([e,"optionalAccess",e=>e.traceId])})}try{return super.render(...e)}catch(e){throw(0,h.Tb)(e,{mechanism:{handled:!1}}),e}}))}}:"function"==typeof e?new Proxy(e,{apply:(e,t,n)=>j(()=>(0,u.wi)(()=>{let i=(0,u.nZ)(),r=(0,y.x)([n,"optionalAccess",e=>e[0],"optionalAccess",e=>e._sentryTraceData]);if(r){let e=(0,ee.qG)(r);i.setContext("trace",{span_id:(0,y.x)([e,"optionalAccess",e=>e.parentSpanId]),trace_id:(0,y.x)([e,"optionalAccess",e=>e.traceId])})}try{return e.apply(t,n)}catch(e){throw(0,h.Tb)(e,{mechanism:{handled:!1}}),e}}))}):e}function el(e,t){let{requestAsyncStorage:n,componentRoute:i,componentType:r,generationFunctionIdentifier:o}=t;return new Proxy(e,{apply:(e,t,a)=>{let s=(0,y.x)([U.HN,"call",e=>e(),"optionalAccess",e=>e.spanContext,"call",e=>e(),"access",e=>e.traceId]);return j(()=>{let l,c;try{l=(0,y.x)([n,"optionalAccess",e=>e.getStore,"call",e=>e(),"optionalAccess",e=>e.headers])}catch(e){}if((0,y.x)([u.s3,"call",e=>e(),"optionalAccess",e=>e.getOptions,"call",e=>e(),"access",e=>e.sendDefaultPii])){let e=a[0],t=e&&"object"==typeof e&&"params"in e?e.params:void 0,n=e&&"object"==typeof e&&"searchParams"in e?e.searchParams:void 0;c={params:t,searchParams:n}}let d=l?Q(l):void 0,f=M(l);return(0,u.wi)(f,()=>(0,u.$e)(n=>{n.setTransactionName(`${r}.${o} (${i})`),f.setSDKProcessingMetadata({request:{headers:d}});let u=$(l,(0,y.x)([d,"optionalAccess",e=>e["sentry-trace"]])?(0,ee.pT)(d["sentry-trace"],d.baggage):{traceId:s||(0,I.DM)(),spanId:(0,I.DM)().substring(16)});return n.setExtra("route_data",c),n.setPropagationContext(u),(0,P.V0)({op:"function.nextjs",name:`${r}.${o} (${i})`,forceTransaction:!0,attributes:{[T.Zj]:"route",[T.S3]:"auto.function.nextjs"}},n=>(0,J.i)(()=>e.apply(t,a),e=>{et(e)?n.setStatus({code:p.jt,message:"not_found"}):en(e)?n.setStatus({code:p.OP}):(n.setStatus({code:p.jt,message:"internal_error"}),(0,h.Tb)(e,{mechanism:{handled:!1}}))},()=>{n.end()}))}))})}})}function ec(...e){if("function"==typeof e[1]){let[t,n]=e;return ed(t,{},n)}{let[t,n,i]=e;return ed(t,n,i)}}async function ed(e,t,n){return j(()=>(0,u.wi)(i=>{let r,o;let a=(0,y.x)([u.s3,"call",e=>e(),"optionalAccess",e=>e.getOptions,"call",e=>e(),"access",e=>e.sendDefaultPii]),s={};try{r=(0,v.h)((0,y.x)([t,"access",e=>e.headers,"optionalAccess",e=>e.get,"call",e=>e("sentry-trace")]),()=>void 0),o=(0,y.x)([t,"access",e=>e.headers,"optionalAccess",e=>e.get,"call",e=>e("baggage")]),(0,y.x)([t,"access",e=>e.headers,"optionalAccess",e=>e.forEach,"call",e=>e((e,t)=>{s[t]=e})])}catch(e){g.X&&m.kg.warn("Sentry wasn't able to extract the tracing headers for a server action. Will not trace this request.")}return i.setTransactionName(`serverAction/${e}`),i.setSDKProcessingMetadata({request:{headers:s}}),(0,P.yn)({sentryTrace:r,baggage:o},async()=>{try{return await (0,P.GK)({op:"function.server_action",name:`serverAction/${e}`,forceTransaction:!0,attributes:{[T.Zj]:"route"}},async e=>{let i=await (0,J.i)(n,t=>{et(t)?e.setStatus({code:p.jt,message:"not_found"}):en(t)||(e.setStatus({code:p.jt,message:"internal_error"}),(0,h.Tb)(t,{mechanism:{handled:!1}}))});return(void 0!==t.recordResponse?t.recordResponse:a)&&(0,u.aF)().setExtra("server_action_result",i),t.formData&&t.formData.forEach((e,t)=>{(0,u.aF)().setExtra(`server_action_form_data.${t}`,"string"==typeof e?e:"[non-string value]")}),i})}finally{w(b())}})}))}var eu=n(31801),eh=n(50842),ep=n(71198),ef=n(75625);function em(){(0,ef.a)()}var eg=n(58785),eb=n(75604),ev=n(34393);let ey=(0,ep._I)((e={})=>{let t=e.levels||m.RU;return{name:"CaptureConsole",setup(e){"console"in x.GLOBAL_OBJ&&(0,eg.e)(({args:n,level:i})=>{(0,u.s3)()===e&&t.includes(i)&&function(e,t){let n={level:(0,eb.V)(t),extra:{arguments:e}};(0,u.$e)(i=>{if(i.addEventProcessor(e=>(e.logger="console",(0,I.EG)(e,{handled:!1,type:"console"}),e)),"assert"===t){if(!e[0]){let t=`Assertion failed: ${(0,ev.nK)(e.slice(1)," ")||"console.assert"}`;i.setExtra("arguments",e.slice(1)),(0,h.uT)(t,n)}return}let r=e.find(e=>e instanceof Error);if(r){(0,h.Tb)(r,n);return}let o=(0,ev.nK)(e," ");(0,h.uT)(o,n)})}(n,i)})}}});function ex(e,t={},n=(0,u.nZ)()){let{message:i,name:r,email:o,url:a,source:s,associatedEventId:l}=e,c={contexts:{feedback:(0,f.Jr)({contact_email:o,name:r,message:i,url:a,source:s,associated_event_id:l})},type:"feedback",level:"info"},d=n&&n.getClient()||(0,u.s3)();d&&d.emit("beforeSendFeedback",c,t);let h=n.captureEvent(c,t);return h}var ew=n(63123);let ek=(0,ep._I)((e={})=>{let t={debugger:!1,stringify:!1,...e};return{name:"Debug",setup(e){e.on("beforeSendEvent",(e,n)=>{t.debugger,(0,m.Cf)(()=>{t.stringify?(console.log(JSON.stringify(e,null,2)),n&&Object.keys(n).length&&console.log(JSON.stringify(n,null,2))):(console.log(e),n&&Object.keys(n).length&&console.log(n))})})}}});var e_=n(44653),eE=n(53918),eS=n(83180);let eC=function(){return{bindClient(e){let t=(0,u.nZ)();t.setClient(e)},withScope:u.$e,getClient:()=>(0,u.s3)(),getScope:u.nZ,getIsolationScope:u.aF,captureException:(e,t)=>(0,u.nZ)().captureException(e,t),captureMessage:(e,t,n)=>(0,u.nZ)().captureMessage(e,t,n),captureEvent:h.eN,addBreadcrumb:eh.n,setUser:h.av,setTags:h.mG,setTag:h.YA,setExtra:h.sU,setExtras:h.rJ,setContext:h.v,getIntegration(e){let t=(0,u.s3)();return t&&t.getIntegrationByName(e.id)||null},startSession:h.yj,endSession:h.TM,captureSession(e){if(e)return(0,h.TM)();(function(){let e=(0,u.nZ)(),t=(0,u.s3)(),n=e.getSession();t&&n&&t.captureSession(n)})()}}};var eP=n(54263),eT=n(32111),eO=n(70249),eA=n(46167);function eI(e,t){let n;return(0,eT.gv)(e,(e,i)=>(t.includes(i)&&(n=Array.isArray(e)?e[1]:void 0),!!n)),n}function eR(e,t){return n=>{let i=e(n),r=new Map;function o(t,i){let o=i?`${t}:${i}`:t,a=r.get(o);if(!a){let s=(0,eO.U4)(t);if(!s)return;let l=(0,eA.U)(s,n.tunnel);a=i?(t=>{let n=e(t);return{...n,send:async e=>{let t=eI(e,["event","transaction","profile","replay_event"]);return t&&(t.release=i),n.send(e)}}})({...n,url:l}):e({...n,url:l}),r.set(o,a)}return[t,a]}return{send:async function(e){let n=t({envelope:e,getEvent:function(t){let n=t&&t.length?t:["event"];return eI(e,n)}}).map(e=>"string"==typeof e?o(e,void 0):o(e.dsn,e.release)).filter(e=>!!e);0===n.length&&n.push(["",i]);let r=await Promise.all(n.map(([t,n])=>n.send((0,eT.Jd)(t?{...e[0],dsn:t}:e[0],e[1]))));return r[0]},flush:async function(e){let t=[...r.values(),i],n=await Promise.all(t.map(t=>t.flush(e)));return n.every(e=>e)}}}}var e$=n(38506);function eL(e,...t){let n=new String(String.raw(e,...t));return n.__sentry_template_string__=e.join("\x00").replace(/%/g,"%%").replace(/\0/g,"%s"),n.__sentry_template_values__=t,n}var eM=n(13896),ej=n(27918),eD=n(63573),eN=n(50156);function eF(e){return{...e,path:"path"in e&&Array.isArray(e.path)?e.path.join("."):void 0,keys:"keys"in e?JSON.stringify(e.keys):void 0,unionErrors:"unionErrors"in e?JSON.stringify(e.unionErrors):void 0}}let ez=(0,ep._I)((e={})=>{let t=e.limit||10;return{name:"ZodErrors",processEvent(e,n){var i;let r=e.exception&&e.exception.values&&n&&n.originalException&&(i=n.originalException,(0,O.VZ)(i)&&"ZodError"===i.name&&Array.isArray(i.errors))&&0!==n.originalException.issues.length?{...e,exception:{...e.exception,values:[{...e.exception.values[0],value:function(e){let t=new Set;for(let n of e.issues)n.path&&t.add(n.path[0]);let n=Array.from(t);return`Failed to validate keys: ${(0,ev.$G)(n.join(", "),100)}`}(n.originalException)},...e.exception.values.slice(1)]},extra:{...e.extra,"zoderror.issues":n.originalException.errors.slice(0,t).map(eF)}}:e;return r}}});var eB=n(3689),eH=n(51515),eU=n(85358),eV=n(47799),eW=n(56118),eq=n(13835),eG=n(69675),eX=n(26126),eY=n(98321),eK=n(52405),eJ=n(3254),eZ=n(66757);let eQ={replayIntegration:"replay",replayCanvasIntegration:"replay-canvas",feedbackIntegration:"feedback",feedbackModalIntegration:"feedback-modal",feedbackScreenshotIntegration:"feedback-screenshot",captureConsoleIntegration:"captureconsole",contextLinesIntegration:"contextlines",linkedErrorsIntegration:"linkederrors",debugIntegration:"debug",dedupeIntegration:"dedupe",extraErrorDataIntegration:"extraerrordata",httpClientIntegration:"httpclient",reportingObserverIntegration:"reportingobserver",rewriteFramesIntegration:"rewriteframes",sessionTimingIntegration:"sessiontiming",browserProfilingIntegration:"browserprofiling"},e0=eB.m9;async function e1(e){let t=eQ[e],n=e0.Sentry=e0.Sentry||{};if(!t)throw Error(`Cannot lazy load integration: ${e}`);let i=n[e];if("function"==typeof i)return i;let r=function(e){let t=(0,u.s3)(),n=t&&t.getOptions(),i=n&&n.cdnBaseUrl||"https://browser.sentry-cdn.com";return new URL(`/${eu.J}/${e}.min.js`,i).toString()}(t),o=eB.m9.document.createElement("script");o.src=r,o.crossOrigin="anonymous";let a=new Promise((e,t)=>{o.addEventListener("load",()=>e()),o.addEventListener("error",t)});eB.m9.document.body.appendChild(o);try{await a}catch(t){throw Error(`Error when loading integration: ${e}`)}let s=n[e];if("function"!=typeof s)throw Error(`Could not load integration: ${e}`);return s}var e2=n(72216);let e5=x.GLOBAL_OBJ,e3=new WeakMap,e4=(0,ep._I)((e={})=>{let t=e.types||["crash","deprecation","intervention"];function n(e){if(e3.has((0,u.s3)()))for(let t of e)(0,u.$e)(e=>{e.setExtra("url",t.url);let n=`ReportingObserver [${t.type}]`,i="No details available";if(t.body){let n={};for(let e in t.body)n[e]=t.body[e];if(e.setExtra("body",n),"crash"===t.type){let e=t.body;i=[e.crashId||"",e.reason||""].join(" ").trim()||i}else{let e=t.body;i=e.message||i}}(0,h.uT)(`${n}: ${i}`)})}return{name:"ReportingObserver",setupOnce(){if(!(0,e2.zb)())return;let e=new e5.ReportingObserver(n,{buffered:!0,types:t});e.observe()},setup(e){e3.set(e,!0)}}});var e6=n(15447),e8=n(30819);let e9=x.GLOBAL_OBJ,e7=(0,ep._I)((e={})=>{let t=null!=e.frameContextLines?e.frameContextLines:7;return{name:"ContextLines",processEvent:e=>(function(e,t){let n=e9.document,i=e9.location&&(0,e8.rt)(e9.location.href);if(!n||!i)return e;let r=e.exception&&e.exception.values;if(!r||!r.length)return e;let o=n.documentElement.innerHTML;if(!o)return e;let a=["<!DOCTYPE html>","<html>",...o.split("\n"),"</html>"];return r.forEach(e=>{let n=e.stacktrace;n&&n.frames&&(n.frames=n.frames.map(e=>(e.filename===i&&e.lineno&&a.length&&(0,I.go)(a,e,t),e)))}),e})(e,t)}});var te=n(51202);function tt(e,t,n=1/0,i=0){return!e||e.nodeType!==e.ELEMENT_NODE||i>n?-1:t(e)?i:tt(e.parentNode,t,n,i+1)}function tn(e,t){return n=>{if(null===n)return!1;try{if(e){if("string"==typeof e){if(n.matches(`.${e}`))return!0}else if(function(e,t){for(let n=e.classList.length;n--;){let i=e.classList[n];if(t.test(i))return!0}return!1}(n,e))return!0}if(t&&n.matches(t))return!0;return!1}catch(e){return!1}}}(t2=t3||(t3={}))[t2.Document=0]="Document",t2[t2.DocumentType=1]="DocumentType",t2[t2.Element=2]="Element",t2[t2.Text=3]="Text",t2[t2.CDATA=4]="CDATA",t2[t2.Comment=5]="Comment";let ti="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.",tr={map:{},getId:()=>(console.error(ti),-1),getNode:()=>(console.error(ti),null),removeNodeFromMap(){console.error(ti)},has:()=>(console.error(ti),!1),reset(){console.error(ti)}};function to(e,t,n,i,r=window){let o=r.Object.getOwnPropertyDescriptor(e,t);return r.Object.defineProperty(e,t,i?n:{set(e){tu(()=>{n.set.call(this,e)},0),o&&o.set&&o.set.call(this,e)}}),()=>to(e,t,o||{},!0)}function ta(e,t,n){try{if(!(t in e))return()=>{};let i=e[t],r=n(i);return"function"==typeof r&&(r.prototype=r.prototype||{},Object.defineProperties(r,{__rrweb_original__:{enumerable:!1,value:i}})),e[t]=r,()=>{e[t]=i}}catch(e){return()=>{}}}function ts(e,t,n,i,r){if(!e)return!1;let o=function(e){if(!e)return null;let t=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;return t}(e);if(!o)return!1;let a=tn(t,n);if(!r){let e=i&&o.matches(i);return a(o)&&!e}let s=tt(o,a),l=-1;return!(s<0)&&(i&&(l=tt(o,tn(null,i))),s>-1&&l<0||s<l)}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(tr=new Proxy(tr,{get:(e,t,n)=>("map"===t&&console.error(ti),Reflect.get(e,t,n))})),/[1-9][0-9]{12}/.test(Date.now().toString());let tl={};function tc(e){let t=tl[e];if(t)return t;let n=window.document,i=window[e];if(n&&"function"==typeof n.createElement)try{let t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);let r=t.contentWindow;r&&r[e]&&(i=r[e]),n.head.removeChild(t)}catch(e){}return tl[e]=i.bind(window)}function td(...e){return tc("requestAnimationFrame")(...e)}function tu(...e){return tc("setTimeout")(...e)}var th=((t5=th||{})[t5["2D"]=0]="2D",t5[t5.WebGL=1]="WebGL",t5[t5.WebGL2=2]="WebGL2",t5);let tp=e=>r?(...t)=>{try{return e(...t)}catch(e){if(r&&!0===r(e))return()=>{};throw e}}:e;for(var tf="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",tm="undefined"==typeof Uint8Array?[]:new Uint8Array(256),tg=0;tg<tf.length;tg++)tm[tf.charCodeAt(tg)]=tg;var tb=function(e){var t,n=new Uint8Array(e),i=n.length,r="";for(t=0;t<i;t+=3)r+=tf[n[t]>>2]+tf[(3&n[t])<<4|n[t+1]>>4]+tf[(15&n[t+1])<<2|n[t+2]>>6]+tf[63&n[t+2]];return i%3==2?r=r.substring(0,r.length-1)+"=":i%3==1&&(r=r.substring(0,r.length-2)+"=="),r};let tv=new Map,ty=(e,t,n)=>{let i;if(!e||!(tw(e,t)||"object"==typeof e))return;let r=e.constructor.name,o=((i=tv.get(n))||(i=new Map,tv.set(n,i)),i.has(r)||i.set(r,[]),i.get(r)),a=o.indexOf(e);return -1===a&&(a=o.length,o.push(e)),a},tx=(e,t,n)=>e.map(e=>(function e(t,n,i){if(t instanceof Array)return t.map(t=>e(t,n,i));if(null===t);else if(t instanceof Float32Array||t instanceof Float64Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Uint8Array||t instanceof Uint16Array||t instanceof Int16Array||t instanceof Int8Array||t instanceof Uint8ClampedArray){let e=t.constructor.name;return{rr_type:e,args:[Object.values(t)]}}else if(t instanceof ArrayBuffer){let e=t.constructor.name,n=tb(t);return{rr_type:e,base64:n}}else if(t instanceof DataView){let r=t.constructor.name;return{rr_type:r,args:[e(t.buffer,n,i),t.byteOffset,t.byteLength]}}else if(t instanceof HTMLImageElement){let e=t.constructor.name,{src:n}=t;return{rr_type:e,src:n}}else if(t instanceof HTMLCanvasElement){let e=t.toDataURL();return{rr_type:"HTMLImageElement",src:e}}else if(t instanceof ImageData){let r=t.constructor.name;return{rr_type:r,args:[e(t.data,n,i),t.width,t.height]}}else if(tw(t,n)||"object"==typeof t){let e=t.constructor.name,r=ty(t,n,i);return{rr_type:e,index:r}}return t})(e,t,n)),tw=(e,t)=>{let n=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(e=>"function"==typeof t[e]);return!!n.find(n=>e instanceof t[n])};function tk(e,t,n,i,r){let o=[];try{let a=ta(e.HTMLCanvasElement.prototype,"getContext",function(e){return function(o,...a){if(!ts(this,t,n,i,!0)){let e="experimental-webgl"===o?"webgl":o;if("__context"in this||(this.__context=e),r&&["webgl","webgl2"].includes(e)){if(a[0]&&"object"==typeof a[0]){let e=a[0];e.preserveDrawingBuffer||(e.preserveDrawingBuffer=!0)}else a.splice(0,1,{preserveDrawingBuffer:!0})}}return e.apply(this,[o,...a])}});o.push(a)}catch(e){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{o.forEach(e=>e())}}function t_(e,t,n,i,r,o,a,s){let l=[],c=Object.getOwnPropertyNames(e);for(let a of c)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(a))try{if("function"!=typeof e[a])continue;let c=ta(e,a,function(e){return function(...l){let c=e.apply(this,l);if(ty(c,s,this),"tagName"in this.canvas&&!ts(this.canvas,i,r,o,!0)){let e=tx(l,s,this),i={type:t,property:a,args:e};n(this.canvas,i)}return c}});l.push(c)}catch(r){let i=to(e,a,{set(e){n(this.canvas,{type:t,property:a,args:[e],setter:!0})}});l.push(i)}return l}class tE{reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}constructor(e){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.frozen=!1,this.locked=!1,this.processMutation=(e,t)=>{let n=this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId;(n||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(e)||this.pendingCanvasMutations.set(e,[]),this.pendingCanvasMutations.get(e).push(t)};let{sampling:t="all",win:n,blockClass:i,blockSelector:o,unblockSelector:a,maxCanvasSize:s,recordCanvas:l,dataURLOptions:c,errorHandler:d}=e;if(this.mutationCb=e.mutationCb,this.mirror=e.mirror,this.options=e,d&&(r=d),e.enableManualSnapshot)return;tp(()=>{l&&"all"===t&&this.initCanvasMutationObserver(n,i,o,a),l&&"number"==typeof t&&this.initCanvasFPSObserver(t,n,i,o,a,s,{dataURLOptions:c})})()}initCanvasFPSObserver(e,t,n,i,r,o,a){let s=tk(t,n,i,r,!0),l=this.takeSnapshot(!1,e,t,n,i,r,o,a.dataURLOptions);this.resetObservers=()=>{s(),cancelAnimationFrame(l)}}initCanvasMutationObserver(e,t,n,i){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();let r=tk(e,t,n,i,!1),o=function(e,t,n,i,r){let o=[],a=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(let s of a)try{if("function"!=typeof t.CanvasRenderingContext2D.prototype[s])continue;let a=ta(t.CanvasRenderingContext2D.prototype,s,function(o){return function(...a){return ts(this.canvas,n,i,r,!0)||tu(()=>{let n=tx(a,t,this);e(this.canvas,{type:th["2D"],property:s,args:n})},0),o.apply(this,a)}});o.push(a)}catch(i){let n=to(t.CanvasRenderingContext2D.prototype,s,{set(t){e(this.canvas,{type:th["2D"],property:s,args:[t],setter:!0})}});o.push(n)}return()=>{o.forEach(e=>e())}}(this.processMutation.bind(this),e,t,n,i),a=function(e,t,n,i,r,o){let a=[];return a.push(...t_(t.WebGLRenderingContext.prototype,th.WebGL,e,n,i,r,o,t)),void 0!==t.WebGL2RenderingContext&&a.push(...t_(t.WebGL2RenderingContext.prototype,th.WebGL2,e,n,i,r,o,t)),()=>{a.forEach(e=>e())}}(this.processMutation.bind(this),e,t,n,i,this.mirror);this.resetObservers=()=>{r(),o(),a()}}snapshot(e){let{options:t}=this,n=this.takeSnapshot(!0,"all"===t.sampling?2:t.sampling||2,t.win,t.blockClass,t.blockSelector,t.unblockSelector,t.maxCanvasSize,t.dataURLOptions,e);this.resetObservers=()=>{cancelAnimationFrame(n)}}takeSnapshot(e,t,n,i,r,o,a,s,l){let c=new Map,d=new Worker(function(){let e=new Blob(['for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t="undefined"==typeof Uint8Array?[]:new Uint8Array(256),a=0;a<64;a++)t[e.charCodeAt(a)]=a;var n=function(t){var a,n=new Uint8Array(t),r=n.length,s="";for(a=0;a<r;a+=3)s+=e[n[a]>>2],s+=e[(3&n[a])<<4|n[a+1]>>4],s+=e[(15&n[a+1])<<2|n[a+2]>>6],s+=e[63&n[a+2]];return r%3==2?s=s.substring(0,s.length-1)+"=":r%3==1&&(s=s.substring(0,s.length-2)+"=="),s};const r=new Map,s=new Map;const i=self;i.onmessage=async function(e){if(!("OffscreenCanvas"in globalThis))return i.postMessage({id:e.data.id});{const{id:t,bitmap:a,width:o,height:f,maxCanvasSize:c,dataURLOptions:g}=e.data,u=async function(e,t,a){const r=e+"-"+t;if("OffscreenCanvas"in globalThis){if(s.has(r))return s.get(r);const i=new OffscreenCanvas(e,t);i.getContext("2d");const o=await i.convertToBlob(a),f=await o.arrayBuffer(),c=n(f);return s.set(r,c),c}return""}(o,f,g),[h,d]=function(e,t,a){if(!a)return[e,t];const[n,r]=a;if(e<=n&&t<=r)return[e,t];let s=e,i=t;return s>n&&(i=Math.floor(n*t/e),s=n),i>r&&(s=Math.floor(r*e/t),i=r),[s,i]}(o,f,c),l=new OffscreenCanvas(h,d),w=l.getContext("bitmaprenderer"),p=h===o&&d===f?a:await createImageBitmap(a,{resizeWidth:h,resizeHeight:d,resizeQuality:"low"});w.transferFromImageBitmap(p),a.close();const y=await l.convertToBlob(g),v=y.type,b=await y.arrayBuffer(),m=n(b);if(p.close(),!r.has(t)&&await u===m)return r.set(t,m),i.postMessage({id:t});if(r.get(t)===m)return i.postMessage({id:t});i.postMessage({id:t,type:v,base64:m,width:o,height:f}),r.set(t,m)}};']);return URL.createObjectURL(e)}());d.onmessage=e=>{let t=e.data,{id:n}=t;if(c.set(n,!1),!("base64"in t))return;let{base64:i,type:r,width:o,height:a}=t;this.mutationCb({id:n,type:th["2D"],commands:[{property:"clearRect",args:[0,0,o,a]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:i}],type:r}]},0,0,o,a]}]})};let u=1e3/t,h=0,p=e=>{if(e)return[e];let t=[];return n.document.querySelectorAll("canvas").forEach(e=>{ts(e,i,r,o,!0)||t.push(e)}),t},f=t=>{if(h&&t-h<u){td(f);return}h=t,p(l).forEach(t=>{let n=this.mirror.getId(t);if(!c.get(n)&&t.width&&t.height){if(c.set(n,!0),!e&&["webgl","webgl2"].includes(t.__context)){let e=t.getContext(t.__context);!1===(0,y.x)([e,"optionalAccess",e=>e.getContextAttributes,"call",e=>e(),"optionalAccess",e=>e.preserveDrawingBuffer])&&e.clear(e.COLOR_BUFFER_BIT)}createImageBitmap(t).then(e=>{d.postMessage({id:n,bitmap:e,width:t.width,height:t.height,dataURLOptions:s,maxCanvasSize:a},[e])}).catch(e=>{tp(()=>{throw e})()})}}),td(f)};return td(f)}startPendingCanvasMutationFlusher(){td(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){let e=t=>{this.rafStamps.latestId=t,td(e)};td(e)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((e,t)=>{let n=this.mirror.getId(t);this.flushPendingCanvasMutationFor(t,n)}),td(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(e,t){if(this.frozen||this.locked)return;let n=this.pendingCanvasMutations.get(e);if(!n||-1===t)return;let i=n.map(e=>{let{type:t,...n}=e;return n}),{type:r}=n[0];this.mutationCb({id:t,type:r,commands:i}),this.pendingCanvasMutations.delete(e)}}let tS={low:{sampling:{canvas:1},dataURLOptions:{type:"image/webp",quality:.25}},medium:{sampling:{canvas:2},dataURLOptions:{type:"image/webp",quality:.4}},high:{sampling:{canvas:4},dataURLOptions:{type:"image/webp",quality:.5}}},tC=(0,ep._I)((e={})=>{let t;let[n,i]=e.maxCanvasSize||[],r={quality:e.quality||"medium",enableManualSnapshot:e.enableManualSnapshot,maxCanvasSize:[n?Math.min(n,1280):1280,i?Math.min(i,1280):1280]},o=new Promise(e=>t=e);return{name:"ReplayCanvas",getOptions(){let{quality:e,enableManualSnapshot:n,maxCanvasSize:i}=r;return{enableManualSnapshot:n,recordCanvas:!0,getCanvasManager:e=>{let r=new tE({...e,enableManualSnapshot:n,maxCanvasSize:i,errorHandler:e=>{try{"object"==typeof e&&(e.__rrweb__=!0)}catch(e){}}});return t(r),r},...tS[e||"medium"]||tS.medium}},async snapshot(e){let t=await o;t.snapshot(e)}}});var tP=n(48378),tT=n(79866);let tO=x.GLOBAL_OBJ,tA=tO.document,tI=tO.navigator,tR="Report a Bug",t$="Cancel",tL="Send Bug Report",tM="Confirm",tj="Report a Bug",tD="your.email@example.org",tN="Email",tF="What's the bug? What did you expect?",tz="Description",tB="Your Name",tH="Name",tU="Thank you for your report!",tV="(required)",tW="Add a screenshot",tq="Remove screenshot",tG=(e,t={includeReplay:!0})=>{if(!e.message)throw Error("Unable to submit feedback with empty message");let n=(0,u.s3)();if(!n)throw Error("No client setup, cannot send feedback.");let i=ex({source:"api",url:(0,tP.l4)(),...e},t);return new Promise((e,t)=>{let r=setTimeout(()=>t("Unable to determine if Feedback was correctly sent."),5e3);n.on("afterSendEvent",(n,o)=>{if(n.event_id===i){if(clearTimeout(r),o&&"number"==typeof o.statusCode&&(o.statusCode<200||o.statusCode>=300))return 0===o.statusCode?t("Unable to send Feedback. This is because of network issues, or because you are using an ad-blocker."):t("Unable to send Feedback. Invalid response from server.");e(i)}})})};function tX(e,t){return{...e,...t,onFormOpen:()=>{t.onFormOpen&&t.onFormOpen(),e.onFormOpen&&e.onFormOpen()},onFormClose:()=>{t.onFormClose&&t.onFormClose(),e.onFormClose&&e.onFormClose()},onSubmitSuccess:n=>{t.onSubmitSuccess&&t.onSubmitSuccess(n),e.onSubmitSuccess&&e.onSubmitSuccess(n)},onSubmitError:n=>{t.onSubmitError&&t.onSubmitError(n),e.onSubmitError&&e.onSubmitError(n)},onFormSubmitted:()=>{t.onFormSubmitted&&t.onFormSubmitted(),e.onFormSubmitted&&e.onFormSubmitted()},themeDark:{...e.themeDark,...t.themeDark},themeLight:{...e.themeLight,...t.themeLight}}}function tY(e,t){return Object.entries(t).forEach(([t,n])=>{e.setAttributeNS(null,t,n)}),e}let tK="rgba(88, 74, 192, 1)",tJ={foreground:"#2b2233",background:"#ffffff",accentForeground:"white",accentBackground:tK,successColor:"#268d75",errorColor:"#df3338",border:"1.5px solid rgba(41, 35, 47, 0.13)",boxShadow:"0px 4px 24px 0px rgba(43, 34, 51, 0.12)",outline:"1px auto var(--accent-background)",interactiveFilter:"brightness(95%)"},tZ={foreground:"#ebe6ef",background:"#29232f",accentForeground:"white",accentBackground:tK,successColor:"#2da98c",errorColor:"#f55459",border:"1.5px solid rgba(235, 230, 239, 0.15)",boxShadow:"0px 4px 24px 0px rgba(43, 34, 51, 0.12)",outline:"1px auto var(--accent-background)",interactiveFilter:"brightness(150%)"};function tQ(e){return`
  --foreground: ${e.foreground};
  --background: ${e.background};
  --accent-foreground: ${e.accentForeground};
  --accent-background: ${e.accentBackground};
  --success-color: ${e.successColor};
  --error-color: ${e.errorColor};
  --border: ${e.border};
  --box-shadow: ${e.boxShadow};
  --outline: ${e.outline};
  --interactive-filter: ${e.interactiveFilter};
  `}let t0=({lazyLoadIntegration:e,getModalIntegration:t,getScreenshotIntegration:n})=>({id:i="sentry-feedback",showBranding:r=!0,autoInject:o=!0,showEmail:a=!0,showName:s=!0,enableScreenshot:l=!0,useSentryUser:c={email:"email",name:"username"},isNameRequired:d=!1,isEmailRequired:h=!1,colorScheme:p="system",themeLight:f={},themeDark:m={},addScreenshotButtonLabel:g=tW,cancelButtonLabel:b=t$,confirmButtonLabel:v=tM,emailLabel:y=tN,emailPlaceholder:x=tD,formTitle:w=tj,isRequiredLabel:k=tV,messageLabel:_=tz,messagePlaceholder:E=tF,nameLabel:S=tH,namePlaceholder:C=tB,removeScreenshotButtonLabel:P=tq,submitButtonLabel:T=tL,successMessageText:O=tU,triggerLabel:A=tR,onFormOpen:I,onFormClose:R,onSubmitSuccess:$,onSubmitError:L,onFormSubmitted:M}={})=>{let j={id:i,autoInject:o,showBranding:r,isEmailRequired:h,isNameRequired:d,showEmail:a,showName:s,enableScreenshot:l,useSentryUser:c,colorScheme:p,themeDark:m,themeLight:f,triggerLabel:A,cancelButtonLabel:b,submitButtonLabel:T,confirmButtonLabel:v,formTitle:w,emailLabel:y,emailPlaceholder:x,messageLabel:_,messagePlaceholder:E,nameLabel:S,namePlaceholder:C,successMessageText:O,isRequiredLabel:k,addScreenshotButtonLabel:g,removeScreenshotButtonLabel:P,onFormClose:R,onFormOpen:I,onSubmitError:L,onSubmitSuccess:$,onFormSubmitted:M},D=null,N=[],F=e=>{if(!D){let t=tA.createElement("div");t.id=String(e.id),tA.body.appendChild(t),(D=t.attachShadow({mode:"open"})).appendChild(function({colorScheme:e,themeDark:t,themeLight:n}){let i=tA.createElement("style");return i.textContent=`
:host {
  --font-family: system-ui, 'Helvetica Neue', Arial, sans-serif;
  --font-size: 14px;
  --z-index: 100000;

  --page-margin: 16px;
  --inset: auto 0 0 auto;
  --actor-inset: var(--inset);

  font-family: var(--font-family);
  font-size: var(--font-size);

  ${"system"!==e?"color-scheme: only light;":""}

  ${tQ("dark"===e?{...tZ,...t}:{...tJ,...n})}
}

${"system"===e?`
@media (prefers-color-scheme: dark) {
  :host {
    ${tQ({...tZ,...t})}
  }
}`:""}
}
`,i}(e))}return D},z=async(t,n,i)=>{let r=(0,u.s3)(),o=r&&r.getIntegrationByName(t);if(o)return o;let a=n&&n()||await e(i),s=a();return r&&r.addIntegration(s),s},B=async e=>{let i=e.enableScreenshot&&!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(tI.userAgent)&&!!isSecureContext,[r,o]=await Promise.all([z("FeedbackModal",t,"feedbackModalIntegration"),i?z("FeedbackScreenshot",n,"feedbackScreenshotIntegration"):void 0]);if(!r)throw Error("[Feedback] Missing feedback modal integration!");return r.createDialog({options:e,screenshotIntegration:i?o:void 0,sendFeedback:tG,shadow:F(e)})},H=(e,t={})=>{let n=tX(j,t),i="string"==typeof e?tA.querySelector(e):"function"==typeof e.addEventListener?e:null;if(!i)throw Error("Unable to attach to target element");let r=null,o=async()=>{r||(r=await B({...n,onFormClose:()=>{r&&r.close(),n.onFormClose&&n.onFormClose()},onFormSubmitted:()=>{r&&r.removeFromDom(),n.onFormSubmitted&&n.onFormSubmitted()}})),r.appendToDom(),r.open()};i.addEventListener("click",o);let a=()=>{N=N.filter(e=>e!==a),r&&r.removeFromDom(),r=null,i.removeEventListener("click",o)};return N.push(a),a},U=(e={})=>{let t=F(j),n=function({triggerLabel:e,shadow:t}){let n=tA.createElement("button");if(n.type="button",n.className="widget__actor",n.ariaHidden="false",n.ariaLabel=e,n.appendChild(function(){let e=e=>tO.document.createElementNS("http://www.w3.org/2000/svg",e),t=tY(e("svg"),{width:"20",height:"20",viewBox:"0 0 20 20",fill:"var(--foreground)"}),n=tY(e("g"),{clipPath:"url(#clip0_57_80)"}),i=tY(e("path"),{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.6622 15H12.3997C12.2129 14.9959 12.031 14.9396 11.8747 14.8375L8.04965 12.2H7.49956V19.1C7.4875 19.3348 7.3888 19.5568 7.22256 19.723C7.05632 19.8892 6.83435 19.9879 6.59956 20H2.04956C1.80193 19.9968 1.56535 19.8969 1.39023 19.7218C1.21511 19.5467 1.1153 19.3101 1.11206 19.0625V12.2H0.949652C0.824431 12.2017 0.700142 12.1783 0.584123 12.1311C0.468104 12.084 0.362708 12.014 0.274155 11.9255C0.185602 11.8369 0.115689 11.7315 0.0685419 11.6155C0.0213952 11.4995 -0.00202913 11.3752 -0.00034808 11.25V3.75C-0.00900498 3.62067 0.0092504 3.49095 0.0532651 3.36904C0.0972798 3.24712 0.166097 3.13566 0.255372 3.04168C0.344646 2.94771 0.452437 2.87327 0.571937 2.82307C0.691437 2.77286 0.82005 2.74798 0.949652 2.75H8.04965L11.8747 0.1625C12.031 0.0603649 12.2129 0.00407221 12.3997 0H15.6622C15.9098 0.00323746 16.1464 0.103049 16.3215 0.278167C16.4966 0.453286 16.5964 0.689866 16.5997 0.9375V3.25269C17.3969 3.42959 18.1345 3.83026 18.7211 4.41679C19.5322 5.22788 19.9878 6.32796 19.9878 7.47502C19.9878 8.62209 19.5322 9.72217 18.7211 10.5333C18.1345 11.1198 17.3969 11.5205 16.5997 11.6974V14.0125C16.6047 14.1393 16.5842 14.2659 16.5395 14.3847C16.4948 14.5035 16.4268 14.6121 16.3394 14.7042C16.252 14.7962 16.147 14.8698 16.0307 14.9206C15.9144 14.9714 15.7891 14.9984 15.6622 15ZM1.89695 10.325H1.88715V4.625H8.33715C8.52423 4.62301 8.70666 4.56654 8.86215 4.4625L12.6872 1.875H14.7247V13.125H12.6872L8.86215 10.4875C8.70666 10.3835 8.52423 10.327 8.33715 10.325H2.20217C2.15205 10.3167 2.10102 10.3125 2.04956 10.3125C1.9981 10.3125 1.94708 10.3167 1.89695 10.325ZM2.98706 12.2V18.1625H5.66206V12.2H2.98706ZM16.5997 9.93612V5.01393C16.6536 5.02355 16.7072 5.03495 16.7605 5.04814C17.1202 5.13709 17.4556 5.30487 17.7425 5.53934C18.0293 5.77381 18.2605 6.06912 18.4192 6.40389C18.578 6.73866 18.6603 7.10452 18.6603 7.47502C18.6603 7.84552 18.578 8.21139 18.4192 8.54616C18.2605 8.88093 18.0293 9.17624 17.7425 9.41071C17.4556 9.64518 17.1202 9.81296 16.7605 9.90191C16.7072 9.91509 16.6536 9.9265 16.5997 9.93612Z"});t.appendChild(n).appendChild(i);let r=e("defs"),o=tY(e("clipPath"),{id:"clip0_57_80"}),a=tY(e("rect"),{width:"20",height:"20",fill:"white"});return o.appendChild(a),r.appendChild(o),t.appendChild(r).appendChild(o).appendChild(a),t}()),e){let t=tA.createElement("span");t.appendChild(tA.createTextNode(e)),n.appendChild(t)}let i=function(){let e=tA.createElement("style");return e.textContent=`
.widget__actor {
  position: fixed;
  z-index: var(--z-index);
  margin: var(--page-margin);
  inset: var(--actor-inset);

  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px;

  font-family: inherit;
  font-size: var(--font-size);
  font-weight: 600;
  line-height: 1.14em;
  text-decoration: none;

  background: var(--actor-background, var(--background));
  border-radius: var(--actor-border-radius, 1.7em/50%);
  border: var(--actor-border, var(--border));
  box-shadow: var(--actor-box-shadow, var(--box-shadow));
  color: var(--actor-color, var(--foreground));
  fill: var(--actor-color, var(--foreground));
  cursor: pointer;
  opacity: 1;
  transition: transform 0.2s ease-in-out;
  transform: translate(0, 0) scale(1);
}
.widget__actor[aria-hidden="true"] {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transform: translate(0, 16px) scale(0.98);
}

.widget__actor:hover {
  background: var(--actor-hover-background, var(--background));
  filter: var(--interactive-filter);
}

.widget__actor svg {
  width: 1.14em;
  height: 1.14em;
}

@media (max-width: 600px) {
  .widget__actor span {
    display: none;
  }
}
`,e}();return{el:n,appendToDom(){t.appendChild(i),t.appendChild(n)},removeFromDom(){t.removeChild(n),t.removeChild(i)},show(){n.ariaHidden="false"},hide(){n.ariaHidden="true"}}}({triggerLabel:j.triggerLabel,shadow:t}),i=tX(j,{...e,onFormOpen(){n.hide()},onFormClose(){n.show()},onFormSubmitted(){n.show()}});return H(n.el,i),n};return{name:"Feedback",setupOnce(){(0,tT.j)()&&j.autoInject&&U().appendToDom()},attachTo:H,createWidget(e={}){let t=U(tX(j,e));return t.appendToDom(),t},createForm:async(e={})=>B(tX(j,e)),remove(){D&&(D.parentElement&&D.parentElement.remove(),D=null),N.forEach(e=>e()),N=[]}}};function t1(){let e=(0,u.s3)();return e&&e.getIntegrationByName("Feedback")}var t2,t5,t3,t4,t6,t8,t9,t7,ne,nt,nn={},ni=[],nr=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,no=Array.isArray;function na(e,t){for(var n in t)e[n]=t[n];return e}function ns(e){var t=e.parentNode;t&&t.removeChild(e)}function nl(e,t,n){var i,r,o,a={};for(o in t)"key"==o?i=t[o]:"ref"==o?r=t[o]:a[o]=t[o];if(arguments.length>2&&(a.children=arguments.length>3?t4.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(o in e.defaultProps)void 0===a[o]&&(a[o]=e.defaultProps[o]);return nc(e,a,i,r,null)}function nc(e,t,n,i,r){var o={type:e,props:t,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==r?++t8:r,__i:-1,__u:0};return null==r&&null!=t6.vnode&&t6.vnode(o),o}function nd(e){return e.children}function nu(e,t){this.props=e,this.context=t}function nh(e,t){if(null==t)return e.__?nh(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?nh(e):null}function np(e){(!e.__d&&(e.__d=!0)&&t9.push(e)&&!nf.__r++||t7!==t6.debounceRendering)&&((t7=t6.debounceRendering)||ne)(nf)}function nf(){var e,t,n,i=[],r=[];for(t9.sort(nt);e=t9.shift();)e.__d&&(n=t9.length,t=function(e,t,n){var i,r=e.__v,o=r.__e,a=e.__P;if(a)return(i=na({},r)).__v=r.__v+1,t6.vnode&&t6.vnode(i),nx(a,i,r,e.__n,void 0!==a.ownerSVGElement,32&r.__u?[o]:null,t,null==o?nh(r):o,!!(32&r.__u),n),i.__.__k[i.__i]=i,i.__d=void 0,i.__e!=o&&function e(t){var n,i;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,n=0;n<t.__k.length;n++)if(null!=(i=t.__k[n])&&null!=i.__e){t.__e=t.__c.base=i.__e;break}return e(t)}}(i),i}(e,i,r)||t,0===n||t9.length>n?(nw(i,t,r),r.length=i.length=0,t=void 0,t9.sort(nt)):t&&t6.__c&&t6.__c(t,ni));t&&nw(i,t,r),nf.__r=0}function nm(e,t,n,i,r,o,a,s,l,c,d){var u,h,p,f,m,g=i&&i.__k||ni,b=t.length;for(n.__d=l,function(e,t,n){var i,r,o,a,s,l=t.length,c=n.length,d=c,u=0;for(e.__k=[],i=0;i<l;i++)null!=(r=e.__k[i]=null==(r=t[i])||"boolean"==typeof r||"function"==typeof r?null:"string"==typeof r||"number"==typeof r||"bigint"==typeof r||r.constructor==String?nc(null,r,null,null,r):no(r)?nc(nd,{children:r},null,null,null):void 0===r.constructor&&r.__b>0?nc(r.type,r.props,r.key,r.ref?r.ref:null,r.__v):r)?(r.__=e,r.__b=e.__b+1,s=function(e,t,n,i){var r=e.key,o=e.type,a=n-1,s=n+1,l=t[n];if(null===l||l&&r==l.key&&o===l.type)return n;if(i>(null!=l&&0==(131072&l.__u)?1:0))for(;a>=0||s<t.length;){if(a>=0){if((l=t[a])&&0==(131072&l.__u)&&r==l.key&&o===l.type)return a;a--}if(s<t.length){if((l=t[s])&&0==(131072&l.__u)&&r==l.key&&o===l.type)return s;s++}}return -1}(r,n,a=i+u,d),r.__i=s,o=null,-1!==s&&(d--,(o=n[s])&&(o.__u|=131072)),null==o||null===o.__v?(-1==s&&u--,"function"!=typeof r.type&&(r.__u|=65536)):s!==a&&(s===a+1?u++:s>a?d>l-a?u+=s-a:u--:u=s<a&&s==a-1?s-a:0,s!==i+u&&(r.__u|=65536))):(o=n[i])&&null==o.key&&o.__e&&(o.__e==e.__d&&(e.__d=nh(o)),n_(o,o,!1),n[i]=null,d--);if(d)for(i=0;i<c;i++)null!=(o=n[i])&&0==(131072&o.__u)&&(o.__e==e.__d&&(e.__d=nh(o)),n_(o,o))}(n,t,g),l=n.__d,u=0;u<b;u++)null!=(p=n.__k[u])&&"boolean"!=typeof p&&"function"!=typeof p&&(h=-1===p.__i?nn:g[p.__i]||nn,p.__i=u,nx(e,p,h,r,o,a,s,l,c,d),f=p.__e,p.ref&&h.ref!=p.ref&&(h.ref&&nk(h.ref,null,p),d.push(p.ref,p.__c||f,p)),null==m&&null!=f&&(m=f),65536&p.__u||h.__k===p.__k?l=function e(t,n,i){var r,o;if("function"==typeof t.type){for(r=t.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=t,n=e(r[o],n,i));return n}t.__e!=n&&(i.insertBefore(t.__e,n||null),n=t.__e);do n=n&&n.nextSibling;while(null!=n&&8===n.nodeType);return n}(p,l,e):"function"==typeof p.type&&void 0!==p.__d?l=p.__d:f&&(l=f.nextSibling),p.__d=void 0,p.__u&=-196609);n.__d=l,n.__e=m}function ng(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||nr.test(t)?n:n+"px"}function nb(e,t,n,i,r){var o;n:if("style"===t){if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof i&&(e.style.cssText=i=""),i)for(t in i)n&&t in n||ng(e.style,t,"");if(n)for(t in n)i&&n[t]===i[t]||ng(e.style,t,n[t])}}else if("o"===t[0]&&"n"===t[1])o=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase() in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=n,n?i?n.u=i.u:(n.u=Date.now(),e.addEventListener(t,o?ny:nv,o)):e.removeEventListener(t,o?ny:nv,o);else{if(r)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==t&&"height"!==t&&"href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&"rowSpan"!==t&&"colSpan"!==t&&"role"!==t&&t in e)try{e[t]=null==n?"":n;break n}catch(e){}"function"==typeof n||(null==n||!1===n&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,n))}}function nv(e){if(this.l){var t=this.l[e.type+!1];if(e.t){if(e.t<=t.u)return}else e.t=Date.now();return t(t6.event?t6.event(e):e)}}function ny(e){if(this.l)return this.l[e.type+!0](t6.event?t6.event(e):e)}function nx(e,t,n,i,r,o,a,s,l,c){var d,u,h,p,f,m,g,b,v,y,x,w,k,_,E,S=t.type;if(void 0!==t.constructor)return null;128&n.__u&&(l=!!(32&n.__u),o=[s=t.__e=n.__e]),(d=t6.__b)&&d(t);n:if("function"==typeof S)try{if(b=t.props,v=(d=S.contextType)&&i[d.__c],y=d?v?v.props.value:d.__:i,n.__c?g=(u=t.__c=n.__c).__=u.__E:("prototype"in S&&S.prototype.render?t.__c=u=new S(b,y):(t.__c=u=new nu(b,y),u.constructor=S,u.render=nE),v&&v.sub(u),u.props=b,u.state||(u.state={}),u.context=y,u.__n=i,h=u.__d=!0,u.__h=[],u._sb=[]),null==u.__s&&(u.__s=u.state),null!=S.getDerivedStateFromProps&&(u.__s==u.state&&(u.__s=na({},u.__s)),na(u.__s,S.getDerivedStateFromProps(b,u.__s))),p=u.props,f=u.state,u.__v=t,h)null==S.getDerivedStateFromProps&&null!=u.componentWillMount&&u.componentWillMount(),null!=u.componentDidMount&&u.__h.push(u.componentDidMount);else{if(null==S.getDerivedStateFromProps&&b!==p&&null!=u.componentWillReceiveProps&&u.componentWillReceiveProps(b,y),!u.__e&&(null!=u.shouldComponentUpdate&&!1===u.shouldComponentUpdate(b,u.__s,y)||t.__v===n.__v)){for(t.__v!==n.__v&&(u.props=b,u.state=u.__s,u.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(e){e&&(e.__=t)}),x=0;x<u._sb.length;x++)u.__h.push(u._sb[x]);u._sb=[],u.__h.length&&a.push(u);break n}null!=u.componentWillUpdate&&u.componentWillUpdate(b,u.__s,y),null!=u.componentDidUpdate&&u.__h.push(function(){u.componentDidUpdate(p,f,m)})}if(u.context=y,u.props=b,u.__P=e,u.__e=!1,w=t6.__r,k=0,"prototype"in S&&S.prototype.render){for(u.state=u.__s,u.__d=!1,w&&w(t),d=u.render(u.props,u.state,u.context),_=0;_<u._sb.length;_++)u.__h.push(u._sb[_]);u._sb=[]}else do u.__d=!1,w&&w(t),d=u.render(u.props,u.state,u.context),u.state=u.__s;while(u.__d&&++k<25);u.state=u.__s,null!=u.getChildContext&&(i=na(na({},i),u.getChildContext())),h||null==u.getSnapshotBeforeUpdate||(m=u.getSnapshotBeforeUpdate(p,f)),nm(e,no(E=null!=d&&d.type===nd&&null==d.key?d.props.children:d)?E:[E],t,n,i,r,o,a,s,l,c),u.base=t.__e,t.__u&=-161,u.__h.length&&a.push(u),g&&(u.__E=u.__=null)}catch(e){t.__v=null,l||null!=o?(t.__e=s,t.__u|=l?160:32,o[o.indexOf(s)]=null):(t.__e=n.__e,t.__k=n.__k),t6.__e(e,t,n)}else null==o&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=function(e,t,n,i,r,o,a,s,l){var c,d,u,h,p,f,m,g=n.props,b=t.props,v=t.type;if("svg"===v&&(r=!0),null!=o){for(c=0;c<o.length;c++)if((p=o[c])&&"setAttribute"in p==!!v&&(v?p.localName===v:3===p.nodeType)){e=p,o[c]=null;break}}if(null==e){if(null===v)return document.createTextNode(b);e=r?document.createElementNS("http://www.w3.org/2000/svg",v):document.createElement(v,b.is&&b),o=null,s=!1}if(null===v)g===b||s&&e.data===b||(e.data=b);else{if(o=o&&t4.call(e.childNodes),g=n.props||nn,!s&&null!=o)for(g={},c=0;c<e.attributes.length;c++)g[(p=e.attributes[c]).name]=p.value;for(c in g)p=g[c],"children"==c||("dangerouslySetInnerHTML"==c?u=p:"key"===c||c in b||nb(e,c,null,p,r));for(c in b)p=b[c],"children"==c?h=p:"dangerouslySetInnerHTML"==c?d=p:"value"==c?f=p:"checked"==c?m=p:"key"===c||s&&"function"!=typeof p||g[c]===p||nb(e,c,p,g[c],r);if(d)s||u&&(d.__html===u.__html||d.__html===e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(u&&(e.innerHTML=""),nm(e,no(h)?h:[h],t,n,i,r&&"foreignObject"!==v,o,a,o?o[0]:n.__k&&nh(n,0),s,l),null!=o)for(c=o.length;c--;)null!=o[c]&&ns(o[c]);s||(c="value",void 0===f||f===e[c]&&("progress"!==v||f)&&("option"!==v||f===g[c])||nb(e,c,f,g[c],!1),c="checked",void 0!==m&&m!==e[c]&&nb(e,c,m,g[c],!1))}return e}(n.__e,t,n,i,r,o,a,l,c);(d=t6.diffed)&&d(t)}function nw(e,t,n){for(var i=0;i<n.length;i++)nk(n[i],n[++i],n[++i]);t6.__c&&t6.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){t6.__e(e,t.__v)}})}function nk(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){t6.__e(e,n)}}function n_(e,t,n){var i,r;if(t6.unmount&&t6.unmount(e),(i=e.ref)&&(i.current&&i.current!==e.__e||nk(i,null,t)),null!=(i=e.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(e){t6.__e(e,t)}i.base=i.__P=null,e.__c=void 0}if(i=e.__k)for(r=0;r<i.length;r++)i[r]&&n_(i[r],t,n||"function"!=typeof e.type);n||null==e.__e||ns(e.__e),e.__=e.__e=e.__d=void 0}function nE(e,t,n){return this.constructor(e,n)}t4=ni.slice,t6={__e:function(e,t,n,i){for(var r,o,a;t=t.__;)if((r=t.__c)&&!r.__)try{if((o=r.constructor)&&null!=o.getDerivedStateFromError&&(r.setState(o.getDerivedStateFromError(e)),a=r.__d),null!=r.componentDidCatch&&(r.componentDidCatch(e,i||{}),a=r.__d),a)return r.__E=r}catch(t){e=t}throw e}},t8=0,nu.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=na({},this.state),"function"==typeof e&&(e=e(na({},n),this.props)),e&&na(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),np(this))},nu.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),np(this))},nu.prototype.render=nd,t9=[],ne="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,nt=function(e,t){return e.__v.__b-t.__v.__b},nf.__r=0;var nS,nC,nP,nT,nO=0,nA=[],nI=[],nR=t6,n$=nR.__b,nL=nR.__r,nM=nR.diffed,nj=nR.__c,nD=nR.unmount,nN=nR.__;function nF(e,t){nR.__h&&nR.__h(nC,e,nO||t),nO=0;var n=nC.__H||(nC.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:nI}),n.__[e]}function nz(e){return nO=1,function(e,t,n){var i=nF(nS++,2);if(i.t=e,!i.__c&&(i.__=[n?n(t):nK(void 0,t),function(e){var t=i.__N?i.__N[0]:i.__[0],n=i.t(t,e);t!==n&&(i.__N=[n,i.__[1]],i.__c.setState({}))}],i.__c=nC,!nC.u)){var r=function(e,t,n){if(!i.__c.__H)return!0;var r=i.__c.__H.__.filter(function(e){return!!e.__c});if(r.every(function(e){return!e.__N}))return!o||o.call(this,e,t,n);var a=!1;return r.forEach(function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(a=!0)}}),!(!a&&i.__c.props===e)&&(!o||o.call(this,e,t,n))};nC.u=!0;var o=nC.shouldComponentUpdate,a=nC.componentWillUpdate;nC.componentWillUpdate=function(e,t,n){if(this.__e){var i=o;o=void 0,r(e,t,n),o=i}a&&a.call(this,e,t,n)},nC.shouldComponentUpdate=r}return i.__N||i.__}(nK,e)}function nB(e,t){var n=nF(nS++,3);!nR.__s&&nY(n.__H,t)&&(n.__=e,n.i=t,nC.__H.__h.push(n))}function nH(e){return nO=5,nU(function(){return{current:e}},[])}function nU(e,t){var n=nF(nS++,7);return nY(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function nV(e,t){return nO=8,nU(function(){return e},t)}function nW(){for(var e;e=nA.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(nG),e.__H.__h.forEach(nX),e.__H.__h=[]}catch(t){e.__H.__h=[],nR.__e(t,e.__v)}}nR.__b=function(e){nC=null,n$&&n$(e)},nR.__=function(e,t){t.__k&&t.__k.__m&&(e.__m=t.__k.__m),nN&&nN(e,t)},nR.__r=function(e){nL&&nL(e),nS=0;var t=(nC=e.__c).__H;t&&(nP===nC?(t.__h=[],nC.__h=[],t.__.forEach(function(e){e.__N&&(e.__=e.__N),e.__V=nI,e.__N=e.i=void 0})):(t.__h.forEach(nG),t.__h.forEach(nX),t.__h=[],nS=0)),nP=nC},nR.diffed=function(e){nM&&nM(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==nA.push(t)&&nT===nR.requestAnimationFrame||((nT=nR.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(i),nq&&cancelAnimationFrame(t),setTimeout(e)},i=setTimeout(n,100);nq&&(t=requestAnimationFrame(n))})(nW)),t.__H.__.forEach(function(e){e.i&&(e.__H=e.i),e.__V!==nI&&(e.__=e.__V),e.i=void 0,e.__V=nI})),nP=nC=null},nR.__c=function(e,t){t.some(function(e){try{e.__h.forEach(nG),e.__h=e.__h.filter(function(e){return!e.__||nX(e)})}catch(n){t.some(function(e){e.__h&&(e.__h=[])}),t=[],nR.__e(n,e.__v)}}),nj&&nj(e,t)},nR.unmount=function(e){nD&&nD(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(e){try{nG(e)}catch(e){t=e}}),n.__H=void 0,t&&nR.__e(t,n.__v))};var nq="function"==typeof requestAnimationFrame;function nG(e){var t=nC,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),nC=t}function nX(e){var t=nC;e.__c=e.__(),nC=t}function nY(e,t){return!e||e.length!==t.length||t.some(function(t,n){return t!==e[n]})}function nK(e,t){return"function"==typeof t?t(e):t}let nJ="/home/runner/work/sentry-javascript/sentry-javascript/packages/feedback/src/modal/components/DialogHeader.tsx";function nZ({options:e}){let t=nU(()=>({__html:function(){let e=e=>tA.createElementNS("http://www.w3.org/2000/svg",e),t=tY(e("svg"),{width:"32",height:"30",viewBox:"0 0 72 66",fill:"inherit"}),n=tY(e("path"),{transform:"translate(11, 11)",d:"M29,2.26a4.67,4.67,0,0,0-8,0L14.42,13.53A32.21,32.21,0,0,1,32.17,40.19H27.55A27.68,27.68,0,0,0,12.09,17.47L6,28a15.92,15.92,0,0,1,9.23,12.17H4.62A.76.76,0,0,1,4,39.06l2.94-5a10.74,10.74,0,0,0-3.36-1.9l-2.91,5a4.54,4.54,0,0,0,1.69,6.24A4.66,4.66,0,0,0,4.62,44H19.15a19.4,19.4,0,0,0-8-17.31l2.31-4A23.87,23.87,0,0,1,23.76,44H36.07a35.88,35.88,0,0,0-16.41-31.8l4.67-8a.77.77,0,0,1,1.05-.27c.53.29,20.29,34.77,20.66,35.17a.76.76,0,0,1-.68,1.13H40.6q.09,1.91,0,3.81h4.78A4.59,4.59,0,0,0,50,39.43a4.49,4.49,0,0,0-.62-2.28Z"});return t.appendChild(n),t}().outerHTML}),[]);return nl("h2",{class:"dialog__header",__self:this,__source:{fileName:nJ,lineNumber:16}},e.formTitle,e.showBranding?nl("a",{class:"brand-link",target:"_blank",href:"https://sentry.io/welcome/",title:"Powered by Sentry",rel:"noopener noreferrer",dangerouslySetInnerHTML:t,__self:this,__source:{fileName:nJ,lineNumber:19}}):null)}let nQ="/home/runner/work/sentry-javascript/sentry-javascript/packages/feedback/src/modal/components/Form.tsx";function n0(e,t){let n=e.get(t);return"string"==typeof n?n.trim():""}function n1({options:e,defaultEmail:t,defaultName:n,onFormClose:i,onSubmit:r,onSubmitSuccess:o,onSubmitError:a,showEmail:s,showName:l,screenshotInput:c}){let{addScreenshotButtonLabel:d,removeScreenshotButtonLabel:u,cancelButtonLabel:h,emailLabel:p,emailPlaceholder:f,isEmailRequired:m,isNameRequired:g,messageLabel:b,messagePlaceholder:v,nameLabel:y,namePlaceholder:x,submitButtonLabel:w,isRequiredLabel:k}=e,[_,E]=nz(null),[S,C]=nz(!1),P=c&&c.input,[T,O]=nz(null),A=nV(e=>{O(e),C(!1)},[]),I=nV(e=>{let t=function(e,t){let n=[];return t.isNameRequired&&!e.name&&n.push(t.nameLabel),t.isEmailRequired&&!e.email&&n.push(t.emailLabel),e.message||n.push(t.messageLabel),n}(e,{emailLabel:p,isEmailRequired:m,isNameRequired:g,messageLabel:b,nameLabel:y});return t.length>0?E(`Please enter in the following required fields: ${t.join(", ")}`):E(null),0===t.length},[p,m,g,b,y]),R=nV(async e=>{try{if(e.preventDefault(),!(e.target instanceof HTMLFormElement))return;let t=new FormData(e.target),n=await (c&&S?c.value():void 0),i={name:n0(t,"name"),email:n0(t,"email"),message:n0(t,"message"),attachments:n?[n]:void 0};if(!I(i))return;try{await r({name:i.name,email:i.email,message:i.message,source:"widget"},{attachments:i.attachments}),o(i)}catch(e){E("There was a problem submitting feedback, please wait and try again."),a(e)}}catch(e){}},[c&&S,o,a]);return nl("form",{class:"form",onSubmit:R,__self:this,__source:{fileName:nQ,lineNumber:142}},P&&S?nl(P,{onError:A,__self:this,__source:{fileName:nQ,lineNumber:144}}):null,nl("div",{class:"form__right","data-sentry-feedback":!0,__self:this,__source:{fileName:nQ,lineNumber:147}},nl("div",{class:"form__top",__self:this,__source:{fileName:nQ,lineNumber:148}},_?nl("div",{class:"form__error-container",__self:this,__source:{fileName:nQ,lineNumber:149}},_):null,l?nl("label",{for:"name",class:"form__label",__self:this,__source:{fileName:nQ,lineNumber:152}},nl(n2,{label:y,isRequiredLabel:k,isRequired:g,__self:this,__source:{fileName:nQ,lineNumber:153}}),nl("input",{class:"form__input",defaultValue:n,id:"name",name:"name",placeholder:x,required:g,type:"text",__self:this,__source:{fileName:nQ,lineNumber:154}})):nl("input",{"aria-hidden":!0,value:n,name:"name",type:"hidden",__self:this,__source:{fileName:nQ,lineNumber:165}}),s?nl("label",{for:"email",class:"form__label",__self:this,__source:{fileName:nQ,lineNumber:169}},nl(n2,{label:p,isRequiredLabel:k,isRequired:m,__self:this,__source:{fileName:nQ,lineNumber:170}}),nl("input",{class:"form__input",defaultValue:t,id:"email",name:"email",placeholder:f,required:m,type:"email",__self:this,__source:{fileName:nQ,lineNumber:171}})):nl("input",{"aria-hidden":!0,value:t,name:"email",type:"hidden",__self:this,__source:{fileName:nQ,lineNumber:182}}),nl("label",{for:"message",class:"form__label",__self:this,__source:{fileName:nQ,lineNumber:185}},nl(n2,{label:b,isRequiredLabel:k,isRequired:!0,__self:this,__source:{fileName:nQ,lineNumber:186}}),nl("textarea",{autoFocus:!0,class:"form__input form__input--textarea",id:"message",name:"message",placeholder:v,required:!0,rows:5,__self:this,__source:{fileName:nQ,lineNumber:187}})),P?nl("label",{for:"screenshot",class:"form__label",__self:this,__source:{fileName:nQ,lineNumber:199}},nl("button",{class:"btn btn--default",type:"button",onClick:()=>{O(null),C(e=>!e)},__self:this,__source:{fileName:nQ,lineNumber:200}},S?u:d),T?nl("div",{class:"form__error-container",__self:this,__source:{fileName:nQ,lineNumber:210}},T.message):null):null),nl("div",{class:"btn-group",__self:this,__source:{fileName:nQ,lineNumber:214}},nl("button",{class:"btn btn--primary",type:"submit",__self:this,__source:{fileName:nQ,lineNumber:215}},w),nl("button",{class:"btn btn--default",type:"button",onClick:i,__self:this,__source:{fileName:nQ,lineNumber:218}},h))))}function n2({label:e,isRequired:t,isRequiredLabel:n}){return nl("span",{class:"form__label__text",__self:this,__source:{fileName:nQ,lineNumber:233}},e,t&&nl("span",{class:"form__label__text--required",__self:this,__source:{fileName:nQ,lineNumber:235}},n))}let n5="/home/runner/work/sentry-javascript/sentry-javascript/packages/feedback/src/modal/components/Dialog.tsx";function n3({open:e,onFormSubmitted:t,...n}){let i=n.options,r=nU(()=>({__html:function(){let e=e=>tO.document.createElementNS("http://www.w3.org/2000/svg",e),t=tY(e("svg"),{width:"16",height:"17",viewBox:"0 0 16 17",fill:"inherit"}),n=tY(e("g"),{clipPath:"url(#clip0_57_156)"}),i=tY(e("path"),{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.55544 15.1518C4.87103 16.0308 6.41775 16.5 8 16.5C10.1217 16.5 12.1566 15.6571 13.6569 14.1569C15.1571 12.6566 16 10.6217 16 8.5C16 6.91775 15.5308 5.37103 14.6518 4.05544C13.7727 2.73985 12.5233 1.71447 11.0615 1.10897C9.59966 0.503466 7.99113 0.34504 6.43928 0.653721C4.88743 0.962403 3.46197 1.72433 2.34315 2.84315C1.22433 3.96197 0.462403 5.38743 0.153721 6.93928C-0.15496 8.49113 0.00346625 10.0997 0.608967 11.5615C1.21447 13.0233 2.23985 14.2727 3.55544 15.1518ZM4.40546 3.1204C5.46945 2.40946 6.72036 2.03 8 2.03C9.71595 2.03 11.3616 2.71166 12.575 3.92502C13.7883 5.13838 14.47 6.78405 14.47 8.5C14.47 9.77965 14.0905 11.0306 13.3796 12.0945C12.6687 13.1585 11.6582 13.9878 10.476 14.4775C9.29373 14.9672 7.99283 15.0953 6.73777 14.8457C5.48271 14.596 4.32987 13.9798 3.42502 13.075C2.52018 12.1701 1.90397 11.0173 1.65432 9.76224C1.40468 8.50718 1.5328 7.20628 2.0225 6.02404C2.5122 4.8418 3.34148 3.83133 4.40546 3.1204Z"}),r=tY(e("path"),{d:"M6.68775 12.4297C6.78586 12.4745 6.89218 12.4984 7 12.5C7.11275 12.4955 7.22315 12.4664 7.32337 12.4145C7.4236 12.3627 7.51121 12.2894 7.58 12.2L12 5.63999C12.0848 5.47724 12.1071 5.28902 12.0625 5.11098C12.0178 4.93294 11.9095 4.77744 11.7579 4.67392C11.6064 4.57041 11.4221 4.52608 11.24 4.54931C11.0579 4.57254 10.8907 4.66173 10.77 4.79999L6.88 10.57L5.13 8.56999C5.06508 8.49566 4.98613 8.43488 4.89768 8.39111C4.80922 8.34735 4.713 8.32148 4.61453 8.31498C4.51605 8.30847 4.41727 8.32147 4.32382 8.35322C4.23038 8.38497 4.14413 8.43484 4.07 8.49999C3.92511 8.63217 3.83692 8.81523 3.82387 9.01092C3.81083 9.2066 3.87393 9.39976 4 9.54999L6.43 12.24C6.50187 12.3204 6.58964 12.385 6.68775 12.4297Z"});t.appendChild(n).append(r,i);let o=e("defs"),a=tY(e("clipPath"),{id:"clip0_57_156"}),s=tY(e("rect"),{width:"16",height:"16",fill:"white",transform:"translate(0 0.5)"});return a.appendChild(s),o.appendChild(a),t.appendChild(o).appendChild(a).appendChild(s),t}().outerHTML}),[]),[o,a]=nz(null),s=nV(()=>{o&&(clearTimeout(o),a(null)),t()},[o]),l=nV(e=>{n.onSubmitSuccess(e),a(setTimeout(()=>{t(),a(null)},5e3))},[t]);return nl(nd,{__self:this,__source:{fileName:n5,lineNumber:47}},o?nl("div",{class:"success__position",onClick:s,__self:this,__source:{fileName:n5,lineNumber:49}},nl("div",{class:"success__content",__self:this,__source:{fileName:n5,lineNumber:50}},i.successMessageText,nl("span",{class:"success__icon",dangerouslySetInnerHTML:r,__self:this,__source:{fileName:n5,lineNumber:52}}))):nl("dialog",{class:"dialog",onClick:i.onFormClose,open:e,__self:this,__source:{fileName:n5,lineNumber:56}},nl("div",{class:"dialog__position",__self:this,__source:{fileName:n5,lineNumber:57}},nl("div",{class:"dialog__content",onClick:e=>{e.stopPropagation()},__self:this,__source:{fileName:n5,lineNumber:58}},nl(nZ,{options:i,__self:this,__source:{fileName:n5,lineNumber:65}}),nl(n1,{...n,onSubmitSuccess:l,__self:this,__source:{fileName:n5,lineNumber:66}})))))}let n4=`
.dialog {
  position: fixed;
  z-index: var(--z-index);
  margin: 0;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  height: 100vh;
  width: 100vw;

  color: var(--dialog-color, var(--foreground));
  fill: var(--dialog-color, var(--foreground));
  line-height: 1.75em;

  background-color: rgba(0, 0, 0, 0.05);
  border: none;
  inset: 0;
  opacity: 1;
  transition: opacity 0.2s ease-in-out;
}

.dialog__position {
  position: fixed;
  z-index: var(--z-index);
  inset: var(--dialog-inset);
  padding: var(--page-margin);
  display: flex;
  max-height: calc(100vh - (2 * var(--page-margin)));
}
@media (max-width: 600px) {
  .dialog__position {
    inset: var(--page-margin);
    padding: 0;
  }
}

.dialog__position:has(.editor) {
  inset: var(--page-margin);
  padding: 0;
}

.dialog:not([open]) {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}
.dialog:not([open]) .dialog__content {
  transform: translate(0, -16px) scale(0.98);
}

.dialog__content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: var(--dialog-padding, 24px);
  max-width: 100%;
  width: 100%;
  max-height: 100%;
  overflow: auto;

  background: var(--dialog-background, var(--background));
  border-radius: var(--dialog-border-radius, 20px);
  border: var(--dialog-border, var(--border));
  box-shadow: var(--dialog-box-shadow, var(--box-shadow));
  transform: translate(0, 0) scale(1);
  transition: transform 0.2s ease-in-out;
}
`,n6=`
.dialog__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: var(--dialog-header-weight, 600);
  margin: 0;
}

.brand-link {
  display: inline-flex;
}
.brand-link:focus-visible {
  outline: var(--outline);
}
`,n8=`
.form {
  display: flex;
  overflow: auto;
  flex-direction: row;
  gap: 16px;
  flex: 1 0;
}

.form__right {
  width: var(--form-width, 272px);
  display: flex;
  overflow: auto;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  flex: 1 0 auto;
}

@media (max-width: 600px) {
  .form__right {
    width: auto;
  }
}

.form__top {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form__error-container {
  color: var(--error-foreground);
  fill: var(--error-foreground);
}

.form__label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0px;
}

.form__label__text {
  display: flex;
  gap: 4px;
  align-items: center;
}

.form__label__text--required {
  font-size: 0.85em;
}

.form__input {
  font-family: inherit;
  line-height: inherit;
  background: transparent;
  box-sizing: border-box;
  border: var(--input-border, var(--border));
  border-radius: var(--input-border-radius, 6px);
  color: var(--input-color, inherit);
  fill: var(--input-color, inherit);
  font-size: var(--input-font-size, inherit);
  font-weight: var(--input-font-weight, 500);
  padding: 6px 12px;
}

.form__input::placeholder {
  opacity: 0.65;
  color: var(--input-placeholder-color, inherit);
  filter: var(--interactive-filter);
}

.form__input:focus-visible {
  outline: var(--input-focus-outline, var(--outline));
}

.form__input--textarea {
  font-family: inherit;
  resize: vertical;
}

.error {
  color: var(--error-color);
  fill: var(--error-color);
}
`,n9=`
.btn-group {
  display: grid;
  gap: 8px;
}

.btn {
  line-height: inherit;
  border: var(--button-border, var(--border));
  border-radius: var(--button-border-radius, 6px);
  cursor: pointer;
  font-family: inherit;
  font-size: var(--button-font-size, inherit);
  font-weight: var(--button-font-weight, 600);
  padding: var(--button-padding, 6px 16px);
}
.btn[disabled] {
  opacity: 0.6;
  pointer-events: none;
}

.btn--primary {
  color: var(--button-primary-color, var(--accent-foreground));
  fill: var(--button-primary-color, var(--accent-foreground));
  background: var(--button-primary-background, var(--accent-background));
  border: var(--button-primary-border, var(--border));
  border-radius: var(--button-primary-border-radius, 6px);
  font-weight: var(--button-primary-font-weight, 500);
}
.btn--primary:hover {
  color: var(--button-primary-hover-color, var(--accent-foreground));
  fill: var(--button-primary-hover-color, var(--accent-foreground));
  background: var(--button-primary-hover-background, var(--accent-background));
  filter: var(--interactive-filter);
}
.btn--primary:focus-visible {
  background: var(--button-primary-hover-background, var(--accent-background));
  filter: var(--interactive-filter);
  outline: var(--button-primary-focus-outline, var(--outline));
}

.btn--default {
  color: var(--button-color, var(--foreground));
  fill: var(--button-color, var(--foreground));
  background: var(--button-background, var(--background));
  border: var(--button-border, var(--border));
  border-radius: var(--button-border-radius, 6px);
  font-weight: var(--button-font-weight, 500);
}
.btn--default:hover {
  color: var(--button-color, var(--foreground));
  fill: var(--button-color, var(--foreground));
  background: var(--button-hover-background, var(--background));
  filter: var(--interactive-filter);
}
.btn--default:focus-visible {
  background: var(--button-hover-background, var(--background));
  filter: var(--interactive-filter);
  outline: var(--button-focus-outline, var(--outline));
}
`,n7=`
.success__position {
  position: fixed;
  inset: var(--dialog-inset);
  padding: var(--page-margin);
  z-index: var(--z-index);
}
.success__content {
  background: var(--success-background, var(--background));
  border: var(--success-border, var(--border));
  border-radius: var(--success-border-radius, 1.7em/50%);
  box-shadow: var(--success-box-shadow, var(--box-shadow));
  font-weight: var(--success-font-weight, 600);
  color: var(--success-color);
  fill: var(--success-color);
  padding: 12px 24px;
  line-height: 1.75em;

  display: grid;
  align-items: center;
  grid-auto-flow: column;
  gap: 6px;
  cursor: default;
}

.success__icon {
  display: flex;
}
`,ie=()=>({name:"FeedbackModal",setupOnce(){},createDialog:({options:e,screenshotIntegration:t,sendFeedback:n,shadow:i})=>{let r=e.useSentryUser,o=function(){let e=(0,u.nZ)().getUser(),t=(0,u.aF)().getUser(),n=(0,u.lW)().getUser();return e&&Object.keys(e).length?e:t&&Object.keys(t).length?t:n}(),a=tA.createElement("div"),s=function(){let e=tA.createElement("style");return e.textContent=`
:host {
  --dialog-inset: var(--inset);
}

${n4}
${n6}
${n8}
${n9}
${n7}
`,e}(),l="",c={get el(){return a},appendToDom(){i.contains(s)||i.contains(a)||(i.appendChild(s),i.appendChild(a))},removeFromDom(){i.removeChild(a),i.removeChild(s)},open(){h(!0),e.onFormOpen&&e.onFormOpen(),l=tA.body.style.overflow,tA.body.style.overflow="hidden"},close(){h(!1),tA.body.style.overflow=l}},d=t&&t.createInput(nl,c,e),h=t=>{var i,s,l,c,u,p;i=nl(n3,{options:e,screenshotInput:d,showName:e.showName||e.isNameRequired,showEmail:e.showEmail||e.isEmailRequired,defaultName:r&&o&&o[r.name]||"",defaultEmail:r&&o&&o[r.email]||"",onFormClose:()=>{h(!1),e.onFormClose&&e.onFormClose()},onSubmit:n,onSubmitSuccess:t=>{h(!1),e.onSubmitSuccess&&e.onSubmitSuccess(t)},onSubmitError:t=>{e.onSubmitError&&e.onSubmitError(t)},onFormSubmitted:()=>{e.onFormSubmitted&&e.onFormSubmitted()},open:t,__self:void 0,__source:{fileName:"/home/runner/work/sentry-javascript/sentry-javascript/packages/feedback/src/modal/integration.tsx",lineNumber:72}}),t6.__&&t6.__(i,a),c=(l="function"==typeof s)?null:s&&s.__k||a.__k,u=[],p=[],nx(a,i=(!l&&s||a).__k=nl(nd,null,[i]),c||nn,nn,void 0!==a.ownerSVGElement,!l&&s?[s]:c?null:a.firstChild?t4.call(a.childNodes):null,u,!l&&s?s:c?c.__e:a.firstChild,l,p),i.__d=void 0,nw(u,i,p)};return c}}),it=({onBeforeScreenshot:e,onScreenshot:t,onAfterScreenshot:n,onError:i})=>{nB(()=>{let r=async()=>{e();let i=await tI.mediaDevices.getDisplayMedia({video:{width:tO.innerWidth*tO.devicePixelRatio,height:tO.innerHeight*tO.devicePixelRatio},audio:!1,monitorTypeSurfaces:"exclude",preferCurrentTab:!0,selfBrowserSurface:"include",surfaceSwitching:"exclude"}),r=tA.createElement("video");await new Promise((e,n)=>{r.srcObject=i,r.onloadedmetadata=()=>{t(r),i.getTracks().forEach(e=>e.stop()),e()},r.play().catch(n)}),n()};r().catch(i)},[])},ii="/home/runner/work/sentry-javascript/sentry-javascript/packages/feedback/src/screenshot/components/ScreenshotEditor.tsx",ir=tO.devicePixelRatio,io=e=>({x:Math.min(e.startX,e.endX),y:Math.min(e.startY,e.endY),width:Math.abs(e.startX-e.endX),height:Math.abs(e.startY-e.endY)}),ia=e=>{let t=e.clientHeight,n=e.clientWidth,i=e.width/e.height,r=t*i,o=t;r>n&&(r=n,o=n/i);let a=(n-r)/2,s=(t-o)/2;return{startX:a,startY:s,endX:r+a,endY:o+s}};function is({top:e,left:t,corner:n,onGrabButton:i}){return nl("button",{class:`editor__crop-corner editor__crop-corner--${n} `,style:{top:e,left:t},onMouseDown:e=>{e.preventDefault(),i(e,n)},onClick:e=>{e.preventDefault()},__self:this,__source:{fileName:ii,lineNumber:333}})}let il=()=>({name:"FeedbackScreenshot",setupOnce(){},createInput:(e,t,n)=>{let i=tA.createElement("canvas");return{input:function({imageBuffer:e,dialog:t,options:n}){return function({onError:i}){let r=nU(()=>({__html:function(){let e=tA.createElement("style"),t="#1A141F",n="#302735";return e.textContent=`
.editor {
  padding: 10px;
  padding-top: 65px;
  padding-bottom: 65px;
  flex-grow: 1;

  background-color: ${t};
  background-image: repeating-linear-gradient(
      -145deg,
      transparent,
      transparent 8px,
      ${t} 8px,
      ${t} 11px
    ),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 15px,
      ${n} 15px,
      ${n} 16px
    );
}

.editor__canvas-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.editor__canvas-container canvas {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.editor__crop-btn-group {
  padding: 8px;
  gap: 8px;
  border-radius: var(--menu-border-radius, 6px);
  background: var(--button-primary-background, var(--background));
  width: 175px;
  position: absolute;
}

.editor__crop-corner {
  width: 30px;
  height: 30px;
  position: absolute;
  background: none;
  border: 3px solid #ffffff;
}

.editor__crop-corner--top-left {
  cursor: nwse-resize;
  border-right: none;
  border-bottom: none;
}
.editor__crop-corner--top-right {
  cursor: nesw-resize;
  border-left: none;
  border-bottom: none;
}
.editor__crop-corner--bottom-left {
  cursor: nesw-resize;
  border-right: none;
  border-top: none;
}
.editor__crop-corner--bottom-right {
  cursor: nwse-resize;
  border-left: none;
  border-top: none;
}
`,e}().innerText}),[]),o=nH(null),a=nH(null),s=nH(null),[l,c]=nz({startX:0,startY:0,endX:0,endY:0}),[d,u]=nz(!1);function h(){let t=s.current,n=io(ia(e));if(t){t.width=n.width*ir,t.height=n.height*ir,t.style.width=`${n.width}px`,t.style.height=`${n.height}px`;let e=t.getContext("2d");e&&e.scale(ir,ir)}let i=a.current;i&&(i.style.width=`${n.width}px`,i.style.height=`${n.height}px`,i.style.left=`${n.x}px`,i.style.top=`${n.y}px`),c({startX:0,startY:0,endX:n.width,endY:n.height})}function p(e,t){u(!1);let n=f(t),i=()=>{tA.removeEventListener("mousemove",n),tA.removeEventListener("mouseup",i),u(!0)};tA.addEventListener("mouseup",i),tA.addEventListener("mousemove",n)}nB(()=>{tO.addEventListener("resize",h,!1)},[]),nB(()=>{let t=s.current;if(!t)return;let n=t.getContext("2d");if(!n)return;let i=io(ia(e)),r=io(l);n.clearRect(0,0,i.width,i.height),n.fillStyle="rgba(0, 0, 0, 0.5)",n.fillRect(0,0,i.width,i.height),n.clearRect(r.x,r.y,r.width,r.height),n.strokeStyle="#ffffff",n.lineWidth=3,n.strokeRect(r.x+1,r.y+1,r.width-2,r.height-2),n.strokeStyle="#000000",n.lineWidth=1,n.strokeRect(r.x+3,r.y+3,r.width-6,r.height-6)},[l]);let f=nV(e=>function(t){if(!s.current)return;let n=s.current,i=n.getBoundingClientRect(),r=t.clientX-i.x,o=t.clientY-i.y;switch(e){case"top-left":c(e=>({...e,startX:Math.min(Math.max(0,r),e.endX-33),startY:Math.min(Math.max(0,o),e.endY-33)}));break;case"top-right":c(e=>({...e,endX:Math.max(Math.min(r,n.width/ir),e.startX+33),startY:Math.min(Math.max(0,o),e.endY-33)}));break;case"bottom-left":c(e=>({...e,startX:Math.min(Math.max(0,r),e.endX-33),endY:Math.max(Math.min(o,n.height/ir),e.startY+33)}));break;case"bottom-right":c(e=>({...e,endX:Math.max(Math.min(r,n.width/ir),e.startX+33),endY:Math.max(Math.min(o,n.height/ir),e.startY+33)}))}},[]);return it({onBeforeScreenshot:nV(()=>{t.el.style.display="none"},[]),onScreenshot:nV(t=>{let n=e.getContext("2d");if(!n)throw Error("Could not get canvas context");e.width=t.videoWidth,e.height=t.videoHeight,n.drawImage(t,0,0)},[e]),onAfterScreenshot:nV(()=>{t.el.style.display="block";let n=o.current;n&&n.appendChild(e),h()},[]),onError:nV(e=>{t.el.style.display="block",i(e)},[])}),nl("div",{class:"editor",__self:this,__source:{fileName:ii,lineNumber:249}},nl("style",{dangerouslySetInnerHTML:r,__self:this,__source:{fileName:ii,lineNumber:250}}),nl("div",{class:"editor__canvas-container",ref:o,__self:this,__source:{fileName:ii,lineNumber:251}},nl("div",{class:"editor__crop-container",style:{position:"absolute"},ref:a,__self:this,__source:{fileName:ii,lineNumber:252}},nl("canvas",{style:{position:"absolute"},ref:s,__self:this,__source:{fileName:ii,lineNumber:253}}),nl(is,{left:l.startX-3,top:l.startY-3,onGrabButton:p,corner:"top-left",__self:this,__source:{fileName:ii,lineNumber:254}}),nl(is,{left:l.endX-30+3,top:l.startY-3,onGrabButton:p,corner:"top-right",__self:this,__source:{fileName:ii,lineNumber:260}}),nl(is,{left:l.startX-3,top:l.endY-30+3,onGrabButton:p,corner:"bottom-left",__self:this,__source:{fileName:ii,lineNumber:266}}),nl(is,{left:l.endX-30+3,top:l.endY-30+3,onGrabButton:p,corner:"bottom-right",__self:this,__source:{fileName:ii,lineNumber:272}}),nl("div",{style:{left:Math.max(0,l.endX-191),top:Math.max(0,l.endY+8),display:d?"flex":"none"},class:"editor__crop-btn-group",__self:this,__source:{fileName:ii,lineNumber:278}},nl("button",{onClick:e=>{e.preventDefault(),s.current&&c({startX:0,startY:0,endX:s.current.width/ir,endY:s.current.height/ir}),u(!1)},class:"btn btn--default",__self:this,__source:{fileName:ii,lineNumber:286}},n.cancelButtonLabel),nl("button",{onClick:t=>{t.preventDefault(),function(){let t=tA.createElement("canvas"),n=io(ia(e)),i=io(l);t.width=i.width,t.height=i.height;let r=t.getContext("2d");r&&e&&r.drawImage(e,i.x/n.width*e.width,i.y/n.height*e.height,i.width/n.width*e.width,i.height/n.height*e.height,0,0,i.width,i.height);let o=e.getContext("2d");o&&(o.clearRect(0,0,e.width,e.height),e.width=t.width,e.height=t.height,o.drawImage(t,0,0),h())}(),u(!1)},class:"btn btn--primary",__self:this,__source:{fileName:ii,lineNumber:303}},n.confirmButtonLabel)))))}}({h:e,imageBuffer:i,dialog:t,options:n}),value:async()=>{let e=await new Promise(e=>{i.toBlob(e,"image/png")});if(e){let t=new Uint8Array(await e.arrayBuffer());return{data:t,filename:"screenshot.png",contentType:"application/png"}}}}}}),ic=t0({lazyLoadIntegration:e1}),id=t0({lazyLoadIntegration:e1,getModalIntegration:()=>ie,getScreenshotIntegration:()=>il});var iu=n(78769),ih=n(64076);function ip(e,t){let n=(0,x.Y)("globalMetricsAggregators",()=>new WeakMap),i=n.get(e);if(i)return i;let r=new t(e);return e.on("flush",()=>r.flush()),e.on("close",()=>r.close()),n.set(e,r),r}function im(e,t,n,i,r={}){let o=r.client||(0,u.s3)();if(!o)return;let a=(0,U.HN)(),s=a?(0,U.Gx)(a):void 0,l=s&&(0,U.XU)(s).description,{unit:c,tags:d,timestamp:h}=r,{release:p,environment:f}=o.getOptions(),g={};p&&(g.release=p),f&&(g.environment=f),l&&(g.transaction=l),ih.X&&m.kg.log(`Adding value of ${i} to ${t} metric ${n}`);let b=ip(o,e);b.add(t,n,i,c,{...g,...d},h)}function ig(e,t,n,i){im(e,"d",t,iv(n),i)}let ib={increment:function(e,t,n=1,i){im(e,"c",t,iv(n),i)},distribution:ig,set:function(e,t,n,i){im(e,"s",t,n,i)},gauge:function(e,t,n,i){im(e,"g",t,iv(n),i)},timing:function(e,t,n,i="second",r){if("function"==typeof n){let i=(0,iu.ph)();return(0,P.V0)({op:"metrics.timing",name:t,startTime:i,onlyIfParent:!0},o=>(0,J.i)(()=>n(),()=>{},()=>{let n=(0,iu.ph)();ig(e,t,n-i,{...r,unit:"second"}),o.end(n)}))}ig(e,t,n,{...r,unit:i})},getMetricsAggregatorForClient:ip};function iv(e){return"string"==typeof e?parseInt(e):e}let iy=[["\n","\\n"],["\r","\\r"],["	","\\t"],["\\","\\\\"],["|","\\u{7c}"],[",","\\u{2c}"]];class ix{constructor(e){this._value=e}get weight(){return 1}add(e){this._value+=e}toString(){return`${this._value}`}}class iw{constructor(e){this._last=e,this._min=e,this._max=e,this._sum=e,this._count=1}get weight(){return 5}add(e){this._last=e,e<this._min&&(this._min=e),e>this._max&&(this._max=e),this._sum+=e,this._count++}toString(){return`${this._last}:${this._min}:${this._max}:${this._sum}:${this._count}`}}class ik{constructor(e){this._value=[e]}get weight(){return this._value.length}add(e){this._value.push(e)}toString(){return this._value.join(":")}}class i_{constructor(e){this.first=e,this._value=new Set([e])}get weight(){return this._value.size}add(e){this._value.add(e)}toString(){return Array.from(this._value).map(e=>"string"==typeof e?function(e){let t=0;for(let n=0;n<e.length;n++){let i=e.charCodeAt(n);t=(t<<5)-t+i,t&=t}return t>>>0}(e):e).join(":")}}let iE={c:ix,g:iw,d:ik,s:i_};class iS{constructor(e){this._client=e,this._buckets=new Map,this._interval=setInterval(()=>this.flush(),5e3)}add(e,t,n,i="none",r={},o=(0,iu.ph)()){let a=Math.floor(o),s=t.replace(/[^\w\-.]+/gi,"_"),l=function(e){let t={};for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)){let i=n.replace(/[^\w\-./]+/gi,"");t[i]=[...String(e[n])].reduce((e,t)=>e+function(e){for(let[t,n]of iy)if(e===t)return n;return e}(t),"")}return t}(r),c=i.replace(/[^\w]+/gi,"_"),d=function(e,t,n,i){let r=Object.entries((0,f.Jr)(i)).sort((e,t)=>e[0].localeCompare(t[0]));return`${e}${t}${n}${r}`}(e,s,c,l),u=this._buckets.get(d),h=u&&"s"===e?u.metric.weight:0;u?(u.metric.add(n),u.timestamp<a&&(u.timestamp=a)):(u={metric:new iE[e](n),timestamp:a,metricType:e,name:s,unit:c,tags:l},this._buckets.set(d,u));let p="string"==typeof n?u.metric.weight-h:n;(0,U.yc)(e,s,p,c,r,d)}flush(){if(0===this._buckets.size)return;let e=Array.from(this._buckets.values());(function(e,t){m.kg.log(`Flushing aggregated metrics, number of metrics: ${t.length}`);let n=e.getDsn(),i=e.getSdkMetadata(),r=e.getOptions().tunnel,o=function(e,t,n,i){let r={sent_at:new Date().toISOString()};n&&n.sdk&&(r.sdk={name:n.sdk.name,version:n.sdk.version}),i&&t&&(r.dsn=(0,eO.RA)(t));let o=function(e){let t=function(e){let t="";for(let n of e){let e=Object.entries(n.tags),i=e.length>0?`|#${e.map(([e,t])=>`${e}:${t}`).join(",")}`:"";t+=`${n.name}@${n.unit}:${n.metric}|${n.metricType}${i}|T${n.timestamp}
`}return t}(e),n={type:"statsd",length:t.length};return[n,t]}(e);return(0,eT.Jd)(r,[o])}(t,n,i,r);e.sendEnvelope(o)})(this._client,e),this._buckets.clear()}close(){clearInterval(this._interval),this.flush()}}let iC={increment:function(e,t=1,n){ib.increment(iS,e,t,n)},distribution:function(e,t,n){ib.distribution(iS,e,t,n)},set:function(e,t,n){ib.set(iS,e,t,n)},gauge:function(e,t,n){ib.gauge(iS,e,t,n)},timing:function(e,t,n="second",i){return ib.timing(iS,e,t,n,i)}};var iP=n(91722),iT=n(91680),iO=n(77134);function iA(e){return new Promise((t,n)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>n(e.error)})}function iI(e){return iA(e.getAllKeys())}function iR(e){let t;function n(){return void 0==t&&(t=function(e,t){let n=indexedDB.open(e);n.onupgradeneeded=()=>n.result.createObjectStore(t);let i=iA(n);return e=>i.then(n=>e(n.transaction(t,"readwrite").objectStore(t)))}(e.dbName||"sentry-offline",e.storeName||"queue")),t}return{push:async t=>{try{var i,r;let o=await (0,eT.V$)(t);await (i=n(),r=e.maxQueueSize||30,i(e=>iI(e).then(t=>{if(!(t.length>=r))return e.put(o,Math.max(...t,0)+1),iA(e.transaction)})))}catch(e){}},unshift:async t=>{try{var i,r;let o=await (0,eT.V$)(t);await (i=n(),r=e.maxQueueSize||30,i(e=>iI(e).then(t=>{if(!(t.length>=r))return e.put(o,Math.min(...t,0)-1),iA(e.transaction)})))}catch(e){}},shift:async()=>{try{let e=await n()(e=>iI(e).then(t=>{if(0!==t.length)return iA(e.get(t[0])).then(n=>(e.delete(t[0]),iA(e.transaction).then(()=>n)))}));if(e)return(0,eT.f4)(e)}catch(e){}}}}function i$(e=eU.f){var t;return t=function(e){function t(...e){ih.X&&m.kg.info("[Offline]:",...e)}return n=>{let i;let r=e(n);if(!n.createStore)throw Error("No `createStore` function was provided");let o=n.createStore(n),a=5e3;function s(e){i&&clearTimeout(i),"number"!=typeof(i=setTimeout(async()=>{i=void 0;let e=await o.shift();e&&(t("Attempting to send previously queued event"),e[0].sent_at=new Date().toISOString(),c(e,!0).catch(e=>{t("Failed to retry sending",e)}))},e))&&i.unref&&i.unref()}function l(){i||(s(a),a=Math.min(2*a,36e5))}async function c(e,i=!1){if(!i&&(0,eT.R)(e,["replay_event","replay_recording"]))return await o.push(e),s(100),{};try{let t=await r.send(e),n=100;if(t){if(t.headers&&t.headers["retry-after"])n=(0,iO.JY)(t.headers["retry-after"]);else if(t.headers&&t.headers["x-sentry-rate-limits"])n=6e4;else if((t.statusCode||0)>=400)return t}return s(n),a=5e3,t}catch(r){var c;if(await (c=a,!(0,eT.R)(e,["client_report"])&&(!n.shouldStore||n.shouldStore(e,r,c))))return i?await o.unshift(e):await o.push(e),l(),t("Error sending. Event queued.",r),{};throw r}}return n.flushAtStartup&&l(),{send:c,flush:e=>r.flush(e)}}}(e),e=>t({...e,createStore:iR})}var iL=n(57578),iM=n(73883);let ij=String(0),iD="",iN="",iF="",iz=eB.m9.navigator&&eB.m9.navigator.userAgent||"",iB="",iH=eB.m9.navigator&&eB.m9.navigator.language||eB.m9.navigator&&eB.m9.navigator.languages&&eB.m9.navigator.languages[0]||"",iU=eB.m9.navigator&&eB.m9.navigator.userAgentData;function iV(e){return"pageload"===(0,U.XU)(e).op}"object"==typeof iU&&null!==iU&&"getHighEntropyValues"in iU&&iU.getHighEntropyValues(["architecture","model","platform","platformVersion","fullVersionList"]).then(e=>{if(iD=e.platform||"",iF=e.architecture||"",iB=e.model||"",iN=e.platformVersion||"",e.fullVersionList&&e.fullVersionList.length>0){let t=e.fullVersionList[e.fullVersionList.length-1];iz=`${t.brand} ${t.version}`}}).catch(e=>void 0);let iW=new WeakMap,iq=!1;function iG(e){if(iq)return iL.X&&m.kg.log("[Profiling] Profiling has been disabled for the duration of the current user session."),!1;if(!e.isRecording())return iL.X&&m.kg.log("[Profiling] Discarding profile because transaction was not sampled."),!1;let t=(0,u.s3)(),n=t&&t.getOptions();if(!n)return iL.X&&m.kg.log("[Profiling] Profiling disabled, no options found."),!1;let i=n.profilesSampleRate;if(!("number"!=typeof i&&"boolean"!=typeof i||"number"==typeof i&&isNaN(i)?(iL.X&&m.kg.warn(`[Profiling] Invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(i)} of type ${JSON.stringify(typeof i)}.`),!1):!0===i||!1===i||!(i<0)&&!(i>1)||(iL.X&&m.kg.warn(`[Profiling] Invalid sample rate. Sample rate must be between 0 and 1. Got ${i}.`),!1)))return iL.X&&m.kg.warn("[Profiling] Discarding profile because of invalid sample rate."),!1;if(!i)return iL.X&&m.kg.log("[Profiling] Discarding profile because a negative sampling decision was inherited or profileSampleRate is set to 0"),!1;let r=!0===i||Math.random()<i;return!!r||(iL.X&&m.kg.log(`[Profiling] Discarding profile because it's not included in the random sample (sampling rate = ${Number(i)})`),!1)}let iX=new Map;function iY(e){let t;iV(e)&&(t=1e3*(0,iu.ph)());let n=function(){let e=eB.m9.Profiler;if("function"!=typeof e){iL.X&&m.kg.log("[Profiling] Profiling is not supported by this browser, Profiler interface missing on window object.");return}try{return new e({sampleInterval:10,maxBufferSize:Math.floor(3e3)})}catch(e){iL.X&&(m.kg.log("[Profiling] Failed to initialize the Profiling constructor, this is likely due to a missing 'Document-Policy': 'js-profiling' header."),m.kg.log("[Profiling] Disabling profiling for current user session.")),iq=!0}}();if(!n)return;iL.X&&m.kg.log(`[Profiling] started profiling span: ${(0,U.XU)(e).description}`);let i=(0,I.DM)();async function r(){if(e&&n)return n.stop().then(t=>{if(o&&(eB.m9.clearTimeout(o),o=void 0),iL.X&&m.kg.log(`[Profiling] stopped profiling of span: ${(0,U.XU)(e).description}`),!t){iL.X&&m.kg.log(`[Profiling] profiler returned null profile for: ${(0,U.XU)(e).description}`,"this may indicate an overlapping span or a call to stopProfiling with a profile title that was never started");return}!function(e,t){if(iX.set(e,t),iX.size>30){let e=iX.keys().next().value;iX.delete(e)}}(i,t)}).catch(e=>{iL.X&&m.kg.log("[Profiling] error while stopping profiler:",e)})}(0,u.nZ)().setContext("profile",{profile_id:i,start_timestamp:t});let o=eB.m9.setTimeout(()=>{iL.X&&m.kg.log("[Profiling] max profile duration elapsed, stopping profiling for:",(0,U.XU)(e).description),r()},3e4),a=e.end.bind(e);e.end=function(){return e?(r().then(()=>{a()},()=>{a()}),e):a()}}let iK=(0,ep._I)(()=>({name:"BrowserProfiling",setup(e){let t=(0,U.HN)(),n=t&&(0,U.Gx)(t);n&&iV(n)&&iG(n)&&iY(n),e.on("spanStart",e=>{e===(0,U.Gx)(e)&&iG(e)&&iY(e)}),e.on("beforeEnvelope",e=>{if(!iX.size)return;let t=function(e){let t=[];return(0,eT.gv)(e,(e,n)=>{if("transaction"===n)for(let n=1;n<e.length;n++){let i=e[n];i&&i.contexts&&i.contexts.profile&&i.contexts.profile.profile_id&&t.push(e[n])}}),t}(e);if(!t.length)return;let n=[];for(let e of t){var i,r,o,a;let t=e&&e.contexts,s=t&&t.profile&&t.profile.profile_id,l=t&&t.profile&&t.profile.start_timestamp;if("string"!=typeof s||!s){iL.X&&m.kg.log("[Profiling] cannot find profile for a span without a profile context");continue}t&&t.profile&&delete t.profile;let c=function(e){let t=iX.get(e);return t&&iX.delete(e),t}(s);if(!c){iL.X&&m.kg.log(`[Profiling] Could not retrieve profile for span: ${s}`);continue}let d=(i=s,r=l,o=c,a=e,(o.samples.length<2?(iL.X&&m.kg.log("[Profiling] Discarding profile because it contains less than 2 samples"),1):!o.frames.length&&(iL.X&&m.kg.log("[Profiling] Discarding profile because it contains no frames"),1))?null:function(e,t,n,i){if("transaction"!==i.type)throw TypeError("Profiling events may only be attached to transactions, this should never occur.");if(null==n)throw TypeError(`Cannot construct profiling event envelope without a valid profile. Got ${n} instead.`);let r=function(e){let t=e&&e.contexts&&e.contexts.trace&&e.contexts.trace.trace_id;return("string"==typeof t&&32!==t.length&&iL.X&&m.kg.log(`[Profiling] Invalid traceId: ${t} on profiled event`),"string"!=typeof t)?"":t}(i),o="thread_metadata"in n?n:function(e){let t;let n=0,i={samples:[],stacks:[],frames:[],thread_metadata:{[ij]:{name:"main"}}};if(!e.samples.length)return i;let r=e.samples[0].timestamp,o="number"==typeof performance.timeOrigin?performance.timeOrigin:iu.Z1||0,a=o-(iu.Z1||o);for(let o=0;o<e.samples.length;o++){let s=e.samples[o];if(void 0===s.stackId){void 0===t&&(t=n,i.stacks[t]=[],n++),i.samples[o]={elapsed_since_start_ns:((s.timestamp+a-r)*1e6).toFixed(0),stack_id:t,thread_id:ij};continue}let l=e.stacks[s.stackId],c=[];for(;l;){c.push(l.frameId);let t=e.frames[l.frameId];void 0===i.frames[l.frameId]&&(i.frames[l.frameId]={function:t.name,abs_path:"number"==typeof t.resourceId?e.resources[t.resourceId]:void 0,lineno:t.line,colno:t.column}),l=void 0===l.parentId?void 0:e.stacks[l.parentId]}let d={elapsed_since_start_ns:((s.timestamp+a-r)*1e6).toFixed(0),stack_id:n,thread_id:ij};i.stacks[n]=c,i.samples[o]=d,n++}return i}(n),a=t||("number"==typeof i.start_timestamp?1e3*i.start_timestamp:1e3*(0,iu.ph)()),s="number"==typeof i.timestamp?1e3*i.timestamp:1e3*(0,iu.ph)(),l={event_id:e,timestamp:new Date(a).toISOString(),platform:"javascript",version:"1",release:i.release||"",environment:i.environment||iM.J,runtime:{name:"javascript",version:eB.m9.navigator.userAgent},os:{name:iD,version:iN,build_number:iz},device:{locale:iH,model:iB,manufacturer:iz,architecture:iF,is_emulator:!1},debug_meta:{images:function(e){let t;let n=x.GLOBAL_OBJ._sentryDebugIds;if(!n)return[];let i=(0,u.s3)(),r=i&&i.getOptions(),o=r&&r.stackParser;if(!o)return[];let a=iW.get(o);a?t=a:(t=new Map,iW.set(o,t));let s=Object.keys(n).reduce((e,i)=>{let r;let a=t.get(i);a?r=a:(r=o(i),t.set(i,r));for(let t=r.length-1;t>=0;t--){let o=r[t],a=o&&o.filename;if(o&&a){e[a]=n[i];break}}return e},{}),l=[];for(let t of e)t&&s[t]&&l.push({type:"sourcemap",code_file:t,debug_id:s[t]});return l}(n.resources)},profile:o,transactions:[{name:i.transaction||"",id:i.event_id||(0,I.DM)(),trace_id:r,active_thread_id:ij,relative_start_ns:"0",relative_end_ns:((s-a)*1e6).toFixed(0)}]};return l}(i,r,o,a));d&&n.push(d)}!function(e,t){if(t.length)for(let n of t)e[1].push([{type:"profile"},n])}(e,n)})}}));var iJ=n(7653);function iZ(e,{componentStack:t},n){if(function(e){let t=e.match(/^([^.]+)/);return null!==t&&parseInt(t[0])>=17}(iJ.version)&&(0,O.VZ)(e)&&t){let n=Error(e.message);n.name=`React ErrorBoundary ${e.name}`,n.stack=t,function(e,t){let n=new WeakSet;!function e(t,i){if(!n.has(t)){if(t.cause)return n.add(t),e(t.cause,i);t.cause=i}}(e,t)}(e,n)}return(0,h.Tb)(e,{...n,captureContext:{contexts:{react:{componentStack:t}}}})}function iQ(e){return(t,n)=>{let i=iZ(t,n);e&&e(t,n,i)}}var i0=n(27573),i1=n(20022);let i2="ui.react.render",i5="ui.react.mount";class i3 extends iJ.Component{static __initStatic(){this.defaultProps={disabled:!1,includeRender:!0,includeUpdates:!0}}constructor(e){super(e);let{name:t,disabled:n=!1}=this.props;if(n)return;this._mountSpan=(0,P.qp)({name:`<${t}>`,onlyIfParent:!0,op:i5,attributes:{[T.S3]:"auto.ui.react.profiler","ui.component_name":t}})}componentDidMount(){this._mountSpan&&this._mountSpan.end()}shouldComponentUpdate({updateProps:e,includeUpdates:t=!0}){if(t&&this._mountSpan&&e!==this.props.updateProps){let t=Object.keys(e).filter(t=>e[t]!==this.props.updateProps[t]);if(t.length>0){let e=(0,iu.ph)();this._updateSpan=(0,P._d)(this._mountSpan,()=>(0,P.qp)({name:`<${this.props.name}>`,onlyIfParent:!0,op:"ui.react.update",startTime:e,attributes:{[T.S3]:"auto.ui.react.profiler","ui.component_name":this.props.name,"ui.react.changed_props":t}}))}}return!0}componentDidUpdate(){this._updateSpan&&(this._updateSpan.end(),this._updateSpan=void 0)}componentWillUnmount(){let e=(0,iu.ph)(),{name:t,includeRender:n=!0}=this.props;if(this._mountSpan&&n){let n=(0,U.XU)(this._mountSpan).timestamp;(0,P._d)(this._mountSpan,()=>{let i=(0,P.qp)({onlyIfParent:!0,name:`<${t}>`,op:i2,startTime:n,attributes:{[T.S3]:"auto.ui.react.profiler","ui.component_name":t}});i&&i.end(e)})}}render(){return this.props.children}}function i4(e,t){let n=t&&t.name||e.displayName||e.name||"unknown",i=i=>(0,i0.jsx)(i3,{...t,name:n,updateProps:i,children:(0,i0.jsx)(e,{...i})});return i.displayName=`profiler(${n})`,i1(i,e),i}function i6(e,t={disabled:!1,hasRenderSpan:!0}){let[n]=iJ.useState(()=>{if(!t||!t.disabled)return(0,P.qp)({name:`<${e}>`,onlyIfParent:!0,op:i5,attributes:{[T.S3]:"auto.ui.react.profiler","ui.component_name":e}})});iJ.useEffect(()=>(n&&n.end(),()=>{if(n&&t.hasRenderSpan){let t=(0,U.XU)(n).timestamp,i=(0,iu.ph)(),r=(0,P.qp)({name:`<${e}>`,onlyIfParent:!0,op:i2,startTime:t,attributes:{[T.S3]:"auto.ui.react.profiler","ui.component_name":e}});r&&r.end(i)}}),[])}i3.__initStatic();let i8={componentStack:null,error:null,eventId:null};class i9 extends iJ.Component{constructor(e){super(e),i9.prototype.__init.call(this),this.state=i8,this._openFallbackReportDialog=!0;let t=(0,u.s3)();t&&e.showDialog&&(this._openFallbackReportDialog=!1,t.on("afterSendEvent",t=>{!t.type&&this._lastEventId&&t.event_id===this._lastEventId&&(0,eG.jp)({...e.dialogOptions,eventId:this._lastEventId})}))}componentDidCatch(e,t){let{componentStack:n}=t,i=null==n?void 0:n,{beforeCapture:r,onError:o,showDialog:a,dialogOptions:s}=this.props;(0,u.$e)(l=>{r&&r(l,e,i);let c=iZ(e,t,{mechanism:{handled:!!this.props.fallback}});o&&o(e,i,c),a&&(this._lastEventId=c,this._openFallbackReportDialog&&(0,eG.jp)({...s,eventId:c})),this.setState({error:e,componentStack:n,eventId:c})})}componentDidMount(){let{onMount:e}=this.props;e&&e()}componentWillUnmount(){let{error:e,componentStack:t,eventId:n}=this.state,{onUnmount:i}=this.props;i&&i(e,t,n)}__init(){this.resetErrorBoundary=()=>{let{onReset:e}=this.props,{error:t,componentStack:n,eventId:i}=this.state;e&&e(t,n,i),this.setState(i8)}}render(){let{fallback:e,children:t}=this.props,n=this.state;if(n.error){let t;return(t="function"==typeof e?iJ.createElement(e,{error:n.error,componentStack:n.componentStack,resetError:this.resetErrorBoundary,eventId:n.eventId}):e,iJ.isValidElement(t))?t:null}return"function"==typeof t?t():t}}function i7(e,t){let n=e.displayName||e.name||"unknown",i=n=>(0,i0.jsx)(i9,{...t,children:(0,i0.jsx)(e,{...n})});return i.displayName=`errorBoundary(${n})`,i1(i,e),i}let re={attachReduxState:!0,actionTransformer:e=>e,stateTransformer:e=>e||null};function rt(e){let t={...re,...e};return e=>(n,i)=>(t.attachReduxState&&(0,u.lW)().addEventProcessor((e,t)=>{try{void 0===e.type&&"redux"===e.contexts.state.state.type&&(t.attachments=[...t.attachments||[],{filename:"redux_state.json",data:JSON.stringify(e.contexts.state.state.value)}])}catch(e){}return e}),e((e,i)=>{let r=n(e,i),o=(0,u.nZ)(),a=t.actionTransformer(i);null!=a&&(0,eh.n)({category:"redux.action",data:a,type:"info"});let s=t.stateTransformer(r);if(null!=s){let e=(0,u.s3)(),t=e&&e.getOptions(),n=t&&t.normalizeDepth||3,i={state:{type:"redux",value:s}};(0,f.xp)(i,"__sentry_override_normalization_depth__",3+n),o.setContext("state",i)}else o.setContext("state",null);let{configureScopeWithState:l}=t;return"function"==typeof l&&l(o,r),r},i))}function rn(e){let t=(0,iT.E8)({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{history:n,routes:i,match:r,instrumentPageLoad:o=!0,instrumentNavigation:a=!0}=e;return{...t,afterAllSetup(e){t.afterAllSetup(e),o&&eB.m9&&eB.m9.location&&ri(i,eB.m9.location,r,(t,n="url")=>{(0,iT.Wo)(e,{name:t,attributes:{[T.$J]:"pageload",[T.S3]:"auto.pageload.react.reactrouter_v3",[T.Zj]:n}})}),a&&n.listen&&n.listen(t=>{("PUSH"===t.action||"POP"===t.action)&&ri(i,t,r,(t,n="url")=>{(0,iT.og)(e,{name:t,attributes:{[T.$J]:"navigation",[T.S3]:"auto.navigation.react.reactrouter_v3",[T.Zj]:n}})})})}}}function ri(e,t,n,i){let r=t.pathname;n({location:t,routes:e},(e,t,n)=>{if(e||!n)return i(r);let o=function(e){if(!Array.isArray(e)||0===e.length)return"";let t=e.filter(e=>!!e.path),n=-1;for(let e=t.length-1;e>=0;e--){let i=t[e];if(i.path&&i.path.startsWith("/")){n=e;break}}return t.slice(n).filter(({path:e})=>!!e).map(({path:e})=>e).join("")}(n.routes||[]);return 0===o.length||"/*"===o?i(r):i(r=o,"route")})}function rr(e,t={}){let n=(0,iT.E8)({...t,instrumentNavigation:!1,instrumentPageLoad:!1}),{instrumentPageLoad:i=!0,instrumentNavigation:r=!0}=t;return{...n,afterAllSetup(t){n.afterAllSetup(t);let o=eB.m9.location;if(i&&o){let n=e.matchRoutes(o.pathname,o.search,{preload:!1,throwOnError:!1}),i=n[n.length-1];(0,iT.Wo)(t,{name:i?i.routeId:o.pathname,attributes:{[T.$J]:"pageload",[T.S3]:"auto.pageload.react.tanstack_router",[T.Zj]:i?"route":"url",...ro(i)}})}r&&e.subscribe("onBeforeNavigate",n=>{if(n.toLocation.state===n.fromLocation.state)return;let i=e.matchRoutes(n.toLocation.pathname,n.toLocation.search,{preload:!1,throwOnError:!1}),r=i[i.length-1],o=eB.m9.location,a=(0,iT.og)(t,{name:r?r.routeId:o.pathname,attributes:{[T.$J]:"navigation",[T.S3]:"auto.navigation.react.tanstack_router",[T.Zj]:r?"route":"url"}}),s=e.subscribe("onResolved",t=>{if(s(),a){let n=e.matchRoutes(t.toLocation.pathname,t.toLocation.search,{preload:!1,throwOnError:!1}),i=n[n.length-1];i&&(a.updateName(i.routeId),a.setAttribute(T.Zj,"route"),a.setAttributes(ro(i)))}})})}}}function ro(e){if(!e)return{};let t={};for(let n of Object.keys(e.params))t[`url.path.params.${n}`]=e.params[n];return t}function ra(e){let t=(0,iT.E8)({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{history:n,routes:i,matchPath:r,instrumentPageLoad:o=!0,instrumentNavigation:a=!0}=e;return{...t,afterAllSetup(e){t.afterAllSetup(e),rl(e,o,a,n,"reactrouter_v4",i,r)}}}function rs(e){let t=(0,iT.E8)({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{history:n,routes:i,matchPath:r,instrumentPageLoad:o=!0,instrumentNavigation:a=!0}=e;return{...t,afterAllSetup(e){t.afterAllSetup(e),rl(e,o,a,n,"reactrouter_v5",i,r)}}}function rl(e,t,n,i,r,o=[],a){function s(e){if(0===o.length||!a)return[e,"url"];let t=function e(t,n,i,r=[]){return t.some(t=>{let o=t.path?i(n,t):r.length?r[r.length-1].match:{path:"/",url:"/",params:{},isExact:"/"===n};return o&&(r.push({route:t,match:o}),t.routes&&e(t.routes,n,i,r)),!!o}),r}(o,e,a);for(let e=0;e<t.length;e++)if(t[e].match.isExact)return[t[e].match.path,"route"];return[e,"url"]}if(t){let t=i&&i.location?i.location.pathname:eB.m9&&eB.m9.location?eB.m9.location.pathname:void 0;if(t){let[n,i]=s(t);(0,iT.Wo)(e,{name:n,attributes:{[T.$J]:"pageload",[T.S3]:`auto.pageload.react.${r}`,[T.Zj]:i}})}}n&&i.listen&&i.listen((t,n)=>{if(n&&("PUSH"===n||"POP"===n)){let[n,i]=s(t.pathname);(0,iT.og)(e,{name:n,attributes:{[T.$J]:"navigation",[T.S3]:`auto.navigation.react.${r}`,[T.Zj]:i}})}})}function rc(e){let t=e.displayName||e.name,n=t=>{if(t&&t.computedMatch&&t.computedMatch.isExact){let e=t.computedMatch.path,n=function(){let e=(0,U.HN)(),t=e&&(0,U.Gx)(e);if(!t)return;let n=(0,U.XU)(t).op;return"navigation"===n||"pageload"===n?t:void 0}();(0,u.nZ)().setTransactionName(e),n&&(n.updateName(e),n.setAttribute(T.Zj,"route"))}return(0,i0.jsx)(e,{...t})};return n.displayName=`sentryRoute(${t})`,i1(n,e),n}let rd=!1,ru=new WeakSet;function rh(e){let t=(0,iT.E8)({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{useEffect:n,useLocation:i,useNavigationType:r,createRoutesFromChildren:d,matchRoutes:u,stripBasename:h,instrumentPageLoad:p=!0,instrumentNavigation:f=!0}=e;return{...t,setup(){o=n,a=i,s=r,c=u,l=d,rd=h||!1},afterAllSetup(e){t.afterAllSetup(e);let n=eB.m9&&eB.m9.location&&eB.m9.location.pathname;p&&n&&(0,iT.Wo)(e,{name:n,attributes:{[T.Zj]:"url",[T.$J]:"pageload",[T.S3]:"auto.pageload.react.reactrouter_v6"}}),f&&ru.add(e)}}}function rp(e,t){if(!t||"/"===t||!e.toLowerCase().startsWith(t.toLowerCase()))return e;let n=t.endsWith("/")?t.length-1:t.length,i=e.charAt(n);return i&&"/"!==i?e:e.slice(n)||"/"}function rf(e,t,n,i=""){if(!e||0===e.length)return[rd?rp(t.pathname,i):t.pathname,"url"];let r="";if(n)for(let e=0;e<n.length;e++){let o=n[e],a=o.route;if(a){if(a.index)return[rd?rp(o.pathname,i):o.pathname,"route"];let e=a.path;if(e){let n="/"===e[0]||"/"===r[r.length-1]?e:`/${e}`;if(r+=n,i+o.pathname===t.pathname){if((0,e8.$A)(r)!==(0,e8.$A)(o.pathname)&&"/*"!==r.slice(-2))return[(rd?"":i)+n,"route"];return[(rd?"":i)+r,"route"]}}}}return[rd?rp(t.pathname,i):t.pathname,"url"]}function rm(e,t,n,i,r){let o=Array.isArray(i)?i:c(n,t,r);if(o){let[i,a]=rf(n,t,o,r);(0,u.nZ)().setTransactionName(i),e&&(e.updateName(i),e.setAttribute(T.Zj,a))}}function rg(e,t,n,i,r){let o=Array.isArray(i)?i:c(t,e,r),a=(0,u.s3)();if(a&&ru.has(a)&&("PUSH"===n||"POP"===n)&&o){let[n,i]=rf(t,e,o,r);(0,iT.og)(a,{name:n,attributes:{[T.Zj]:i,[T.$J]:"navigation",[T.S3]:"auto.navigation.react.reactrouter_v6"}})}}function rb(e){if(!o||!a||!s||!l||!c)return e;let t=!0,n=n=>{let i=a(),r=s();return o(()=>{let e=l(n.children);t?(rm(rx(),i,e),t=!1):rg(i,e,r)},[i,r]),(0,i0.jsx)(e,{...n})};return i1(n,e),n}function rv(e){if(!o||!a||!s||!c)return e;let t=!0,n=n=>{let{routes:i,locationArg:r}=n,l=e(i,r),c=a(),d=s(),u="string"==typeof r||r&&r.pathname?r:c;return o(()=>{let e="string"==typeof u?{pathname:u}:u;t?(rm(rx(),e,i),t=!1):rg(e,i,d)},[d,u]),l};return(e,t)=>(0,i0.jsx)(n,{routes:e,locationArg:t})}function ry(e){return o&&a&&s&&c?function(t,n){let i=e(t,n),r=n&&n.basename,o=rx();return"POP"===i.state.historyAction&&o&&rm(o,i.state.location,t,void 0,r),i.subscribe(e=>{let n=e.location;("PUSH"===e.historyAction||"POP"===e.historyAction)&&rg(n,t,e.historyAction,void 0,r)}),i}:e}function rx(){let e=(0,U.HN)(),t=e?(0,U.Gx)(e):void 0;if(!t)return;let n=(0,U.XU)(t).op;return"navigation"===n||"pageload"===n?t:void 0}},51515:function(e,t,n){"use strict";n.d(t,{R:function(){return I}});var i=n(70249),r=n(98199),o=n(31967),a=n(22608),s=n(74734),l=n(32111),c=n(81269),d=n(12788),u=n(46167),h=n(46640),p=n(64076),f=n(50717),m=n(71198),g=n(76530),b=n(44097),v=n(28289),y=n(27996);let x="Not capturing exception because it's already been captured.";class w{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=(0,i.vK)(e.dsn):p.X&&r.kg.warn("No DSN provided, client will not send events."),this._dsn){let t=(0,u.U)(this._dsn,e.tunnel,e._metadata?e._metadata.sdk:void 0);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}}captureException(e,t,n){let i=(0,o.DM)();if((0,o.YO)(e))return p.X&&r.kg.log(x),i;let a={event_id:i,...t};return this._process(this.eventFromException(e,a).then(e=>this._captureEvent(e,a,n))),a.event_id}captureMessage(e,t,n,i){let r={event_id:(0,o.DM)(),...n},s=(0,a.Le)(e)?e:String(e),l=(0,a.pt)(e)?this.eventFromMessage(s,t,r):this.eventFromException(e,r);return this._process(l.then(e=>this._captureEvent(e,r,i))),r.event_id}captureEvent(e,t,n){let i=(0,o.DM)();if(t&&t.originalException&&(0,o.YO)(t.originalException))return p.X&&r.kg.log(x),i;let a={event_id:i,...t},s=e.sdkProcessingMetadata||{},l=s.capturedSpanScope;return this._process(this._captureEvent(e,a,l||n)),a.event_id}captureSession(e){"string"!=typeof e.release?p.X&&r.kg.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),(0,g.CT)(e,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){let t=this._transport;return t?(this.emit("flush"),this._isClientDoneProcessing(e).then(n=>t.flush(e).then(e=>n&&e))):(0,s.WD)(!0)}close(e){return this.flush(e).then(e=>(this.getOptions().enabled=!1,this.emit("close"),e))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){this._isEnabled()&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}addIntegration(e){let t=this._integrations[e.name];(0,m.m7)(this,e,this._integrations),t||(0,m.uf)(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let n=(0,f.Mq)(e,this._dsn,this._options._metadata,this._options.tunnel);for(let e of t.attachments||[])n=(0,l.BO)(n,(0,l.zQ)(e));let i=this.sendEnvelope(n);i&&i.then(t=>this.emit("afterSendEvent",e,t),null)}sendSession(e){let t=(0,f.Q3)(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(t)}recordDroppedEvent(e,t,n){if(this._options.sendClientReports){let n=`${e}:${t}`;p.X&&r.kg.log(`Adding outcome: "${n}"`),this._outcomes[n]=this._outcomes[n]+1||1}}on(e,t){this._hooks[e]||(this._hooks[e]=[]),this._hooks[e].push(t)}emit(e,...t){this._hooks[e]&&this._hooks[e].forEach(e=>e(...t))}sendEnvelope(e){return(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)?this._transport.send(e).then(null,e=>(p.X&&r.kg.error("Error while sending event:",e),e)):(p.X&&r.kg.error("Transport disabled"),(0,s.WD)({}))}_setupIntegrations(){let{integrations:e}=this._options;this._integrations=(0,m.q4)(this,e),(0,m.uf)(this,e)}_updateSessionFromEvent(e,t){let n=!1,i=!1,r=t.exception&&t.exception.values;if(r)for(let e of(i=!0,r)){let t=e.mechanism;if(t&&!1===t.handled){n=!0;break}}let o="ok"===e.status,a=o&&0===e.errors||o&&n;a&&((0,g.CT)(e,{...n&&{status:"crashed"},errors:e.errors||Number(i||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new s.cW(t=>{let n=0,i=setInterval(()=>{0==this._numProcessing?(clearInterval(i),t(!0)):(n+=1,e&&n>=e&&(clearInterval(i),t(!1)))},1)})}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,n,i=(0,h.aF)()){let r=this.getOptions(),o=Object.keys(this._integrations);return!t.integrations&&o.length>0&&(t.integrations=o),this.emit("preprocessEvent",e,t),e.type||i.setLastEventId(e.event_id||t.event_id),(0,y.R)(r,e,t,n,this,i).then(e=>{if(null===e)return e;let t={...i.getPropagationContext(),...n?n.getPropagationContext():void 0},r=e.contexts&&e.contexts.trace;if(!r&&t){let{traceId:n,spanId:i,parentSpanId:r,dsc:o}=t;e.contexts={trace:(0,c.Jr)({trace_id:n,span_id:i,parent_span_id:r}),...e.contexts};let a=o||(0,b._l)(n,this);e.sdkProcessingMetadata={dynamicSamplingContext:a,...e.sdkProcessingMetadata}}return e})}_captureEvent(e,t={},n){return this._processEvent(e,t,n).then(e=>e.event_id,e=>{p.X&&("log"===e.logLevel?r.kg.log(e.message):r.kg.warn(e))})}_processEvent(e,t,n){let i=this.getOptions(),{sampleRate:r}=i,o=_(e),l=k(e),c=e.type||"error",u=`before send for type \`${c}\``,h=void 0===r?void 0:(0,v.o)(r);if(l&&"number"==typeof h&&Math.random()>h)return this.recordDroppedEvent("sample_rate","error",e),(0,s.$2)(new d.b(`Discarding event because it's not included in the random sample (sampling rate = ${r})`,"log"));let p="replay_event"===c?"replay":c,f=e.sdkProcessingMetadata||{},m=f.capturedSpanIsolationScope;return this._prepareEvent(e,t,n,m).then(n=>{if(null===n)throw this.recordDroppedEvent("event_processor",p,e),new d.b("An event processor returned `null`, will not send event.","log");let r=t.data&&!0===t.data.__sentry__;if(r)return n;let o=function(e,t,n){let{beforeSend:i,beforeSendTransaction:r,beforeSendSpan:o}=e;if(k(t)&&i)return i(t,n);if(_(t)){if(t.spans&&o){let e=[];for(let n of t.spans){let t=o(n);t&&e.push(t)}t.spans=e}if(r)return r(t,n)}return t}(i,n,t);return function(e,t){let n=`${t} must return \`null\` or a valid event.`;if((0,a.J8)(e))return e.then(e=>{if(!(0,a.PO)(e)&&null!==e)throw new d.b(n);return e},e=>{throw new d.b(`${t} rejected with ${e}`)});if(!(0,a.PO)(e)&&null!==e)throw new d.b(n);return e}(o,u)}).then(i=>{if(null===i)throw this.recordDroppedEvent("before_send",p,e),new d.b(`${u} returned \`null\`, will not send event.`,"log");let r=n&&n.getSession();!o&&r&&this._updateSessionFromEvent(r,i);let a=i.transaction_info;return o&&a&&i.transaction!==e.transaction&&(i.transaction_info={...a,source:"custom"}),this.sendEvent(i,t),i}).then(null,e=>{if(e instanceof d.b)throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),new d.b(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
Reason: ${e}`)})}_process(e){this._numProcessing++,e.then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e))}_clearOutcomes(){let e=this._outcomes;return this._outcomes={},Object.keys(e).map(t=>{let[n,i]=t.split(":");return{reason:n,category:i,quantity:e[t]}})}}function k(e){return void 0===e.type}function _(e){return"transaction"===e.type}var E=n(7933),S=n(76635),C=n(78769),P=n(57578),T=n(56118),O=n(3689),A=n(13835);class I extends w{constructor(e){let t={parentSpanIsAlwaysRootSpan:!0,...e},n=O.m9.SENTRY_SDK_SOURCE||(0,S.S)();(0,E.V)(t,"browser",["browser"],n),super(t),t.sendClientReports&&O.m9.document&&O.m9.document.addEventListener("visibilitychange",()=>{"hidden"===O.m9.document.visibilityState&&this._flushOutcomes()})}eventFromException(e,t){return(0,T.dr)(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return(0,T.aB)(this._options.stackParser,e,t,n,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled()){P.X&&r.kg.warn("SDK not enabled, will not capture user feedback.");return}let t=(0,A.r)(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this.sendEnvelope(t)}_prepareEvent(e,t,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,n)}_flushOutcomes(){let e=this._clearOutcomes();if(0===e.length){P.X&&r.kg.log("No outcomes to send");return}if(!this._dsn){P.X&&r.kg.log("No dsn provided, will not send outcomes");return}P.X&&r.kg.log("Sending outcomes:",e);let t=function(e,t,n){let i=[{type:"client_report"},{timestamp:(0,C.yW)(),discarded_events:e}];return(0,l.Jd)(t?{dsn:t}:{},[i])}(e,this._options.tunnel&&(0,i.RA)(this._dsn));this.sendEnvelope(t)}}},57578:function(e,t,n){"use strict";n.d(t,{X:function(){return i}});let i=!1},56118:function(e,t,n){"use strict";n.d(t,{GJ:function(){return c},ME:function(){return m},aB:function(){return f},dr:function(){return p}});var i=n(46640),r=n(51240),o=n(22608),a=n(31967),s=n(74734),l=n(81269);function c(e,t){let n=u(e,t),i={type:t&&t.name,value:function(e){let t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}(t)};return n.length&&(i.stacktrace={frames:n}),void 0===i.type&&""===i.value&&(i.value="Unrecoverable error caught"),i}function d(e,t){return{exception:{values:[c(e,t)]}}}function u(e,t){let n=t.stacktrace||t.stack||"",i=t&&h.test(t.message)?1:0,r="number"==typeof t.framesToPop?t.framesToPop:0;try{return e(n,i,r)}catch(e){}return[]}let h=/Minified React error #\d+;/i;function p(e,t,n,i){let r=n&&n.syntheticException||void 0,o=m(e,t,r,i);return(0,a.EG)(o),o.level="error",n&&n.event_id&&(o.event_id=n.event_id),(0,s.WD)(o)}function f(e,t,n="info",i,r){let o=i&&i.syntheticException||void 0,a=g(e,t,o,r);return a.level=n,i&&i.event_id&&(a.event_id=i.event_id),(0,s.WD)(a)}function m(e,t,n,s,h){let p;if((0,o.VW)(t)&&t.error)return d(e,t.error);if((0,o.TX)(t)||(0,o.fm)(t)){if("stack"in t)p=d(e,t);else{let i=t.name||((0,o.TX)(t)?"DOMError":"DOMException"),r=t.message?`${i}: ${t.message}`:i;p=g(e,r,n,s),(0,a.Db)(p,r)}return"code"in t&&(p.tags={...p.tags,"DOMException.code":`${t.code}`}),p}return(0,o.VZ)(t)?d(e,t):((0,o.PO)(t)||(0,o.cO)(t)?p=function(e,t,n,a){let s=(0,i.s3)(),d=s&&s.getOptions().normalizeDepth,h=function(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)){let n=e[t];if(n instanceof Error)return n}}(t),p={__serialized__:(0,r.Qy)(t,d)};if(h)return{exception:{values:[c(e,h)]},extra:p};let f={exception:{values:[{type:(0,o.cO)(t)?t.constructor.name:a?"UnhandledRejection":"Error",value:function(e,{isUnhandledRejection:t}){let n=(0,l.zf)(e),i=t?"promise rejection":"exception";if((0,o.VW)(e))return`Event \`ErrorEvent\` captured as ${i} with message \`${e.message}\``;if((0,o.cO)(e)){let t=function(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch(e){}}(e);return`Event \`${t}\` (type=${e.type}) captured as ${i}`}return`Object captured as ${i} with keys: ${n}`}(t,{isUnhandledRejection:a})}]},extra:p};if(n){let t=u(e,n);t.length&&(f.exception.values[0].stacktrace={frames:t})}return f}(e,t,n,h):(p=g(e,t,n,s),(0,a.Db)(p,`${t}`,void 0)),(0,a.EG)(p,{synthetic:!0}),p)}function g(e,t,n,i){let r={};if(i&&n){let i=u(e,n);i.length&&(r.exception={values:[{value:t,stacktrace:{frames:i}}]})}if((0,o.Le)(t)){let{__sentry_template_string__:e,__sentry_template_values__:n}=t;return r.logentry={message:e,params:n},r}return r.message=t,r}},3689:function(e,t,n){"use strict";n.d(t,{Wz:function(){return d},m9:function(){return l},re:function(){return function e(t,n={},o){if("function"!=typeof t)return t;try{let e=t.__sentry_wrapped__;if(e)return e;if((0,a.HK)(t))return t}catch(e){return t}let l=function(){let a=Array.prototype.slice.call(arguments);try{o&&"function"==typeof o&&o.apply(this,arguments);let i=a.map(t=>e(t,n));return t.apply(this,i)}catch(e){throw c++,setTimeout(()=>{c--}),(0,i.$e)(t=>{t.addEventProcessor(e=>(n.mechanism&&((0,s.Db)(e,void 0,void 0),(0,s.EG)(e,n.mechanism)),e.extra={...e.extra,arguments:a},e)),(0,r.Tb)(e)}),e}};try{for(let e in t)Object.prototype.hasOwnProperty.call(t,e)&&(l[e]=t[e])}catch(e){}(0,a.$Q)(l,t),(0,a.xp)(t,"__sentry_wrapped__",l);try{let e=Object.getOwnPropertyDescriptor(l,"name");e.configurable&&Object.defineProperty(l,"name",{get:()=>t.name})}catch(e){}return l}}});var i=n(46640),r=n(22509),o=n(26406),a=n(81269),s=n(31967);let l=o.GLOBAL_OBJ,c=0;function d(){return c>0}},26126:function(e,t,n){"use strict";n.d(t,{f:function(){return y}});var i=n(63255),r=n(18486),o=n(90741),a=n(71198),s=n(46640),l=n(50842),c=n(58785),d=n(49783),u=n(31967),h=n(98199),p=n(48378),f=n(75604),m=n(34393),g=n(30819),b=n(57578),v=n(3689);let y=(0,a._I)((e={})=>{let t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:"Breadcrumbs",setup(e){var n;t.console&&(0,c.e)(function(t){if((0,s.s3)()!==e)return;let n={category:"console",data:{arguments:t.args,logger:"console"},level:(0,f.V)(t.level),message:(0,m.nK)(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;n.message=`Assertion failed: ${(0,m.nK)(t.args.slice(1)," ")||"console.assert"}`,n.data.arguments=t.args.slice(1)}(0,l.n)(n,{input:t.args,level:t.level})}),t.dom&&(0,i.O)((n=t.dom,function(t){let i,r;if((0,s.s3)()!==e)return;let o="object"==typeof n?n.serializeAttribute:void 0,a="object"==typeof n&&"number"==typeof n.maxStringLength?n.maxStringLength:void 0;a&&a>1024&&(b.X&&h.kg.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${a} was configured. Sentry will use 1024 instead.`),a=1024),"string"==typeof o&&(o=[o]);try{let e=t.event,n=e&&e.target?e.target:e;i=(0,p.Rt)(n,{keyAttrs:o,maxStringLength:a}),r=(0,p.iY)(n)}catch(e){i="<unknown>"}if(0===i.length)return;let c={category:`ui.${t.name}`,message:i};r&&(c.data={"ui.component_name":r}),(0,l.n)(c,{event:t.event,name:t.name,global:t.global})})),t.xhr&&(0,r.UK)(function(t){if((0,s.s3)()!==e)return;let{startTimestamp:n,endTimestamp:i}=t,o=t.xhr[r.xU];if(!n||!i||!o)return;let{method:a,url:c,status_code:d,body:u}=o,h={xhr:t.xhr,input:u,startTimestamp:n,endTimestamp:i};(0,l.n)({category:"xhr",data:{method:a,url:c,status_code:d},type:"http"},h)}),t.fetch&&(0,d.U)(function(t){if((0,s.s3)()!==e)return;let{startTimestamp:n,endTimestamp:i}=t;if(!(!i||t.fetchData.url.match(/sentry_key/)&&"POST"===t.fetchData.method)){if(t.error){let e=t.fetchData,r={data:t.error,input:t.args,startTimestamp:n,endTimestamp:i};(0,l.n)({category:"fetch",data:e,level:"error",type:"http"},r)}else{let e=t.response,r={...t.fetchData,status_code:e&&e.status},o={input:t.args,response:e,startTimestamp:n,endTimestamp:i};(0,l.n)({category:"fetch",data:r,type:"http"},o)}}}),t.history&&(0,o.a)(function(t){if((0,s.s3)()!==e)return;let n=t.from,i=t.to,r=(0,g.en)(v.m9.location.href),o=n?(0,g.en)(n):void 0,a=(0,g.en)(i);o&&o.path||(o=r),r.protocol===a.protocol&&r.host===a.host&&(i=a.relative),r.protocol===o.protocol&&r.host===o.host&&(n=o.relative),(0,l.n)({category:"navigation",data:{from:n,to:i}})}),t.sentry&&e.on("beforeSendEvent",function(t){(0,s.s3)()===e&&(0,l.n)({category:`sentry.${"transaction"===t.type?"transaction":"event"}`,event_id:t.event_id,level:t.level,message:(0,u.jH)(t)},{event:t})})}}})},66757:function(e,t,n){"use strict";n.d(t,{t:function(){return l}});var i=n(71198),r=n(81269),o=n(88965),a=n(3689);let s=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],l=(0,i._I)((e={})=>{let t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:"BrowserApiErrors",setupOnce(){t.setTimeout&&(0,r.hl)(a.m9,"setTimeout",c),t.setInterval&&(0,r.hl)(a.m9,"setInterval",c),t.requestAnimationFrame&&(0,r.hl)(a.m9,"requestAnimationFrame",d),t.XMLHttpRequest&&"XMLHttpRequest"in a.m9&&(0,r.hl)(XMLHttpRequest.prototype,"send",u);let e=t.eventTarget;if(e){let t=Array.isArray(e)?e:s;t.forEach(h)}}}});function c(e){return function(...t){let n=t[0];return t[0]=(0,a.re)(n,{mechanism:{data:{function:(0,o.$P)(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function d(e){return function(t){return e.apply(this,[(0,a.re)(t,{mechanism:{data:{function:"requestAnimationFrame",handler:(0,o.$P)(e)},handled:!1,type:"instrument"}})])}}function u(e){return function(...t){let n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(e=>{e in n&&"function"==typeof n[e]&&(0,r.hl)(n,e,function(t){let n={mechanism:{data:{function:e,handler:(0,o.$P)(t)},handled:!1,type:"instrument"}},i=(0,r.HK)(t);return i&&(n.mechanism.data.handler=(0,o.$P)(i)),(0,a.re)(t,n)})}),e.apply(this,t)}}function h(e){let t=a.m9,n=t[e]&&t[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&((0,r.hl)(n,"addEventListener",function(t){return function(n,i,r){try{"function"==typeof i.handleEvent&&(i.handleEvent=(0,a.re)(i.handleEvent,{mechanism:{data:{function:"handleEvent",handler:(0,o.$P)(i),target:e},handled:!1,type:"instrument"}}))}catch(e){}return t.apply(this,[n,(0,a.re)(i,{mechanism:{data:{function:"addEventListener",handler:(0,o.$P)(i),target:e},handled:!1,type:"instrument"}}),r])}}),(0,r.hl)(n,"removeEventListener",function(e){return function(t,n,i){try{let r=n&&n.__sentry_wrapped__;r&&e.call(this,t,r,i)}catch(e){}return e.call(this,t,n,i)}}))}},98321:function(e,t,n){"use strict";n.d(t,{k:function(){return m}});var i=n(71198),r=n(46640),o=n(22509),a=n(29772),s=n(35368),l=n(22608),c=n(48378),d=n(88965),u=n(98199),h=n(57578),p=n(56118),f=n(3689);let m=(0,i._I)((e={})=>{let t={onerror:!0,onunhandledrejection:!0,...e};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&((0,a.V)(t=>{let{stackParser:n,attachStacktrace:i}=b();if((0,r.s3)()!==e||(0,f.Wz)())return;let{msg:a,url:s,line:u,column:h,error:m}=t,g=function(e,t,n,i){let r=e.exception=e.exception||{},o=r.values=r.values||[],a=o[0]=o[0]||{},s=a.stacktrace=a.stacktrace||{},u=s.frames=s.frames||[],h=isNaN(parseInt(i,10))?void 0:i,p=isNaN(parseInt(n,10))?void 0:n,f=(0,l.HD)(t)&&t.length>0?t:(0,c.l4)();return 0===u.length&&u.push({colno:h,filename:f,function:d.Fi,in_app:!0,lineno:p}),e}((0,p.ME)(n,m||a,void 0,i,!1),s,u,h);g.level="error",(0,o.eN)(g,{originalException:m,mechanism:{handled:!1,type:"onerror"}})}),g("onerror")),t.onunhandledrejection&&((0,s.h)(t=>{let{stackParser:n,attachStacktrace:i}=b();if((0,r.s3)()!==e||(0,f.Wz)())return;let a=function(e){if((0,l.pt)(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch(e){}return e}(t),s=(0,l.pt)(a)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(a)}`}]}}:(0,p.ME)(n,a,void 0,i,!0);s.level="error",(0,o.eN)(s,{originalException:a,mechanism:{handled:!1,type:"onunhandledrejection"}})}),g("onunhandledrejection"))}}});function g(e){h.X&&u.kg.log(`Global Handler attached: ${e}`)}function b(){let e=(0,r.s3)(),t=e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1};return t}},15447:function(e,t,n){"use strict";n.d(t,{l:function(){return f}});var i=n(18486),r=n(71198),o=n(22509),a=n(46640),s=n(1286),l=n(98199),c=n(72216),d=n(49783),u=n(26406),h=n(31967),p=n(57578);let f=(0,r._I)((e={})=>{let t={failedRequestStatusCodes:[[500,599]],failedRequestTargets:[/.*/],...e};return{name:"HttpClient",setup(e){(0,c.t$)()&&(0,d.U)(n=>{if((0,a.s3)()!==e)return;let{response:i,args:r}=n,[s,c]=r;i&&function(e,t,n,i){if(g(e,n.status,n.url)){let e,r,a,s;let c=!i&&t instanceof Request||t instanceof Request&&t.bodyUsed?t:new Request(t,i);v()&&([{headers:e,cookies:a},{headers:r,cookies:s}]=[{cookieHeader:"Cookie",obj:c},{cookieHeader:"Set-Cookie",obj:n}].map(({cookieHeader:e,obj:t})=>{let n;let i=function(e){let t={};return e.forEach((e,n)=>{t[n]=e}),t}(t.headers);try{let t=i[e]||i[e.toLowerCase()]||void 0;t&&(n=m(t))}catch(t){p.X&&l.kg.log(`Could not extract cookies from header ${e}`)}return{headers:i,cookies:n}}));let d=b({url:c.url,method:c.method,status:n.status,requestHeaders:e,responseHeaders:r,requestCookies:a,responseCookies:s});(0,o.eN)(d)}}(t,s,i,c)}),"XMLHttpRequest"in u.GLOBAL_OBJ&&(0,i.UK)(n=>{if((0,a.s3)()!==e)return;let r=n.xhr,s=r[i.xU];if(!s)return;let{method:c,request_headers:d}=s;try{!function(e,t,n,i){if(g(e,t.status,t.responseURL)){let e,r,a;if(v()){try{let e=t.getResponseHeader("Set-Cookie")||t.getResponseHeader("set-cookie")||void 0;e&&(r=m(e))}catch(e){p.X&&l.kg.log("Could not extract cookies from response headers")}try{a=function(e){let t=e.getAllResponseHeaders();return t?t.split("\r\n").reduce((e,t)=>{let[n,i]=t.split(": ");return e[n]=i,e},{}):{}}(t)}catch(e){p.X&&l.kg.log("Could not extract headers from response")}e=i}let s=b({url:t.responseURL,method:n,status:t.status,requestHeaders:e,responseHeaders:a,responseCookies:r});(0,o.eN)(s)}}(t,r,c,d)}catch(e){p.X&&l.kg.warn("Error while extracting response event form XHR response",e)}})}}});function m(e){return e.split("; ").reduce((e,t)=>{let[n,i]=t.split("=");return e[n]=i,e},{})}function g(e,t,n){return e.failedRequestStatusCodes.some(e=>"number"==typeof e?e===t:t>=e[0]&&t<=e[1])&&e.failedRequestTargets.some(e=>"string"==typeof e?n.includes(e):e.test(n))&&!(0,s.W)(n,(0,a.s3)())}function b(e){let t=`HTTP Client Error with status code: ${e.status}`,n={message:t,exception:{values:[{type:"Error",value:t}]},request:{url:e.url,method:e.method,headers:e.requestHeaders,cookies:e.requestCookies},contexts:{response:{status_code:e.status,headers:e.responseHeaders,cookies:e.responseCookies,body_size:function(e){if(e){let t=e["Content-Length"]||e["content-length"];if(t)return parseInt(t,10)}}(e.responseHeaders)}}};return(0,h.EG)(n,{type:"http.client",handled:!1}),n}function v(){let e=(0,a.s3)();return!!e&&!!e.getOptions().sendDefaultPii}},52405:function(e,t,n){"use strict";n.d(t,{s:function(){return o}});var i=n(71198),r=n(3689);let o=(0,i._I)(()=>({name:"HttpContext",preprocessEvent(e){if(!r.m9.navigator&&!r.m9.location&&!r.m9.document)return;let t=e.request&&e.request.url||r.m9.location&&r.m9.location.href,{referrer:n}=r.m9.document||{},{userAgent:i}=r.m9.navigator||{},o={...e.request&&e.request.headers,...n&&{Referer:n},...i&&{"User-Agent":i}},a={...e.request,...t&&{url:t},headers:o};e.request=a}}))},3254:function(e,t,n){"use strict";n.d(t,{O:function(){return c}});var i=n(71198),r=n(22608),o=n(34393);function a(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,..."AggregateError"===e.type&&{is_exception_group:!0},exception_id:t}}function s(e,t,n,i){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:i}}var l=n(56118);let c=(0,i._I)((e={})=>{let t=e.limit||5,n=e.key||"cause";return{name:"LinkedErrors",preprocessEvent(e,i,c){let d=c.getOptions();!function(e,t,n=250,i,l,c,d){if(!c.exception||!c.exception.values||!d||!(0,r.V9)(d.originalException,Error))return;let u=c.exception.values.length>0?c.exception.values[c.exception.values.length-1]:void 0;u&&(c.exception.values=(function e(t,n,i,o,l,c,d,u){if(c.length>=i+1)return c;let h=[...c];if((0,r.V9)(o[l],Error)){a(d,u);let r=t(n,o[l]),c=h.length;s(r,l,c,u),h=e(t,n,i,o[l],l,[r,...h],r,c)}return Array.isArray(o.errors)&&o.errors.forEach((o,c)=>{if((0,r.V9)(o,Error)){a(d,u);let r=t(n,o),p=h.length;s(r,`errors[${c}]`,p,u),h=e(t,n,i,o,l,[r,...h],r,p)}}),h})(e,t,l,d.originalException,i,c.exception.values,u,0).map(e=>(e.value&&(e.value=(0,o.$G)(e.value,n)),e)))}(l.GJ,d.stackParser,d.maxValueLength,n,t,e,i)}}})},69675:function(e,t,n){"use strict";n.d(t,{Eg:function(){return T},Jd:function(){return A},S1:function(){return C},jp:function(){return P},lA:function(){return O},nV:function(){return S}});var i=n(54263),r=n(83180),o=n(44653),a=n(71198),s=n(63573),l=n(46640),c=n(22509),d=n(46167),u=n(98199),h=n(72216),p=n(88965),f=n(90741),m=n(51515),g=n(57578),b=n(3689),v=n(26126),y=n(66757),x=n(98321),w=n(52405),k=n(3254),_=n(47799),E=n(85358);function S(e){return[(0,i.S)(),(0,r.C)(),(0,y.t)(),(0,v.f)(),(0,x.k)(),(0,k.O)(),(0,o.R)(),(0,w.s)()]}function C(e={}){let t=function(e={}){let t={defaultIntegrations:S(),release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:b.m9.SENTRY_RELEASE&&b.m9.SENTRY_RELEASE.id?b.m9.SENTRY_RELEASE.id:void 0,autoSessionTracking:!0,sendClientReports:!0};return{...t,...e}}(e);if(function(){let e=b.m9,t=e.chrome?"chrome":"browser",n=e[t],i=n&&n.runtime&&n.runtime.id,r=b.m9.location&&b.m9.location.href||"",o=!!i&&b.m9===b.m9.top&&["chrome-extension:","moz-extension:","ms-browser-extension:"].some(e=>r.startsWith(`${e}//`));return!!i&&!o}()){(0,u.Cf)(()=>{console.error("[Sentry] You cannot run Sentry this way in a browser extension, check: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")});return}g.X&&!(0,h.Ak)()&&u.kg.warn("No Fetch API detected. The Sentry SDK requires a Fetch API compatible environment to send events. Please add a Fetch API polyfill.");let n={...t,stackParser:(0,p.Sq)(t.stackParser||_.Dt),integrations:(0,a.m8)(t),transport:t.transport||E.f};(0,s.M)(m.R,n),t.autoSessionTracking&&function(){if(void 0===b.m9.document){g.X&&u.kg.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");return}(0,c.yj)({ignoreDuration:!0}),(0,c.cg)(),(0,f.a)(({from:e,to:t})=>{void 0!==e&&e!==t&&((0,c.yj)({ignoreDuration:!0}),(0,c.cg)())})}()}function P(e={}){if(!b.m9.document){g.X&&u.kg.error("Global document not defined in showReportDialog call");return}let t=(0,l.nZ)(),n=t.getClient(),i=n&&n.getDsn();if(!i){g.X&&u.kg.error("DSN not configured for showReportDialog call");return}if(t&&(e.user={...t.getUser(),...e.user}),!e.eventId){let t=(0,c.eW)();t&&(e.eventId=t)}let r=b.m9.document.createElement("script");r.async=!0,r.crossOrigin="anonymous",r.src=(0,d.h)(i,e),e.onLoad&&(r.onload=e.onLoad);let{onClose:o}=e;if(o){let e=t=>{if("__sentry_reportdialog_closed__"===t.data)try{o()}finally{b.m9.removeEventListener("message",e)}};b.m9.addEventListener("message",e)}let a=b.m9.document.head||b.m9.document.body;a?a.appendChild(r):g.X&&u.kg.error("Not injecting report dialog. No injection point found in HTML")}function T(){}function O(e){e()}function A(e){let t=(0,l.s3)();t&&t.captureUserFeedback(e)}},47799:function(e,t,n){"use strict";n.d(t,{$3:function(){return s},$Q:function(){return d},Dt:function(){return v},HH:function(){return g},NP:function(){return f},R2:function(){return h},d8:function(){return b}});var i=n(88965);function r(e,t,n,r){let o={filename:e,function:"<anonymous>"===t?i.Fi:t,in_app:!0};return void 0!==n&&(o.lineno=n),void 0!==r&&(o.colno=r),o}let o=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,a=/\((\S*)(?::(\d+))(?::(\d+))\)/,s=[30,e=>{let t=o.exec(e);if(t){let e=t[2]&&0===t[2].indexOf("eval");if(e){let e=a.exec(t[2]);e&&(t[2]=e[1],t[3]=e[2],t[4]=e[3])}let[n,o]=y(t[1]||i.Fi,t[2]);return r(o,n,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}}],l=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,c=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,d=[50,e=>{let t=l.exec(e);if(t){let e=t[3]&&t[3].indexOf(" > eval")>-1;if(e){let e=c.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let n=t[3],o=t[1]||i.Fi;return[o,n]=y(o,n),r(n,o,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],u=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,h=[40,e=>{let t=u.exec(e);return t?r(t[2],t[1]||i.Fi,+t[3],t[4]?+t[4]:void 0):void 0}],p=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,f=[10,e=>{let t=p.exec(e);return t?r(t[2],t[3]||i.Fi,+t[1]):void 0}],m=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,g=[20,e=>{let t=m.exec(e);return t?r(t[5],t[3]||t[4]||i.Fi,+t[1],+t[2]):void 0}],b=[s,d],v=(0,i.pE)(...b),y=(e,t)=>{let n=-1!==e.indexOf("safari-extension"),r=-1!==e.indexOf("safari-web-extension");return n||r?[-1!==e.indexOf("@")?e.split("@")[0]:i.Fi,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]}},91680:function(e,t,n){"use strict";let i,r;n.d(t,{E8:function(){return W},og:function(){return G},Wo:function(){return q}});var o=n(44179),a=n(85976),s=n(40389),l=n(50156),c=n(78769),d=n(48378),u=n(98199),h=n(30819),p=n(13426),f=n(8447),m=n(13259);function g(e){return"number"==typeof e&&isFinite(e)}function b(e,t,n,{...i}){let r=(0,o.XU)(e).start_timestamp;return r&&r>t&&"function"==typeof e.updateStartTime&&e.updateStartTime(t),(0,a._d)(e,()=>{let e=(0,a.qp)({startTime:t,...i});return e&&e.end(n),e})}function v(){return f.m&&f.m.addEventListener&&f.m.performance}function y(e){return e/1e3}var x=n(68239),w=n(69126);let k=0,_={};function E(e,t,n,i,r,o){let a=o?t[o]:t[`${n}End`],l=t[`${n}Start`];l&&a&&b(e,i+y(l),i+y(a),{op:"browser",name:r||n,attributes:{[s.S3]:"auto.ui.browser.metrics"}})}function S(e,t,n,i){let r=t[n];null!=r&&r<2147483647&&(e[i]=r)}var C=n(46640),P=n(81269);let T={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};var O=n(90741),A=n(64076),I=n(88011),R=n(13451),$=n(27110),L=n(73837);let M={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3};function j(e,t={}){let n;let i=new Map,r=!1,l="externalFinish",d=!t.disableAutoFinish,{idleTimeout:h=M.idleTimeout,finalTimeout:p=M.finalTimeout,childSpanTimeout:f=M.childSpanTimeout,beforeSpanEnd:m}=t,g=(0,C.s3)();if(!g||!(0,I.z)())return new $.b;let b=(0,C.nZ)(),v=(0,o.HN)(),y=function(e){let t=(0,a.qp)(e);return(0,R.D)((0,C.nZ)(),t),A.X&&u.kg.log("[Tracing] Started span is an idle span"),t}(e);function x(e=(0,c.ph)()){let t=(0,o.Dp)(y).filter(e=>e!==y);if(!t.length){y.end(e);return}let n=t.map(e=>(0,o.XU)(e).timestamp).filter(e=>!!e),i=n.length?Math.max(...n):void 0,r=(0,o.$k)(e),a=(0,o.XU)(y).start_timestamp;y.end(Math.min(a?a+p/1e3:1/0,Math.max(a||-1/0,Math.min(r,i||1/0))))}function w(){n&&(clearTimeout(n),n=void 0)}function k(e){w(),n=setTimeout(()=>{!r&&0===i.size&&d&&(l="idleTimeout",x(e))},h)}function _(e){n=setTimeout(()=>{!r&&d&&(l="heartbeatFailed",x(e))},f)}return g.on("spanStart",e=>{if(r||e===y||(0,o.XU)(e).timestamp)return;let t=(0,o.Dp)(y);t.includes(e)&&function(e){w(),i.set(e,!0);let t=(0,c.ph)();_(t+f/1e3)}(e.spanContext().spanId)}),g.on("spanEnd",e=>{r||(function(e){if(i.has(e)&&i.delete(e),0===i.size){let e=(0,c.ph)();k(e+h/1e3)}}(e.spanContext().spanId),e===y&&function(){r=!0,i.clear(),m&&m(y),(0,R.D)(b,v);let e=(0,o.XU)(y),{timestamp:t,start_timestamp:n}=e;if(!t||!n)return;let a=e.data||{};a[s.ju]||y.setAttribute(s.ju,l),u.kg.log(`[Tracing] Idle span "${e.op}" finished`);let c=(0,o.Dp)(y).filter(e=>e!==y),d=0;c.forEach(e=>{e.isRecording()&&(e.setStatus({code:L.jt,message:"cancelled"}),e.end(t),A.X&&u.kg.log("[Tracing] Cancelling span since span ended early",JSON.stringify(e,void 0,2)));let n=(0,o.XU)(e),{timestamp:i=0,start_timestamp:r=0}=n,a=r<=t,s=i-r<(p+h)/1e3;if(A.X){let t=JSON.stringify(e,void 0,2);a?s||u.kg.log("[Tracing] Discarding span since it finished after idle span final timeout",t):u.kg.log("[Tracing] Discarding span since it happened after idle span was finished",t)}(!s||!a)&&((0,o.ed)(y,e),d++)}),d>0&&y.setAttribute("sentry.idle_span_discarded_spans",d)}())}),g.on("idleSpanEnableAutoFinish",e=>{e===y&&(d=!0,k(),i.size&&_())}),t.disableAutoFinish||k(),setTimeout(()=>{r||(y.setStatus({code:L.jt,message:"deadline_exceeded"}),l="finalTimeout",x())},p),y}var D=n(75625),N=n(44097),F=n(43159),z=n(92024),B=n(57578),H=n(3689),U=n(91722);let V={...M,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableInp:!0,_experiments:{},...U.k3},W=(e={})=>{(0,D.a)();let{enableInp:t,enableLongTask:n,_experiments:{enableInteractions:A},beforeStartSpan:I,idleTimeout:R,finalTimeout:$,childSpanTimeout:M,markBackgroundSpan:z,traceFetch:W,traceXHR:Y,shouldCreateSpanForRequest:K,enableHTTPTimings:J,instrumentPageLoad:Z,instrumentNavigation:Q}={...V,...e},ee=function(){let e=v();if(e&&c.Z1){e.mark&&f.m.performance.mark("sentry-tracing-init");let t=(0,m.to)(({metric:e})=>{let t=e.entries[e.entries.length-1];if(!t)return;let n=y(c.Z1),i=y(t.startTime);p.X&&u.kg.log("[Measurements] Adding FID"),_.fid={value:e.value,unit:"millisecond"},_["mark.fid"]={value:n+i,unit:"second"}}),n=(0,m.PR)(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&(p.X&&u.kg.log("[Measurements] Adding CLS"),_.cls={value:e.value,unit:""},r=t)},!0),o=(0,m.$A)(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&(p.X&&u.kg.log("[Measurements] Adding LCP"),_.lcp={value:e.value,unit:"millisecond"},i=t)},!0),a=(0,m._4)(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&(p.X&&u.kg.log("[Measurements] Adding TTFB"),_.ttfb={value:e.value,unit:"millisecond"})});return()=>{t(),n(),o(),a()}}return()=>void 0}();t&&function(){let e=v();if(e&&c.Z1){let e=(0,m.YF)(({metric:e})=>{let t;let n=(0,C.s3)();if(!n||void 0==e.value)return;let i=e.entries.find(t=>t.duration===e.value&&T[t.name]);if(!i)return;let r=T[i.name],l=n.getOptions(),u=y(c.Z1+i.startTime),h=y(e.value),p=(0,C.nZ)(),f=(0,o.HN)(),m=f?(0,o.Gx)(f):void 0,g=m?(0,o.XU)(m).description:void 0,b=p.getUser(),v=n.getIntegrationByName("Replay"),x=v&&v.getReplayId(),w=void 0!==b?b.email||b.id||b.ip_address:void 0;try{t=p.getScopeData().contexts.profile.profile_id}catch(e){}let k=(0,d.Rt)(i.target),_=(0,P.Jr)({release:l.release,environment:l.environment,transaction:g,[s.JQ]:e.value,user:w||void 0,profile_id:t||void 0,replay_id:x||void 0}),E=(0,a.qp)({name:k,op:`ui.interaction.${r}`,attributes:_,startTime:u,experimental:{standalone:!0}});E.addEvent("inp",{[s.E1]:"millisecond",[s.Wb]:e.value}),E.end(u+h)})}}(),n&&(0,m._j)("longtask",({entries:e})=>{for(let t of e){if(!(0,o.HN)())return;let e=y(c.Z1+t.startTime),n=y(t.duration),i=(0,a.qp)({name:"Main UI thread blocked",op:"ui.long-task",startTime:e,attributes:{[s.S3]:"auto.ui.browser.metrics"}});i&&i.end(e+n)}}),A&&(0,m._j)("event",({entries:e})=>{for(let t of e){if(!(0,o.HN)())return;if("click"===t.name){let e=y(c.Z1+t.startTime),n=y(t.duration),i={name:(0,d.Rt)(t.target),op:`ui.interaction.${t.name}`,startTime:e,attributes:{[s.S3]:"auto.ui.browser.metrics"}},r=(0,d.iY)(t.target);r&&(i.attributes["ui.component_name"]=r);let o=(0,a.qp)(i);o&&o.end(e+n)}}});let et={name:void 0,source:void 0};function en(e,t){let n="pageload"===t.op,a=I?I(t):t,m=a.attributes||{};t.name!==a.name&&(m[s.Zj]="custom",a.attributes=m),et.name=a.name,et.source=m[s.Zj];let C=j(a,{idleTimeout:R,finalTimeout:$,childSpanTimeout:M,disableAutoFinish:n,beforeSpanEnd:e=>{ee(),function(e){let t=v();if(!t||!f.m.performance.getEntries||!c.Z1)return;p.X&&u.kg.log("[Tracing] Adding & adjusting spans using Performance API");let n=y(c.Z1),a=t.getEntries(),{op:m,start_timestamp:C}=(0,o.XU)(e);if(a.slice(k).forEach(t=>{let i=y(t.startTime),r=y(t.duration);if("navigation"!==m||!C||!(n+i<C))switch(t.entryType){case"navigation":["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(i=>{E(e,t,i,n)}),E(e,t,"secureConnection",n,"TLS/SSL","connectEnd"),E(e,t,"fetch",n,"cache","domainLookupStart"),E(e,t,"domainLookup",n,"DNS"),t.responseEnd&&(b(e,n+y(t.requestStart),n+y(t.responseEnd),{op:"browser",name:"request",attributes:{[s.S3]:"auto.ui.browser.metrics"}}),b(e,n+y(t.responseStart),n+y(t.responseEnd),{op:"browser",name:"response",attributes:{[s.S3]:"auto.ui.browser.metrics"}}));break;case"mark":case"paint":case"measure":{(function(e,t,n,i,r){let o=r+n;b(e,o,o+i,{name:t.name,op:t.entryType,attributes:{[s.S3]:"auto.resource.browser.metrics"}})})(e,t,i,r,n);let o=(0,w.Y)(),a=t.startTime<o.firstHiddenTime;"first-paint"===t.name&&a&&(p.X&&u.kg.log("[Measurements] Adding FP"),_.fp={value:t.startTime,unit:"millisecond"}),"first-contentful-paint"===t.name&&a&&(p.X&&u.kg.log("[Measurements] Adding FCP"),_.fcp={value:t.startTime,unit:"millisecond"});break}case"resource":(function(e,t,n,i,r,o){if("xmlhttprequest"===t.initiatorType||"fetch"===t.initiatorType)return;let a=(0,h.en)(n),l={[s.S3]:"auto.resource.browser.metrics"};S(l,t,"transferSize","http.response_transfer_size"),S(l,t,"encodedBodySize","http.response_content_length"),S(l,t,"decodedBodySize","http.decoded_response_content_length"),"renderBlockingStatus"in t&&(l["resource.render_blocking_status"]=t.renderBlockingStatus),a.protocol&&(l["url.scheme"]=a.protocol.split(":").pop()),a.host&&(l["server.address"]=a.host),l["url.same_origin"]=n.includes(f.m.location.origin);let c=o+i;b(e,c,c+r,{name:n.replace(f.m.location.origin,""),op:t.initiatorType?`resource.${t.initiatorType}`:"resource.other",attributes:l})})(e,t,t.name,i,r,n)}}),k=Math.max(a.length-1,0),function(e){let t=f.m.navigator;if(!t)return;let n=t.connection;n&&(n.effectiveType&&e.setAttribute("effectiveConnectionType",n.effectiveType),n.type&&e.setAttribute("connectionType",n.type),g(n.rtt)&&(_["connection.rtt"]={value:n.rtt,unit:"millisecond"})),g(t.deviceMemory)&&e.setAttribute("deviceMemory",`${t.deviceMemory} GB`),g(t.hardwareConcurrency)&&e.setAttribute("hardwareConcurrency",String(t.hardwareConcurrency))}(e),"pageload"===m){(function(e){let t=(0,x.W)();if(!t)return;let{responseStart:n,requestStart:i}=t;i<=n&&(p.X&&u.kg.log("[Measurements] Adding TTFB Request Time"),e["ttfb.requestTime"]={value:n-i,unit:"millisecond"})})(_),["fcp","fp","lcp"].forEach(e=>{if(!_[e]||!C||n>=C)return;let t=_[e].value,i=n+y(t),r=Math.abs((i-C)*1e3),o=r-t;p.X&&u.kg.log(`[Measurements] Normalized ${e} from ${t} to ${r} (${o})`),_[e].value=r});let t=_["mark.fid"];t&&_.fid&&(b(e,t.value,t.value+y(_.fid.value),{name:"first input delay",op:"ui.action",attributes:{[s.S3]:"auto.ui.browser.metrics"}}),delete _["mark.fid"]),"fcp"in _||delete _.cls,Object.keys(_).forEach(e=>{(0,l.o)(e,_[e].value,_[e].unit)}),i&&(p.X&&u.kg.log("[Measurements] Adding LCP Data"),i.element&&e.setAttribute("lcp.element",(0,d.Rt)(i.element)),i.id&&e.setAttribute("lcp.id",i.id),i.url&&e.setAttribute("lcp.url",i.url.trim().slice(0,200)),e.setAttribute("lcp.size",i.size)),r&&r.sources&&(p.X&&u.kg.log("[Measurements] Adding CLS Data"),r.sources.forEach((t,n)=>e.setAttribute(`cls.source.${n+1}`,(0,d.Rt)(t.node))))}i=void 0,r=void 0,_={}}(e)}});function P(){["interactive","complete"].includes(H.m9.document.readyState)&&e.emit("idleSpanEnableAutoFinish",C)}return n&&H.m9.document&&(H.m9.document.addEventListener("readystatechange",()=>{P()}),P()),C}return{name:"BrowserTracing",afterAllSetup(e){let t,n;let i=H.m9.location&&H.m9.location.href;e.on("startNavigationSpan",n=>{(0,C.s3)()===e&&(t&&(B.X&&u.kg.log(`[Tracing] Finishing current root span with op: ${(0,o.XU)(t).op}`),t.end()),t=en(e,{op:"navigation",...n}))}),e.on("startPageLoadSpan",(n,i={})=>{if((0,C.s3)()!==e)return;t&&(B.X&&u.kg.log(`[Tracing] Finishing current root span with op: ${(0,o.XU)(t).op}`),t.end());let r=i.sentryTrace||X("sentry-trace"),a=i.baggage||X("baggage"),s=(0,F.pT)(r,a);(0,C.nZ)().setPropagationContext(s),t=en(e,{op:"pageload",...n})}),e.on("spanEnd",e=>{let t=(0,o.XU)(e).op;if(e!==(0,o.Gx)(e)||"navigation"!==t&&"pageload"!==t)return;let n=(0,C.nZ)(),i=n.getPropagationContext();n.setPropagationContext({...i,sampled:void 0!==i.sampled?i.sampled:(0,o.Tt)(e),dsc:i.dsc||(0,N.jC)(e)})}),H.m9.location&&(Z&&q(e,{name:H.m9.location.pathname,startTime:c.Z1?c.Z1/1e3:void 0,attributes:{[s.Zj]:"url",[s.S3]:"auto.pageload.browser"}}),Q&&(0,O.a)(({to:t,from:n})=>{if(void 0===n&&i&&-1!==i.indexOf(t)){i=void 0;return}n!==t&&(i=void 0,G(e,{name:H.m9.location.pathname,attributes:{[s.Zj]:"url",[s.S3]:"auto.navigation.browser"}}))})),z&&(H.m9&&H.m9.document?H.m9.document.addEventListener("visibilitychange",()=>{let e=(0,o.HN)();if(!e)return;let t=(0,o.Gx)(e);if(H.m9.document.hidden&&t){let e="cancelled",{op:n,status:i}=(0,o.XU)(t);B.X&&u.kg.log(`[Tracing] Transaction: ${e} -> since tab moved to the background, op: ${n}`),i||t.setStatus({code:L.jt,message:e}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}):B.X&&u.kg.warn("[Tracing] Could not set up background tab detection due to lack of global document")),A&&H.m9.document&&addEventListener("click",()=>{let e="ui.action.click",t=(0,o.HN)(),i=t&&(0,o.Gx)(t);if(i){let t=(0,o.XU)(i).op;if(["navigation","pageload"].includes(t)){B.X&&u.kg.warn(`[Tracing] Did not create ${e} span because a pageload or navigation span is in progress.`);return}}if(n&&(n.setAttribute(s.ju,"interactionInterrupted"),n.end(),n=void 0),!et.name){B.X&&u.kg.warn(`[Tracing] Did not create ${e} transaction because _latestRouteName is missing.`);return}n=j({name:et.name,op:e,attributes:{[s.Zj]:et.source||"url"}},{idleTimeout:R,finalTimeout:$,childSpanTimeout:M})},{once:!1,capture:!0}),(0,U.L7)({traceFetch:W,traceXHR:Y,tracePropagationTargets:e.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:K,enableHTTPTimings:J})}}};function q(e,t,n){e.emit("startPageLoadSpan",t,n),(0,C.nZ)().setTransactionName(t.name);let i=(0,o.HN)(),r=i&&(0,o.XU)(i).op;return"pageload"===r?i:void 0}function G(e,t){(0,C.aF)().setPropagationContext((0,z.Q)()),(0,C.nZ)().setPropagationContext((0,z.Q)()),e.emit("startNavigationSpan",t),(0,C.nZ)().setTransactionName(t.name);let n=(0,o.HN)(),i=n&&(0,o.XU)(n).op;return"navigation"===i?n:void 0}function X(e){let t=(0,d.qT)(`meta[name=${e}]`);return t?t.getAttribute("content"):void 0}},91722:function(e,t,n){"use strict";n.d(t,{k3:function(){return w},L7:function(){return k}});var i=n(18486),r=n(13259),o=n(30819),a=n(43159),s=n(62462),l=n(22608),c=n(46640),d=n(40389),u=n(88011),h=n(44179),p=n(27110),f=n(73837),m=n(85976),g=n(44097),b=n(49783),v=n(78769),y=n(34393),x=n(3689);let w={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0};function k(e){let{traceFetch:t,traceXHR:n,shouldCreateSpanForRequest:r,enableHTTPTimings:v,tracePropagationTargets:k}={traceFetch:w.traceFetch,traceXHR:w.traceXHR,...e},E="function"==typeof r?r:e=>!0,C=e=>(function(e,t){let n=x.m9.location&&x.m9.location.href;if(n){let i,r;try{i=new URL(e,n),r=new URL(n).origin}catch(e){return!1}let o=i.origin===r;return t?(0,y.U0)(i.toString(),t)||o&&(0,y.U0)(i.pathname,t):o}{let n=!!e.match(/^\/(?!\/)/);return t?(0,y.U0)(e,t):n}})(e,k),P={};t&&(0,b.U)(e=>{let t=function(e,t,n,i,r="auto.http.browser"){if(!e.fetchData)return;let b=(0,u.z)()&&t(e.fetchData.url);if(e.endTimestamp&&b){let t=e.fetchData.__span;if(!t)return;let n=i[t];n&&(function(e,t){if(t.response){(0,f.Q0)(e,t.response.status);let n=t.response&&t.response.headers&&t.response.headers.get("content-length");if(n){let t=parseInt(n);t>0&&e.setAttribute("http.response_content_length",t)}}else t.error&&e.setStatus({code:f.jt,message:"internal_error"});e.end()}(n,e),delete i[t]);return}let v=(0,c.nZ)(),y=(0,c.s3)(),{method:x,url:w}=e.fetchData,k=function(e){try{let t=new URL(e);return t.href}catch(e){return}}(w),_=k?(0,o.en)(k).host:void 0,E=!!(0,h.HN)(),S=b&&E?(0,m.qp)({name:`${x} ${w}`,attributes:{url:w,type:"fetch","http.method":x,"http.url":k,"server.address":_,[d.S3]:r,[d.$J]:"http.client"}}):new p.b;if(e.fetchData.__span=S.spanContext().spanId,i[S.spanContext().spanId]=S,n(e.fetchData.url)&&y){let t=e.args[0];e.args[1]=e.args[1]||{};let n=e.args[1];n.headers=function(e,t,n,i,r){let o=(0,c.aF)(),{traceId:d,spanId:u,sampled:p,dsc:f}={...o.getPropagationContext(),...n.getPropagationContext()},m=r?(0,h.Hb)(r):(0,a.$p)(d,u,p),b=(0,s.IQ)(f||(r?(0,g.jC)(r):(0,g._l)(d,t))),v=i.headers||("undefined"!=typeof Request&&(0,l.V9)(e,Request)?e.headers:void 0);if(!v)return{"sentry-trace":m,baggage:b};if("undefined"!=typeof Headers&&(0,l.V9)(v,Headers)){let e=new Headers(v);return e.append("sentry-trace",m),b&&e.append(s.bU,b),e}if(Array.isArray(v)){let e=[...v,["sentry-trace",m]];return b&&e.push([s.bU,b]),e}{let e="baggage"in v?v.baggage:void 0,t=[];return Array.isArray(e)?t.push(...e):e&&t.push(e),b&&t.push(b),{...v,"sentry-trace":m,baggage:t.length>0?t.join(","):void 0}}}(t,y,v,n,(0,u.z)()&&E?S:void 0)}return S}(e,E,C,P);if(t){let n=S(e.fetchData.url),i=n?(0,o.en)(n).host:void 0;t.setAttributes({"http.url":n,"server.address":i})}v&&t&&_(t)}),n&&(0,i.UK)(e=>{let t=function(e,t,n,r){let l=e.xhr,b=l&&l[i.xU];if(!l||l.__sentry_own_request__||!b)return;let v=(0,u.z)()&&t(b.url);if(e.endTimestamp&&v){let e=l.__sentry_xhr_span_id__;if(!e)return;let t=r[e];t&&void 0!==b.status_code&&((0,f.Q0)(t,b.status_code),t.end(),delete r[e]);return}let y=S(b.url),x=y?(0,o.en)(y).host:void 0,w=!!(0,h.HN)(),k=v&&w?(0,m.qp)({name:`${b.method} ${b.url}`,attributes:{type:"xhr","http.method":b.method,"http.url":y,url:b.url,"server.address":x,[d.S3]:"auto.http.browser",[d.$J]:"http.client"}}):new p.b;l.__sentry_xhr_span_id__=k.spanContext().spanId,r[l.__sentry_xhr_span_id__]=k;let _=(0,c.s3)();return l.setRequestHeader&&n(b.url)&&_&&function(e,t,n){let i=(0,c.nZ)(),r=(0,c.aF)(),{traceId:o,spanId:l,sampled:d,dsc:p}={...r.getPropagationContext(),...i.getPropagationContext()},f=n&&(0,u.z)()?(0,h.Hb)(n):(0,a.$p)(o,l,d),m=(0,s.IQ)(p||(n?(0,g.jC)(n):(0,g._l)(o,t)));(function(e,t,n){try{e.setRequestHeader("sentry-trace",t),n&&e.setRequestHeader(s.bU,n)}catch(e){}})(e,f,m)}(l,_,(0,u.z)()&&w?k:void 0),k}(e,E,C,P);v&&t&&_(t)})}function _(e){let{url:t}=(0,h.XU)(e).data||{};if(!t||"string"!=typeof t)return;let n=(0,r._j)("resource",({entries:i})=>{i.forEach(i=>{if("resource"===i.entryType&&"initiatorType"in i&&"string"==typeof i.nextHopProtocol&&("fetch"===i.initiatorType||"xmlhttprequest"===i.initiatorType)&&i.name.endsWith(t)){let t=function(e){let{name:t,version:n}=function(e){let t="unknown",n="unknown",i="";for(let r of e){if("/"===r){[t,n]=e.split("/");break}if(!isNaN(Number(r))){t="h"===i?"http":i,n=e.split(i)[1];break}i+=r}return i===e&&(t=i),{name:t,version:n}}(e.nextHopProtocol),i=[];return(i.push(["network.protocol.version",n],["network.protocol.name",t]),v.Z1)?[...i,["http.request.redirect_start",E(e.redirectStart)],["http.request.fetch_start",E(e.fetchStart)],["http.request.domain_lookup_start",E(e.domainLookupStart)],["http.request.domain_lookup_end",E(e.domainLookupEnd)],["http.request.connect_start",E(e.connectStart)],["http.request.secure_connection_start",E(e.secureConnectionStart)],["http.request.connection_end",E(e.connectEnd)],["http.request.request_start",E(e.requestStart)],["http.request.response_start",E(e.responseStart)],["http.request.response_end",E(e.responseEnd)]]:i}(i);t.forEach(t=>e.setAttribute(...t)),setTimeout(n)}})})}function E(e=0){return((v.Z1||performance.timeOrigin)+e)/1e3}function S(e){try{let t=new URL(e,x.m9.location.origin);return t.href}catch(e){return}}},85358:function(e,t,n){"use strict";n.d(t,{f:function(){return a}});var i=n(39098),r=n(63123),o=n(74734);function a(e,t=(0,i.L2)("fetch")){let n=0,a=0;return(0,r.q)(e,function(r){let s=r.body.length;n+=s,a++;let l={body:r.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&a<15,...e.fetchOptions};if(!t)return(0,i._6)("fetch"),(0,o.$2)("No fetch implementation available");try{return t(e.url,l).then(e=>(n-=s,a--,{statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}}))}catch(e){return(0,i._6)("fetch"),n-=s,a--,(0,o.$2)(e)}})}},13835:function(e,t,n){"use strict";n.d(t,{r:function(){return o}});var i=n(70249),r=n(32111);function o(e,{metadata:t,tunnel:n,dsn:o}){let a={event_id:e.event_id,sent_at:new Date().toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!o&&{dsn:(0,i.RA)(o)}};return(0,r.Jd)(a,[[{type:"user_report"},e]])}},62462:function(e,t,n){"use strict";n.d(t,{EN:function(){return c},IQ:function(){return d},bU:function(){return a}});var i=n(21530),r=n(22608),o=n(98199);let a="baggage",s="sentry-",l=/^sentry-/;function c(e){let t=e&&((0,r.HD)(e)||Array.isArray(e))?Array.isArray(e)?e.reduce((e,t)=>{let n=u(t);for(let t of Object.keys(n))e[t]=n[t];return e},{}):u(e):void 0;if(!t)return;let n=Object.entries(t).reduce((e,[t,n])=>{if(t.match(l)){let i=t.slice(s.length);e[i]=n}return e},{});return Object.keys(n).length>0?n:void 0}function d(e){if(!e)return;let t=Object.entries(e).reduce((e,[t,n])=>(n&&(e[`${s}${t}`]=n),e),{});return function(e){if(0!==Object.keys(e).length)return Object.entries(e).reduce((e,[t,n],r)=>{let a=`${encodeURIComponent(t)}=${encodeURIComponent(n)}`,s=0===r?a:`${e},${a}`;return s.length>8192?(i.X&&o.kg.warn(`Not adding key: ${t} with val: ${n} to baggage header due to exceeding baggage size limits.`),e):s},"")}(t)}function u(e){return e.split(",").map(e=>e.split("=").map(e=>decodeURIComponent(e.trim()))).reduce((e,[t,n])=>(e[t]=n,e),{})}},48378:function(e,t,n){"use strict";n.d(t,{Rt:function(){return a},iY:function(){return c},l4:function(){return s},qT:function(){return l}});var i=n(22608),r=n(26406);let o=r.GLOBAL_OBJ;function a(e,t={}){if(!e)return"<unknown>";try{let n,r=e,a=[],s=0,l=0,c=Array.isArray(t)?t:t.keyAttrs,d=!Array.isArray(t)&&t.maxStringLength||80;for(;r&&s++<5&&(n=function(e,t){let n,r,a,s,l;let c=[];if(!e||!e.tagName)return"";if(o.HTMLElement&&e instanceof HTMLElement&&e.dataset){if(e.dataset.sentryComponent)return e.dataset.sentryComponent;if(e.dataset.sentryElement)return e.dataset.sentryElement}c.push(e.tagName.toLowerCase());let d=t&&t.length?t.filter(t=>e.getAttribute(t)).map(t=>[t,e.getAttribute(t)]):null;if(d&&d.length)d.forEach(e=>{c.push(`[${e[0]}="${e[1]}"]`)});else if(e.id&&c.push(`#${e.id}`),(n=e.className)&&(0,i.HD)(n))for(l=0,r=n.split(/\s+/);l<r.length;l++)c.push(`.${r[l]}`);let u=["aria-label","type","name","title","alt"];for(l=0;l<u.length;l++)a=u[l],(s=e.getAttribute(a))&&c.push(`[${a}="${s}"]`);return c.join("")}(r,c),"html"!==n&&(!(s>1)||!(l+3*a.length+n.length>=d)));)a.push(n),l+=n.length,r=r.parentNode;return a.reverse().join(" > ")}catch(e){return"<unknown>"}}function s(){try{return o.document.location.href}catch(e){return""}}function l(e){return o.document&&o.document.querySelector?o.document.querySelector(e):null}function c(e){if(!o.HTMLElement)return null;let t=e;for(let e=0;e<5&&t;e++){if(t instanceof HTMLElement){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}t=t.parentNode}return null}},15809:function(e,t,n){"use strict";function i(e,t){return null!=e?e:t()}n.d(t,{h:function(){return i}})},580:function(e,t,n){"use strict";function i(e){let t;let n=e[0],i=1;for(;i<e.length;){let r=e[i],o=e[i+1];if(i+=2,("optionalAccess"===r||"optionalCall"===r)&&null==n)return;"access"===r||"optionalAccess"===r?(t=n,n=o(n)):("call"===r||"optionalCall"===r)&&(n=o((...e)=>n.call(t,...e)),t=void 0)}return n}n.d(t,{x:function(){return i}})},21530:function(e,t,n){"use strict";n.d(t,{X:function(){return i}});let i=!1},70249:function(e,t,n){"use strict";n.d(t,{RA:function(){return a},U4:function(){return s},vK:function(){return c}});var i=n(21530),r=n(98199);let o=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function a(e,t=!1){let{host:n,path:i,pass:r,port:o,projectId:a,protocol:s,publicKey:l}=e;return`${s}://${l}${t&&r?`:${r}`:""}@${n}${o?`:${o}`:""}/${i?`${i}/`:i}${a}`}function s(e){let t=o.exec(e);if(!t){(0,r.Cf)(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}let[n,i,a="",s,c="",d]=t.slice(1),u="",h=d,p=h.split("/");if(p.length>1&&(u=p.slice(0,-1).join("/"),h=p.pop()),h){let e=h.match(/^\d+/);e&&(h=e[0])}return l({host:s,pass:a,path:u,projectId:h,port:c,protocol:n,publicKey:i})}function l(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function c(e){let t="string"==typeof e?s(e):l(e);if(t&&function(e){if(!i.X)return!0;let{port:t,projectId:n,protocol:o}=e,a=["protocol","publicKey","host","projectId"].find(t=>!e[t]&&(r.kg.error(`Invalid Sentry Dsn: ${t} missing`),!0));return!a&&(n.match(/^\d+$/)?"http"===o||"https"===o?!(t&&isNaN(parseInt(t,10)))||(r.kg.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):(r.kg.error(`Invalid Sentry Dsn: Invalid protocol ${o}`),!1):(r.kg.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1))}(t))return t}},76635:function(e,t,n){"use strict";function i(){return"undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&!!__SENTRY_BROWSER_BUNDLE__}function r(){return"npm"}n.d(t,{S:function(){return r},n:function(){return i}})},32111:function(e,t,n){"use strict";n.d(t,{BO:function(){return l},Cd:function(){return y},HY:function(){return v},Jd:function(){return s},KQ:function(){return f},R:function(){return d},V$:function(){return h},f4:function(){return p},gv:function(){return c},mL:function(){return b},zQ:function(){return m}});var i=n(70249),r=n(51240),o=n(81269),a=n(26406);function s(e,t=[]){return[e,t]}function l(e,t){let[n,i]=e;return[n,[...i,t]]}function c(e,t){let n=e[1];for(let e of n){let n=e[0].type,i=t(e,n);if(i)return!0}return!1}function d(e,t){return c(e,(e,n)=>t.includes(n))}function u(e){return a.GLOBAL_OBJ.__SENTRY__&&a.GLOBAL_OBJ.__SENTRY__.encodePolyfill?a.GLOBAL_OBJ.__SENTRY__.encodePolyfill(e):new TextEncoder().encode(e)}function h(e){let[t,n]=e,i=JSON.stringify(t);function o(e){"string"==typeof i?i="string"==typeof e?i+e:[u(i),e]:i.push("string"==typeof e?u(e):e)}for(let e of n){let[t,n]=e;if(o(`
${JSON.stringify(t)}
`),"string"==typeof n||n instanceof Uint8Array)o(n);else{let e;try{e=JSON.stringify(n)}catch(t){e=JSON.stringify((0,r.Fv)(n))}o(e)}}return"string"==typeof i?i:function(e){let t=e.reduce((e,t)=>e+t.length,0),n=new Uint8Array(t),i=0;for(let t of e)n.set(t,i),i+=t.length;return n}(i)}function p(e){let t="string"==typeof e?u(e):e;function n(e){let n=t.subarray(0,e);return t=t.subarray(e+1),n}function i(){var e;let i=t.indexOf(10);return i<0&&(i=t.length),JSON.parse((e=n(i),a.GLOBAL_OBJ.__SENTRY__&&a.GLOBAL_OBJ.__SENTRY__.decodePolyfill?a.GLOBAL_OBJ.__SENTRY__.decodePolyfill(e):new TextDecoder().decode(e)))}let r=i(),o=[];for(;t.length;){let e=i(),t="number"==typeof e.length?e.length:void 0;o.push([e,t?n(t):i()])}return[r,o]}function f(e){return[{type:"span"},e]}function m(e){let t="string"==typeof e.data?u(e.data):e.data;return[(0,o.Jr)({type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),t]}let g={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};function b(e){return g[e]}function v(e){if(!e||!e.sdk)return;let{name:t,version:n}=e.sdk;return{name:t,version:n}}function y(e,t,n,r){let a=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:(0,i.RA)(r)},...a&&{trace:(0,o.Jr)({...a})}}}},12788:function(e,t,n){"use strict";n.d(t,{b:function(){return i}});class i extends Error{constructor(e,t="warn"){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=t}}},58785:function(e,t,n){"use strict";n.d(t,{e:function(){return s}});var i=n(98199),r=n(81269),o=n(26406),a=n(91176);function s(e){let t="console";(0,a.Hj)(t,e),(0,a.D2)(t,l)}function l(){"console"in o.GLOBAL_OBJ&&i.RU.forEach(function(e){e in o.GLOBAL_OBJ.console&&(0,r.hl)(o.GLOBAL_OBJ.console,e,function(t){return i.LD[e]=t,function(...t){(0,a.rK)("console",{args:t,level:e});let n=i.LD[e];n&&n.apply(o.GLOBAL_OBJ.console,t)}})})}},49783:function(e,t,n){"use strict";n.d(t,{U:function(){return l}});var i=n(81269),r=n(72216),o=n(78769),a=n(26406),s=n(91176);function l(e){let t="fetch";(0,s.Hj)(t,e),(0,s.D2)(t,c)}function c(){(0,r.t$)()&&(0,i.hl)(a.GLOBAL_OBJ,"fetch",function(e){return function(...t){let{method:n,url:i}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){let[t,n]=e;return{url:u(t),method:d(n,"method")?String(n.method).toUpperCase():"GET"}}let t=e[0];return{url:u(t),method:d(t,"method")?String(t.method).toUpperCase():"GET"}}(t),r={args:t,fetchData:{method:n,url:i},startTimestamp:1e3*(0,o.ph)()};return(0,s.rK)("fetch",{...r}),e.apply(a.GLOBAL_OBJ,t).then(e=>{let t={...r,endTimestamp:1e3*(0,o.ph)(),response:e};return(0,s.rK)("fetch",t),e},e=>{let t={...r,endTimestamp:1e3*(0,o.ph)(),error:e};throw(0,s.rK)("fetch",t),e})}})}function d(e,t){return!!e&&"object"==typeof e&&!!e[t]}function u(e){return"string"==typeof e?e:e?d(e,"url")?e.url:e.toString?e.toString():"":""}},29772:function(e,t,n){"use strict";n.d(t,{V:function(){return a}});var i=n(26406),r=n(91176);let o=null;function a(e){let t="error";(0,r.Hj)(t,e),(0,r.D2)(t,s)}function s(){o=i.GLOBAL_OBJ.onerror,i.GLOBAL_OBJ.onerror=function(e,t,n,i,a){return(0,r.rK)("error",{column:i,error:a,line:n,msg:e,url:t}),!!o&&!o.__SENTRY_LOADER__&&o.apply(this,arguments)},i.GLOBAL_OBJ.onerror.__SENTRY_INSTRUMENTED__=!0}},35368:function(e,t,n){"use strict";n.d(t,{h:function(){return a}});var i=n(26406),r=n(91176);let o=null;function a(e){let t="unhandledrejection";(0,r.Hj)(t,e),(0,r.D2)(t,s)}function s(){o=i.GLOBAL_OBJ.onunhandledrejection,i.GLOBAL_OBJ.onunhandledrejection=function(e){return(0,r.rK)("unhandledrejection",e),!o||!!o.__SENTRY_LOADER__||o.apply(this,arguments)},i.GLOBAL_OBJ.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}},91176:function(e,t,n){"use strict";n.d(t,{D2:function(){return c},Hj:function(){return l},rK:function(){return d}});var i=n(21530),r=n(98199),o=n(88965);let a={},s={};function l(e,t){a[e]=a[e]||[],a[e].push(t)}function c(e,t){s[e]||(t(),s[e]=!0)}function d(e,t){let n=e&&a[e];if(n)for(let a of n)try{a(t)}catch(t){i.X&&r.kg.error(`Error while triggering instrumentation handler.
Type: ${e}
Name: ${(0,o.$P)(a)}
Error:`,t)}}},22608:function(e,t,n){"use strict";n.d(t,{Cy:function(){return b},HD:function(){return c},J8:function(){return g},Kj:function(){return m},Le:function(){return d},PO:function(){return h},TX:function(){return s},V9:function(){return v},VW:function(){return a},VZ:function(){return r},cO:function(){return p},fm:function(){return l},kK:function(){return f},pt:function(){return u},y1:function(){return y}});let i=Object.prototype.toString;function r(e){switch(i.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return v(e,Error)}}function o(e,t){return i.call(e)===`[object ${t}]`}function a(e){return o(e,"ErrorEvent")}function s(e){return o(e,"DOMError")}function l(e){return o(e,"DOMException")}function c(e){return o(e,"String")}function d(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function u(e){return null===e||d(e)||"object"!=typeof e&&"function"!=typeof e}function h(e){return o(e,"Object")}function p(e){return"undefined"!=typeof Event&&v(e,Event)}function f(e){return"undefined"!=typeof Element&&v(e,Element)}function m(e){return o(e,"RegExp")}function g(e){return!!(e&&e.then&&"function"==typeof e.then)}function b(e){return h(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function v(e,t){try{return e instanceof t}catch(e){return!1}}function y(e){return!!("object"==typeof e&&null!==e&&(e.__isVue||e._isVue))}},79866:function(e,t,n){"use strict";n.d(t,{j:function(){return a}});var i=n(76635),r=n(68571),o=n(26406);function a(){return"undefined"!=typeof window&&(!(!(0,i.n)()&&"[object process]"===Object.prototype.toString.call(void 0!==r?r:0))||void 0!==o.GLOBAL_OBJ.process&&"renderer"===o.GLOBAL_OBJ.process.type)}},98199:function(e,t,n){"use strict";n.d(t,{Cf:function(){return s},LD:function(){return a},RU:function(){return o},kg:function(){return l}});var i=n(21530),r=n(26406);let o=["debug","info","warn","error","log","assert","trace"],a={};function s(e){if(!("console"in r.GLOBAL_OBJ))return e();let t=r.GLOBAL_OBJ.console,n={},i=Object.keys(a);i.forEach(e=>{let i=a[e];n[e]=t[e],t[e]=i});try{return e()}finally{i.forEach(e=>{t[e]=n[e]})}}let l=function(){let e=!1,t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return i.X?o.forEach(n=>{t[n]=(...t)=>{e&&s(()=>{r.GLOBAL_OBJ.console[n](`Sentry Logger [${n}]:`,...t)})}}):o.forEach(e=>{t[e]=()=>void 0}),t}()},31967:function(e,t,n){"use strict";n.d(t,{DM:function(){return a},Db:function(){return c},EG:function(){return d},YO:function(){return h},go:function(){return u},jH:function(){return l},lE:function(){return p}});var i=n(81269),r=n(34393),o=n(26406);function a(){let e=o.GLOBAL_OBJ,t=e.crypto||e.msCrypto,n=()=>16*Math.random();try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{let e=new Uint8Array(1);return t.getRandomValues(e),e[0]})}catch(e){}return"10000000100040008000100000000000".replace(/[018]/g,e=>(e^(15&n())>>e/4).toString(16))}function s(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function l(e){let{message:t,event_id:n}=e;if(t)return t;let i=s(e);return i?i.type&&i.value?`${i.type}: ${i.value}`:i.type||i.value||n||"<unknown>":n||"<unknown>"}function c(e,t,n){let i=e.exception=e.exception||{},r=i.values=i.values||[],o=r[0]=r[0]||{};o.value||(o.value=t||""),o.type||(o.type=n||"Error")}function d(e,t){let n=s(e);if(!n)return;let i=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...i,...t},t&&"data"in t){let e={...i&&i.data,...t.data};n.mechanism.data=e}}function u(e,t,n=5){if(void 0===t.lineno)return;let i=e.length,o=Math.max(Math.min(i-1,t.lineno-1),0);t.pre_context=e.slice(Math.max(0,o-n),o).map(e=>(0,r.JM)(e,0)),t.context_line=(0,r.JM)(e[Math.min(i-1,o)],t.colno||0),t.post_context=e.slice(Math.min(o+1,i),o+1+n).map(e=>(0,r.JM)(e,0))}function h(e){if(e&&e.__sentry_captured__)return!0;try{(0,i.xp)(e,"__sentry_captured__",!0)}catch(e){}return!1}function p(e){return Array.isArray(e)?e:[e]}},51240:function(e,t,n){"use strict";n.d(t,{Fv:function(){return a},Qy:function(){return function e(t,n=3,i=102400){let r=a(t,n);return~-encodeURI(JSON.stringify(r)).split(/%..|./).length>i?e(t,n-1,i):r}}});var i=n(22608),r=n(81269),o=n(88965);function a(e,t=100,n=Infinity){try{return function e(t,n,a=Infinity,s=Infinity,l=function(){let e="function"==typeof WeakSet,t=e?new WeakSet:[];return[function(n){if(e)return!!t.has(n)||(t.add(n),!1);for(let e=0;e<t.length;e++){let i=t[e];if(i===n)return!0}return t.push(n),!1},function(n){if(e)t.delete(n);else for(let e=0;e<t.length;e++)if(t[e]===n){t.splice(e,1);break}}]}()){let[c,d]=l;if(null==n||["number","boolean","string"].includes(typeof n)&&!Number.isNaN(n))return n;let u=function(e,t){try{if("domain"===e&&t&&"object"==typeof t&&t._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if("undefined"!=typeof global&&t===global)return"[Global]";if("undefined"!=typeof window&&t===window)return"[Window]";if("undefined"!=typeof document&&t===document)return"[Document]";if((0,i.y1)(t))return"[VueViewModel]";if((0,i.Cy)(t))return"[SyntheticEvent]";if("number"==typeof t&&t!=t)return"[NaN]";if("function"==typeof t)return`[Function: ${(0,o.$P)(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;let n=function(e){let t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}(t);if(/^HTML(\w*)Element$/.test(n))return`[HTMLElement: ${n}]`;return`[object ${n}]`}catch(e){return`**non-serializable** (${e})`}}(t,n);if(!u.startsWith("[object "))return u;if(n.__sentry_skip_normalization__)return n;let h="number"==typeof n.__sentry_override_normalization_depth__?n.__sentry_override_normalization_depth__:a;if(0===h)return u.replace("object ","");if(c(n))return"[Circular ~]";if(n&&"function"==typeof n.toJSON)try{let t=n.toJSON();return e("",t,h-1,s,l)}catch(e){}let p=Array.isArray(n)?[]:{},f=0,m=(0,r.Sh)(n);for(let t in m){if(!Object.prototype.hasOwnProperty.call(m,t))continue;if(f>=s){p[t]="[MaxProperties ~]";break}let n=m[t];p[t]=e(t,n,h-1,s,l),f++}return d(n),p}("",e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}},81269:function(e,t,n){"use strict";n.d(t,{$Q:function(){return d},HK:function(){return u},Jr:function(){return b},Sh:function(){return p},_j:function(){return h},hl:function(){return l},xp:function(){return c},zf:function(){return g}});var i=n(48378),r=n(21530),o=n(22608),a=n(98199),s=n(34393);function l(e,t,n){if(!(t in e))return;let i=e[t],r=n(i);"function"==typeof r&&d(r,i),e[t]=r}function c(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch(n){r.X&&a.kg.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function d(e,t){try{let n=t.prototype||{};e.prototype=t.prototype=n,c(e,"__sentry_original__",t)}catch(e){}}function u(e){return e.__sentry_original__}function h(e){return Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&")}function p(e){if((0,o.VZ)(e))return{message:e.message,name:e.name,stack:e.stack,...m(e)};if(!(0,o.cO)(e))return e;{let t={type:e.type,target:f(e.target),currentTarget:f(e.currentTarget),...m(e)};return"undefined"!=typeof CustomEvent&&(0,o.V9)(e,CustomEvent)&&(t.detail=e.detail),t}}function f(e){try{return(0,o.kK)(e)?(0,i.Rt)(e):Object.prototype.toString.call(e)}catch(e){return"<unknown>"}}function m(e){if("object"!=typeof e||null===e)return{};{let t={};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}}function g(e,t=40){let n=Object.keys(p(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return(0,s.$G)(n[0],t);for(let e=n.length;e>0;e--){let i=n.slice(0,e).join(", ");if(!(i.length>t)){if(e===n.length)return i;return(0,s.$G)(i,t)}}return""}function b(e){let t=new Map;return function e(t,n){if(function(e){if(!(0,o.PO)(e))return!1;try{let t=Object.getPrototypeOf(e).constructor.name;return!t||"Object"===t}catch(e){return!0}}(t)){let i=n.get(t);if(void 0!==i)return i;let r={};for(let i of(n.set(t,r),Object.keys(t)))void 0!==t[i]&&(r[i]=e(t[i],n));return r}if(Array.isArray(t)){let i=n.get(t);if(void 0!==i)return i;let r=[];return n.set(t,r),t.forEach(t=>{r.push(e(t,n))}),r}return t}(e,t)}},92024:function(e,t,n){"use strict";n.d(t,{Q:function(){return r}});var i=n(31967);function r(){return{traceId:(0,i.DM)(),spanId:(0,i.DM)().substring(16)}}},77134:function(e,t,n){"use strict";function i(e,t=Date.now()){let n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;let i=Date.parse(`${e}`);return isNaN(i)?6e4:i-t}function r(e,t,n=Date.now()){return(e[t]||e.all||0)>n}function o(e,{statusCode:t,headers:n},r=Date.now()){let o={...e},a=n&&n["x-sentry-rate-limits"],s=n&&n["retry-after"];if(a)for(let e of a.trim().split(",")){let[t,n,,,i]=e.split(":",5),a=parseInt(t,10),s=(isNaN(a)?60:a)*1e3;if(n)for(let e of n.split(";"))"metric_bucket"===e?(!i||i.split(";").includes("custom"))&&(o[e]=r+s):o[e]=r+s;else o.all=r+s}else s?o.all=r+i(s,r):429===t&&(o.all=r+6e4);return o}n.d(t,{JY:function(){return i},Q:function(){return r},WG:function(){return o}})},75604:function(e,t,n){"use strict";n.d(t,{V:function(){return r}});let i=["fatal","error","warning","log","info","debug"];function r(e){return"warn"===e?"warning":i.includes(e)?e:"log"}},88965:function(e,t,n){"use strict";n.d(t,{$P:function(){return c},Fi:function(){return i},Sq:function(){return s},pE:function(){return a}});let i="?",r=/\(error: (.*)\)/,o=/captureMessage|captureException/;function a(...e){let t=e.sort((e,t)=>e[0]-t[0]).map(e=>e[1]);return(e,n=0,a=0)=>{let s=[],l=e.split("\n");for(let e=n;e<l.length;e++){let n=l[e];if(n.length>1024)continue;let i=r.test(n)?n.replace(r,"$1"):n;if(!i.match(/\S*Error: /)){for(let e of t){let t=e(i);if(t){s.push(t);break}}if(s.length>=50+a)break}}return function(e){if(!e.length)return[];let t=Array.from(e);return/sentryWrapped/.test(t[t.length-1].function||"")&&t.pop(),t.reverse(),o.test(t[t.length-1].function||"")&&(t.pop(),o.test(t[t.length-1].function||"")&&t.pop()),t.slice(0,50).map(e=>({...e,filename:e.filename||t[t.length-1].filename,function:e.function||i}))}(s.slice(a))}}function s(e){return Array.isArray(e)?a(...e):e}let l="<anonymous>";function c(e){try{if(!e||"function"!=typeof e)return l;return e.name||l}catch(e){return l}}},34393:function(e,t,n){"use strict";n.d(t,{$G:function(){return r},JM:function(){return o},U0:function(){return s},nK:function(){return a}});var i=n(22608);function r(e,t=0){return"string"!=typeof e||0===t?e:e.length<=t?e:`${e.slice(0,t)}...`}function o(e,t){let n=e,i=n.length;if(i<=150)return n;t>i&&(t=i);let r=Math.max(t-60,0);r<5&&(r=0);let o=Math.min(r+140,i);return o>i-5&&(o=i),o===i&&(r=Math.max(o-140,0)),n=n.slice(r,o),r>0&&(n=`'{snip} ${n}`),o<i&&(n+=" {snip}"),n}function a(e,t){if(!Array.isArray(e))return"";let n=[];for(let t=0;t<e.length;t++){let r=e[t];try{(0,i.y1)(r)?n.push("[VueViewModel]"):n.push(String(r))}catch(e){n.push("[value cannot be serialized]")}}return n.join(t)}function s(e,t=[],n=!1){return t.some(t=>(function(e,t,n=!1){return!!(0,i.HD)(e)&&((0,i.Kj)(t)?t.test(e):!!(0,i.HD)(t)&&(n?e===t:e.includes(t)))})(e,t,n))}},72216:function(e,t,n){"use strict";n.d(t,{Ak:function(){return s},QC:function(){return l},t$:function(){return c},zb:function(){return d}});var i=n(21530),r=n(98199),o=n(26406);let a=o.GLOBAL_OBJ;function s(){if(!("fetch"in a))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(e){return!1}}function l(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function c(){if("string"==typeof EdgeRuntime)return!0;if(!s())return!1;if(l(a.fetch))return!0;let e=!1,t=a.document;if(t&&"function"==typeof t.createElement)try{let n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=l(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){i.X&&r.kg.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e}function d(){return"ReportingObserver"in a}},74734:function(e,t,n){"use strict";n.d(t,{$2:function(){return s},WD:function(){return a},cW:function(){return l}});var i,r,o=n(22608);function a(e){return new l(t=>{t(e)})}function s(e){return new l((t,n)=>{n(e)})}(i=r||(r={}))[i.PENDING=0]="PENDING",i[i.RESOLVED=1]="RESOLVED",i[i.REJECTED=2]="REJECTED";class l{constructor(e){l.prototype.__init.call(this),l.prototype.__init2.call(this),l.prototype.__init3.call(this),l.prototype.__init4.call(this),this._state=r.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}then(e,t){return new l((n,i)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(e){i(e)}else n(t)},e=>{if(t)try{n(t(e))}catch(e){i(e)}else i(e)}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(e){return new l((t,n)=>{let i,r;return this.then(t=>{r=!1,i=t,e&&e()},t=>{r=!0,i=t,e&&e()}).then(()=>{if(r){n(i);return}t(i)})})}__init(){this._resolve=e=>{this._setResult(r.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(r.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{if(this._state===r.PENDING){if((0,o.J8)(t)){t.then(this._resolve,this._reject);return}this._state=e,this._value=t,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===r.PENDING)return;let e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||(this._state===r.RESOLVED&&e[1](this._value),this._state===r.REJECTED&&e[2](this._value),e[0]=!0)})}}}},78769:function(e,t,n){"use strict";n.d(t,{Z1:function(){return a},ph:function(){return o},yW:function(){return r}});var i=n(26406);function r(){return Date.now()/1e3}let o=function(){let{performance:e}=i.GLOBAL_OBJ;if(!e||!e.now)return r;let t=Date.now()-e.now(),n=void 0==e.timeOrigin?t:e.timeOrigin;return()=>(n+e.now())/1e3}(),a=(()=>{let{performance:e}=i.GLOBAL_OBJ;if(!e||!e.now)return;let t=e.now(),n=Date.now(),r=e.timeOrigin?Math.abs(e.timeOrigin+t-n):36e5,o=e.timing&&e.timing.navigationStart,a="number"==typeof o?Math.abs(o+t-n):36e5;return r<36e5||a<36e5?r<=a?e.timeOrigin:o:n})()},43159:function(e,t,n){"use strict";n.d(t,{$p:function(){return l},pT:function(){return s},qG:function(){return a}});var i=n(62462),r=n(31967);let o=RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function a(e){let t;if(!e)return;let n=e.match(o);if(n)return"1"===n[3]?t=!0:"0"===n[3]&&(t=!1),{traceId:n[1],parentSampled:t,parentSpanId:n[2]}}function s(e,t){let n=a(e),o=(0,i.EN)(t),{traceId:s,parentSpanId:l,parentSampled:c}=n||{};return n?{traceId:s||(0,r.DM)(),parentSpanId:l||(0,r.DM)().substring(16),spanId:(0,r.DM)().substring(16),sampled:c,dsc:o||{}}:{traceId:s||(0,r.DM)(),spanId:(0,r.DM)().substring(16)}}function l(e=(0,r.DM)(),t=(0,r.DM)().substring(16),n){let i="";return void 0!==n&&(i=n?"-1":"-0"),`${e}-${t}${i}`}},30819:function(e,t,n){"use strict";function i(e){if(!e)return{};let t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};let n=t[6]||"",i=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:i,relative:t[5]+n+i}}function r(e){return e.split(/[\?#]/,1)[0]}function o(e){return e.split(/\\?\//).filter(e=>e.length>0&&","!==e).length}n.d(t,{$A:function(){return o},en:function(){return i},rt:function(){return r}})},31801:function(e,t,n){"use strict";n.d(t,{J:function(){return i}});let i="8.7.0"},26406:function(e,t,n){"use strict";n.d(t,{GLOBAL_OBJ:function(){return r},Y:function(){return o}});var i=n(31801);let r=globalThis;function o(e,t,n){let o=n||r,a=o.__SENTRY__=o.__SENTRY__||{},s=a[i.J]=a[i.J]||{};return s[e]||(s[e]=t())}},28307:function(e,t,n){"use strict";n.d(t,{Z5:function(){return c},mv:function(){return O},AA:function(){return el},yM:function(){return ek},xE:function(){return to},K3:function(){return X},iJ:function(){return ey},h:function(){return ea},GH:function(){return tM},wj:function(){return q},PM:function(){return ev},TX:function(){return I},Iu:function(){return G}});var i,r,o,a,s={allRenderFn:!1,cmpDidLoad:!0,cmpDidUnload:!1,cmpDidUpdate:!0,cmpDidRender:!0,cmpWillLoad:!0,cmpWillUpdate:!0,cmpWillRender:!0,connectedCallback:!0,disconnectedCallback:!0,hasRenderFn:!0,hostListener:!0,hostListenerTargetWindow:!0,hostListenerTargetDocument:!0,hostListenerTargetBody:!0,hostListenerTargetParent:!1,hostListenerTarget:!0,member:!0,method:!0,mode:!0,observeAttribute:!0,prop:!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,scopedSlotTextContentFix:!1,shadowDomShim:!1,slotChildNodesFix:!1,propBoolean:!0,propNumber:!0,propString:!0,constructableCSS:!0,cmpShouldUpdate:!0,shadowDelegatesFocus:!0,initializeNextTick:!1,asyncLoading:!1,asyncQueue:!1,attachStyles:!0,experimentalSlotFixes:!1},l=Object.defineProperty,c={isDev:!!s.isDev,isBrowser:!0,isServer:!1,isTesting:!!s.isTesting},d=s.hotModuleReplacement?window.__STENCIL_HOSTREFS__||(window.__STENCIL_HOSTREFS__=new WeakMap):new WeakMap,u=e=>d.get(e),h=(e,t)=>{let n={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};return s.isDev&&(n.$renderCount$=0),s.method&&s.lazyLoad&&(n.$onInstancePromise$=new Promise(e=>n.$onInstanceResolve$=e)),s.asyncLoading&&(n.$onReadyPromise$=new Promise(e=>n.$onReadyResolve$=e),e["s-p"]=[],e["s-rc"]=[]),d.set(e,n)},p=(e,t)=>t in e,f=(e,t)=>(i||console.error)(e,t),m=s.isTesting?["STENCIL:"]:["%cstencil","color: white;background:#4c47ff;font-weight: bold; font-size:10px; padding:2px 6px; border-radius: 5px"],g=(...e)=>console.error(...m,...e),b=(...e)=>console.warn(...m,...e),v=new Map,y=(e,t,i)=>{let r=e.$tagName$.replace(/-/g,"_"),o=e.$lazyBundleId$;if(s.isDev&&"string"!=typeof o){g(`Trying to lazily load component <${e.$tagName$}> with style mode "${t.$modeName$}", but it does not exist.`);return}if(!o)return;let a=!s.hotModuleReplacement&&v.get(o);return a?a[r]:n(51778)(`./${o}.entry.js${s.hotModuleReplacement&&i?"?s-hmr="+i:""}`).then(e=>(s.hotModuleReplacement||v.set(o,e),e[r]),f)},x=new Map,w=[],k="s-id",_="sty-id",E="c-id",S="http://www.w3.org/1999/xlink",C=["formAssociatedCallback","formResetCallback","formDisabledCallback","formStateRestoreCallback"],P="undefined"!=typeof window?window:{},T=P.document||{head:{}},O=P.HTMLElement||class{},A={$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)},I=e=>{Object.assign(A,e)},R=s.shadowDom,$=(()=>{let e=!1;try{T.addEventListener("e",null,Object.defineProperty({},"passive",{get(){e=!0}}))}catch(e){}return e})(),L=e=>Promise.resolve(e),M=!!s.constructableCSS&&(()=>{try{return new CSSStyleSheet,"function"==typeof new CSSStyleSheet().replaceSync}catch(e){}return!1})(),j=0,D=!1,N=[],F=[],z=[],B=(e,t)=>n=>{e.push(n),D||(D=!0,t&&4&A.$flags$?W(V):A.raf(V))},H=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){f(e)}e.length=0},U=(e,t)=>{let n=0,i=0;for(;n<e.length&&(i=performance.now())<t;)try{e[n++](i)}catch(e){f(e)}n===e.length?e.length=0:0!==n&&e.splice(0,n)},V=()=>{if(s.asyncQueue&&j++,H(N),s.asyncQueue){let e=(6&A.$flags$)==2?performance.now()+14*Math.ceil(.1*j):1/0;U(F,e),U(z,e),F.length>0&&(z.push(...F),F.length=0),(D=N.length+F.length+z.length>0)?A.raf(V):j=0}else H(F),(D=N.length>0)&&A.raf(V)},W=e=>L().then(e),q=B(N,!1),G=B(F,!0),X=e=>{let t=new URL(e,A.$resourcesUrl$);return t.origin!==P.location.origin?t.href:t.pathname},Y={},K=e=>null!=e,J=e=>"object"==(e=typeof e)||"function"===e;((e,t)=>{for(var n in t)l(e,n,{get:t[n],enumerable:!0})})({},{err:()=>Q,map:()=>ee,ok:()=>Z,unwrap:()=>et,unwrapErr:()=>en});var Z=e=>({isOk:!0,isErr:!1,value:e}),Q=e=>({isOk:!1,isErr:!0,value:e});function ee(e,t){if(e.isOk){let n=t(e.value);return n instanceof Promise?n.then(e=>Z(e)):Z(n)}if(e.isErr){let t=e.value;return Q(t)}throw"should never get here"}var et=e=>{if(e.isOk)return e.value;throw e.value},en=e=>{if(e.isErr)return e.value;throw e.value},ei=0,er=(e,t="")=>{if(!s.profile||!performance.mark)return()=>{};{let n=`st:${e}:${t}:${ei++}`;return performance.mark(n),()=>performance.measure(`[Stencil] ${e}() <${t}>`,n)}},eo=(e,t)=>s.profile&&performance.mark?(0===performance.getEntriesByName(e,"mark").length&&performance.mark(e),()=>{0===performance.getEntriesByName(t,"measure").length&&performance.measure(t,e)}):()=>{},ea=(e,t,...n)=>{let i=null,r=null,o=null,a=!1,l=!1,c=[],d=t=>{for(let n=0;n<t.length;n++)Array.isArray(i=t[n])?d(i):null!=i&&"boolean"!=typeof i&&((a="function"!=typeof e&&!J(i))?i=String(i):s.isDev&&"function"!=typeof e&&void 0===i.$flags$&&g(`vNode passed as children has unexpected type.
Make sure it's using the correct h() function.
Empty objects can also be the cause, look for JSX comments that became objects.`),a&&l?c[c.length-1].$text$+=i:c.push(a?es(null,i):i),l=a)};if(d(n),t&&(s.isDev&&"input"===e&&ep(t),s.vdomKey&&t.key&&(r=t.key),s.slotRelocation&&t.name&&(o=t.name),s.vdomClass)){let e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter(t=>e[t]).join(" "))}if(s.isDev&&c.some(ec)&&g(`The <Host> must be the single root component. Make sure:
- You are NOT using hostData() and <Host> in the same component.
- <Host> is used once, and it's the single root component of the render() function.`),s.vdomFunctional&&"function"==typeof e)return e(null===t?{}:t,c,ed);let u=es(e,null);return u.$attrs$=t,c.length>0&&(u.$children$=c),s.vdomKey&&(u.$key$=r),s.slotRelocation&&(u.$name$=o),u},es=(e,t)=>{let n={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};return s.vdomAttribute&&(n.$attrs$=null),s.vdomKey&&(n.$key$=null),s.slotRelocation&&(n.$name$=null),n},el={},ec=e=>e&&e.$tag$===el,ed={forEach:(e,t)=>e.map(eu).forEach(t),map:(e,t)=>e.map(eu).map(t).map(eh)},eu=e=>({vattrs:e.$attrs$,vchildren:e.$children$,vkey:e.$key$,vname:e.$name$,vtag:e.$tag$,vtext:e.$text$}),eh=e=>{if("function"==typeof e.vtag){let t={...e.vattrs};return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),ea(e.vtag,t,...e.vchildren||[])}let t=es(e.vtag,e.vtext);return t.$attrs$=e.vattrs,t.$children$=e.vchildren,t.$key$=e.vkey,t.$name$=e.vname,t},ep=e=>{let t=Object.keys(e),n=t.indexOf("value");if(-1===n)return;let i=t.indexOf("type"),r=t.indexOf("min"),o=t.indexOf("max"),a=t.indexOf("step");(n<i||n<r||n<o||n<a)&&b('The "value" prop of <input> should be set after "min", "max", "type" and "step"')},ef=(e,t,n,i)=>{let r=er("hydrateClient",t),o=e.shadowRoot,a=[],l=s.shadowDom&&o?[]:null,c=i.$vnode$=es(t,null);A.$orgLocNodes$||eg(T.body,A.$orgLocNodes$=new Map),e[k]=n,e.removeAttribute(k),em(c,a,[],l,e,e,n),a.map(e=>{let n=e.$hostId$+"."+e.$nodeId$,i=A.$orgLocNodes$.get(n),r=e.$elm$;i&&R&&""===i["s-en"]&&i.parentNode.insertBefore(r,i.nextSibling),!o&&(r["s-hn"]=t,i&&(r["s-ol"]=i,r["s-ol"]["s-nr"]=r)),A.$orgLocNodes$.delete(n)}),s.shadowDom&&o&&l.map(e=>{e&&o.appendChild(e)}),r()},em=(e,t,n,i,r,o,a)=>{let l,c,d,u;if(1===o.nodeType){if((l=o.getAttribute(E))&&((c=l.split("."))[0]===a||"0"===c[0])&&(d={$flags$:0,$hostId$:c[0],$nodeId$:c[1],$depth$:c[2],$index$:c[3],$tag$:o.tagName.toLowerCase(),$elm$:o,$attrs$:null,$children$:null,$key$:null,$name$:null,$text$:null},t.push(d),o.removeAttribute(E),e.$children$||(e.$children$=[]),e.$children$[d.$index$]=d,e=d,i&&"0"===d.$depth$&&(i[d.$index$]=d.$elm$)),o.shadowRoot)for(u=o.shadowRoot.childNodes.length-1;u>=0;u--)em(e,t,n,i,r,o.shadowRoot.childNodes[u],a);for(u=o.childNodes.length-1;u>=0;u--)em(e,t,n,i,r,o.childNodes[u],a)}else if(8===o.nodeType)((c=o.nodeValue.split("."))[1]===a||"0"===c[1])&&(l=c[0],d={$flags$:0,$hostId$:c[1],$nodeId$:c[2],$depth$:c[3],$index$:c[4],$elm$:o,$attrs$:null,$children$:null,$key$:null,$name$:null,$tag$:null,$text$:null},"t"===l?(d.$elm$=o.nextSibling,d.$elm$&&3===d.$elm$.nodeType&&(d.$text$=d.$elm$.textContent,t.push(d),o.remove(),e.$children$||(e.$children$=[]),e.$children$[d.$index$]=d,i&&"0"===d.$depth$&&(i[d.$index$]=d.$elm$))):d.$hostId$===a&&("s"===l?(d.$tag$="slot",c[5]?o["s-sn"]=d.$name$=c[5]:o["s-sn"]="",o["s-sr"]=!0,s.shadowDom&&i&&(d.$elm$=T.createElement(d.$tag$),d.$name$&&d.$elm$.setAttribute("name",d.$name$),o.parentNode.insertBefore(d.$elm$,o),o.remove(),"0"===d.$depth$&&(i[d.$index$]=d.$elm$)),n.push(d),e.$children$||(e.$children$=[]),e.$children$[d.$index$]=d):"r"===l&&(s.shadowDom&&i?o.remove():s.slotRelocation&&(r["s-cr"]=o,o["s-cn"]=!0))));else if(e&&"style"===e.$tag$){let t=es(null,o.textContent);t.$elm$=o,t.$index$="0",e.$children$=[t]}},eg=(e,t)=>{if(1===e.nodeType){let n=0;if(e.shadowRoot)for(;n<e.shadowRoot.childNodes.length;n++)eg(e.shadowRoot.childNodes[n],t);for(n=0;n<e.childNodes.length;n++)eg(e.childNodes[n],t)}else if(8===e.nodeType){let n=e.nodeValue.split(".");"o"===n[0]&&(t.set(n[1]+"."+n[2],e),e.nodeValue="",e["s-en"]=n[3])}},eb=e=>w.map(t=>t(e)).find(e=>!!e),ev=e=>w.push(e),ey=e=>u(e).$modeName$,ex=(e,t)=>{if(null!=e&&!J(e)){if(s.propBoolean&&4&t)return"false"!==e&&(""===e||!!e);if(s.propNumber&&2&t)return parseFloat(e);if(s.propString&&1&t)return String(e)}return e},ew=e=>s.lazyLoad?u(e).$hostElement$:e,ek=(e,t,n)=>{let i=ew(e);return{emit:e=>(s.isDev&&!i.isConnected&&b(`The "${t}" event was emitted, but the dispatcher node is no longer connected to the dom.`),e_(i,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e}))}},e_=(e,t,n)=>{let i=A.ce(t,n);return e.dispatchEvent(i),i},eE=new WeakMap,eS=(e,t,n)=>{let i=x.get(e);M&&n?"string"==typeof(i=i||new CSSStyleSheet)?i=t:i.replaceSync(t):i=t,x.set(e,i)},eC=(e,t,n)=>{var i,r,o,a;let l=eT(t,n),c=x.get(l);if(!s.attachStyles)return l;if(e=11===e.nodeType?e:T,c){if("string"==typeof c){let n;e=e.head||e;let d=eE.get(e);if(d||eE.set(e,d=new Set),!d.has(l)){if(s.hydrateClientSide&&e.host&&(n=e.querySelector(`[${_}="${l}"]`)))n.innerHTML=c;else{(n=T.createElement("style")).innerHTML=c;let d=null!=(i=A.$nonce$)?i:null!=(a=null==(o=null==(r=T.head)?void 0:r.querySelector('meta[name="csp-nonce"]'))?void 0:o.getAttribute("content"))?a:void 0;null!=d&&n.setAttribute("nonce",d),(s.hydrateServerSide||s.hotModuleReplacement)&&2&t.$flags$&&n.setAttribute(_,l);let u=!(1&t.$flags$)||1&t.$flags$&&"HEAD"!==e.nodeName;u&&e.insertBefore(n,e.querySelector("link"))}4&t.$flags$&&(n.innerHTML+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),d&&d.add(l)}}else s.constructableCSS&&!e.adoptedStyleSheets.includes(c)&&(e.adoptedStyleSheets=[...e.adoptedStyleSheets,c])}return l},eP=e=>{let t=e.$cmpMeta$,n=e.$hostElement$,i=t.$flags$,r=er("attachStyles",t.$tagName$),o=eC(s.shadowDom&&R&&n.shadowRoot?n.shadowRoot:n.getRootNode(),t,e.$modeName$);(s.shadowDom||s.scoped)&&s.cssAnnotations&&10&i&&2&i&&(n["s-sc"]=o,n.classList.add(o+"-h"),s.scoped&&2&i&&n.classList.add(o+"-s")),r()},eT=(e,t)=>"sc-"+(s.mode&&t&&32&e.$flags$?e.$tagName$+"-"+t:e.$tagName$),eO=(e,t,n,i,r,o)=>{if(n!==i){let a=p(e,t),l=t.toLowerCase();if(s.vdomClass&&"class"===t){let t=e.classList,r=eI(n),o=eI(i);t.remove(...r.filter(e=>e&&!o.includes(e))),t.add(...o.filter(e=>e&&!r.includes(e)))}else if(s.vdomStyle&&"style"===t){if(s.updatable)for(let t in n)i&&null!=i[t]||(!s.hydrateServerSide&&t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(let t in i)n&&i[t]===n[t]||(!s.hydrateServerSide&&t.includes("-")?e.style.setProperty(t,i[t]):e.style[t]=i[t])}else if(s.vdomKey&&"key"===t);else if(s.vdomRef&&"ref"===t)i&&i(e);else if(!s.vdomListener||(s.lazyLoad?a:e.__lookupSetter__(t))||"o"!==t[0]||"n"!==t[1]){if(s.vdomPropOrAttr){let c=J(i);if((a||c&&null!==i)&&!r)try{if(e.tagName.includes("-"))e[t]=i;else{let r=null==i?"":i;"list"===t?a=!1:(null==n||e[t]!=r)&&(e[t]=r)}}catch(e){}let d=!1;s.vdomXlink&&l!==(l=l.replace(/^xlink\:?/,""))&&(t=l,d=!0),null==i||!1===i?(!1!==i||""===e.getAttribute(t))&&(s.vdomXlink&&d?e.removeAttributeNS(S,t):e.removeAttribute(t)):(!a||4&o||r)&&!c&&(i=!0===i?"":i,s.vdomXlink&&d?e.setAttributeNS(S,t,i):e.setAttribute(t,i))}}else if(t="-"===t[2]?t.slice(3):p(P,l)?l.slice(2):l[2]+t.slice(3),n||i){let r=t.endsWith(eR);t=t.replace(e$,""),n&&A.rel(e,t,n,r),i&&A.ael(e,t,i,r)}}},eA=/\s/,eI=e=>e?e.split(eA):[],eR="Capture",e$=RegExp(eR+"$"),eL=(e,t,n)=>{let i=11===t.$elm$.nodeType&&t.$elm$.host?t.$elm$.host:t.$elm$,r=e&&e.$attrs$||Y,o=t.$attrs$||Y;if(s.updatable)for(let e of eM(Object.keys(r)))e in o||eO(i,e,r[e],void 0,n,t.$flags$);for(let e of eM(Object.keys(o)))eO(i,e,r[e],o[e],n,t.$flags$)};function eM(e){return e.includes("ref")?[...e.filter(e=>"ref"!==e),"ref"]:e}var ej=!1,eD=!1,eN=!1,eF=!1,ez=(e,t,n,i)=>{var l;let c,d,u;let h=t.$children$[n],p=0;if(s.slotRelocation&&!ej&&(eN=!0,"slot"===h.$tag$&&(r&&i.classList.add(r+"-s"),h.$flags$|=h.$children$?2:1)),s.isDev&&h.$elm$&&g(`The JSX ${null!==h.$text$?`"${h.$text$}" text`:`"${h.$tag$}" element`} node should not be shared within the same renderer. The renderer caches element lookups in order to improve performance. However, a side effect from this is that the exact same JSX node should not be reused. For more information please see https://stenciljs.com/docs/templating-jsx#avoid-shared-jsx-nodes`),s.vdomText&&null!==h.$text$)c=h.$elm$=T.createTextNode(h.$text$);else if(s.slotRelocation&&1&h.$flags$)c=h.$elm$=s.isDebug||s.hydrateServerSide?e4(h):T.createTextNode("");else{s.svg&&!eF&&(eF="svg"===h.$tag$),c=h.$elm$=s.svg?T.createElementNS(eF?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!ej&&s.slotRelocation&&2&h.$flags$?"slot-fb":h.$tag$):T.createElement(!ej&&s.slotRelocation&&2&h.$flags$?"slot-fb":h.$tag$),s.svg&&eF&&"foreignObject"===h.$tag$&&(eF=!1),s.vdomAttribute&&eL(null,h,eF);let t=c.getRootNode(),n=!t.querySelector("body");if(!n&&s.scoped&&K(r)&&c["s-si"]!==r&&c.classList.add(c["s-si"]=r),s.scoped&&e5(c,i),h.$children$)for(p=0;p<h.$children$.length;++p)(d=ez(e,h,p,c))&&c.appendChild(d);s.svg&&("svg"===h.$tag$?eF=!1:"foreignObject"===c.tagName&&(eF=!0))}return c["s-hn"]=a,s.slotRelocation&&3&h.$flags$&&(c["s-sr"]=!0,c["s-cr"]=o,c["s-sn"]=h.$name$||"",c["s-rf"]=null==(l=h.$attrs$)?void 0:l.ref,(u=e&&e.$children$&&e.$children$[n])&&u.$tag$===h.$tag$&&e.$elm$&&(s.experimentalSlotFixes?eB(e.$elm$):eH(e.$elm$,!1))),c},eB=e=>{A.$flags$|=1;let t=e.closest(a.toLowerCase());if(null!=t){let n=Array.from(t.childNodes).find(e=>e["s-cr"]),i=Array.from(e.childNodes);for(let e of n?i.reverse():i)null!=e["s-sh"]&&(e1(t,e,null!=n?n:null),e["s-sh"]=void 0,eN=!0)}A.$flags$&=-2},eH=(e,t)=>{A.$flags$|=1;let n=Array.from(e.childNodes);if(e["s-sr"]&&s.experimentalSlotFixes){let t=e;for(;t=t.nextSibling;)t&&t["s-sn"]===e["s-sn"]&&t["s-sh"]===a&&n.push(t)}for(let e=n.length-1;e>=0;e--){let i=n[e];i["s-hn"]!==a&&i["s-ol"]&&(e1(eX(i),i,eG(i)),i["s-ol"].remove(),i["s-ol"]=void 0,i["s-sh"]=void 0,eN=!0),t&&eH(i,t)}A.$flags$&=-2},eU=(e,t,n,i,r,o)=>{let l,c=s.slotRelocation&&e["s-cr"]&&e["s-cr"].parentNode||e;for(s.shadowDom&&c.shadowRoot&&c.tagName===a&&(c=c.shadowRoot);r<=o;++r)i[r]&&(l=ez(null,n,r,e))&&(i[r].$elm$=l,e1(c,l,s.slotRelocation?eG(t):t))},eV=(e,t,n)=>{for(let i=t;i<=n;++i){let t=e[i];if(t){let e=t.$elm$;e0(t),e&&(s.slotRelocation&&(eD=!0,e["s-ol"]?e["s-ol"].remove():eH(e,!0)),e.remove())}}},eW=(e,t,n,i,r=!1)=>{let o,a,l=0,c=0,d=0,u=0,h=t.length-1,p=t[0],f=t[h],m=i.length-1,g=i[0],b=i[m];for(;l<=h&&c<=m;)if(null==p)p=t[++l];else if(null==f)f=t[--h];else if(null==g)g=i[++c];else if(null==b)b=i[--m];else if(eq(p,g,r))eY(p,g,r),p=t[++l],g=i[++c];else if(eq(f,b,r))eY(f,b,r),f=t[--h],b=i[--m];else if(eq(p,b,r))s.slotRelocation&&("slot"===p.$tag$||"slot"===b.$tag$)&&eH(p.$elm$.parentNode,!1),eY(p,b,r),e1(e,p.$elm$,f.$elm$.nextSibling),p=t[++l],b=i[--m];else if(eq(f,g,r))s.slotRelocation&&("slot"===p.$tag$||"slot"===b.$tag$)&&eH(f.$elm$.parentNode,!1),eY(f,g,r),e1(e,f.$elm$,p.$elm$),f=t[--h],g=i[++c];else{if(d=-1,s.vdomKey){for(u=l;u<=h;++u)if(t[u]&&null!==t[u].$key$&&t[u].$key$===g.$key$){d=u;break}}s.vdomKey&&d>=0?(a=t[d]).$tag$!==g.$tag$?o=ez(t&&t[c],n,d,e):(eY(a,g,r),t[d]=void 0,o=a.$elm$):o=ez(t&&t[c],n,c,e),g=i[++c],o&&(s.slotRelocation?e1(eX(p.$elm$),o,eG(p.$elm$)):e1(p.$elm$.parentNode,o,p.$elm$))}l>h?eU(e,null==i[m+1]?null:i[m+1].$elm$,n,i,c,m):s.updatable&&c>m&&eV(t,l,h)},eq=(e,t,n=!1)=>e.$tag$===t.$tag$&&(s.slotRelocation&&"slot"===e.$tag$?(!("$nodeId$"in e)||!n||8===e.$elm$.nodeType)&&e.$name$===t.$name$:!s.vdomKey||!!n||e.$key$===t.$key$),eG=e=>e&&e["s-ol"]||e,eX=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,eY=(e,t,n=!1)=>{let i;let r=t.$elm$=e.$elm$,o=e.$children$,a=t.$children$,l=t.$tag$,c=t.$text$;s.vdomText&&null!==c?s.vdomText&&s.slotRelocation&&(i=r["s-cr"])?i.parentNode.textContent=c:s.vdomText&&e.$text$!==c&&(r.data=c):(s.svg&&(eF="svg"===l||"foreignObject"!==l&&eF),(s.vdomAttribute||s.reflect)&&(s.slot&&"slot"===l&&!ej?s.experimentalSlotFixes&&e.$name$!==t.$name$&&(t.$elm$["s-sn"]=t.$name$||"",eB(t.$elm$.parentElement)):eL(e,t,eF)),s.updatable&&null!==o&&null!==a?eW(r,o,t,a,n):null!==a?(s.updatable&&s.vdomText&&null!==e.$text$&&(r.textContent=""),eU(r,null,t,a,0,a.length-1)):!n&&s.updatable&&null!==o&&eV(o,0,o.length-1),s.svg&&eF&&"svg"===l&&(eF=!1))},eK=e=>{let t=e.childNodes;for(let e of t)if(1===e.nodeType){if(e["s-sr"]){let n=e["s-sn"];for(let i of(e.hidden=!1,t))if(i!==e){if(i["s-hn"]!==e["s-hn"]||""!==n){if(1===i.nodeType&&(n===i.getAttribute("slot")||n===i["s-sn"])||3===i.nodeType&&n===i["s-sn"]){e.hidden=!0;break}}else if(1===i.nodeType||3===i.nodeType&&""!==i.textContent.trim()){e.hidden=!0;break}}}eK(e)}},eJ=[],eZ=e=>{let t,n,i;for(let r of e.childNodes){if(r["s-sr"]&&(t=r["s-cr"])&&t.parentNode){n=t.parentNode.childNodes;let e=r["s-sn"];for(i=n.length-1;i>=0;i--)if(!(t=n[i])["s-cn"]&&!t["s-nr"]&&t["s-hn"]!==r["s-hn"]&&(!s.experimentalSlotFixes||!t["s-sh"]||t["s-sh"]!==r["s-hn"])){if(eQ(t,e)){let n=eJ.find(e=>e.$nodeToRelocate$===t);eD=!0,t["s-sn"]=t["s-sn"]||e,n?(n.$nodeToRelocate$["s-sh"]=r["s-hn"],n.$slotRefNode$=r):(t["s-sh"]=r["s-hn"],eJ.push({$slotRefNode$:r,$nodeToRelocate$:t})),t["s-sr"]&&eJ.map(e=>{eQ(e.$nodeToRelocate$,t["s-sn"])&&(n=eJ.find(e=>e.$nodeToRelocate$===t))&&!e.$slotRefNode$&&(e.$slotRefNode$=n.$slotRefNode$)})}else eJ.some(e=>e.$nodeToRelocate$===t)||eJ.push({$nodeToRelocate$:t})}}1===r.nodeType&&eZ(r)}},eQ=(e,t)=>1===e.nodeType?null===e.getAttribute("slot")&&""===t||e.getAttribute("slot")===t:e["s-sn"]===t||""===t,e0=e=>{s.vdomRef&&(e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(e0))},e1=(e,t,n)=>{let i=null==e?void 0:e.insertBefore(t,n);return s.scoped&&e5(t,e),i},e2=e=>{let t=[];return e&&t.push(...e["s-scs"]||[],e["s-si"],e["s-sc"],...e2(e.parentElement)),t},e5=(e,t,n=!1)=>{var i;if(e&&t&&1===e.nodeType){let r=new Set(e2(t).filter(Boolean));if(r.size&&(null==(i=e.classList)||i.add(...e["s-scs"]=[...r]),e["s-ol"]||n))for(let t of Array.from(e.childNodes))e5(t,e,!0)}},e3=(e,t,n=!1)=>{var i,l,c,d,u;let h=e.$hostElement$,p=e.$cmpMeta$,f=e.$vnode$||es(null,null),m=ec(t)?t:ea(null,null,t);if(a=h.tagName,s.isDev&&Array.isArray(t)&&t.some(ec))throw Error(`The <Host> must be the single root component.
Looks like the render() function of "${a.toLowerCase()}" is returning an array that contains the <Host>.

The render() function should look like this instead:

render() {
  // Do not return an array
  return (
    <Host>{content}</Host>
  );
}
  `);if(s.reflect&&p.$attrsToReflect$&&(m.$attrs$=m.$attrs$||{},p.$attrsToReflect$.map(([e,t])=>m.$attrs$[t]=h[e])),n&&m.$attrs$)for(let e of Object.keys(m.$attrs$))h.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(m.$attrs$[e]=h[e]);if(m.$tag$=null,m.$flags$|=4,e.$vnode$=m,m.$elm$=f.$elm$=s.shadowDom&&h.shadowRoot||h,(s.scoped||s.shadowDom)&&(r=h["s-sc"]),ej=R&&(1&p.$flags$)!=0,s.slotRelocation&&(o=h["s-cr"],eD=!1),eY(f,m,n),s.slotRelocation){if(A.$flags$|=1,eN){for(let e of(eZ(m.$elm$),eJ)){let t=e.$nodeToRelocate$;if(!t["s-ol"]){let e=s.isDebug||s.hydrateServerSide?e6(t):T.createTextNode("");e["s-nr"]=t,e1(t.parentNode,t["s-ol"]=e,t)}}for(let e of eJ){let t=e.$nodeToRelocate$,r=e.$slotRefNode$;if(r){let e=r.parentNode,n=r.nextSibling;if(!s.experimentalSlotFixes||n&&1===n.nodeType){let r=null==(i=t["s-ol"])?void 0:i.previousSibling;for(;r;){let i=null!=(l=r["s-nr"])?l:null;if(i&&i["s-sn"]===t["s-sn"]&&e===i.parentNode){for(i=i.nextSibling;i===t||(null==i?void 0:i["s-sr"]);)i=null==i?void 0:i.nextSibling;if(!i||!i["s-nr"]){n=i;break}}r=r.previousSibling}}(n||e===t.parentNode)&&t.nextSibling===n||t===n||(s.experimentalSlotFixes||t["s-hn"]||!t["s-ol"]||(t["s-hn"]=t["s-ol"].parentNode.nodeName),e1(e,t,n),1!==t.nodeType||(t.hidden=null!=(c=t["s-ih"])&&c)),t&&"function"==typeof r["s-rf"]&&r["s-rf"](t)}else 1===t.nodeType&&(n&&(t["s-ih"]=null!=(d=t.hidden)&&d),t.hidden=!0)}}eD&&eK(m.$elm$),A.$flags$&=-2,eJ.length=0}if(s.experimentalScopedSlotChanges&&2&p.$flags$)for(let e of m.$elm$.childNodes)e["s-hn"]===a||e["s-sh"]||(n&&null==e["s-ih"]&&(e["s-ih"]=null!=(u=e.hidden)&&u),e.hidden=!0);o=void 0},e4=e=>T.createComment(`<slot${e.$name$?' name="'+e.$name$+'"':""}> (host=${a.toLowerCase()})`),e6=e=>T.createComment("org-location for "+(e.localName?`<${e.localName}> (host=${e["s-hn"]})`:`[${e.textContent}]`)),e8=(e,t)=>{s.asyncLoading&&t&&!e.$onRenderResolve$&&t["s-p"]&&t["s-p"].push(new Promise(t=>e.$onRenderResolve$=t))},e9=(e,t)=>{if(s.taskQueue&&s.updatable&&(e.$flags$|=16),s.asyncLoading&&4&e.$flags$){e.$flags$|=512;return}e8(e,e.$ancestorComponent$);let n=()=>e7(e,t);return s.taskQueue?G(n):n()},e7=(e,t)=>{let n;let i=e.$hostElement$,r=er("scheduleUpdate",e.$cmpMeta$.$tagName$),o=s.lazyLoad?e.$lazyInstance$:i;if(!o)throw Error(`Can't render component <${i.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);return t?(s.lazyLoad&&s.hostListener&&(e.$flags$|=256,e.$queuedListeners$&&(e.$queuedListeners$.map(([e,t])=>ts(o,e,t)),e.$queuedListeners$=void 0)),tl(i,"componentWillLoad"),s.cmpWillLoad&&(n=ts(o,"componentWillLoad"))):(tl(i,"componentWillUpdate"),s.cmpWillUpdate&&(n=ts(o,"componentWillUpdate"))),tl(i,"componentWillRender"),s.cmpWillRender&&(n=te(n,()=>ts(o,"componentWillRender"))),r(),te(n,()=>tn(e,o,t))},te=(e,t)=>tt(e)?e.then(t).catch(e=>{console.error(e),t()}):t(),tt=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,tn=async(e,t,n)=>{var i;let r=e.$hostElement$,o=er("update",e.$cmpMeta$.$tagName$),a=r["s-rc"];s.style&&n&&eP(e);let l=er("render",e.$cmpMeta$.$tagName$);if(s.isDev&&(e.$flags$|=1024),s.hydrateServerSide?await ti(e,t,r,n):ti(e,t,r,n),s.isDev&&(e.$renderCount$=void 0===e.$renderCount$?1:e.$renderCount$+1,e.$flags$&=-1025),s.hydrateServerSide)try{td(r),n&&(1&e.$cmpMeta$.$flags$?r["s-en"]="":2&e.$cmpMeta$.$flags$&&(r["s-en"]="c"))}catch(e){f(e,r)}if(s.asyncLoading&&a&&(a.map(e=>e()),r["s-rc"]=void 0),l(),o(),s.asyncLoading){let t=null!=(i=r["s-p"])?i:[],n=()=>tr(e);0===t.length?n():(Promise.all(t).then(n),e.$flags$|=4,t.length=0)}else tr(e)},ti=(e,t,n,i)=>{let r=!!s.allRenderFn,o=!!s.lazyLoad,a=!!s.taskQueue,l=!!s.updatable;try{if(t=r?t.render():t.render&&t.render(),l&&a&&(e.$flags$&=-17),(l||o)&&(e.$flags$|=2),s.hasRenderFn||s.reflect){if(s.vdomRender||s.reflect){if(s.hydrateServerSide)return Promise.resolve(t).then(t=>e3(e,t,i));e3(e,t,i)}else{let i=n.shadowRoot;1&e.$cmpMeta$.$flags$?i.textContent=t:n.textContent=t}}}catch(t){f(t,e.$hostElement$)}return null},tr=e=>{let t=e.$cmpMeta$.$tagName$,n=e.$hostElement$,i=er("postUpdate",t),r=s.lazyLoad?e.$lazyInstance$:n,o=e.$ancestorComponent$;s.cmpDidRender&&(s.isDev&&(e.$flags$|=1024),ts(r,"componentDidRender"),s.isDev&&(e.$flags$&=-1025)),tl(n,"componentDidRender"),64&e.$flags$?(s.cmpDidUpdate&&(s.isDev&&(e.$flags$|=1024),ts(r,"componentDidUpdate"),s.isDev&&(e.$flags$&=-1025)),tl(n,"componentDidUpdate"),i()):(e.$flags$|=64,s.asyncLoading&&s.cssAnnotations&&tc(n),s.cmpDidLoad&&(s.isDev&&(e.$flags$|=2048),ts(r,"componentDidLoad"),s.isDev&&(e.$flags$&=-2049)),tl(n,"componentDidLoad"),i(),s.asyncLoading&&(e.$onReadyResolve$(n),o||ta(t))),s.method&&s.lazyLoad&&e.$onInstanceResolve$(n),s.asyncLoading&&(e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),512&e.$flags$&&W(()=>e9(e,!1)),e.$flags$&=-517)},to=e=>{if(s.updatable&&(c.isBrowser||c.isTesting)){let t=u(e),n=t.$hostElement$.isConnected;return n&&(18&t.$flags$)==2&&e9(t,!1),n}return!1},ta=e=>{s.cssAnnotations&&tc(T.documentElement),s.asyncQueue&&(A.$flags$|=2),W(()=>e_(P,"appload",{detail:{namespace:"app"}})),s.profile&&performance.measure&&performance.measure(`[Stencil] app initial load (by ${e})`,"st:app:start")},ts=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){f(e)}},tl=(e,t)=>{s.lifecycleDOMEvents&&e_(e,"stencil_"+t,{bubbles:!0,composed:!0,detail:{namespace:"app"}})},tc=e=>{var t,n;return s.hydratedClass?e.classList.add(null!=(t=s.hydratedSelectorName)?t:"hydrated"):s.hydratedAttribute?e.setAttribute(null!=(n=s.hydratedSelectorName)?n:"hydrated",""):void 0},td=e=>{let t=e.children;if(null!=t)for(let e=0,n=t.length;e<n;e++){let n=t[e];"function"==typeof n.connectedCallback&&n.connectedCallback(),td(n)}},tu=(e,t)=>u(e).$instanceValues$.get(t),th=(e,t,n,i)=>{let r=u(e);if(s.lazyLoad&&!r)throw Error(`Couldn't find host element for "${i.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);let o=s.lazyLoad?r.$hostElement$:e,a=r.$instanceValues$.get(t),l=r.$flags$,c=s.lazyLoad?r.$lazyInstance$:o;n=ex(n,i.$members$[t][0]);let d=Number.isNaN(a)&&Number.isNaN(n),h=n!==a&&!d;if((!s.lazyLoad||!(8&l)||void 0===a)&&h&&(r.$instanceValues$.set(t,n),s.isDev&&(1024&r.$flags$?b(`The state/prop "${t}" changed during rendering. This can potentially lead to infinite-loops and other bugs.`,"\nElement",o,"\nNew value",n,"\nOld value",a):2048&r.$flags$&&b(`The state/prop "${t}" changed during "componentDidLoad()", this triggers extra re-renders, try to setup on "componentWillLoad()"`,"\nElement",o,"\nNew value",n,"\nOld value",a)),!s.lazyLoad||c)){if(s.watchCallback&&i.$watchers$&&128&l){let e=i.$watchers$[t];e&&e.map(e=>{try{c[e](n,a,t)}catch(e){f(e,o)}})}if(s.updatable&&(18&l)==2){if(s.cmpShouldUpdate&&c.componentShouldUpdate&&!1===c.componentShouldUpdate(n,a,t))return;e9(r,!1)}}},tp=(e,t,n)=>{var i,r;let o=e.prototype;if(s.formAssociated&&64&t.$flags$&&1&n&&C.forEach(e=>Object.defineProperty(o,e,{value(...t){let n=u(this),i=s.lazyLoad?n.$hostElement$:this,r=s.lazyLoad?n.$lazyInstance$:i;if(r){let n=r[e];"function"==typeof n&&n.call(r,...t)}else n.$onReadyPromise$.then(n=>{let i=n[e];"function"==typeof i&&i.call(n,...t)})}})),s.member&&t.$members$||s.watchCallback&&(t.$watchers$||e.watchers)){s.watchCallback&&e.watchers&&!t.$watchers$&&(t.$watchers$=e.watchers);let a=Object.entries(null!=(i=t.$members$)?i:{});if(a.map(([e,[i]])=>{(s.prop||s.state)&&(31&i||(!s.lazyLoad||2&n)&&32&i)?Object.defineProperty(o,e,{get(){return tu(this,e)},set(r){if(s.isDev){let r=u(this);(1&n)==0&&0===(r&&8&r.$flags$)&&(31&i)!=0&&(1024&i)==0&&b(`@Prop() "${e}" on <${t.$tagName$}> is immutable but was modified from within the component.
More information: https://stenciljs.com/docs/properties#prop-mutability`)}th(this,e,r,t)},configurable:!0,enumerable:!0}):s.lazyLoad&&s.method&&1&n&&64&i&&Object.defineProperty(o,e,{value(...t){var n;let i=u(this);return null==(n=null==i?void 0:i.$onInstancePromise$)?void 0:n.then(()=>{var n;return null==(n=i.$lazyInstance$)?void 0:n[e](...t)})}})}),s.observeAttribute&&(!s.lazyLoad||1&n)){let n=new Map;o.attributeChangedCallback=function(e,i,r){A.jmp(()=>{var a;let l=n.get(e);if(this.hasOwnProperty(l))r=this[l],delete this[l];else if(o.hasOwnProperty(l)&&"number"==typeof this[l]&&this[l]==r)return;else if(null==l){let n=u(this),o=null==n?void 0:n.$flags$;if(o&&!(8&o)&&128&o&&r!==i){let o=s.lazyLoad?n.$hostElement$:this,l=s.lazyLoad?n.$lazyInstance$:o,c=null==(a=t.$watchers$)?void 0:a[e];null==c||c.forEach(t=>{null!=l[t]&&l[t].call(l,r,i,e)})}return}this[l]=(null!==r||"boolean"!=typeof this[l])&&r})},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(r=t.$watchers$)?r:{}),...a.filter(([e,t])=>15&t[0]).map(([e,i])=>{var r;let o=i[1]||e;return n.set(o,e),s.reflect&&512&i[0]&&(null==(r=t.$attrsToReflect$)||r.push([e,o])),o})]))}}return e},tf=async(e,t,i,r)=>{let o;if((32&t.$flags$)==0){t.$flags$|=32;let a=i.$lazyBundleId$;if((s.lazyLoad||s.hydrateClientSide)&&a){let e=y(i,t,r);if(e&&"then"in e){let n=eo(`st:load:${i.$tagName$}:${t.$modeName$}`,`[Stencil] Load module for <${i.$tagName$}>`);o=await e,n()}else o=e;if(!o)throw Error(`Constructor for "${i.$tagName$}#${t.$modeName$}" was not found`);s.member&&!o.isProxied&&(s.watchCallback&&(i.$watchers$=o.watchers),tp(o,i,2),o.isProxied=!0);let n=er("createInstance",i.$tagName$);s.member&&(t.$flags$|=8);try{new o(t)}catch(e){f(e)}s.member&&(t.$flags$&=-9),s.watchCallback&&(t.$flags$|=128),n(),tm(t.$lazyInstance$)}else{o=e.constructor;let n=e.localName;customElements.whenDefined(n).then(()=>t.$flags$|=128)}if(s.style&&o&&o.style){let r;"string"==typeof o.style?r=o.style:s.mode&&"string"!=typeof o.style&&(t.$modeName$=eb(e),t.$modeName$&&(r=o.style[t.$modeName$]),s.hydrateServerSide&&t.$modeName$&&e.setAttribute("s-mode",t.$modeName$));let a=eT(i,t.$modeName$);if(!x.has(a)){let e=er("registerStyles",i.$tagName$);!s.hydrateServerSide&&s.shadowDom&&s.shadowDomShim&&8&i.$flags$&&(r=await n.e(1653).then(n.bind(n,31653)).then(e=>e.scopeCss(r,a))),eS(a,r,!!(1&i.$flags$)),e()}}}let a=t.$ancestorComponent$,l=()=>e9(t,!0);s.asyncLoading&&a&&a["s-rc"]?a["s-rc"].push(l):l()},tm=e=>{s.lazyLoad&&s.connectedCallback&&ts(e,"connectedCallback")},tg=e=>{if((1&A.$flags$)==0){let t=u(e),n=t.$cmpMeta$,i=er("connectedCallback",n.$tagName$);if(s.hostListenerTargetParent&&tj(e,t,n.$listeners$,!0),1&t.$flags$)tj(e,t,n.$listeners$,!1),(null==t?void 0:t.$lazyInstance$)?tm(t.$lazyInstance$):(null==t?void 0:t.$onReadyPromise$)&&t.$onReadyPromise$.then(()=>tm(t.$lazyInstance$));else{let i;if(t.$flags$|=1,s.hydrateClientSide&&(i=e.getAttribute(k))){if(s.shadowDom&&R&&1&n.$flags$){let t=s.mode?eC(e.shadowRoot,n,e.getAttribute("s-mode")):eC(e.shadowRoot,n);e.classList.remove(t+"-h",t+"-s")}ef(e,n.$tagName$,i,t)}if(s.slotRelocation&&!i&&(s.hydrateServerSide||(s.slot||s.shadowDom)&&12&n.$flags$)&&tb(e),s.asyncLoading){let n=e;for(;n=n.parentNode||n.host;)if(s.hydrateClientSide&&1===n.nodeType&&n.hasAttribute("s-id")&&n["s-p"]||n["s-p"]){e8(t,t.$ancestorComponent$=n);break}}s.prop&&!s.hydrateServerSide&&n.$members$&&Object.entries(n.$members$).map(([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){let n=e[t];delete e[t],e[t]=n}}),s.initializeNextTick?W(()=>tf(e,t,n)):tf(e,t,n)}i()}},tb=e=>{let t=e["s-cr"]=T.createComment(s.isDebug?`content-ref (host=${e.localName})`:"");t["s-cn"]=!0,e1(e,t,e.firstChild)},tv=e=>{s.lazyLoad&&s.disconnectedCallback&&ts(e,"disconnectedCallback"),s.cmpDidUnload&&ts(e,"componentDidUnload")},ty=async e=>{if((1&A.$flags$)==0){let t=u(e);s.hostListener&&t.$rmListeners$&&(t.$rmListeners$.map(e=>e()),t.$rmListeners$=void 0),s.lazyLoad?(null==t?void 0:t.$lazyInstance$)?tv(t.$lazyInstance$):(null==t?void 0:t.$onReadyPromise$)&&t.$onReadyPromise$.then(()=>tv(t.$lazyInstance$)):tv(e)}},tx=(e,t)=>{tw(e),tk(e),tS(e),tE(e),tT(e),tC(e),tP(e),tO(e),tA(e,t),t_(e)},tw=e=>{let t=e.cloneNode;e.cloneNode=function(e){let n=this,i=!!s.shadowDom&&n.shadowRoot&&R,r=t.call(n,!!i&&e);if(s.slot&&!i&&e){let e,t,i=0,o=["s-id","s-cr","s-lr","s-rc","s-sc","s-p","s-cn","s-sr","s-sn","s-hn","s-ol","s-nr","s-si","s-rf","s-scs"];for(;i<n.childNodes.length;i++)e=n.childNodes[i]["s-nr"],t=o.every(e=>!n.childNodes[i][e]),e&&(s.appendChildSlotFix&&r.__appendChild?r.__appendChild(e.cloneNode(!0)):r.appendChild(e.cloneNode(!0))),t&&r.appendChild(n.childNodes[i].cloneNode(!0))}return r}},tk=e=>{e.__appendChild=e.appendChild,e.appendChild=function(e){let t=e["s-sn"]=tR(e),n=t$(this.childNodes,t,this.tagName);if(n){let i=tL(n,t),r=i[i.length-1],o=e1(r.parentNode,e,r.nextSibling);return eK(this),o}return this.__appendChild(e)}},t_=e=>{e.__removeChild=e.removeChild,e.removeChild=function(e){if(e&&void 0!==e["s-sn"]){let t=t$(this.childNodes,e["s-sn"],this.tagName);if(t){let n=tL(t,e["s-sn"]),i=n.find(t=>t===e);if(i){i.remove(),eK(this);return}}}return this.__removeChild(e)}},tE=e=>{let t=e.prepend;e.prepend=function(...e){e.forEach(e=>{"string"==typeof e&&(e=this.ownerDocument.createTextNode(e));let n=e["s-sn"]=tR(e),i=t$(this.childNodes,n,this.tagName);if(i){let t=document.createTextNode("");t["s-nr"]=e,i["s-cr"].parentNode.__appendChild(t),e["s-ol"]=t;let r=tL(i,n),o=r[0];return e1(o.parentNode,e,o.nextSibling)}return 1===e.nodeType&&e.getAttribute("slot")&&(e.hidden=!0),t.call(this,e)})}},tS=e=>{e.append=function(...e){e.forEach(e=>{"string"==typeof e&&(e=this.ownerDocument.createTextNode(e)),this.appendChild(e)})}},tC=e=>{let t=e.insertAdjacentHTML;e.insertAdjacentHTML=function(e,n){let i;if("afterbegin"!==e&&"beforeend"!==e)return t.call(this,e,n);let r=this.ownerDocument.createElement("_");if(r.innerHTML=n,"afterbegin"===e)for(;i=r.firstChild;)this.prepend(i);else if("beforeend"===e)for(;i=r.firstChild;)this.append(i)}},tP=e=>{e.insertAdjacentText=function(e,t){this.insertAdjacentHTML(e,t)}},tT=e=>{let t=e.insertAdjacentElement;e.insertAdjacentElement=function(e,n){return"afterbegin"!==e&&"beforeend"!==e?t.call(this,e,n):("afterbegin"===e?this.prepend(n):"beforeend"===e&&this.append(n),n)}},tO=e=>{let t=Object.getOwnPropertyDescriptor(Node.prototype,"textContent");Object.defineProperty(e,"__textContent",t),s.experimentalScopedSlotChanges?Object.defineProperty(e,"textContent",{get(){let e=tI(this.childNodes),t=e.map(e=>{var t,n;let i=[],r=e.nextSibling;for(;r&&r["s-sn"]===e["s-sn"];)(3===r.nodeType||1===r.nodeType)&&i.push(null!=(n=null==(t=r.textContent)?void 0:t.trim())?n:""),r=r.nextSibling;return i.filter(e=>""!==e).join(" ")}).filter(e=>""!==e).join(" ");return" "+t+" "},set(e){let t=tI(this.childNodes);t.forEach(t=>{let n=t.nextSibling;for(;n&&n["s-sn"]===t["s-sn"];){let e=n;n=n.nextSibling,e.remove()}if(""===t["s-sn"]){let n=this.ownerDocument.createTextNode(e);n["s-sn"]="",e1(t.parentElement,n,t.nextSibling)}else t.remove()})}}):Object.defineProperty(e,"textContent",{get(){var e;let t=t$(this.childNodes,"",this.tagName);return(null==(e=null==t?void 0:t.nextSibling)?void 0:e.nodeType)===3?t.nextSibling.textContent:t?t.textContent:this.__textContent},set(e){var t;let n=t$(this.childNodes,"",this.tagName);if((null==(t=null==n?void 0:n.nextSibling)?void 0:t.nodeType)===3)n.nextSibling.textContent=e;else if(n)n.textContent=e;else{this.__textContent=e;let t=this["s-cr"];t&&e1(this,t,this.firstChild)}}})},tA=(e,t)=>{class n extends Array{item(e){return this[e]}}if(8&t.$flags$){let t=e.__lookupGetter__("childNodes");Object.defineProperty(e,"children",{get(){return this.childNodes.map(e=>1===e.nodeType)}}),Object.defineProperty(e,"childElementCount",{get:()=>e.children.length}),Object.defineProperty(e,"childNodes",{get(){let e=t.call(this);if((1&A.$flags$)==0&&2&u(this).$flags$){let t=new n;for(let n=0;n<e.length;n++){let i=e[n]["s-nr"];i&&t.push(i)}return t}return n.from(e)}})}},tI=e=>{let t=[];for(let n of Array.from(e))n["s-sr"]&&t.push(n),t.push(...tI(n.childNodes));return t},tR=e=>e["s-sn"]||1===e.nodeType&&e.getAttribute("slot")||"",t$=(e,t,n)=>{let i,r=0;for(;r<e.length;r++)if((i=e[r])["s-sr"]&&i["s-sn"]===t&&i["s-hn"]===n||(i=t$(i.childNodes,t,n)))return i;return null},tL=(e,t)=>{let n=[e];for(;(e=e.nextSibling)&&e["s-sn"]===t;)n.push(e);return n},tM=(e,t)=>{let n={$flags$:t[0],$tagName$:t[1]};s.member&&(n.$members$=t[2]),s.hostListener&&(n.$listeners$=t[3]),s.watchCallback&&(n.$watchers$=e.$watchers$),s.reflect&&(n.$attrsToReflect$=[]),s.shadowDom&&!R&&1&n.$flags$&&(n.$flags$|=8),s.experimentalSlotFixes?s.scoped&&2&n.$flags$&&tx(e.prototype,n):(s.slotChildNodesFix&&tA(e.prototype,n),s.cloneNodeFix&&tw(e.prototype),s.appendChildSlotFix&&tk(e.prototype),s.scopedSlotTextContentFix&&2&n.$flags$&&tO(e.prototype));let i=e.prototype.connectedCallback,r=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__registerHost(){h(this,n)},connectedCallback(){let e=u(this);tj(this,e,n.$listeners$,!1),tg(this),s.connectedCallback&&i&&i.call(this)},disconnectedCallback(){ty(this),s.disconnectedCallback&&r&&r.call(this)},__attachShadow(){if(R){if(this.shadowRoot){if("open"!==this.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${n.$tagName$}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else s.shadowDelegatesFocus?this.attachShadow({mode:"open",delegatesFocus:!!(16&n.$flags$)}):this.attachShadow({mode:"open"})}else this.shadowRoot=this}}),e.is=n.$tagName$,tp(e,n,3)},tj=(e,t,n,i)=>{s.hostListener&&n&&(s.hostListenerTargetParent&&(n=i?n.filter(([e])=>32&e):n.filter(([e])=>!(32&e))),n.map(([n,i,r])=>{let o=s.hostListenerTarget?tN(e,n):e,a=tD(t,r),l=tF(n);A.ael(o,i,a,l),(t.$rmListeners$=t.$rmListeners$||[]).push(()=>A.rel(o,i,a,l))}))},tD=(e,t)=>n=>{var i;try{s.lazyLoad?256&e.$flags$?null==(i=e.$lazyInstance$)||i[t](n):(e.$queuedListeners$=e.$queuedListeners$||[]).push([t,n]):e.$hostElement$[t](n)}catch(e){f(e)}},tN=(e,t)=>s.hostListenerTargetDocument&&4&t?T:s.hostListenerTargetWindow&&8&t?P:s.hostListenerTargetBody&&16&t?T.body:s.hostListenerTargetParent&&32&t&&e.parentElement?e.parentElement:e,tF=e=>$?{passive:(1&e)!=0,capture:(2&e)!=0}:(2&e)!=0},37725:function(e,t,n){"use strict";function i(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError("attempted to use private field on non-instance");return e}n.r(t),n.d(t,{_:function(){return i},_class_private_field_loose_base:function(){return i}})},37284:function(e,t,n){"use strict";n.r(t),n.d(t,{_:function(){return r},_class_private_field_loose_key:function(){return r}});var i=0;function r(e){return"__private_"+i+++"_"+e}},87675:function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}n.r(t),n.d(t,{_:function(){return i},_interop_require_default:function(){return i}})},28169:function(e,t,n){"use strict";function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(i=function(e){return e?n:t})(e)}function r(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=i(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=o?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}n.r(t),n.d(t,{_:function(){return r},_interop_require_wildcard:function(){return r}})},57972:function(e,t,n){"use strict";n.d(t,{j:function(){return o}});var i=n(991),r=n(32730),o=new class extends i.l{#_;#E;#S;constructor(){super(),this.#S=e=>{if(!r.sk&&window.addEventListener){let t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#E||this.setEventListener(this.#S)}onUnsubscribe(){this.hasListeners()||(this.#E?.(),this.#E=void 0)}setEventListener(e){this.#S=e,this.#E?.(),this.#E=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){let t=this.#_!==e;t&&(this.#_=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return"boolean"==typeof this.#_?this.#_:globalThis.document?.visibilityState!=="hidden"}}},67992:function(e,t,n){"use strict";n.d(t,{R:function(){return s},m:function(){return a}});var i=n(58813),r=n(88256),o=n(90945),a=class extends r.F{#C;#P;#T;constructor(e){super(),this.mutationId=e.mutationId,this.#P=e.mutationCache,this.#C=[],this.state=e.state||s(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#C.includes(e)||(this.#C.push(e),this.clearGcTimeout(),this.#P.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#C=this.#C.filter(t=>t!==e),this.scheduleGc(),this.#P.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#C.length||("pending"===this.state.status?this.scheduleGc():this.#P.remove(this))}continue(){return this.#T?.continue()??this.execute(this.state.variables)}async execute(e){this.#T=(0,o.Mz)({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(Error("No mutationFn found")),onFail:(e,t)=>{this.#O({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#O({type:"pause"})},onContinue:()=>{this.#O({type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#P.canRun(this)});let t="pending"===this.state.status,n=!this.#T.canStart();try{if(!t){this.#O({type:"pending",variables:e,isPaused:n}),await this.#P.config.onMutate?.(e,this);let t=await this.options.onMutate?.(e);t!==this.state.context&&this.#O({type:"pending",context:t,variables:e,isPaused:n})}let i=await this.#T.start();return await this.#P.config.onSuccess?.(i,e,this.state.context,this),await this.options.onSuccess?.(i,e,this.state.context),await this.#P.config.onSettled?.(i,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(i,null,e,this.state.context),this.#O({type:"success",data:i}),i}catch(t){try{throw await this.#P.config.onError?.(t,e,this.state.context,this),await this.options.onError?.(t,e,this.state.context),await this.#P.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,t,e,this.state.context),t}finally{this.#O({type:"error",error:t})}}finally{this.#P.runNext(this)}}#O(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}})(this.state),i.V.batch(()=>{this.#C.forEach(t=>{t.onMutationUpdate(e)}),this.#P.notify({mutation:this,type:"updated",action:e})})}};function s(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}},49911:function(e,t,n){"use strict";n.d(t,{X:function(){return MutationObserver}});var i=n(67992),r=n(58813),o=n(991),a=n(32730),MutationObserver=class extends o.l{#e;#r=void 0;#A;#I;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#R()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#e.defaultMutationOptions(e),(0,a.VS)(this.options,t)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#A,observer:this}),t?.mutationKey&&this.options.mutationKey&&(0,a.Ym)(t.mutationKey)!==(0,a.Ym)(this.options.mutationKey)?this.reset():this.#A?.state.status==="pending"&&this.#A.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#A?.removeObserver(this)}onMutationUpdate(e){this.#R(),this.#k(e)}getCurrentResult(){return this.#r}reset(){this.#A?.removeObserver(this),this.#A=void 0,this.#R(),this.#k()}mutate(e,t){return this.#I=t,this.#A?.removeObserver(this),this.#A=this.#e.getMutationCache().build(this.#e,this.options),this.#A.addObserver(this),this.#A.execute(e)}#R(){let e=this.#A?.state??(0,i.R)();this.#r={...e,isPending:"pending"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset}}#k(e){r.V.batch(()=>{if(this.#I&&this.hasListeners()){let t=this.#r.variables,n=this.#r.context;e?.type==="success"?(this.#I.onSuccess?.(e.data,t,n),this.#I.onSettled?.(e.data,null,t,n)):e?.type==="error"&&(this.#I.onError?.(e.error,t,n),this.#I.onSettled?.(void 0,e.error,t,n))}this.listeners.forEach(e=>{e(this.#r)})})}}},58813:function(e,t,n){"use strict";n.d(t,{V:function(){return i}});var i=function(){let e=[],t=0,n=e=>{e()},i=e=>{e()},r=e=>setTimeout(e,0),o=i=>{t?e.push(i):r(()=>{n(i)})},a=()=>{let t=e;e=[],t.length&&r(()=>{i(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{--t||a()}return n},batchCalls:e=>(...t)=>{o(()=>{e(...t)})},schedule:o,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{i=e},setScheduler:e=>{r=e}}}()},69286:function(e,t,n){"use strict";n.d(t,{N:function(){return o}});var i=n(991),r=n(32730),o=new class extends i.l{#$=!0;#E;#S;constructor(){super(),this.#S=e=>{if(!r.sk&&window.addEventListener){let t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#E||this.setEventListener(this.#S)}onUnsubscribe(){this.hasListeners()||(this.#E?.(),this.#E=void 0)}setEventListener(e){this.#S=e,this.#E?.(),this.#E=e(this.setOnline.bind(this))}setOnline(e){let t=this.#$!==e;t&&(this.#$=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#$}}},58969:function(e,t,n){"use strict";n.d(t,{A:function(){return s},z:function(){return l}});var i=n(32730),r=n(58813),o=n(90945),a=n(88256),s=class extends a.F{#L;#M;#j;#T;#D;#N;constructor(e){super(),this.#N=!1,this.#D=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#j=e.cache,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#L=e.state||function(e){let t="function"==typeof e.initialData?e.initialData():e.initialData,n=void 0!==t,i=n?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}(this.options),this.state=this.#L,this.scheduleGc()}get meta(){return this.options.meta}setOptions(e){this.options={...this.#D,...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#j.remove(this)}setData(e,t){let n=(0,i.oE)(this.state.data,e,this.options);return this.#O({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#O({type:"setState",state:e,setStateOptions:t})}cancel(e){let t=this.#T?.promise;return this.#T?.cancel(e),t?t.then(i.ZT).catch(i.ZT):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#L)}isActive(){return this.observers.some(e=>!1!==e.options.enabled)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return!!this.state.isInvalidated||(this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):void 0===this.state.data)}isStaleByTime(e=0){return this.state.isInvalidated||void 0===this.state.data||!(0,i.Kp)(this.state.dataUpdatedAt,e)}onFocus(){let e=this.observers.find(e=>e.shouldFetchOnWindowFocus());e?.refetch({cancelRefetch:!1}),this.#T?.continue()}onOnline(){let e=this.observers.find(e=>e.shouldFetchOnReconnect());e?.refetch({cancelRefetch:!1}),this.#T?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#j.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#T&&(this.#N?this.#T.cancel({revert:!0}):this.#T.cancelRetry()),this.scheduleGc()),this.#j.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#O({type:"invalidate"})}fetch(e,t){if("idle"!==this.state.fetchStatus){if(void 0!==this.state.data&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#T)return this.#T.continueRetry(),this.#T.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let n=new AbortController,r={queryKey:this.queryKey,meta:this.meta},a=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#N=!0,n.signal)})};a(r);let s={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>this.options.queryFn&&this.options.queryFn!==i.CN?(this.#N=!1,this.options.persister)?this.options.persister(this.options.queryFn,r,this):this.options.queryFn(r):Promise.reject(Error(`Missing queryFn: '${this.options.queryHash}'`))};a(s),this.options.behavior?.onFetch(s,this),this.#M=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==s.fetchOptions?.meta)&&this.#O({type:"fetch",meta:s.fetchOptions?.meta});let l=e=>{(0,o.DV)(e)&&e.silent||this.#O({type:"error",error:e}),(0,o.DV)(e)||(this.#j.config.onError?.(e,this),this.#j.config.onSettled?.(this.state.data,e,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.#T=(0,o.Mz)({fn:s.fetchFn,abort:n.abort.bind(n),onSuccess:e=>{if(void 0===e){l(Error(`${this.queryHash} data is undefined`));return}this.setData(e),this.#j.config.onSuccess?.(e,this),this.#j.config.onSettled?.(e,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:l,onFail:(e,t)=>{this.#O({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#O({type:"pause"})},onContinue:()=>{this.#O({type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0}),this.#T.start()}#O(e){this.state=(t=>{switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,...l(t.data,this.options),fetchMeta:e.meta??null};case"success":return{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":let n=e.error;if((0,o.DV)(n)&&n.revert&&this.#M)return{...this.#M,fetchStatus:"idle"};return{...t,error:n,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:n,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),r.V.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#j.notify({query:this,type:"updated",action:e})})}};function l(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:(0,o.Kw)(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}},80980:function(e,t,n){"use strict";n.d(t,{S:function(){return m}});var i=n(32730),r=n(58969),o=n(58813),a=n(991),s=class extends a.l{constructor(e={}){super(),this.config=e,this.#F=new Map}#F;build(e,t,n){let o=t.queryKey,a=t.queryHash??(0,i.Rm)(o,t),s=this.get(a);return s||(s=new r.A({cache:this,queryKey:o,queryHash:a,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(o)}),this.add(s)),s}add(e){this.#F.has(e.queryHash)||(this.#F.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){let t=this.#F.get(e.queryHash);t&&(e.destroy(),t===e&&this.#F.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){o.V.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#F.get(e)}getAll(){return[...this.#F.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,i._x)(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>(0,i._x)(e,t)):t}notify(e){o.V.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){o.V.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){o.V.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},l=n(67992),c=class extends a.l{constructor(e={}){super(),this.config=e,this.#z=new Map,this.#B=Date.now()}#z;#B;build(e,t,n){let i=new l.m({mutationCache:this,mutationId:++this.#B,options:e.defaultMutationOptions(t),state:n});return this.add(i),i}add(e){let t=d(e),n=this.#z.get(t)??[];n.push(e),this.#z.set(t,n),this.notify({type:"added",mutation:e})}remove(e){let t=d(e);if(this.#z.has(t)){let n=this.#z.get(t)?.filter(t=>t!==e);n&&(0===n.length?this.#z.delete(t):this.#z.set(t,n))}this.notify({type:"removed",mutation:e})}canRun(e){let t=this.#z.get(d(e))?.find(e=>"pending"===e.state.status);return!t||t===e}runNext(e){let t=this.#z.get(d(e))?.find(t=>t!==e&&t.state.isPaused);return t?.continue()??Promise.resolve()}clear(){o.V.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}getAll(){return[...this.#z.values()].flat()}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,i.X7)(t,e))}findAll(e={}){return this.getAll().filter(t=>(0,i.X7)(e,t))}notify(e){o.V.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return o.V.batch(()=>Promise.all(e.map(e=>e.continue().catch(i.ZT))))}};function d(e){return e.options.scope?.id??String(e.mutationId)}var u=n(57972),h=n(69286);function p(e,{pages:t,pageParams:n}){let i=t.length-1;return e.getNextPageParam(t[i],t,n[i],n)}function f(e,{pages:t,pageParams:n}){return e.getPreviousPageParam?.(t[0],t,n[0],n)}var m=class{#H;#P;#D;#U;#V;#W;#q;#G;constructor(e={}){this.#H=e.queryCache||new s,this.#P=e.mutationCache||new c,this.#D=e.defaultOptions||{},this.#U=new Map,this.#V=new Map,this.#W=0}mount(){this.#W++,1===this.#W&&(this.#q=u.j.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#H.onFocus())}),this.#G=h.N.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#H.onOnline())}))}unmount(){this.#W--,0===this.#W&&(this.#q?.(),this.#q=void 0,this.#G?.(),this.#G=void 0)}isFetching(e){return this.#H.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#P.findAll({...e,status:"pending"}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#H.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.getQueryData(e.queryKey);if(void 0===t)return this.fetchQuery(e);{let n=this.defaultQueryOptions(e),i=this.#H.build(this,n);return e.revalidateIfStale&&i.isStaleByTime(n.staleTime)&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return this.#H.findAll(e).map(({queryKey:e,state:t})=>{let n=t.data;return[e,n]})}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),o=this.#H.get(r.queryHash),a=o?.state.data,s=(0,i.SE)(t,a);if(void 0!==s)return this.#H.build(this,r).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return o.V.batch(()=>this.#H.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#H.get(t.queryHash)?.state}removeQueries(e){let t=this.#H;o.V.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#H,i={type:"active",...e};return o.V.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries(i,t)))}cancelQueries(e={},t={}){let n={revert:!0,...t},r=o.V.batch(()=>this.#H.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(i.ZT).catch(i.ZT)}invalidateQueries(e={},t={}){return o.V.batch(()=>{if(this.#H.findAll(e).forEach(e=>{e.invalidate()}),"none"===e.refetchType)return Promise.resolve();let n={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(n,t)})}refetchQueries(e={},t){let n={...t,cancelRefetch:t?.cancelRefetch??!0},r=o.V.batch(()=>this.#H.findAll(e).filter(e=>!e.isDisabled()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(i.ZT)),"paused"===e.state.fetchStatus?Promise.resolve():t}));return Promise.all(r).then(i.ZT)}fetchQuery(e){let t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);let n=this.#H.build(this,t);return n.isStaleByTime(t.staleTime)?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(i.ZT).catch(i.ZT)}fetchInfiniteQuery(e){var t;return e.behavior=(t=e.pages,{onFetch:(e,n)=>{let r=async()=>{let n;let r=e.options,o=e.fetchOptions?.meta?.fetchMore?.direction,a=e.state.data?.pages||[],s=e.state.data?.pageParams||[],l=!1,c=t=>{Object.defineProperty(t,"signal",{enumerable:!0,get:()=>(e.signal.aborted?l=!0:e.signal.addEventListener("abort",()=>{l=!0}),e.signal)})},d=e.options.queryFn&&e.options.queryFn!==i.CN?e.options.queryFn:()=>Promise.reject(Error(`Missing queryFn: '${e.options.queryHash}'`)),u=async(t,n,r)=>{if(l)return Promise.reject();if(null==n&&t.pages.length)return Promise.resolve(t);let o={queryKey:e.queryKey,pageParam:n,direction:r?"backward":"forward",meta:e.options.meta};c(o);let a=await d(o),{maxPages:s}=e.options,u=r?i.Ht:i.VX;return{pages:u(t.pages,a,s),pageParams:u(t.pageParams,n,s)}};if(o&&a.length){let e="backward"===o,t=e?f:p,i={pages:a,pageParams:s},l=t(r,i);n=await u(i,l,e)}else{n=await u({pages:[],pageParams:[]},s[0]??r.initialPageParam);let e=t??a.length;for(let t=1;t<e;t++){let e=p(r,n);n=await u(n,e)}}return n};e.options.persister?e.fetchFn=()=>e.options.persister?.(r,{queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},n):e.fetchFn=r}}),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(i.ZT).catch(i.ZT)}resumePausedMutations(){return h.N.isOnline()?this.#P.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#H}getMutationCache(){return this.#P}getDefaultOptions(){return this.#D}setDefaultOptions(e){this.#D=e}setQueryDefaults(e,t){this.#U.set((0,i.Ym)(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#U.values()],n={};return t.forEach(t=>{(0,i.to)(e,t.queryKey)&&(n={...n,...t.defaultOptions})}),n}setMutationDefaults(e,t){this.#V.set((0,i.Ym)(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#V.values()],n={};return t.forEach(t=>{(0,i.to)(e,t.mutationKey)&&(n={...n,...t.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#D.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=(0,i.Rm)(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),!0!==t.enabled&&t.queryFn===i.CN&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#D.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#H.clear(),this.#P.clear()}}},88256:function(e,t,n){"use strict";n.d(t,{F:function(){return r}});var i=n(32730),r=class{#X;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),(0,i.PN)(this.gcTime)&&(this.#X=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(i.sk?1/0:3e5))}clearGcTimeout(){this.#X&&(clearTimeout(this.#X),this.#X=void 0)}}},90945:function(e,t,n){"use strict";n.d(t,{DV:function(){return c},Kw:function(){return s},Mz:function(){return d}});var i=n(57972),r=n(69286),o=n(32730);function a(e){return Math.min(1e3*2**e,3e4)}function s(e){return(e??"online")!=="online"||r.N.isOnline()}var l=class{constructor(e){this.revert=e?.revert,this.silent=e?.silent}};function c(e){return e instanceof l}function d(e){let t,n,c,d=!1,u=0,h=!1,p=new Promise((e,t)=>{n=e,c=t}),f=()=>i.j.isFocused()&&("always"===e.networkMode||r.N.isOnline())&&e.canRun(),m=()=>s(e.networkMode)&&e.canRun(),g=i=>{h||(h=!0,e.onSuccess?.(i),t?.(),n(i))},b=n=>{h||(h=!0,e.onError?.(n),t?.(),c(n))},v=()=>new Promise(n=>{t=e=>{(h||f())&&n(e)},e.onPause?.()}).then(()=>{t=void 0,h||e.onContinue?.()}),y=()=>{let t;if(!h){try{t=e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(g).catch(t=>{if(h)return;let n=e.retry??(o.sk?0:3),i=e.retryDelay??a,r="function"==typeof i?i(u,t):i,s=!0===n||"number"==typeof n&&u<n||"function"==typeof n&&n(u,t);if(d||!s){b(t);return}u++,e.onFail?.(u,t),(0,o._v)(r).then(()=>f()?void 0:v()).then(()=>{d?b(t):y()})})}};return{promise:p,cancel:t=>{h||(b(new l(t)),e.abort?.())},continue:()=>(t?.(),p),cancelRetry:()=>{d=!0},continueRetry:()=>{d=!1},canStart:m,start:()=>(m()?y():v().then(y),p)}}},991:function(e,t,n){"use strict";n.d(t,{l:function(){return i}});var i=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}},32730:function(e,t,n){"use strict";n.d(t,{CN:function(){return w},Ht:function(){return x},Kp:function(){return s},PN:function(){return a},Rm:function(){return d},SE:function(){return o},VS:function(){return p},VX:function(){return y},X7:function(){return c},Ym:function(){return u},ZT:function(){return r},_v:function(){return b},_x:function(){return l},oE:function(){return v},sk:function(){return i},to:function(){return h}});var i="undefined"==typeof window||"Deno"in globalThis;function r(){}function o(e,t){return"function"==typeof e?e(t):e}function a(e){return"number"==typeof e&&e>=0&&e!==1/0}function s(e,t){return Math.max(e+(t||0)-Date.now(),0)}function l(e,t){let{type:n="all",exact:i,fetchStatus:r,predicate:o,queryKey:a,stale:s}=e;if(a){if(i){if(t.queryHash!==d(a,t.options))return!1}else if(!h(t.queryKey,a))return!1}if("all"!==n){let e=t.isActive();if("active"===n&&!e||"inactive"===n&&e)return!1}return("boolean"!=typeof s||t.isStale()===s)&&(!r||r===t.state.fetchStatus)&&(!o||!!o(t))}function c(e,t){let{exact:n,status:i,predicate:r,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(u(t.options.mutationKey)!==u(o))return!1}else if(!h(t.options.mutationKey,o))return!1}return(!i||t.state.status===i)&&(!r||!!r(t))}function d(e,t){let n=t?.queryKeyHashFn||u;return n(e)}function u(e){return JSON.stringify(e,(e,t)=>m(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function h(e,t){return e===t||typeof e==typeof t&&!!e&&!!t&&"object"==typeof e&&"object"==typeof t&&!Object.keys(t).some(n=>!h(e[n],t[n]))}function p(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0}function f(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function m(e){if(!g(e))return!1;let t=e.constructor;if(void 0===t)return!0;let n=t.prototype;return!!(g(n)&&n.hasOwnProperty("isPrototypeOf"))&&Object.getPrototypeOf(e)===Object.prototype}function g(e){return"[object Object]"===Object.prototype.toString.call(e)}function b(e){return new Promise(t=>{setTimeout(t,e)})}function v(e,t,n){return"function"==typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?function e(t,n){if(t===n)return t;let i=f(t)&&f(n);if(i||m(t)&&m(n)){let r=i?t:Object.keys(t),o=r.length,a=i?n:Object.keys(n),s=a.length,l=i?[]:{},c=0;for(let o=0;o<s;o++){let s=i?o:a[o];(!i&&r.includes(s)||i)&&void 0===t[s]&&void 0===n[s]?(l[s]=void 0,c++):(l[s]=e(t[s],n[s]),l[s]===t[s]&&void 0!==t[s]&&c++)}return o===s&&c===o?t:l}return n}(e,t):t}function y(e,t,n=0){let i=[...e,t];return n&&i.length>n?i.slice(1):i}function x(e,t,n=0){let i=[t,...e];return n&&i.length>n?i.slice(0,-1):i}var w=Symbol()},65407:function(e,t,n){"use strict";n.d(t,{IZ:function(){return h}});var i=n(31012);let{Axios:r,AxiosError:o,CanceledError:a,isCancel:s,CancelToken:l,VERSION:c,all:d,Cancel:u,isAxiosError:h,spread:p,toFormData:f,AxiosHeaders:m,HttpStatusCode:g,formToJSON:b,getAdapter:v,mergeConfig:y}=i.default},31012:function(e,t,n){"use strict";let i;function r(e,t){return function(){return e.apply(t,arguments)}}n.d(t,{default:function(){return eV}});let{toString:o}=Object.prototype,{getPrototypeOf:a}=Object,s=(j=Object.create(null),e=>{let t=o.call(e);return j[t]||(j[t]=t.slice(8,-1).toLowerCase())}),l=e=>(e=e.toLowerCase(),t=>s(t)===e),c=e=>t=>typeof t===e,{isArray:d}=Array,u=c("undefined"),h=l("ArrayBuffer"),p=c("string"),f=c("function"),m=c("number"),g=e=>null!==e&&"object"==typeof e,b=e=>{if("object"!==s(e))return!1;let t=a(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},v=l("Date"),y=l("File"),x=l("Blob"),w=l("FileList"),k=l("URLSearchParams");function _(e,t,{allOwnKeys:n=!1}={}){let i,r;if(null!=e){if("object"!=typeof e&&(e=[e]),d(e))for(i=0,r=e.length;i<r;i++)t.call(null,e[i],i,e);else{let r;let o=n?Object.getOwnPropertyNames(e):Object.keys(e),a=o.length;for(i=0;i<a;i++)r=o[i],t.call(null,e[r],r,e)}}}function E(e,t){let n;t=t.toLowerCase();let i=Object.keys(e),r=i.length;for(;r-- >0;)if(t===(n=i[r]).toLowerCase())return n;return null}let S="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,C=e=>!u(e)&&e!==S,P=(D="undefined"!=typeof Uint8Array&&a(Uint8Array),e=>D&&e instanceof D),T=l("HTMLFormElement"),O=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),A=l("RegExp"),I=(e,t)=>{let n=Object.getOwnPropertyDescriptors(e),i={};_(n,(n,r)=>{let o;!1!==(o=t(n,r,e))&&(i[r]=o||n)}),Object.defineProperties(e,i)},R="abcdefghijklmnopqrstuvwxyz",$="0123456789",L={DIGIT:$,ALPHA:R,ALPHA_DIGIT:R+R.toUpperCase()+$},M=l("AsyncFunction");var j,D,N={isArray:d,isArrayBuffer:h,isBuffer:function(e){return null!==e&&!u(e)&&null!==e.constructor&&!u(e.constructor)&&f(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||f(e.append)&&("formdata"===(t=s(e))||"object"===t&&f(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&h(e.buffer)},isString:p,isNumber:m,isBoolean:e=>!0===e||!1===e,isObject:g,isPlainObject:b,isUndefined:u,isDate:v,isFile:y,isBlob:x,isRegExp:A,isFunction:f,isStream:e=>g(e)&&f(e.pipe),isURLSearchParams:k,isTypedArray:P,isFileList:w,forEach:_,merge:function e(){let{caseless:t}=C(this)&&this||{},n={},i=(i,r)=>{let o=t&&E(n,r)||r;b(n[o])&&b(i)?n[o]=e(n[o],i):b(i)?n[o]=e({},i):d(i)?n[o]=i.slice():n[o]=i};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&_(arguments[e],i);return n},extend:(e,t,n,{allOwnKeys:i}={})=>(_(t,(t,i)=>{n&&f(t)?e[i]=r(t,n):e[i]=t},{allOwnKeys:i}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,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)},toFlatObject:(e,t,n,i)=>{let r,o,s;let l={};if(t=t||{},null==e)return t;do{for(o=(r=Object.getOwnPropertyNames(e)).length;o-- >0;)s=r[o],(!i||i(s,e,t))&&!l[s]&&(t[s]=e[s],l[s]=!0);e=!1!==n&&a(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:s,kindOfTest:l,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;let i=e.indexOf(t,n);return -1!==i&&i===n},toArray:e=>{if(!e)return null;if(d(e))return e;let t=e.length;if(!m(t))return null;let n=Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{let n;let i=e&&e[Symbol.iterator],r=i.call(e);for(;(n=r.next())&&!n.done;){let i=n.value;t.call(e,i[0],i[1])}},matchAll:(e,t)=>{let n;let i=[];for(;null!==(n=e.exec(t));)i.push(n);return i},isHTMLForm:T,hasOwnProperty:O,hasOwnProp:O,reduceDescriptors:I,freezeMethods:e=>{I(e,(t,n)=>{if(f(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;let i=e[n];if(f(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+"'")})}})},toObjectSet:(e,t)=>{let n={};return(e=>{e.forEach(e=>{n[e]=!0})})(d(e)?e:String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>Number.isFinite(e=+e)?e:t,findKey:E,global:S,isContextDefined:C,ALPHABET:L,generateString:(e=16,t=L.ALPHA_DIGIT)=>{let n="",{length:i}=t;for(;e--;)n+=t[Math.random()*i|0];return n},isSpecCompliantForm:function(e){return!!(e&&f(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{let t=Array(10),n=(e,i)=>{if(g(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[i]=e;let r=d(e)?[]:{};return _(e,(e,t)=>{let o=n(e,i+1);u(o)||(r[t]=o)}),t[i]=void 0,r}}return e};return n(e,0)},isAsyncFn:M,isThenable:e=>e&&(g(e)||f(e))&&f(e.then)&&f(e.catch)};function F(e,t,n,i,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),i&&(this.request=i),r&&(this.response=r)}N.inherits(F,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:N.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});let z=F.prototype,B={};["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=>{B[e]={value:e}}),Object.defineProperties(F,B),Object.defineProperty(z,"isAxiosError",{value:!0}),F.from=(e,t,n,i,r,o)=>{let a=Object.create(z);return N.toFlatObject(e,a,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e),F.call(a,e.message,t,n,i,r),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};var H=n(51328).lW;function U(e){return N.isPlainObject(e)||N.isArray(e)}function V(e){return N.endsWith(e,"[]")?e.slice(0,-2):e}function W(e,t,n){return e?e.concat(t).map(function(e,t){return e=V(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}let q=N.toFlatObject(N,{},null,function(e){return/^is[A-Z]/.test(e)});var G=function(e,t,n){if(!N.isObject(e))throw TypeError("target must be an object");t=t||new FormData,n=N.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!N.isUndefined(t[e])});let i=n.metaTokens,r=n.visitor||d,o=n.dots,a=n.indexes,s=n.Blob||"undefined"!=typeof Blob&&Blob,l=s&&N.isSpecCompliantForm(t);if(!N.isFunction(r))throw TypeError("visitor must be a function");function c(e){if(null===e)return"";if(N.isDate(e))return e.toISOString();if(!l&&N.isBlob(e))throw new F("Blob is not supported. Use a Buffer instead.");return N.isArrayBuffer(e)||N.isTypedArray(e)?l&&"function"==typeof Blob?new Blob([e]):H.from(e):e}function d(e,n,r){let s=e;if(e&&!r&&"object"==typeof e){if(N.endsWith(n,"{}"))n=i?n:n.slice(0,-2),e=JSON.stringify(e);else{var l;if(N.isArray(e)&&(l=e,N.isArray(l)&&!l.some(U))||(N.isFileList(e)||N.endsWith(n,"[]"))&&(s=N.toArray(e)))return n=V(n),s.forEach(function(e,i){N.isUndefined(e)||null===e||t.append(!0===a?W([n],i,o):null===a?n:n+"[]",c(e))}),!1}}return!!U(e)||(t.append(W(r,n,o),c(e)),!1)}let u=[],h=Object.assign(q,{defaultVisitor:d,convertValue:c,isVisitable:U});if(!N.isObject(e))throw TypeError("data must be an object");return function e(n,i){if(!N.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+i.join("."));u.push(n),N.forEach(n,function(n,o){let a=!(N.isUndefined(n)||null===n)&&r.call(t,n,N.isString(o)?o.trim():o,i,h);!0===a&&e(n,i?i.concat(o):[o])}),u.pop()}}(e),t};function X(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\x00"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function Y(e,t){this._pairs=[],e&&G(e,this,t)}let K=Y.prototype;function J(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Z(e,t,n){let i;if(!t)return e;let r=n&&n.encode||J,o=n&&n.serialize;if(i=o?o(t,n):N.isURLSearchParams(t)?t.toString():new Y(t,n).toString(r)){let t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}K.append=function(e,t){this._pairs.push([e,t])},K.toString=function(e){let t=e?function(t){return e.call(this,t,X)}:X;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};class Q{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){N.forEach(this.handlers,function(t){null!==t&&e(t)})}}var ee={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},et="undefined"!=typeof URLSearchParams?URLSearchParams:Y,en="undefined"!=typeof FormData?FormData:null,ei="undefined"!=typeof Blob?Blob:null;let er=("undefined"==typeof navigator||"ReactNative"!==(i=navigator.product)&&"NativeScript"!==i&&"NS"!==i)&&"undefined"!=typeof window&&"undefined"!=typeof document,eo="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts;var ea={classes:{URLSearchParams:et,FormData:en,Blob:ei},isStandardBrowserEnv:er,isStandardBrowserWebWorkerEnv:eo,protocols:["http","https","file","blob","url","data"]},es=function(e){if(N.isFormData(e)&&N.isFunction(e.entries)){let t={};return N.forEachEntry(e,(e,n)=>{!function e(t,n,i,r){let o=t[r++],a=Number.isFinite(+o),s=r>=t.length;if(o=!o&&N.isArray(i)?i.length:o,s)return N.hasOwnProp(i,o)?i[o]=[i[o],n]:i[o]=n,!a;i[o]&&N.isObject(i[o])||(i[o]=[]);let l=e(t,n,i[o],r);return l&&N.isArray(i[o])&&(i[o]=function(e){let t,n;let i={},r=Object.keys(e),o=r.length;for(t=0;t<o;t++)i[n=r[t]]=e[n];return i}(i[o])),!a}(N.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0]),n,t,0)}),t}return null};let el={transitional:ee,adapter:["xhr","http"],transformRequest:[function(e,t){let n;let i=t.getContentType()||"",r=i.indexOf("application/json")>-1,o=N.isObject(e);o&&N.isHTMLForm(e)&&(e=new FormData(e));let a=N.isFormData(e);if(a)return r&&r?JSON.stringify(es(e)):e;if(N.isArrayBuffer(e)||N.isBuffer(e)||N.isStream(e)||N.isFile(e)||N.isBlob(e))return e;if(N.isArrayBufferView(e))return e.buffer;if(N.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(o){if(i.indexOf("application/x-www-form-urlencoded")>-1){var s,l;return(s=e,l=this.formSerializer,G(s,new ea.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,i){return ea.isNode&&N.isBuffer(e)?(this.append(t,e.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},l))).toString()}if((n=N.isFileList(e))||i.indexOf("multipart/form-data")>-1){let t=this.env&&this.env.FormData;return G(n?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(N.isString(e))try{return(0,JSON.parse)(e),N.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){let t=this.transitional||el.transitional,n=t&&t.forcedJSONParsing,i="json"===this.responseType;if(e&&N.isString(e)&&(n&&!this.responseType||i)){let n=t&&t.silentJSONParsing;try{return JSON.parse(e)}catch(e){if(!n&&i){if("SyntaxError"===e.name)throw F.from(e,F.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ea.classes.FormData,Blob:ea.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};N.forEach(["delete","get","head","post","put","patch"],e=>{el.headers[e]={}});let ec=N.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"]);var ed=e=>{let t,n,i;let r={};return e&&e.split("\n").forEach(function(e){i=e.indexOf(":"),t=e.substring(0,i).trim().toLowerCase(),n=e.substring(i+1).trim(),!t||r[t]&&ec[t]||("set-cookie"===t?r[t]?r[t].push(n):r[t]=[n]:r[t]=r[t]?r[t]+", "+n:n)}),r};let eu=Symbol("internals");function eh(e){return e&&String(e).trim().toLowerCase()}function ep(e){return!1===e||null==e?e:N.isArray(e)?e.map(ep):String(e)}let ef=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function em(e,t,n,i,r){if(N.isFunction(i))return i.call(this,t,n);if(r&&(t=n),N.isString(t)){if(N.isString(i))return -1!==t.indexOf(i);if(N.isRegExp(i))return i.test(t)}}class eg{constructor(e){e&&this.set(e)}set(e,t,n){let i=this;function r(e,t,n){let r=eh(t);if(!r)throw Error("header name must be a non-empty string");let o=N.findKey(i,r);o&&void 0!==i[o]&&!0!==n&&(void 0!==n||!1===i[o])||(i[o||t]=ep(e))}let o=(e,t)=>N.forEach(e,(e,n)=>r(e,n,t));return N.isPlainObject(e)||e instanceof this.constructor?o(e,t):N.isString(e)&&(e=e.trim())&&!ef(e)?o(ed(e),t):null!=e&&r(t,e,n),this}get(e,t){if(e=eh(e)){let n=N.findKey(this,e);if(n){let e=this[n];if(!t)return e;if(!0===t)return function(e){let t;let n=Object.create(null),i=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;for(;t=i.exec(e);)n[t[1]]=t[2];return n}(e);if(N.isFunction(t))return t.call(this,e,n);if(N.isRegExp(t))return t.exec(e);throw TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=eh(e)){let n=N.findKey(this,e);return!!(n&&void 0!==this[n]&&(!t||em(this,this[n],n,t)))}return!1}delete(e,t){let n=this,i=!1;function r(e){if(e=eh(e)){let r=N.findKey(n,e);r&&(!t||em(n,n[r],r,t))&&(delete n[r],i=!0)}}return N.isArray(e)?e.forEach(r):r(e),i}clear(e){let t=Object.keys(this),n=t.length,i=!1;for(;n--;){let r=t[n];(!e||em(this,this[r],r,e,!0))&&(delete this[r],i=!0)}return i}normalize(e){let t=this,n={};return N.forEach(this,(i,r)=>{let o=N.findKey(n,r);if(o){t[o]=ep(i),delete t[r];return}let a=e?r.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n):String(r).trim();a!==r&&delete t[r],t[a]=ep(i),n[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return N.forEach(this,(n,i)=>{null!=n&&!1!==n&&(t[i]=e&&N.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){let t=this[eu]=this[eu]={accessors:{}},n=t.accessors,i=this.prototype;function r(e){let t=eh(e);n[t]||(function(e,t){let n=N.toCamelCase(" "+t);["get","set","has"].forEach(i=>{Object.defineProperty(e,i+n,{value:function(e,n,r){return this[i].call(this,t,e,n,r)},configurable:!0})})}(i,e),n[t]=!0)}return N.isArray(e)?e.forEach(r):r(e),this}}function eb(e,t){let n=this||el,i=t||n,r=eg.from(i.headers),o=i.data;return N.forEach(e,function(e){o=e.call(n,o,r.normalize(),t?t.status:void 0)}),r.normalize(),o}function ev(e){return!!(e&&e.__CANCEL__)}function ey(e,t,n){F.call(this,null==e?"canceled":e,F.ERR_CANCELED,t,n),this.name="CanceledError"}eg.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),N.reduceDescriptors(eg.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),N.freezeMethods(eg),N.inherits(ey,F,{__CANCEL__:!0});var ex=ea.isStandardBrowserEnv?{write:function(e,t,n,i,r,o){let a=[];a.push(e+"="+encodeURIComponent(t)),N.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),N.isString(i)&&a.push("path="+i),N.isString(r)&&a.push("domain="+r),!0===o&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){let t=document.cookie.match(RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}};function ew(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e:t}var ek=ea.isStandardBrowserEnv?function(){let e;let t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(e){let i=e;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{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 e=i(window.location.href),function(t){let n=N.isString(t)?i(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0},e_=function(e,t){let n;e=e||10;let i=Array(e),r=Array(e),o=0,a=0;return t=void 0!==t?t:1e3,function(s){let l=Date.now(),c=r[a];n||(n=l),i[o]=s,r[o]=l;let d=a,u=0;for(;d!==o;)u+=i[d++],d%=e;if((o=(o+1)%e)===a&&(a=(a+1)%e),l-n<t)return;let h=c&&l-c;return h?Math.round(1e3*u/h):void 0}};function eE(e,t){let n=0,i=e_(50,250);return r=>{let o=r.loaded,a=r.lengthComputable?r.total:void 0,s=o-n,l=i(s);n=o;let c={loaded:o,total:a,progress:a?o/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&o<=a?(a-o)/l:void 0,event:r};c[t?"download":"upload"]=!0,e(c)}}let eS="undefined"!=typeof XMLHttpRequest;var eC=eS&&function(e){return new Promise(function(t,n){let i,r,o=e.data,a=eg.from(e.headers).normalize(),s=e.responseType;function l(){e.cancelToken&&e.cancelToken.unsubscribe(i),e.signal&&e.signal.removeEventListener("abort",i)}N.isFormData(o)&&(ea.isStandardBrowserEnv||ea.isStandardBrowserWebWorkerEnv?a.setContentType(!1):a.getContentType(/^\s*multipart\/form-data/)?N.isString(r=a.getContentType())&&a.setContentType(r.replace(/^\s*(multipart\/form-data);+/,"$1")):a.setContentType("multipart/form-data"));let c=new XMLHttpRequest;if(e.auth){let t=e.auth.username||"",n=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";a.set("Authorization","Basic "+btoa(t+":"+n))}let d=ew(e.baseURL,e.url);function u(){if(!c)return;let i=eg.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),r=s&&"text"!==s&&"json"!==s?c.response:c.responseText,o={data:r,status:c.status,statusText:c.statusText,headers:i,config:e,request:c};(function(e,t,n){let i=n.config.validateStatus;!n.status||!i||i(n.status)?e(n):t(new F("Request failed with status code "+n.status,[F.ERR_BAD_REQUEST,F.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))})(function(e){t(e),l()},function(e){n(e),l()},o),c=null}if(c.open(e.method.toUpperCase(),Z(d,e.params,e.paramsSerializer),!0),c.timeout=e.timeout,"onloadend"in c?c.onloadend=u:c.onreadystatechange=function(){c&&4===c.readyState&&(0!==c.status||c.responseURL&&0===c.responseURL.indexOf("file:"))&&setTimeout(u)},c.onabort=function(){c&&(n(new F("Request aborted",F.ECONNABORTED,e,c)),c=null)},c.onerror=function(){n(new F("Network Error",F.ERR_NETWORK,e,c)),c=null},c.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",i=e.transitional||ee;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new F(t,i.clarifyTimeoutError?F.ETIMEDOUT:F.ECONNABORTED,e,c)),c=null},ea.isStandardBrowserEnv){let t=(e.withCredentials||ek(d))&&e.xsrfCookieName&&ex.read(e.xsrfCookieName);t&&a.set(e.xsrfHeaderName,t)}void 0===o&&a.setContentType(null),"setRequestHeader"in c&&N.forEach(a.toJSON(),function(e,t){c.setRequestHeader(t,e)}),N.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),s&&"json"!==s&&(c.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&c.addEventListener("progress",eE(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&c.upload&&c.upload.addEventListener("progress",eE(e.onUploadProgress)),(e.cancelToken||e.signal)&&(i=t=>{c&&(n(!t||t.type?new ey(null,e,c):t),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(i),e.signal&&(e.signal.aborted?i():e.signal.addEventListener("abort",i)));let h=function(e){let t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(d);if(h&&-1===ea.protocols.indexOf(h)){n(new F("Unsupported protocol "+h+":",F.ERR_BAD_REQUEST,e));return}c.send(o||null)})};let eP={http:null,xhr:eC};N.forEach(eP,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});let eT=e=>`- ${e}`,eO=e=>N.isFunction(e)||null===e||!1===e;var eA={getAdapter:e=>{let t,n;e=N.isArray(e)?e:[e];let{length:i}=e,r={};for(let o=0;o<i;o++){let i;if(n=t=e[o],!eO(t)&&void 0===(n=eP[(i=String(t)).toLowerCase()]))throw new F(`Unknown adapter '${i}'`);if(n)break;r[i||"#"+o]=n}if(!n){let e=Object.entries(r).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new F("There is no suitable adapter to dispatch the request "+(i?e.length>1?"since :\n"+e.map(eT).join("\n"):" "+eT(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return n},adapters:eP};function eI(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ey(null,e)}function eR(e){eI(e),e.headers=eg.from(e.headers),e.data=eb.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);let t=eA.getAdapter(e.adapter||el.adapter);return t(e).then(function(t){return eI(e),t.data=eb.call(e,e.transformResponse,t),t.headers=eg.from(t.headers),t},function(t){return!ev(t)&&(eI(e),t&&t.response&&(t.response.data=eb.call(e,e.transformResponse,t.response),t.response.headers=eg.from(t.response.headers))),Promise.reject(t)})}let e$=e=>e instanceof eg?e.toJSON():e;function eL(e,t){t=t||{};let n={};function i(e,t,n){return N.isPlainObject(e)&&N.isPlainObject(t)?N.merge.call({caseless:n},e,t):N.isPlainObject(t)?N.merge({},t):N.isArray(t)?t.slice():t}function r(e,t,n){return N.isUndefined(t)?N.isUndefined(e)?void 0:i(void 0,e,n):i(e,t,n)}function o(e,t){if(!N.isUndefined(t))return i(void 0,t)}function a(e,t){return N.isUndefined(t)?N.isUndefined(e)?void 0:i(void 0,e):i(void 0,t)}function s(n,r,o){return o in t?i(n,r):o in e?i(void 0,n):void 0}let l={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t)=>r(e$(e),e$(t),!0)};return N.forEach(Object.keys(Object.assign({},e,t)),function(i){let o=l[i]||r,a=o(e[i],t[i],i);N.isUndefined(a)&&o!==s||(n[i]=a)}),n}let eM="1.5.1",ej={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ej[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});let eD={};ej.transitional=function(e,t,n){function i(e,t){return"[Axios v"+eM+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,r,o)=>{if(!1===e)throw new F(i(r," has been removed"+(t?" in "+t:"")),F.ERR_DEPRECATED);return t&&!eD[r]&&(eD[r]=!0,console.warn(i(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,o)}};var eN={assertOptions:function(e,t,n){if("object"!=typeof e)throw new F("options must be an object",F.ERR_BAD_OPTION_VALUE);let i=Object.keys(e),r=i.length;for(;r-- >0;){let o=i[r],a=t[o];if(a){let t=e[o],n=void 0===t||a(t,o,e);if(!0!==n)throw new F("option "+o+" must be "+n,F.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new F("Unknown option "+o,F.ERR_BAD_OPTION)}},validators:ej};let eF=eN.validators;class ez{constructor(e){this.defaults=e,this.interceptors={request:new Q,response:new Q}}request(e,t){let n,i;"string"==typeof e?(t=t||{}).url=e:t=e||{},t=eL(this.defaults,t);let{transitional:r,paramsSerializer:o,headers:a}=t;void 0!==r&&eN.assertOptions(r,{silentJSONParsing:eF.transitional(eF.boolean),forcedJSONParsing:eF.transitional(eF.boolean),clarifyTimeoutError:eF.transitional(eF.boolean)},!1),null!=o&&(N.isFunction(o)?t.paramsSerializer={serialize:o}:eN.assertOptions(o,{encode:eF.function,serialize:eF.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let s=a&&N.merge(a.common,a[t.method]);a&&N.forEach(["delete","get","head","post","put","patch","common"],e=>{delete a[e]}),t.headers=eg.concat(s,a);let l=[],c=!0;this.interceptors.request.forEach(function(e){("function"!=typeof e.runWhen||!1!==e.runWhen(t))&&(c=c&&e.synchronous,l.unshift(e.fulfilled,e.rejected))});let d=[];this.interceptors.response.forEach(function(e){d.push(e.fulfilled,e.rejected)});let u=0;if(!c){let e=[eR.bind(this),void 0];for(e.unshift.apply(e,l),e.push.apply(e,d),i=e.length,n=Promise.resolve(t);u<i;)n=n.then(e[u++],e[u++]);return n}i=l.length;let h=t;for(u=0;u<i;){let e=l[u++],t=l[u++];try{h=e(h)}catch(e){t.call(this,e);break}}try{n=eR.call(this,h)}catch(e){return Promise.reject(e)}for(u=0,i=d.length;u<i;)n=n.then(d[u++],d[u++]);return n}getUri(e){e=eL(this.defaults,e);let t=ew(e.baseURL,e.url);return Z(t,e.params,e.paramsSerializer)}}N.forEach(["delete","get","head","options"],function(e){ez.prototype[e]=function(t,n){return this.request(eL(n||{},{method:e,url:t,data:(n||{}).data}))}}),N.forEach(["post","put","patch"],function(e){function t(t){return function(n,i,r){return this.request(eL(r||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}ez.prototype[e]=t(),ez.prototype[e+"Form"]=t(!0)});class eB{constructor(e){let t;if("function"!=typeof e)throw TypeError("executor must be a function.");this.promise=new Promise(function(e){t=e});let n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t;let i=new Promise(e=>{n.subscribe(e),t=e}).then(e);return i.cancel=function(){n.unsubscribe(t)},i},e(function(e,i,r){n.reason||(n.reason=new ey(e,i,r),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;let t=new eB(function(t){e=t});return{token:t,cancel:e}}}let eH={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(eH).forEach(([e,t])=>{eH[t]=e});let eU=function e(t){let n=new ez(t),i=r(ez.prototype.request,n);return N.extend(i,ez.prototype,n,{allOwnKeys:!0}),N.extend(i,n,null,{allOwnKeys:!0}),i.create=function(n){return e(eL(t,n))},i}(el);eU.Axios=ez,eU.CanceledError=ey,eU.CancelToken=eB,eU.isCancel=ev,eU.VERSION=eM,eU.toFormData=G,eU.AxiosError=F,eU.Cancel=eU.CanceledError,eU.all=function(e){return Promise.all(e)},eU.spread=function(e){return function(t){return e.apply(null,t)}},eU.isAxiosError=function(e){return N.isObject(e)&&!0===e.isAxiosError},eU.mergeConfig=eL,eU.AxiosHeaders=eg,eU.formToJSON=e=>es(N.isHTMLForm(e)?new FormData(e):e),eU.getAdapter=eA.getAdapter,eU.HttpStatusCode=eH,eU.default=eU;var eV=eU},53284:function(e,t,n){"use strict";n.d(t,{S:function(){return u}});var i=n(50003),r=n(40783),o=n(28256),a=n(34314);function s(e,t){return e*Math.sqrt(1-t*t)}let l=["duration","bounce"],c=["stiffness","damping","mass"];function d(e,t){return t.some(t=>void 0!==e[t])}function u({keyframes:e,restDelta:t,restSpeed:n,...u}){let h;let p=e[0],f=e[e.length-1],m={done:!1,value:p},{stiffness:g,damping:b,mass:v,velocity:y,duration:x,isResolvedFromDuration:w}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!d(e,c)&&d(e,l)){let n=function({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let l,c;(0,o.K)(e<=(0,i.w)(10),"Spring duration must be 10 seconds or less");let d=1-t;d=(0,a.u)(.05,1,d),e=(0,a.u)(.01,10,(0,i.X)(e)),d<1?(l=t=>{let i=t*d,r=i*e,o=s(t,d),a=Math.exp(-r);return .001-(i-n)/o*a},c=t=>{let i=t*d,r=i*e,o=Math.pow(d,2)*Math.pow(t,2)*e,a=Math.exp(-r),c=s(Math.pow(t,2),d),u=-l(t)+.001>0?-1:1;return u*((r*n+n-o)*a)/c}):(l=t=>{let i=Math.exp(-t*e),r=(t-n)*e+1;return -.001+i*r},c=t=>{let i=Math.exp(-t*e),r=(n-t)*(e*e);return i*r});let u=5/e,h=function(e,t,n){let i=n;for(let n=1;n<12;n++)i-=e(i)/t(i);return i}(l,c,u);if(e=(0,i.w)(e),isNaN(h))return{stiffness:100,damping:10,duration:e};{let t=Math.pow(h,2)*r;return{stiffness:t,damping:2*d*Math.sqrt(r*t),duration:e}}}(e);(t={...t,...n,velocity:0,mass:1}).isResolvedFromDuration=!0}return t}(u),k=y?-(0,i.X)(y):0,_=b/(2*Math.sqrt(g*v)),E=f-p,S=(0,i.X)(Math.sqrt(g/v)),C=5>Math.abs(E);if(n||(n=C?.01:2),t||(t=C?.005:.5),_<1){let e=s(S,_);h=t=>{let n=Math.exp(-_*S*t);return f-n*((k+_*S*E)/e*Math.sin(e*t)+E*Math.cos(e*t))}}else if(1===_)h=e=>f-Math.exp(-S*e)*(E+(k+S*E)*e);else{let e=S*Math.sqrt(_*_-1);h=t=>{let n=Math.exp(-_*S*t),i=Math.min(e*t,300);return f-n*((k+_*S*E)*Math.sinh(i)+e*E*Math.cosh(i))/e}}return{calculatedDuration:w&&x||null,next:e=>{let i=h(e);if(w)m.done=e>=x;else{let o=k;0!==e&&(o=_<1?(0,r.P)(h,e,i):0);let a=Math.abs(o)<=n,s=Math.abs(f-i)<=t;m.done=a&&s}return m.value=m.done?f:i,m}}}},53766:function(e,t,n){"use strict";n.d(t,{E:function(){return i},i:function(){return r}});let i=2e4;function r(e){let t=0,n=e.next(t);for(;!n.done&&t<i;)t+=50,n=e.next(t);return t>=i?1/0:t}},40783:function(e,t,n){"use strict";n.d(t,{P:function(){return r}});var i=n(70998);function r(e,t,n){let r=Math.max(t-5,0);return(0,i.R)(n-e(r),t-r)}},76311:function(e,t,n){"use strict";n.d(t,{v:function(){return J}});var i=n(28256),r=n(50003);let o={current:!1},a=e=>Array.isArray(e)&&"number"==typeof e[0],s=([e,t,n,i])=>`cubic-bezier(${e}, ${t}, ${n}, ${i})`,l={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:s([0,.65,.55,1]),circOut:s([.55,0,1,.45]),backIn:s([.31,.01,.66,-.59]),backOut:s([.33,1.53,.69,.99])};var c=n(59472);let d=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function u(e,t,n,i){if(e===t&&n===i)return c.Z;let r=t=>(function(e,t,n,i,r){let o,a;let s=0;do(o=d(a=t+(n-t)/2,i,r)-e)>0?n=a:t=a;while(Math.abs(o)>1e-7&&++s<12);return a})(t,0,1,e,n);return e=>0===e||1===e?e:d(r(e),t,i)}let h=u(.42,0,1,1),p=u(0,0,.58,1),f=u(.42,0,.58,1);var m=n(48944),g=n(43633),b=n(76788),v=n(45147);let y=u(.33,1.53,.69,.99),x=(0,v.M)(y),w=(0,b.o)(x),k={linear:c.Z,easeIn:h,easeInOut:f,easeOut:p,circIn:g.Z7,circInOut:g.X7,circOut:g.Bn,backIn:x,backInOut:w,backOut:y,anticipate:e=>(e*=2)<1?.5*x(e):.5*(2-Math.pow(2,-10*(e-1)))},_=e=>{if(Array.isArray(e)){(0,i.k)(4===e.length,"Cubic bezier arrays must contain four numerical values.");let[t,n,r,o]=e;return u(t,n,r,o)}return"string"==typeof e?((0,i.k)(void 0!==k[e],`Invalid easing type '${e}'`),k[e]):e};var E=n(84593),S=n(58408);function C({duration:e=300,keyframes:t,times:n,ease:i="easeInOut"}){let r=(0,m.N)(i)?i.map(_):_(i),o={done:!1,value:t[0]},a=(n&&n.length===t.length?n:(0,S.Y)(t)).map(t=>t*e),s=(0,E.s)(a,t,{ease:Array.isArray(r)?r:t.map(()=>r||f).splice(0,t.length-1)});return{calculatedDuration:e,next:t=>(o.value=s(t),o.done=t>=e,o)}}var P=n(53284),T=n(40783);function O({keyframes:e,velocity:t=0,power:n=.8,timeConstant:i=325,bounceDamping:r=10,bounceStiffness:o=500,modifyTarget:a,min:s,max:l,restDelta:c=.5,restSpeed:d}){let u,h;let p=e[0],f={done:!1,value:p},m=e=>void 0!==s&&e<s||void 0!==l&&e>l,g=e=>void 0===s?l:void 0===l?s:Math.abs(s-e)<Math.abs(l-e)?s:l,b=n*t,v=p+b,y=void 0===a?v:a(v);y!==v&&(b=y-p);let x=e=>-b*Math.exp(-e/i),w=e=>y+x(e),k=e=>{let t=x(e),n=w(e);f.done=Math.abs(t)<=c,f.value=f.done?y:n},_=e=>{m(f.value)&&(u=e,h=(0,P.S)({keyframes:[f.value,g(f.value)],velocity:(0,T.P)(w,e,f.value),damping:r,stiffness:o,restDelta:c,restSpeed:d}))};return _(0),{calculatedDuration:null,next:e=>{let t=!1;return(h||void 0!==u||(t=!0,k(e),_(e)),void 0!==u&&e>u)?h.next(e-u):(t||k(e),f)}}}var A=n(86564);let I=e=>{let t=({timestamp:t})=>e(t);return{start:()=>A.Wi.update(t,!0),stop:()=>(0,A.Pn)(t),now:()=>A.frameData.isProcessing?A.frameData.timestamp:performance.now()}};var R=n(34314),$=n(53766);let L={decay:O,inertia:O,tween:C,keyframes:C,spring:P.S};function M({autoplay:e=!0,delay:t=0,driver:n=I,keyframes:i,type:o="keyframes",repeat:a=0,repeatDelay:s=0,repeatType:l="loop",onPlay:c,onStop:d,onComplete:u,onUpdate:h,...p}){let f,m,g,b,v,y=1,x=!1,w=()=>{m=new Promise(e=>{f=e})};w();let k=L[o]||C;k!==C&&"number"!=typeof i[0]&&(b=(0,E.s)([0,100],i,{clamp:!1}),i=[0,100]);let _=k({...p,keyframes:i});"mirror"===l&&(v=k({...p,keyframes:[...i].reverse(),velocity:-(p.velocity||0)}));let S="idle",P=null,T=null,O=null;null===_.calculatedDuration&&a&&(_.calculatedDuration=(0,$.i)(_));let{calculatedDuration:A}=_,M=1/0,j=1/0;null!==A&&(j=(M=A+s)*(a+1)-s);let D=0,N=e=>{if(null===T)return;y>0&&(T=Math.min(T,e)),y<0&&(T=Math.min(e-j/y,T)),D=null!==P?P:Math.round(e-T)*y;let n=D-t*(y>=0?1:-1),r=y>=0?n<0:n>j;D=Math.max(n,0),"finished"===S&&null===P&&(D=j);let o=D,c=_;if(a){let e=D/M,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,t=Math.min(t,a+1);let i=!!(t%2);i&&("reverse"===l?(n=1-n,s&&(n-=s/M)):"mirror"===l&&(c=v));let r=(0,R.u)(0,1,n);D>j&&(r="reverse"===l&&i?1:0),o=r*M}let d=r?{done:!1,value:i[0]}:c.next(o);b&&(d.value=b(d.value));let{done:u}=d;r||null===A||(u=y>=0?D>=j:D<=0);let p=null===P&&("finished"===S||"running"===S&&u);return h&&h(d.value),p&&B(),d},F=()=>{g&&g.stop(),g=void 0},z=()=>{S="idle",F(),f(),w(),T=O=null},B=()=>{S="finished",u&&u(),F(),f()},H=()=>{if(x)return;g||(g=n(N));let e=g.now();c&&c(),null!==P?T=e-P:T&&"finished"!==S||(T=e),"finished"===S&&w(),O=T,P=null,S="running",g.start()};e&&H();let U={then:(e,t)=>m.then(e,t),get time(){return(0,r.X)(D)},set time(newTime){D=newTime=(0,r.w)(newTime),null===P&&g&&0!==y?T=g.now()-newTime/y:P=newTime},get duration(){let e=null===_.calculatedDuration?(0,$.i)(_):_.calculatedDuration;return(0,r.X)(e)},get speed(){return y},set speed(newSpeed){if(newSpeed===y||!g)return;y=newSpeed,U.time=(0,r.X)(D)},get state(){return S},play:H,pause:()=>{S="paused",P=D},stop:()=>{x=!0,"idle"!==S&&(S="idle",d&&d(),z())},cancel:()=>{null!==O&&N(O),z()},complete:()=>{S="finished"},sample:e=>(T=0,N(e))};return U}var j=n(5931);let D=(0,j.X)(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),N=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),F=(e,t)=>"spring"===t.type||"backgroundColor"===e||!function e(t){return!!(!t||"string"==typeof t&&l[t]||a(t)||Array.isArray(t)&&t.every(e))}(t.ease);var z=n(10726);let B={type:"spring",stiffness:500,damping:25,restSpeed:10},H=e=>({type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}),U={type:"keyframes",duration:.8},V={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},W=(e,{keyframes:t})=>t.length>2?U:z.G.has(e)?e.startsWith("scale")?H(t[1]):B:V;var q=n(75740);let G=(e,t)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(q.P.test(t)||"0"===t)&&!t.startsWith("url("));var X=n(21637),Y=n(44345),K=n(25100);let J=(e,t,n,d={})=>u=>{let h=(0,K.e)(d,e)||{},p=h.delay||d.delay||0,{elapsed:f=0}=d;f-=(0,r.w)(p);let m=function(e,t,n,i){let r,o;let a=G(t,n);r=Array.isArray(n)?[...n]:[null,n];let s=void 0!==i.from?i.from:e.get(),l=[];for(let e=0;e<r.length;e++){var c;null===r[e]&&(r[e]=0===e?s:r[e-1]),("number"==typeof(c=r[e])?0===c:null!==c?"none"===c||"0"===c||(0,Y.W)(c):void 0)&&l.push(e),"string"==typeof r[e]&&"none"!==r[e]&&"0"!==r[e]&&(o=r[e])}if(a&&l.length&&o)for(let e=0;e<l.length;e++){let n=l[e];r[n]=(0,X.T)(t,o)}return r}(t,e,n,h),g=m[0],b=m[m.length-1],v=G(e,g),y=G(e,b);(0,i.K)(v===y,`You are trying to animate ${e} from "${g}" to "${b}". ${g} is not an animatable value - to enable this animation set ${g} to a value animatable to ${b} via the \`style\` property.`);let x={keyframes:m,velocity:t.getVelocity(),ease:"easeOut",...h,delay:-f,onUpdate:e=>{t.set(e),h.onUpdate&&h.onUpdate(e)},onComplete:()=>{u(),h.onComplete&&h.onComplete()}};if((0,K.r)(h)||(x={...x,...W(e,x)}),x.duration&&(x.duration=(0,r.w)(x.duration)),x.repeatDelay&&(x.repeatDelay=(0,r.w)(x.repeatDelay)),!v||!y||o.current||!1===h.type)return function({keyframes:e,delay:t,onUpdate:n,onComplete:i}){let r=()=>(n&&n(e[e.length-1]),i&&i(),{time:0,speed:1,duration:0,play:c.Z,pause:c.Z,stop:c.Z,then:e=>(e(),Promise.resolve()),cancel:c.Z,complete:c.Z});return t?M({keyframes:[0,1],duration:0,delay:t,onComplete:r}):r()}(o.current?{...x,delay:0}:x);if(t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){let n=function(e,t,{onUpdate:n,onComplete:i,...o}){let d,u;let h=D()&&N.has(t)&&!o.repeatDelay&&"mirror"!==o.repeatType&&0!==o.damping&&"inertia"!==o.type;if(!h)return!1;let p=!1,f=()=>{u=new Promise(e=>{d=e})};f();let{keyframes:m,duration:g=300,ease:b,times:v}=o;if(F(t,o)){let e=M({...o,repeat:0,delay:0}),t={done:!1,value:m[0]},n=[],i=0;for(;!t.done&&i<2e4;)t=e.sample(i),n.push(t.value),i+=10;v=void 0,m=n,g=i-10,b="linear"}let y=function(e,t,n,{delay:i=0,duration:r,repeat:o=0,repeatType:c="loop",ease:d,times:u}={}){let h={[t]:n};u&&(h.offset=u);let p=function e(t){if(t)return a(t)?s(t):Array.isArray(t)?t.map(e):l[t]}(d);return Array.isArray(p)&&(h.easing=p),e.animate(h,{delay:i,duration:r,easing:Array.isArray(p)?"linear":p,fill:"both",iterations:o+1,direction:"reverse"===c?"alternate":"normal"})}(e.owner.current,t,m,{...o,duration:g,ease:b,times:v});o.syncStart&&(y.startTime=A.frameData.isProcessing?A.frameData.timestamp:document.timeline?document.timeline.currentTime:performance.now());let x=()=>y.cancel(),w=()=>{A.Wi.update(x),d(),f()};return y.onfinish=()=>{e.set(function(e,{repeat:t,repeatType:n="loop"}){let i=t&&"loop"!==n&&t%2==1?0:e.length-1;return e[i]}(m,o)),i&&i(),w()},{then:(e,t)=>u.then(e,t),attachTimeline:e=>(y.timeline=e,y.onfinish=null,c.Z),get time(){return(0,r.X)(y.currentTime||0)},set time(newTime){y.currentTime=(0,r.w)(newTime)},get speed(){return y.playbackRate},set speed(newSpeed){y.playbackRate=newSpeed},get duration(){return(0,r.X)(g)},play:()=>{p||(y.play(),(0,A.Pn)(x))},pause:()=>y.pause(),stop:()=>{if(p=!0,"idle"===y.playState)return;let{currentTime:t}=y;if(t){let n=M({...o,autoplay:!1});e.setWithVelocity(n.sample(t-10).value,n.sample(t).value,10)}w()},complete:()=>y.finish(),cancel:w}}(t,e,x);if(n)return n}return M(x)}},72213:function(e,t,n){"use strict";n.d(t,{D:function(){return a}});var i=n(76311),r=n(39029),o=n(13546);function a(e,t,n){let a=(0,o.i)(e)?e:(0,r.BX)(e);return a.start((0,i.v)("",a,t,n)),a.animation}},53542:function(e,t,n){"use strict";n.d(t,{w:function(){return d}});var i=n(10726),r=n(56010);let o="data-"+(0,r.D)("framerAppearId");var a=n(76311),s=n(1540),l=n(92291),c=n(86564);function d(e,t,{delay:n=0,transitionOverride:r,type:d}={}){let{transition:u=e.getDefaultTransition(),transitionEnd:h,...p}=e.makeTargetAnimatable(t),f=e.getValue("willChange");r&&(u=r);let m=[],g=d&&e.animationState&&e.animationState.getState()[d];for(let t in p){let r=e.getValue(t),l=p[t];if(!r||void 0===l||g&&function({protectedKeys:e,needsAnimating:t},n){let i=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,i}(g,t))continue;let d={delay:n,elapsed:0,...u};if(window.HandoffAppearAnimations&&!r.hasAnimated){let n=e.getProps()[o];n&&(d.elapsed=window.HandoffAppearAnimations(n,t,r,c.Wi),d.syncStart=!0)}r.start((0,a.v)(t,r,l,e.shouldReduceMotion&&i.G.has(t)?{type:!1}:d));let h=r.animation;(0,s.L)(f)&&(f.add(t),h.then(()=>f.remove(t))),m.push(h)}return h&&Promise.all(m).then(()=>{h&&(0,l.CD)(e,h)}),m}},92292:function(e,t,n){"use strict";function i(e){return"object"==typeof e&&"function"==typeof e.start}n.d(t,{H:function(){return i}})},47087:function(e,t,n){"use strict";n.d(t,{C:function(){return i}});let i=e=>Array.isArray(e)},25100:function(e,t,n){"use strict";function i({when:e,delay:t,delayChildren:n,staggerChildren:i,staggerDirection:r,repeat:o,repeatType:a,repeatDelay:s,from:l,elapsed:c,...d}){return!!Object.keys(d).length}function r(e,t){return e[t]||e.default||e}n.d(t,{e:function(){return r},r:function(){return i}})},24258:function(e,t,n){"use strict";n.d(t,{p:function(){return r}});var i=n(7653);let r=(0,i.createContext)({})},52707:function(e,t,n){"use strict";n.d(t,{_:function(){return r}});var i=n(7653);let r=(0,i.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"})},30693:function(e,t,n){"use strict";n.d(t,{O:function(){return r}});var i=n(7653);let r=(0,i.createContext)(null)},43633:function(e,t,n){"use strict";n.d(t,{Bn:function(){return a},X7:function(){return s},Z7:function(){return o}});var i=n(76788),r=n(45147);let o=e=>1-Math.sin(Math.acos(e)),a=(0,r.M)(o),s=(0,i.o)(a)},76788:function(e,t,n){"use strict";n.d(t,{o:function(){return i}});let i=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2},45147:function(e,t,n){"use strict";n.d(t,{M:function(){return i}});let i=e=>t=>1-e(1-t)},48944:function(e,t,n){"use strict";n.d(t,{N:function(){return i}});let i=e=>Array.isArray(e)&&"number"!=typeof e[0]},86564:function(e,t,n){"use strict";n.d(t,{Pn:function(){return s},Wi:function(){return a},frameData:function(){return l},S6:function(){return c}});var i=n(59472);class r{constructor(){this.order=[],this.scheduled=new Set}add(e){if(!this.scheduled.has(e))return this.scheduled.add(e),this.order.push(e),!0}remove(e){let t=this.order.indexOf(e);-1!==t&&(this.order.splice(t,1),this.scheduled.delete(e))}clear(){this.order.length=0,this.scheduled.clear()}}let o=["prepare","read","update","preRender","render","postRender"],{schedule:a,cancel:s,state:l,steps:c}=function(e,t){let n=!1,i=!0,a={delta:0,timestamp:0,isProcessing:!1},s=o.reduce((e,t)=>(e[t]=function(e){let t=new r,n=new r,i=0,o=!1,a=!1,s=new WeakSet,l={schedule:(e,r=!1,a=!1)=>{let l=a&&o,c=l?t:n;return r&&s.add(e),c.add(e)&&l&&o&&(i=t.order.length),e},cancel:e=>{n.remove(e),s.delete(e)},process:r=>{if(o){a=!0;return}if(o=!0,[t,n]=[n,t],n.clear(),i=t.order.length)for(let n=0;n<i;n++){let i=t.order[n];i(r),s.has(i)&&(l.schedule(i),e())}o=!1,a&&(a=!1,l.process(r))}};return l}(()=>n=!0),e),{}),l=e=>s[e].process(a),c=()=>{let r=performance.now();n=!1,a.delta=i?1e3/60:Math.max(Math.min(r-a.timestamp,40),1),a.timestamp=r,a.isProcessing=!0,o.forEach(l),a.isProcessing=!1,n&&t&&(i=!1,e(c))},d=()=>{n=!0,i=!0,a.isProcessing||e(c)},u=o.reduce((e,t)=>{let i=s[t];return e[t]=(e,t=!1,r=!1)=>(n||d(),i.schedule(e,t,r)),e},{});return{schedule:u,cancel:e=>o.forEach(t=>s[t].cancel(e)),state:a,steps:s}}("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:i.Z,!0)},28400:function(e,t,n){"use strict";n.d(t,{A:function(){return r}});let i={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"]},r={};for(let e in i)r[e]={isEnabled:t=>i[e].some(e=>!!t[e])}},85040:function(e,t,n){"use strict";n.d(t,{j:function(){return o}});var i=n(21340),r=n(10726);function o(e,{layout:t,layoutId:n}){return r.G.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!i.P[e]||"opacity"===e)}},41721:function(e,t,n){"use strict";function i({top:e,left:t,right:n,bottom:i}){return{x:{min:t,max:n},y:{min:e,max:i}}}function r({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function o(e,t){if(!t)return e;let 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}}n.d(t,{d7:function(){return o},i8:function(){return i},z2:function(){return r}})},78792:function(e,t,n){"use strict";n.d(t,{D2:function(){return m},YY:function(){return c},am:function(){return u},o2:function(){return l},q2:function(){return o}});var i=n(86725),r=n(73938);function o(e,t,n){return n+t*(e-n)}function a(e,t,n,i,r){return void 0!==r&&(e=i+r*(e-i)),i+n*(e-i)+t}function s(e,t=0,n=1,i,r){e.min=a(e.min,t,n,i,r),e.max=a(e.max,t,n,i,r)}function l(e,{x:t,y:n}){s(e.x,t.translate,t.scale,t.originPoint),s(e.y,n.translate,n.scale,n.originPoint)}function c(e,t,n,i=!1){let o,a;let s=n.length;if(s){t.x=t.y=1;for(let c=0;c<s;c++){a=(o=n[c]).projectionDelta;let s=o.instance;(!s||!s.style||"contents"!==s.style.display)&&(i&&o.options.layoutScroll&&o.scroll&&o!==o.root&&m(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,l(e,a)),i&&(0,r.ud)(o.latestValues)&&m(e,o.latestValues))}t.x=d(t.x),t.y=d(t.y)}}function d(e){return Number.isInteger(e)?e:e>1.0000000000001||e<.999999999999?e:1}function u(e,t){e.min=e.min+t,e.max=e.max+t}function h(e,t,[n,r,o]){let a=void 0!==t[o]?t[o]:.5,l=(0,i.C)(e.min,e.max,a);s(e,t[n],t[r],l,t.scale)}let p=["x","scaleX","originX"],f=["y","scaleY","originY"];function m(e,t){h(e.x,t,p),h(e.y,t,f)}},99369:function(e,t,n){"use strict";n.d(t,{dO:function(){return a},wc:function(){return r}});let i=()=>({translate:0,scale:1,origin:0,originPoint:0}),r=()=>({x:i(),y:i()}),o=()=>({min:0,max:0}),a=()=>({x:o(),y:o()})},21340:function(e,t,n){"use strict";n.d(t,{B:function(){return r},P:function(){return i}});let i={};function r(e){Object.assign(i,e)}},73938:function(e,t,n){"use strict";function i(e){return void 0===e||1===e}function r({scale:e,scaleX:t,scaleY:n}){return!i(e)||!i(t)||!i(n)}function o(e){return r(e)||a(e)||e.z||e.rotate||e.rotateX||e.rotateY}function a(e){var t,n;return(t=e.x)&&"0%"!==t||(n=e.y)&&"0%"!==n}n.d(t,{D_:function(){return a},Lj:function(){return r},ud:function(){return o}})},47363:function(e,t,n){"use strict";n.d(t,{J:function(){return o},z:function(){return a}});var i=n(41721),r=n(78792);function o(e,t){return(0,i.i8)((0,i.d7)(e.getBoundingClientRect(),t))}function a(e,t,n){let i=o(e,n),{scroll:a}=t;return a&&((0,r.am)(i.x,a.offset.x),(0,r.am)(i.y,a.offset.y)),i}},72754:function(e,t,n){"use strict";n.d(t,{J:function(){return G}});var i=n(92291),r=n(28256),o=n(30032),a=n(25995);let s=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function l(e,t,n=1){(0,r.k)(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[i,c]=function(e){let t=s.exec(e);if(!t)return[,];let[,n,i]=t;return[n,i]}(e);if(!i)return;let d=window.getComputedStyle(t).getPropertyValue(i);if(d){let e=d.trim();return(0,o.P)(e)?parseFloat(e):e}return(0,a.tm)(c)?l(c,t,n+1):c}var c=n(47087),d=n(10726),u=n(67155),h=n(56992),p=n(69353),f=n(5231);let m=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),g=e=>m.has(e),b=e=>Object.keys(e).some(g),v=e=>e===p.Rx||e===f.px,y=(e,t)=>parseFloat(e.split(", ")[t]),x=(e,t)=>(n,{transform:i})=>{if("none"===i||!i)return 0;let r=i.match(/^matrix3d\((.+)\)$/);if(r)return y(r[1],t);{let t=i.match(/^matrix\((.+)\)$/);return t?y(t[1],e):0}},w=new Set(["x","y","z"]),k=d._.filter(e=>!w.has(e)),_={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:x(4,13),y:x(5,14)};_.translateX=_.x,_.translateY=_.y;let E=(e,t,n)=>{let i=t.measureViewportBox(),r=t.current,o=getComputedStyle(r),{display:a}=o,s={};"none"===a&&t.setStaticValue("display",e.display||"block"),n.forEach(e=>{s[e]=_[e](i,o)}),t.render();let l=t.measureViewportBox();return n.forEach(n=>{let i=t.getValue(n);i&&i.jump(s[n]),e[n]=_[n](l,o)}),e},S=(e,t,n={},i={})=>{t={...t},i={...i};let o=Object.keys(t).filter(g),a=[],s=!1,l=[];if(o.forEach(o=>{let d;let h=e.getValue(o);if(!e.hasValue(o))return;let p=n[o],m=(0,u.C)(p),g=t[o];if((0,c.C)(g)){let e=g.length,t=null===g[0]?1:0;p=g[t],m=(0,u.C)(p);for(let n=t;n<e&&null!==g[n];n++)d?(0,r.k)((0,u.C)(g[n])===d,"All keyframes must be of the same type"):(d=(0,u.C)(g[n]),(0,r.k)(d===m||v(m)&&v(d),"Keyframes must be of the same dimension as the current value"))}else d=(0,u.C)(g);if(m!==d){if(v(m)&&v(d)){let e=h.get();"string"==typeof e&&h.set(parseFloat(e)),"string"==typeof g?t[o]=parseFloat(g):Array.isArray(g)&&d===f.px&&(t[o]=g.map(parseFloat))}else(null==m?void 0:m.transform)&&(null==d?void 0:d.transform)&&(0===p||0===g)?0===p?h.set(d.transform(p)):t[o]=m.transform(g):(s||(a=function(e){let t=[];return k.forEach(n=>{let i=e.getValue(n);void 0!==i&&(t.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))}),t.length&&e.render(),t}(e),s=!0),l.push(o),i[o]=void 0!==i[o]?i[o]:t[o],h.jump(g))}}),!l.length)return{target:t,transitionEnd:i};{let n=l.indexOf("height")>=0?window.pageYOffset:null,r=E(t,e,l);return a.length&&a.forEach(([t,n])=>{e.getValue(t).set(n)}),e.render(),h.j&&null!==n&&window.scrollTo({top:n}),{target:r,transitionEnd:i}}},C=(e,t,n,i)=>{var r,o;let s=function(e,{...t},n){let i=e.current;if(!(i instanceof Element))return{target:t,transitionEnd:n};for(let r in n&&(n={...n}),e.values.forEach(e=>{let t=e.get();if(!(0,a.tm)(t))return;let n=l(t,i);n&&e.set(n)}),t){let e=t[r];if(!(0,a.tm)(e))continue;let o=l(e,i);o&&(t[r]=o,n||(n={}),void 0===n[r]&&(n[r]=e))}return{target:t,transitionEnd:n}}(e,t,i);return t=s.target,i=s.transitionEnd,r=t,o=i,b(r)?S(e,r,n,o):{target:r,transitionEnd:o}};var P=n(99369),T=n(52041),O=n(93842),A=n(3318),I=n(58856),R=n(39029),$=n(1540),L=n(13546),M=n(89672),j=n(65177),D=n(21197),N=n(28400),F=n(27410),z=n(56722),B=n(86564);let H=Object.keys(N.A),U=H.length,V=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],W=F.V.length;class q{constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:i,visualState:r},o={}){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=()=>B.Wi.render(this.render,!1,!0);let{latestValues:a,renderState:s}=r;this.latestValues=a,this.baseTarget={...a},this.initialValues=t.initial?{...a}:{},this.renderState=s,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.options=o,this.isControllingVariants=(0,M.G)(t),this.isVariantNode=(0,M.M)(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:l,...c}=this.scrapeMotionValuesFromProps(t,{});for(let e in c){let t=c[e];void 0!==a[e]&&(0,L.i)(t)&&(t.set(a[e],!1),(0,$.L)(l)&&l.add(e))}}scrapeMotionValuesFromProps(e,t){return{}}mount(e){this.current=e,z.R.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),A.O.current||(0,O.A)(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||A.n.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let e in z.R.delete(this.current),this.projection&&this.projection.unmount(),(0,B.Pn)(this.notifyUpdate),(0,B.Pn)(this.render),this.valueSubscriptions.forEach(e=>e()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[e].clear();for(let e in this.features)this.features[e].unmount();this.current=null}bindToMotionValue(e,t){let n=d.G.has(e),i=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&B.Wi.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)}),r=t.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,()=>{i(),r()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}loadFeatures({children:e,...t},n,i,r){let o,a;for(let e=0;e<U;e++){let n=H[e],{isEnabled:i,Feature:r,ProjectionNode:s,MeasureLayout:l}=N.A[n];s&&(o=s),i(t)&&(!this.features[n]&&r&&(this.features[n]=new r(this)),l&&(a=l))}if(!this.projection&&o){this.projection=new o(this.latestValues,this.parent&&this.parent.projection);let{layoutId:e,layout:n,drag:i,dragConstraints:a,layoutScroll:s,layoutRoot:l}=t;this.projection.setOptions({layoutId:e,layout:n,alwaysMeasureLayout:!!i||a&&(0,T.I)(a),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof n?n:"both",initialPromotionConfig:r,layoutScroll:s,layoutRoot:l})}return a}updateFeatures(){for(let e in this.features){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):(0,P.dO)()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}makeTargetAnimatable(e,t=!0){return this.makeTargetAnimatableFromInstance(e,this.props,t)}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<V.length;t++){let n=V[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let i=e["on"+n];i&&(this.propEventSubscriptions[n]=this.on(n,i))}this.prevMotionValues=function(e,t,n){let{willChange:i}=t;for(let r in t){let o=t[r],a=n[r];if((0,L.i)(o))e.addValue(r,o),(0,$.L)(i)&&i.add(r);else if((0,L.i)(a))e.addValue(r,(0,R.BX)(o,{owner:e})),(0,$.L)(i)&&i.remove(r);else if(a!==o){if(e.hasValue(r)){let t=e.getValue(r);t.hasAnimated||t.set(o)}else{let t=e.getStaticValue(r);e.addValue(r,(0,R.BX)(void 0!==t?t:o,{owner:e}))}}}for(let i in n)void 0===t[i]&&e.removeValue(i);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(e=!1){if(e)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){let e=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(e.initial=this.props.initial),e}let t={};for(let e=0;e<W;e++){let n=F.V[e],i=this.props[n];((0,j.$)(i)||!1===i)&&(t[n]=i)}return t}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){t!==this.values.get(e)&&(this.removeValue(e),this.bindToMotionValue(e,t)),this.values.set(e,t),this.latestValues[e]=t.get()}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=(0,R.BX)(t,{owner:this}),this.addValue(e,n)),n}readValue(e){var t;return void 0===this.latestValues[e]&&this.current?null!==(t=this.getBaseTargetFromProps(this.props,e))&&void 0!==t?t:this.readValueFromInstance(this.current,e,this.options):this.latestValues[e]}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;let{initial:n}=this.props,i="string"==typeof n||"object"==typeof n?null===(t=(0,D.o)(this.props,n))||void 0===t?void 0:t[e]:void 0;if(n&&void 0!==i)return i;let r=this.getBaseTargetFromProps(this.props,e);return void 0===r||(0,L.i)(r)?void 0!==this.initialValues[e]&&void 0===i?void 0:this.baseTarget[e]:r}on(e,t){return this.events[e]||(this.events[e]=new I.L),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class G extends q{sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:t,...n},{transformValues:r},o){let a=(0,i.P$)(n,e||{},this);if(r&&(t&&(t=r(t)),n&&(n=r(n)),a&&(a=r(a))),o){(0,i.GJ)(this,n,a);let e=C(this,n,a,t);t=e.transitionEnd,n=e.target}return{transition:e,transitionEnd:t,...n}}}},11657:function(e,t,n){"use strict";n.d(t,{E:function(){return ns}});var i,r=n(7653),o=n(52707);let a=(0,r.createContext)({});var s=n(30693),l=n(20323);let c=(0,r.createContext)({strict:!1});var d=n(52041),u=n(65177),h=n(89672);function p(e){return Array.isArray(e)?e.join(" "):e}var f=n(28400),m=n(56992),g=n(24258);let b=(0,r.createContext)({}),v=Symbol.for("motionComponentSymbol"),y=["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 x(e){if("string"!=typeof e||e.includes("-"));else if(y.indexOf(e)>-1||/[A-Z]/.test(e))return!0;return!1}var w=n(85040),k=n(13546),_=n(32650);let E=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function S(e,t,n){for(let i in t)(0,k.i)(t[i])||(0,w.j)(i,n)||(e[i]=t[i])}function C(e,t,n){let i={},o=function(e,t,n){let i=e.style||{},o={};return S(o,i,e),Object.assign(o,function({transformTemplate:e},t,n){return(0,r.useMemo)(()=>{let i=E();return(0,_.r)(i,t,{enableHardwareAcceleration:!n},e),Object.assign({},i.vars,i.style)},[t])}(e,t,n)),e.transformValues?e.transformValues(o):o}(e,t,n);return e.drag&&!1!==e.dragListener&&(i.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}`),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(i.tabIndex=0),i.style=o,i}let P=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 T(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||P.has(e)}let O=e=>!T(e);try{(i=require("@emotion/is-prop-valid").default)&&(O=e=>e.startsWith("on")?!T(e):i(e))}catch(e){}var A=n(52394);let I=()=>({...E(),attrs:{}});var R=n(28610);function $(e,t,n,i){let o=(0,r.useMemo)(()=>{let n=I();return(0,A.i)(n,t,{enableHardwareAcceleration:!1},(0,R.a)(i),e.transformTemplate),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};S(t,e.style,e),o.style={...t,...o.style}}return o}var L=n(14852),M=n(94752),j=n(92292),D=n(21197),N=n(38787),F=n(89497);function z(e){let t=(0,k.i)(e)?e.get():e;return(0,F.p)(t)?t.toValue():t}let B=e=>(t,n)=>{let i=(0,r.useContext)(a),o=(0,r.useContext)(s.O),l=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},i,r,o){let a={latestValues:function(e,t,n,i){let r={},o=i(e,{});for(let e in o)r[e]=z(o[e]);let{initial:a,animate:s}=e,l=(0,h.G)(e),c=(0,h.M)(e);t&&c&&!l&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===s&&(s=t.animate));let d=!!n&&!1===n.initial;d=d||!1===a;let u=d?s:a;if(u&&"boolean"!=typeof u&&!(0,j.H)(u)){let t=Array.isArray(u)?u:[u];t.forEach(t=>{let n=(0,D.o)(e,t);if(!n)return;let{transitionEnd:i,transition:o,...a}=n;for(let e in a){let t=a[e];if(Array.isArray(t)){let e=d?t.length-1:0;t=t[e]}null!==t&&(r[e]=t)}for(let e in i)r[e]=i[e]})}return r}(i,r,o,e),renderState:t()};return n&&(a.mount=e=>n(i,e,a)),a})(e,t,i,o);return n?l():(0,N.h)(l)};var H=n(86564);let U={useVisualState:B({scrapeMotionValuesFromProps:M.U,createRenderState:I,onMount:(e,t,{renderState:n,latestValues:i})=>{H.Wi.read(()=>{try{n.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){n.dimensions={x:0,y:0,width:0,height:0}}}),H.Wi.render(()=>{(0,A.i)(n,i,{enableHardwareAcceleration:!1},(0,R.a)(t.tagName),e.transformTemplate),(0,L.K)(t,n)})}})};var V=n(5981);let W={useVisualState:B({scrapeMotionValuesFromProps:V.U,createRenderState:E})};function q(e,t,n,i={passive:!0}){return e.addEventListener(t,n,i),()=>e.removeEventListener(t,n)}let G=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function X(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}let Y=e=>t=>G(t)&&e(t,X(t));function K(e,t,n,i){return q(e,t,Y(n),i)}var J=n(66631);function Z(e){let t=null;return()=>null===t&&(t=e,()=>{t=null})}let Q=Z("dragHorizontal"),ee=Z("dragVertical");function et(e){let t=!1;if("y"===e)t=ee();else if("x"===e)t=Q();else{let e=Q(),n=ee();e&&n?t=()=>{e(),n()}:(e&&e(),n&&n())}return t}function en(){let e=et(!0);return!e||(e(),!1)}class ei{constructor(e){this.isMounted=!1,this.node=e}update(){}}function er(e,t){let n="onHover"+(t?"Start":"End");return K(e.current,"pointer"+(t?"enter":"leave"),(i,r)=>{if("touch"===i.type||en())return;let o=e.getProps();e.animationState&&o.whileHover&&e.animationState.setActive("whileHover",t),o[n]&&H.Wi.update(()=>o[n](i,r))},{passive:!e.getProps()[n]})}class eo extends ei{mount(){this.unmount=(0,J.z)(er(this.node,!0),er(this.node,!1))}unmount(){}}class ea extends ei{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&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=(0,J.z)(q(this.node.current,"focus",()=>this.onFocus()),q(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}let es=(e,t)=>!!t&&(e===t||es(e,t.parentElement));var el=n(59472);function ec(e,t){if(!t)return;let n=new PointerEvent("pointer"+e);t(n,X(n))}class ed extends ei{constructor(){super(...arguments),this.removeStartListeners=el.Z,this.removeEndListeners=el.Z,this.removeAccessibleListeners=el.Z,this.startPointerPress=(e,t)=>{if(this.removeEndListeners(),this.isPressing)return;let n=this.node.getProps(),i=K(window,"pointerup",(e,t)=>{if(!this.checkPressEnd())return;let{onTap:n,onTapCancel:i}=this.node.getProps();H.Wi.update(()=>{es(this.node.current,e.target)?n&&n(e,t):i&&i(e,t)})},{passive:!(n.onTap||n.onPointerUp)}),r=K(window,"pointercancel",(e,t)=>this.cancelPress(e,t),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=(0,J.z)(i,r),this.startPress(e,t)},this.startAccessiblePress=()=>{let e=q(this.node.current,"keydown",e=>{"Enter"!==e.key||this.isPressing||(this.removeEndListeners(),this.removeEndListeners=q(this.node.current,"keyup",e=>{"Enter"===e.key&&this.checkPressEnd()&&ec("up",(e,t)=>{let{onTap:n}=this.node.getProps();n&&H.Wi.update(()=>n(e,t))})}),ec("down",(e,t)=>{this.startPress(e,t)}))}),t=q(this.node.current,"blur",()=>{this.isPressing&&ec("cancel",(e,t)=>this.cancelPress(e,t))});this.removeAccessibleListeners=(0,J.z)(e,t)}}startPress(e,t){this.isPressing=!0;let{onTapStart:n,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&H.Wi.update(()=>n(e,t))}checkPressEnd(){this.removeEndListeners(),this.isPressing=!1;let e=this.node.getProps();return e.whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!en()}cancelPress(e,t){if(!this.checkPressEnd())return;let{onTapCancel:n}=this.node.getProps();n&&H.Wi.update(()=>n(e,t))}mount(){let e=this.node.getProps(),t=K(this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),n=q(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=(0,J.z)(t,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}let eu=new WeakMap,eh=new WeakMap,ep=e=>{let t=eu.get(e.target);t&&t(e)},ef=e=>{e.forEach(ep)},em={some:0,all:1};class eg extends ei{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:i="some",once:r}=e,o={root:t?t.current:void 0,rootMargin:n,threshold:"number"==typeof i?i:em[i]};return function(e,t,n){let i=function({root:e,...t}){let n=e||document;eh.has(n)||eh.set(n,{});let i=eh.get(n),r=JSON.stringify(t);return i[r]||(i[r]=new IntersectionObserver(ef,{root:e,...t})),i[r]}(t);return eu.set(e,n),i.observe(e),()=>{eu.delete(e),i.unobserve(e)}}(this.node.current,o,e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,r&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);let{onViewportEnter:n,onViewportLeave:i}=this.node.getProps(),o=t?n:i;o&&o(e)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:e,prevProps:t}=this.node,n=["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t));n&&this.startObserver()}unmount(){}}var eb=n(47087);function ev(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let i=0;i<n;i++)if(t[i]!==e[i])return!1;return!0}var ey=n(87936),ex=n(27410),ew=n(53542);function ek(e,t,n={}){let i=(0,ey.x)(e,t,n.custom),{transition:r=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(r=n.transitionOverride);let o=i?()=>Promise.all((0,ew.w)(e,i,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(i=0)=>{let{delayChildren:o=0,staggerChildren:a,staggerDirection:s}=r;return function(e,t,n=0,i=0,r=1,o){let a=[],s=(e.variantChildren.size-1)*i,l=1===r?(e=0)=>e*i:(e=0)=>s-e*i;return Array.from(e.variantChildren).sort(e_).forEach((e,i)=>{e.notify("AnimationStart",t),a.push(ek(e,t,{...o,delay:n+l(i)}).then(()=>e.notify("AnimationComplete",t)))}),Promise.all(a)}(e,t,o+i,a,s,n)}:()=>Promise.resolve(),{when:s}=r;if(!s)return Promise.all([o(),a(n.delay)]);{let[e,t]="beforeChildren"===s?[o,a]:[a,o];return e().then(()=>t())}}function e_(e,t){return e.sortNodePosition(t)}let eE=[...ex.e].reverse(),eS=ex.e.length;function eC(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}class eP extends ei{constructor(e){super(e),e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(({animation:t,options:n})=>(function(e,t,n={}){let i;if(e.notify("AnimationStart",t),Array.isArray(t)){let r=t.map(t=>ek(e,t,n));i=Promise.all(r)}else if("string"==typeof t)i=ek(e,t,n);else{let r="function"==typeof t?(0,ey.x)(e,t,n.custom):t;i=Promise.all((0,ew.w)(e,r,n))}return i.then(()=>e.notify("AnimationComplete",t))})(e,t,n))),n={animate:eC(!0),whileInView:eC(),whileHover:eC(),whileTap:eC(),whileDrag:eC(),whileFocus:eC(),exit:eC()},i=!0,r=(t,n)=>{let i=(0,ey.x)(e,n);if(i){let{transition:e,transitionEnd:n,...r}=i;t={...t,...r,...n}}return t};function o(o,a){let s=e.getProps(),l=e.getVariantContext(!0)||{},c=[],d=new Set,h={},p=1/0;for(let t=0;t<eS;t++){var f;let m=eE[t],g=n[m],b=void 0!==s[m]?s[m]:l[m],v=(0,u.$)(b),y=m===a?g.isActive:null;!1===y&&(p=t);let x=b===l[m]&&b!==s[m]&&v;if(x&&i&&e.manuallyAnimateOnMount&&(x=!1),g.protectedKeys={...h},!g.isActive&&null===y||!b&&!g.prevProp||(0,j.H)(b)||"boolean"==typeof b)continue;let w=(f=g.prevProp,"string"==typeof b?b!==f:!!Array.isArray(b)&&!ev(b,f)),k=w||m===a&&g.isActive&&!x&&v||t>p&&v,_=Array.isArray(b)?b:[b],E=_.reduce(r,{});!1===y&&(E={});let{prevResolvedValues:S={}}=g,C={...S,...E},P=e=>{k=!0,d.delete(e),g.needsAnimating[e]=!0};for(let e in C){let t=E[e],n=S[e];h.hasOwnProperty(e)||(t!==n?(0,eb.C)(t)&&(0,eb.C)(n)?!ev(t,n)||w?P(e):g.protectedKeys[e]=!0:void 0!==t?P(e):d.add(e):void 0!==t&&d.has(e)?P(e):g.protectedKeys[e]=!0)}g.prevProp=b,g.prevResolvedValues=E,g.isActive&&(h={...h,...E}),i&&e.blockInitialAnimation&&(k=!1),k&&!x&&c.push(..._.map(e=>({animation:e,options:{type:m,...o}})))}if(d.size){let t={};d.forEach(n=>{let i=e.getBaseTarget(n);void 0!==i&&(t[n]=i)}),c.push({animation:t})}let m=!!c.length;return i&&!1===s.initial&&!e.manuallyAnimateOnMount&&(m=!1),i=!1,m?t(c):Promise.resolve()}return{animateChanges:o,setActive:function(t,i,r){var a;if(n[t].isActive===i)return Promise.resolve();null===(a=e.variantChildren)||void 0===a||a.forEach(e=>{var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,i)}),n[t].isActive=i;let s=o(r,t);for(let e in n)n[e].protectedKeys={};return s},setAnimateFunction:function(n){t=n(e)},getState:()=>n}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();this.unmount(),(0,j.H)(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){}}let eT=0;class eO extends ei{constructor(){super(...arguments),this.id=eT++}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t,custom:n}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===i)return;let r=this.node.animationState.setActive("exit",!e,{custom:null!=n?n:this.node.getProps().custom});t&&!e&&r.then(()=>t(this.id))}mount(){let{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}var eA=n(28256),eI=n(50003);let eR=(e,t)=>Math.abs(e-t);class e${constructor(e,t,{transformPagePoint:n}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let e=ej(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){let n=eR(e.x,t.x),i=eR(e.y,t.y);return Math.sqrt(n**2+i**2)}(e.offset,{x:0,y:0})>=3;if(!t&&!n)return;let{point:i}=e,{timestamp:r}=H.frameData;this.history.push({...i,timestamp:r});let{onStart:o,onMove:a}=this.handlers;t||(o&&o(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=eL(t,this.transformPagePoint),H.Wi.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{if(this.end(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let{onEnd:n,onSessionEnd:i}=this.handlers,r=ej("pointercancel"===e.type?this.lastMoveEventInfo:eL(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,r),i&&i(e,r)},!G(e))return;this.handlers=t,this.transformPagePoint=n;let i=X(e),r=eL(i,this.transformPagePoint),{point:o}=r,{timestamp:a}=H.frameData;this.history=[{...o,timestamp:a}];let{onSessionStart:s}=t;s&&s(e,ej(r,this.history)),this.removeListeners=(0,J.z)(K(window,"pointermove",this.handlePointerMove),K(window,"pointerup",this.handlePointerUp),K(window,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),(0,H.Pn)(this.updatePoint)}}function eL(e,t){return t?{point:t(e.point)}:e}function eM(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ej({point:e},t){return{point:e,delta:eM(e,eD(t)),offset:eM(e,t[0]),velocity:function(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,i=null,r=eD(e);for(;n>=0&&(i=e[n],!(r.timestamp-i.timestamp>(0,eI.w)(.1)));)n--;if(!i)return{x:0,y:0};let o=(0,eI.X)(r.timestamp-i.timestamp);if(0===o)return{x:0,y:0};let a={x:(r.x-i.x)/o,y:(r.y-i.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}(t,0)}}function eD(e){return e[e.length-1]}var eN=n(35546),eF=n(86725);function ez(e){return e.max-e.min}function eB(e,t=0,n=.01){return Math.abs(e-t)<=n}function eH(e,t,n,i=.5){e.origin=i,e.originPoint=(0,eF.C)(t.min,t.max,e.origin),e.scale=ez(n)/ez(t),(eB(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=(0,eF.C)(n.min,n.max,e.origin)-e.originPoint,(eB(e.translate)||isNaN(e.translate))&&(e.translate=0)}function eU(e,t,n,i){eH(e.x,t.x,n.x,i?i.originX:void 0),eH(e.y,t.y,n.y,i?i.originY:void 0)}function eV(e,t,n){e.min=n.min+t.min,e.max=e.min+ez(t)}function eW(e,t,n){e.min=t.min-n.min,e.max=e.min+ez(t)}function eq(e,t,n){eW(e.x,t.x,n.x),eW(e.y,t.y,n.y)}var eG=n(34314);function eX(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function eY(e,t){let n=t.min-e.min,i=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,i]=[i,n]),{min:n,max:i}}function eK(e,t,n){return{min:eJ(e,t),max:eJ(e,n)}}function eJ(e,t){return"number"==typeof e?e:e[t]||0}var eZ=n(99369);function eQ(e){return[e("x"),e("y")]}var e0=n(47363),e1=n(41721),e2=n(5231),e5=n(76311);let e3=new WeakMap;class e4{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=(0,eZ.dO)(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){let{presenceContext:n}=this.visualElement;n&&!1===n.isPresent||(this.panSession=new e$(e,{onSessionStart:e=>{this.stopAnimation(),t&&this.snapToCursor(X(e,"page").point)},onStart:(e,t)=>{let{drag:n,dragPropagation:i,onDragStart:r}=this.getProps();if(n&&!i&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=et(n),!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),eQ(e=>{let t=this.getAxisMotionValue(e).get()||0;if(e2.aQ.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let i=n.layout.layoutBox[e];if(i){let e=ez(i);t=e*(parseFloat(t)/100)}}}this.originPoint[e]=t}),r&&H.Wi.update(()=>r(e,t),!1,!0);let{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},onMove:(e,t)=>{let{dragPropagation:n,dragDirectionLock:i,onDirectionLock:r,onDrag:o}=this.getProps();if(!n&&!this.openGlobalLock)return;let{offset:a}=t;if(i&&null===this.currentDirection){this.currentDirection=function(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(a),null!==this.currentDirection&&r&&r(this.currentDirection);return}this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),o&&o(e,t)},onSessionEnd:(e,t)=>this.stop(e,t)},{transformPagePoint:this.visualElement.getTransformPagePoint()}))}stop(e,t){let n=this.isDragging;if(this.cancel(),!n)return;let{velocity:i}=t;this.startAnimation(i);let{onDragEnd:r}=this.getProps();r&&H.Wi.update(()=>r(e,t))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,n){let{drag:i}=this.getProps();if(!n||!e6(e,i,this.currentDirection))return;let r=this.getAxisMotionValue(e),o=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(o=function(e,{min:t,max:n},i){return void 0!==t&&e<t?e=i?(0,eF.C)(t,e,i.min):Math.max(e,t):void 0!==n&&e>n&&(e=i?(0,eF.C)(n,e,i.max):Math.min(e,n)),e}(o,this.constraints[e],this.elastic[e])),r.set(o)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),{layout:n}=this.visualElement.projection||{},i=this.constraints;e&&(0,d.I)(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=function(e,{top:t,left:n,bottom:i,right:r}){return{x:eX(e.x,n,r),y:eX(e.y,t,i)}}(n.layoutBox,e):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:eK(e,"left","right"),y:eK(e,"top","bottom")}}(t),i!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&eQ(e=>{this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){let n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!(0,d.I)(t))return!1;let i=t.current;(0,eA.k)(null!==i,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:r}=this.visualElement;if(!r||!r.layout)return!1;let o=(0,e0.z)(i,r.root,this.visualElement.getTransformPagePoint()),a={x:eY((e=r.layout.layoutBox).x,o.x),y:eY(e.y,o.y)};if(n){let e=n((0,e1.z2)(a));this.hasMutatedConstraints=!!e,e&&(a=(0,e1.i8)(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:i,dragTransition:r,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{},l=eQ(a=>{if(!e6(a,t,this.currentDirection))return;let l=s&&s[a]||{};o&&(l={min:0,max:0});let c={type:"inertia",velocity:n?e[a]:0,bounceStiffness:i?200:1e6,bounceDamping:i?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...r,...l};return this.startAxisValueAnimation(a,c)});return Promise.all(l).then(a)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return n.start((0,e5.v)(e,n,0,t))}stopAnimation(){eQ(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t="_drag"+e.toUpperCase(),n=this.visualElement.getProps(),i=n[t];return i||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){eQ(t=>{let{drag:n}=this.getProps();if(!e6(t,n,this.currentDirection))return;let{projection:i}=this.visualElement,r=this.getAxisMotionValue(t);if(i&&i.layout){let{min:n,max:o}=i.layout.layoutBox[t];r.set(e[t]-(0,eF.C)(n,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!(0,d.I)(t)||!n||!this.constraints)return;this.stopAnimation();let i={x:0,y:0};eQ(e=>{let t=this.getAxisMotionValue(e);if(t){let n=t.get();i[e]=function(e,t){let n=.5,i=ez(e),r=ez(t);return r>i?n=(0,eN.Y)(t.min,t.max-i,e.min):i>r&&(n=(0,eN.Y)(e.min,e.max-r,t.min)),(0,eG.u)(0,1,n)}({min:n,max:n},this.constraints[e])}});let{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),eQ(t=>{if(!e6(t,e,null))return;let n=this.getAxisMotionValue(t),{min:r,max:o}=this.constraints[t];n.set((0,eF.C)(r,o,i[t]))})}addListeners(){if(!this.visualElement.current)return;e3.set(this.visualElement,this);let e=this.visualElement.current,t=K(e,"pointerdown",e=>{let{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)}),n=()=>{let{dragConstraints:e}=this.getProps();(0,d.I)(e)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,r=i.addEventListener("measure",n);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),n();let o=q(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(eQ(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())});return()=>{o(),t(),r(),a&&a()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:i=!1,dragConstraints:r=!1,dragElastic:o=.35,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:i,dragConstraints:r,dragElastic:o,dragMomentum:a}}}function e6(e,t,n){return(!0===t||t===e)&&(null===n||n===e)}class e8 extends ei{constructor(e){super(e),this.removeGroupControls=el.Z,this.removeListeners=el.Z,this.controls=new e4(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||el.Z}unmount(){this.removeGroupControls(),this.removeListeners()}}let e9=e=>(t,n)=>{e&&H.Wi.update(()=>e(t,n))};class e7 extends ei{constructor(){super(...arguments),this.removePointerDownListener=el.Z}onPointerDown(e){this.session=new e$(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:i}=this.node.getProps();return{onSessionStart:e9(e),onStart:e9(t),onMove:n,onEnd:(e,t)=>{delete this.session,i&&H.Wi.update(()=>i(e,t))}}}mount(){this.removePointerDownListener=K(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let te={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function tt(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let tn={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!e2.px.test(e))return e;e=parseFloat(e)}let n=tt(e,t.target.x),i=tt(e,t.target.y);return`${n}% ${i}%`}};var ti=n(75740),tr=n(21340);class to extends r.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:i}=this.props,{projection:r}=e;(0,tr.B)(ts),r&&(t.group&&t.group.add(r),n&&n.register&&i&&n.register(r),r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,onExitComplete:()=>this.safeToRemove()})),te.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:i,isPresent:r}=this.props,o=n.projection;return o&&(o.isPresent=r,i||e.layoutDependency!==t||void 0===t?o.willUpdate():this.safeToRemove(),e.isPresent===r||(r?o.promote():o.relegate()||H.Wi.postRender(()=>{let e=o.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),queueMicrotask(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:i}=e;i&&(i.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(i),n&&n.deregister&&n.deregister(i))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}}function ta(e){let[t,n]=function(){let e=(0,r.useContext)(s.O);if(null===e)return[!0,null];let{isPresent:t,onExitComplete:n,register:i}=e,o=(0,r.useId)();return(0,r.useEffect)(()=>i(o),[]),!t&&n?[!1,()=>n&&n(o)]:[!0]}(),i=(0,r.useContext)(g.p);return r.createElement(to,{...e,layoutGroup:i,switchLayoutGroup:(0,r.useContext)(b),isPresent:t,safeToRemove:n})}let ts={borderRadius:{...tn,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:tn,borderTopRightRadius:tn,borderBottomLeftRadius:tn,borderBottomRightRadius:tn,boxShadow:{correct:(e,{treeScale:t,projectionDelta:n})=>{let i=ti.P.parse(e);if(i.length>5)return e;let r=ti.P.createTransformer(e),o="number"!=typeof i[0]?1:0,a=n.x.scale*t.x,s=n.y.scale*t.y;i[0+o]/=a,i[1+o]/=s;let l=(0,eF.C)(a,s,.5);return"number"==typeof i[2+o]&&(i[2+o]/=l),"number"==typeof i[3+o]&&(i[3+o]/=l),r(i)}}};var tl=n(58856),tc=n(43633);let td=["TopLeft","TopRight","BottomLeft","BottomRight"],tu=td.length,th=e=>"string"==typeof e?parseFloat(e):e,tp=e=>"number"==typeof e||e2.px.test(e);function tf(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let tm=tb(0,.5,tc.Bn),tg=tb(.5,.95,el.Z);function tb(e,t,n){return i=>i<e?0:i>t?1:n((0,eN.Y)(e,t,i))}function tv(e,t){e.min=t.min,e.max=t.max}function ty(e,t){tv(e.x,t.x),tv(e.y,t.y)}var tx=n(78792);function tw(e,t,n,i,r){return e-=t,e=(0,tx.q2)(e,1/n,i),void 0!==r&&(e=(0,tx.q2)(e,1/r,i)),e}function tk(e,t,[n,i,r],o,a){!function(e,t=0,n=1,i=.5,r,o=e,a=e){if(e2.aQ.test(t)){t=parseFloat(t);let e=(0,eF.C)(a.min,a.max,t/100);t=e-a.min}if("number"!=typeof t)return;let s=(0,eF.C)(o.min,o.max,i);e===o&&(s-=t),e.min=tw(e.min,t,n,s,r),e.max=tw(e.max,t,n,s,r)}(e,t[n],t[i],t[r],t.scale,o,a)}let t_=["x","scaleX","originX"],tE=["y","scaleY","originY"];function tS(e,t,n,i){tk(e.x,t,t_,n?n.x:void 0,i?i.x:void 0),tk(e.y,t,tE,n?n.y:void 0,i?i.y:void 0)}var tC=n(25100);function tP(e){return 0===e.translate&&1===e.scale}function tT(e){return tP(e.x)&&tP(e.y)}function tO(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 tA(e){return ez(e.x)/ez(e.y)}var tI=n(6251);class tR{constructor(){this.members=[]}add(e){(0,tI.y4)(this.members,e),e.scheduleRender()}remove(e){if((0,tI.cl)(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){let t;let n=this.members.findIndex(t=>e===t);if(0===n)return!1;for(let e=n;e>=0;e--){let n=this.members[e];if(!1!==n.isPresent){t=n;break}}return!!t&&(this.promote(t),!0)}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);let{crossfade:i}=e.options;!1===i&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{let{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function t$(e,t,n){let i="",r=e.x.translate/t.x,o=e.y.translate/t.y;if((r||o)&&(i=`translate3d(${r}px, ${o}px, 0) `),(1!==t.x||1!==t.y)&&(i+=`scale(${1/t.x}, ${1/t.y}) `),n){let{rotate:e,rotateX:t,rotateY:r}=n;e&&(i+=`rotate(${e}deg) `),t&&(i+=`rotateX(${t}deg) `),r&&(i+=`rotateY(${r}deg) `)}let a=e.x.scale*t.x,s=e.y.scale*t.y;return(1!==a||1!==s)&&(i+=`scale(${a}, ${s})`),i||"none"}var tL=n(73938);let tM=(e,t)=>e.depth-t.depth;class tj{constructor(){this.children=[],this.isDirty=!1}add(e){(0,tI.y4)(this.children,e),this.isDirty=!0}remove(e){(0,tI.cl)(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(tM),this.isDirty=!1,this.children.forEach(e)}}var tD=n(64439),tN=n(72213);let tF=["","X","Y","Z"],tz=0,tB={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function tH({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:i,resetTransform:r}){return class{constructor(e={},n=null==t?void 0:t()){this.id=tz++,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.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{tB.totalNodes=tB.resolvedTargetDeltas=tB.recalculatedProjection=0,this.nodes.forEach(tW),this.nodes.forEach(tZ),this.nodes.forEach(tQ),this.nodes.forEach(tq),window.MotionDebug&&window.MotionDebug.record(tB)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new tj)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new tl.L),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t,n=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=(0,tD.v)(t),this.instance=t;let{layoutId:i,layout:r,visualElement:o}=this.options;if(o&&!o.current&&o.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),n&&(r||i)&&(this.isLayoutDirty=!0),e){let n;let i=()=>this.root.updateBlockedByResize=!1;e(t,()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(e,t){let n=performance.now(),i=({timestamp:r})=>{let o=r-n;o>=t&&((0,H.Pn)(i),e(o-t))};return H.Wi.read(i,!0),()=>(0,H.Pn)(i)}(i,250),te.hasAnimatedSinceResize&&(te.hasAnimatedSinceResize=!1,this.nodes.forEach(tJ))})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&o&&(i||r)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:n,layout:i})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let r=this.options.transition||o.getDefaultTransition()||t4,{onLayoutAnimationStart:a,onLayoutAnimationComplete:s}=o.getProps(),l=!this.targetLayout||!tO(this.targetLayout,i)||n,c=!t&&n;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||c||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,c);let t={...(0,tC.e)(r,"layout"),onPlay:a,onComplete:s};(o.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||tJ(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=i})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,(0,H.Pn)(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(t0),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!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 e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(void 0===t&&!n)return;let i=this.getTransformTemplate();this.prevTransformTemplateValue=i?i(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){this.updateScheduled=!1;let e=this.isUpdateBlocked();if(e){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(tX);return}this.isUpdating||this.nodes.forEach(tY),this.isUpdating=!1,this.nodes.forEach(tK),this.nodes.forEach(tU),this.nodes.forEach(tV),this.clearAllSnapshots();let t=performance.now();H.frameData.delta=(0,eG.u)(0,1e3/60,t-H.frameData.timestamp),H.frameData.timestamp=t,H.frameData.isProcessing=!0,H.S6.update.process(H.frameData),H.S6.preRender.process(H.frameData),H.S6.render.process(H.frameData),H.frameData.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(tG),this.sharedNodes.forEach(t1)}scheduleUpdateProjection(){H.Wi.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){H.Wi.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 e=0;e<this.path.length;e++){let t=this.path[e];t.updateScroll()}let e=this.layout;this.layout=this.measure(!1),this.layoutCorrected=(0,eZ.dO)(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&(this.scroll={animationId:this.root.animationId,phase:e,isRoot:i(this.instance),offset:n(this.instance)})}resetTransform(){if(!r)return;let e=this.isLayoutDirty||this.shouldResetTransform,t=this.projectionDelta&&!tT(this.projectionDelta),n=this.getTransformTemplate(),i=n?n(this.latestValues,""):void 0,o=i!==this.prevTransformTemplateValue;e&&(t||(0,tL.ud)(this.latestValues)||o)&&(r(this.instance,i),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){var t;let n=this.measurePageBox(),i=this.removeElementScroll(n);return e&&(i=this.removeTransform(i)),t9((t=i).x),t9(t.y),{animationId:this.root.animationId,measuredBox:n,layoutBox:i,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return(0,eZ.dO)();let t=e.measureViewportBox(),{scroll:n}=this.root;return n&&((0,tx.am)(t.x,n.offset.x),(0,tx.am)(t.y,n.offset.y)),t}removeElementScroll(e){let t=(0,eZ.dO)();ty(t,e);for(let n=0;n<this.path.length;n++){let i=this.path[n],{scroll:r,options:o}=i;if(i!==this.root&&r&&o.layoutScroll){if(r.isRoot){ty(t,e);let{scroll:n}=this.root;n&&((0,tx.am)(t.x,-n.offset.x),(0,tx.am)(t.y,-n.offset.y))}(0,tx.am)(t.x,r.offset.x),(0,tx.am)(t.y,r.offset.y)}}return t}applyTransform(e,t=!1){let n=(0,eZ.dO)();ty(n,e);for(let e=0;e<this.path.length;e++){let i=this.path[e];!t&&i.options.layoutScroll&&i.scroll&&i!==i.root&&(0,tx.D2)(n,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),(0,tL.ud)(i.latestValues)&&(0,tx.D2)(n,i.latestValues)}return(0,tL.ud)(this.latestValues)&&(0,tx.D2)(n,this.latestValues),n}removeTransform(e){let t=(0,eZ.dO)();ty(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!n.instance||!(0,tL.ud)(n.latestValues))continue;(0,tL.Lj)(n.latestValues)&&n.updateSnapshot();let i=(0,eZ.dO)(),r=n.measurePageBox();ty(i,r),tS(t,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,i)}return(0,tL.ud)(this.latestValues)&&tS(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==H.frameData.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){var t,n,i,r;let o=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=o.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=o.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=o.isSharedProjectionDirty);let a=!!this.resumingFrom||this!==o,s=!(e||a&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget);if(s)return;let{layout:l,layoutId:c}=this.options;if(this.layout&&(l||c)){if(this.resolvedRelativeTargetAt=H.frameData.timestamp,!this.targetDelta&&!this.relativeTarget){let e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=(0,eZ.dO)(),this.relativeTargetOrigin=(0,eZ.dO)(),eq(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),ty(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if((this.target||(this.target=(0,eZ.dO)(),this.targetWithTransforms=(0,eZ.dO)()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target)?(this.forceRelativeParentToResolveTarget(),n=this.target,i=this.relativeTarget,r=this.relativeParent.target,eV(n.x,i.x,r.x),eV(n.y,i.y,r.y)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):ty(this.target,this.layout.layoutBox),(0,tx.o2)(this.target,this.targetDelta)):ty(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let e=this.getClosestProjectingParent();e&&!!e.resumingFrom==!!this.resumingFrom&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=(0,eZ.dO)(),this.relativeTargetOrigin=(0,eZ.dO)(),eq(this.relativeTargetOrigin,this.target,e.target),ty(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}tB.resolvedTargetDeltas++}}}getClosestProjectingParent(){return!this.parent||(0,tL.Lj)(this.parent.latestValues)||(0,tL.D_)(this.parent.latestValues)?void 0:this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var e;let t=this.getLead(),n=!!this.resumingFrom||this!==t,i=!0;if((this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty))&&(i=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===H.frameData.timestamp&&(i=!1),i)return;let{layout:r,layoutId:o}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||o))return;ty(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,s=this.treeScale.y;(0,tx.YY)(this.layoutCorrected,this.treeScale,this.path,n),t.layout&&!t.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(t.target=t.layout.layoutBox);let{target:l}=t;if(!l){this.projectionTransform&&(this.projectionDelta=(0,eZ.wc)(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=(0,eZ.wc)(),this.projectionDeltaWithTransform=(0,eZ.wc)());let c=this.projectionTransform;eU(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.projectionTransform=t$(this.projectionDelta,this.treeScale),(this.projectionTransform!==c||this.treeScale.x!==a||this.treeScale.y!==s)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),tB.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(e,t=!1){let n;let i=this.snapshot,r=i?i.latestValues:{},o={...this.latestValues},a=(0,eZ.wc)();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let s=(0,eZ.dO)(),l=i?i.source:void 0,c=this.layout?this.layout.source:void 0,d=l!==c,u=this.getStack(),h=!u||u.members.length<=1,p=!!(d&&!h&&!0===this.options.crossfade&&!this.path.some(t3));this.animationProgress=0,this.mixTargetDelta=t=>{let i=t/1e3;if(t2(a.x,e.x,i),t2(a.y,e.y,i),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var l,c,u,f;eq(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox),u=this.relativeTarget,f=this.relativeTargetOrigin,t5(u.x,f.x,s.x,i),t5(u.y,f.y,s.y,i),n&&(l=this.relativeTarget,c=n,l.x.min===c.x.min&&l.x.max===c.x.max&&l.y.min===c.y.min&&l.y.max===c.y.max)&&(this.isProjectionDirty=!1),n||(n=(0,eZ.dO)()),ty(n,this.relativeTarget)}d&&(this.animationValues=o,function(e,t,n,i,r,o){r?(e.opacity=(0,eF.C)(0,void 0!==n.opacity?n.opacity:1,tm(i)),e.opacityExit=(0,eF.C)(void 0!==t.opacity?t.opacity:1,0,tg(i))):o&&(e.opacity=(0,eF.C)(void 0!==t.opacity?t.opacity:1,void 0!==n.opacity?n.opacity:1,i));for(let r=0;r<tu;r++){let o=`border${td[r]}Radius`,a=tf(t,o),s=tf(n,o);if(void 0===a&&void 0===s)continue;a||(a=0),s||(s=0);let l=0===a||0===s||tp(a)===tp(s);l?(e[o]=Math.max((0,eF.C)(th(a),th(s),i),0),(e2.aQ.test(s)||e2.aQ.test(a))&&(e[o]+="%")):e[o]=s}(t.rotate||n.rotate)&&(e.rotate=(0,eF.C)(t.rotate||0,n.rotate||0,i))}(o,r,this.latestValues,i,p,h)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=i},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&((0,H.Pn)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=H.Wi.update(()=>{te.hasAnimatedSinceResize=!0,this.currentAnimation=(0,tN.D)(0,1e3,{...e,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.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);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:i,latestValues:r}=e;if(t&&n&&i){if(this!==e&&this.layout&&i&&t7(this.options.animationType,this.layout.layoutBox,i.layoutBox)){n=this.target||(0,eZ.dO)();let t=ez(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let i=ez(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+i}ty(t,n),(0,tx.D2)(t,r),eU(this.projectionDeltaWithTransform,this.layoutCorrected,t,r)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new tR);let n=this.sharedNodes.get(e);n.add(t);let i=t.options.initialPromotionConfig;t.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){var e;let{layoutId:t}=this.options;return t&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;let{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let i=this.getStack();i&&i.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.rotate||n.rotateX||n.rotateY||n.rotateZ)&&(t=!0),!t)return;let i={};for(let t=0;t<tF.length;t++){let r="rotate"+tF[t];n[r]&&(i[r]=n[r],e.setStaticValue(r,0))}for(let t in e.render(),i)e.setStaticValue(t,i[t]);e.scheduleRender()}getProjectionStyles(e={}){var t,n;let i={};if(!this.instance||this.isSVG)return i;if(!this.isVisible)return{visibility:"hidden"};i.visibility="";let r=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,i.opacity="",i.pointerEvents=z(e.pointerEvents)||"",i.transform=r?r(this.latestValues,""):"none",i;let o=this.getLead();if(!this.projectionDelta||!this.layout||!o.target){let t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=z(e.pointerEvents)||""),this.hasProjected&&!(0,tL.ud)(this.latestValues)&&(t.transform=r?r({},""):"none",this.hasProjected=!1),t}let a=o.animationValues||o.latestValues;this.applyTransformsToTarget(),i.transform=t$(this.projectionDeltaWithTransform,this.treeScale,a),r&&(i.transform=r(a,i.transform));let{x:s,y:l}=this.projectionDelta;for(let e in i.transformOrigin=`${100*s.origin}% ${100*l.origin}% 0`,o.animationValues?i.opacity=o===this?null!==(n=null!==(t=a.opacity)&&void 0!==t?t:this.latestValues.opacity)&&void 0!==n?n:1:this.preserveOpacity?this.latestValues.opacity:a.opacityExit:i.opacity=o===this?void 0!==a.opacity?a.opacity:"":void 0!==a.opacityExit?a.opacityExit:0,tr.P){if(void 0===a[e])continue;let{correct:t,applyTo:n}=tr.P[e],r="none"===i.transform?a[e]:t(a[e],o);if(n){let e=n.length;for(let t=0;t<e;t++)i[n[t]]=r}else i[e]=r}return this.options.layoutId&&(i.pointerEvents=o===this?z(e.pointerEvents)||"":"none"),i}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()}),this.root.nodes.forEach(tX),this.root.sharedNodes.clear()}}}function tU(e){e.updateLayout()}function tV(e){var t;let n=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){let{layoutBox:t,measuredBox:i}=e.layout,{animationType:r}=e.options,o=n.source!==e.layout.source;"size"===r?eQ(e=>{let i=o?n.measuredBox[e]:n.layoutBox[e],r=ez(i);i.min=t[e].min,i.max=i.min+r}):t7(r,n.layoutBox,t)&&eQ(i=>{let r=o?n.measuredBox[i]:n.layoutBox[i],a=ez(t[i]);r.max=r.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[i].max=e.relativeTarget[i].min+a)});let a=(0,eZ.wc)();eU(a,t,n.layoutBox);let s=(0,eZ.wc)();o?eU(s,e.applyTransform(i,!0),n.measuredBox):eU(s,t,n.layoutBox);let l=!tT(a),c=!1;if(!e.resumeFrom){let i=e.getClosestProjectingParent();if(i&&!i.resumeFrom){let{snapshot:r,layout:o}=i;if(r&&o){let a=(0,eZ.dO)();eq(a,n.layoutBox,r.layoutBox);let s=(0,eZ.dO)();eq(s,t,o.layoutBox),tO(a,s)||(c=!0),i.options.layoutRoot&&(e.relativeTarget=s,e.relativeTargetOrigin=a,e.relativeParent=i)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:n,delta:s,layoutDelta:a,hasLayoutChanged:l,hasRelativeTargetChanged:c})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function tW(e){tB.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 tq(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function tG(e){e.clearSnapshot()}function tX(e){e.clearMeasurements()}function tY(e){e.isLayoutDirty=!1}function tK(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function tJ(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function tZ(e){e.resolveTargetDelta()}function tQ(e){e.calcProjection()}function t0(e){e.resetRotation()}function t1(e){e.removeLeadSnapshot()}function t2(e,t,n){e.translate=(0,eF.C)(t.translate,0,n),e.scale=(0,eF.C)(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function t5(e,t,n,i){e.min=(0,eF.C)(t.min,n.min,i),e.max=(0,eF.C)(t.max,n.max,i)}function t3(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let t4={duration:.45,ease:[.4,0,.1,1]},t6=e=>"undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().includes(e),t8=t6("applewebkit/")&&!t6("chrome/")?Math.round:el.Z;function t9(e){e.min=t8(e.min),e.max=t8(e.max)}function t7(e,t,n){return"position"===e||"preserve-aspect"===e&&!eB(tA(t),tA(n),.2)}let ne=tH({attachResizeListener:(e,t)=>q(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),nt={current:void 0},nn=tH({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!nt.current){let e=new ne({});e.mount(window),e.setOptions({layoutScroll:!0}),nt.current=e}return nt.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position});var ni=n(81178),nr=n(21176);let no=(e,t)=>x(e)?new nr.e(t,{enableHardwareAcceleration:!1}):new ni.W(t,{enableHardwareAcceleration:!0}),na={animation:{Feature:eP},exit:{Feature:eO},inView:{Feature:eg},tap:{Feature:ed},focus:{Feature:ea},hover:{Feature:eo},pan:{Feature:e7},drag:{Feature:e8,ProjectionNode:nn,MeasureLayout:ta},layout:{ProjectionNode:nn,MeasureLayout:ta}},ns=function(e){function t(t,n={}){return function({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:i,Component:y}){e&&function(e){for(let t in e)f.A[t]={...f.A[t],...e[t]}}(e);let x=(0,r.forwardRef)(function(f,v){var x;let w;let k={...(0,r.useContext)(o._),...f,layoutId:function({layoutId:e}){let t=(0,r.useContext)(g.p).id;return t&&void 0!==e?t+"-"+e:e}(f)},{isStatic:_}=k,E=function(e){let{initial:t,animate:n}=function(e,t){if((0,h.G)(e)){let{initial:t,animate:n}=e;return{initial:!1===t||(0,u.$)(t)?t:void 0,animate:(0,u.$)(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,r.useContext)(a));return(0,r.useMemo)(()=>({initial:t,animate:n}),[p(t),p(n)])}(f),S=i(f,_);if(!_&&m.j){E.visualElement=function(e,t,n,i){let{visualElement:d}=(0,r.useContext)(a),u=(0,r.useContext)(c),h=(0,r.useContext)(s.O),p=(0,r.useContext)(o._).reducedMotion,f=(0,r.useRef)();i=i||u.renderer,!f.current&&i&&(f.current=i(e,{visualState:t,parent:d,props:n,presenceContext:h,blockInitialAnimation:!!h&&!1===h.initial,reducedMotionConfig:p}));let m=f.current;(0,r.useInsertionEffect)(()=>{m&&m.update(n,h)});let g=(0,r.useRef)(!!window.HandoffAppearAnimations);return(0,l.L)(()=>{m&&(m.render(),g.current&&m.animationState&&m.animationState.animateChanges())}),(0,r.useEffect)(()=>{m&&(m.updateFeatures(),!g.current&&m.animationState&&m.animationState.animateChanges(),window.HandoffAppearAnimations=void 0,g.current=!1)}),m}(y,S,k,t);let n=(0,r.useContext)(b),i=(0,r.useContext)(c).strict;E.visualElement&&(w=E.visualElement.loadFeatures(k,i,e,n))}return r.createElement(a.Provider,{value:E},w&&E.visualElement?r.createElement(w,{visualElement:E.visualElement,...k}):null,n(y,f,(x=E.visualElement,(0,r.useCallback)(e=>{e&&S.mount&&S.mount(e),x&&(e?x.mount(e):x.unmount()),v&&("function"==typeof v?v(e):(0,d.I)(v)&&(v.current=e))},[x])),S,_,E.visualElement))});return x[v]=y,x}(e(t,n))}if("undefined"==typeof Proxy)return t;let n=new Map;return new Proxy(t,{get:(e,i)=>(n.has(i)||n.set(i,t(i)),n.get(i))})}((e,t)=>(function(e,{forwardMotionProps:t=!1},n,i){let o=x(e)?U:W;return{...o,preloadedFeatures:n,useRender:function(e=!1){return(t,n,i,{latestValues:o},a)=>{let s=x(t)?$:C,l=s(n,o,a,t),c=function(e,t,n){let i={};for(let r in e)("values"!==r||"object"!=typeof e.values)&&(O(r)||!0===n&&T(r)||!t&&!T(r)||e.draggable&&r.startsWith("onDrag"))&&(i[r]=e[r]);return i}(n,"string"==typeof t,e),d={...c,...l,ref:i},{children:u}=n,h=(0,r.useMemo)(()=>(0,k.i)(u)?u.get():u,[u]);return(0,r.createElement)(t,{...d,children:h})}}(t),createVisualElement:i,Component:e}})(e,t,na,no))},56010:function(e,t,n){"use strict";n.d(t,{D:function(){return i}});let i=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()},25995:function(e,t,n){"use strict";n.d(t,{Xp:function(){return a},f9:function(){return r},tm:function(){return o}});let i=e=>t=>"string"==typeof t&&t.startsWith(e),r=i("--"),o=i("var(--"),a=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g},64439:function(e,t,n){"use strict";function i(e){return e instanceof SVGElement&&"svg"!==e.tagName}n.d(t,{v:function(){return i}})},21637:function(e,t,n){"use strict";n.d(t,{T:function(){return a}});var i=n(75740),r=n(12780),o=n(99570);function a(e,t){let n=(0,o.A)(e);return n!==r.h&&(n=i.P),n.getAnimatableNone?n.getAnimatableNone(t):void 0}},99570:function(e,t,n){"use strict";n.d(t,{A:function(){return s}});var i=n(70447),r=n(12780),o=n(32592);let a={...o.j,color:i.$,backgroundColor:i.$,outlineColor:i.$,fill:i.$,stroke:i.$,borderColor:i.$,borderTopColor:i.$,borderRightColor:i.$,borderBottomColor:i.$,borderLeftColor:i.$,filter:r.h,WebkitFilter:r.h},s=e=>a[e]},67155:function(e,t,n){"use strict";n.d(t,{$:function(){return a},C:function(){return s}});var i=n(69353),r=n(5231),o=n(33244);let a=[i.Rx,r.px,r.aQ,r.RW,r.vw,r.vh,{test:e=>"auto"===e,parse:e=>e}],s=e=>a.find((0,o.l)(e))},32592:function(e,t,n){"use strict";n.d(t,{j:function(){return a}});var i=n(69353),r=n(5231);let o={...i.Rx,transform:Math.round},a={borderWidth:r.px,borderTopWidth:r.px,borderRightWidth:r.px,borderBottomWidth:r.px,borderLeftWidth:r.px,borderRadius:r.px,radius:r.px,borderTopLeftRadius:r.px,borderTopRightRadius:r.px,borderBottomRightRadius:r.px,borderBottomLeftRadius:r.px,width:r.px,maxWidth:r.px,height:r.px,maxHeight:r.px,size:r.px,top:r.px,right:r.px,bottom:r.px,left:r.px,padding:r.px,paddingTop:r.px,paddingRight:r.px,paddingBottom:r.px,paddingLeft:r.px,margin:r.px,marginTop:r.px,marginRight:r.px,marginBottom:r.px,marginLeft:r.px,rotate:r.RW,rotateX:r.RW,rotateY:r.RW,rotateZ:r.RW,scale:i.bA,scaleX:i.bA,scaleY:i.bA,scaleZ:i.bA,skew:r.RW,skewX:r.RW,skewY:r.RW,distance:r.px,translateX:r.px,translateY:r.px,translateZ:r.px,x:r.px,y:r.px,z:r.px,perspective:r.px,transformPerspective:r.px,opacity:i.Fq,originX:r.$C,originY:r.$C,originZ:r.px,zIndex:o,fillOpacity:i.Fq,strokeOpacity:i.Fq,numOctaves:o}},33244:function(e,t,n){"use strict";n.d(t,{l:function(){return i}});let i=e=>t=>t.test(e)},81178:function(e,t,n){"use strict";n.d(t,{W:function(){return h}});var i=n(32650),r=n(25995),o=n(10726),a=n(5981),s=n(22337),l=n(99570),c=n(47363),d=n(72754),u=n(13546);class h extends d.J{readValueFromInstance(e,t){if(o.G.has(t)){let e=(0,l.A)(t);return e&&e.default||0}{let n=window.getComputedStyle(e),i=((0,r.f9)(t)?n.getPropertyValue(t):n[t])||0;return"string"==typeof i?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:t}){return(0,c.J)(e,t)}build(e,t,n,r){(0,i.r)(e,t,n,r.transformTemplate)}scrapeMotionValuesFromProps(e,t){return(0,a.U)(e,t)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;(0,u.i)(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}renderInstance(e,t,n,i){(0,s.N)(e,t,n,i)}}},32650:function(e,t,n){"use strict";n.d(t,{r:function(){return c}});var i=n(10726);let r={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},o=i._.length;var a=n(25995);let s=(e,t)=>t&&"number"==typeof e?t.transform(e):e;var l=n(32592);function c(e,t,n,c){let{style:d,vars:u,transform:h,transformOrigin:p}=e,f=!1,m=!1,g=!0;for(let e in t){let n=t[e];if((0,a.f9)(e)){u[e]=n;continue}let r=l.j[e],o=s(n,r);if(i.G.has(e)){if(f=!0,h[e]=o,!g)continue;n!==(r.default||0)&&(g=!1)}else e.startsWith("origin")?(m=!0,p[e]=o):d[e]=o}if(!t.transform&&(f||c?d.transform=function(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},a,s){let l="";for(let t=0;t<o;t++){let n=i._[t];if(void 0!==e[n]){let t=r[n]||n;l+=`${t}(${e[n]}) `}}return t&&!e.z&&(l+="translateZ(0)"),l=l.trim(),s?l=s(e,a?"":l):n&&a&&(l="none"),l}(e.transform,n,g,c):d.transform&&(d.transform="none")),m){let{originX:e="50%",originY:t="50%",originZ:n=0}=p;d.transformOrigin=`${e} ${t} ${n}`}}},22337:function(e,t,n){"use strict";function i(e,{style:t,vars:n},i,r){for(let o in Object.assign(e.style,t,r&&r.getProjectionStyles(i)),n)e.style.setProperty(o,n[o])}n.d(t,{N:function(){return i}})},5981:function(e,t,n){"use strict";n.d(t,{U:function(){return o}});var i=n(85040),r=n(13546);function o(e,t){let{style:n}=e,o={};for(let a in n)((0,r.i)(n[a])||t.style&&(0,r.i)(t.style[a])||(0,i.j)(a,e))&&(o[a]=n[a]);return o}},10726:function(e,t,n){"use strict";n.d(t,{G:function(){return r},_:function(){return i}});let i=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],r=new Set(i)},56722:function(e,t,n){"use strict";n.d(t,{R:function(){return i}});let i=new WeakMap},21176:function(e,t,n){"use strict";n.d(t,{e:function(){return p}});var i=n(94752),r=n(72754),o=n(52394),a=n(56010),s=n(15926),l=n(10726),c=n(14852),d=n(99570),u=n(99369),h=n(28610);class p extends r.J{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(l.G.has(t)){let e=(0,d.A)(t);return e&&e.default||0}return t=s.s.has(t)?t:(0,a.D)(t),e.getAttribute(t)}measureInstanceViewportBox(){return(0,u.dO)()}scrapeMotionValuesFromProps(e,t){return(0,i.U)(e,t)}build(e,t,n,i){(0,o.i)(e,t,n,this.isSVGTag,i.transformTemplate)}renderInstance(e,t,n,i){(0,c.K)(e,t,n,i)}mount(e){this.isSVGTag=(0,h.a)(e.tagName),super.mount(e)}}},52394:function(e,t,n){"use strict";n.d(t,{i:function(){return l}});var i=n(32650),r=n(5231);function o(e,t,n){return"string"==typeof e?e:r.px.transform(t+n*e)}let a={offset:"stroke-dashoffset",array:"stroke-dasharray"},s={offset:"strokeDashoffset",array:"strokeDasharray"};function l(e,{attrX:t,attrY:n,attrScale:l,originX:c,originY:d,pathLength:u,pathSpacing:h=1,pathOffset:p=0,...f},m,g,b){if((0,i.r)(e,f,m,b),g){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:v,style:y,dimensions:x}=e;v.transform&&(x&&(y.transform=v.transform),delete v.transform),x&&(void 0!==c||void 0!==d||y.transform)&&(y.transformOrigin=function(e,t,n){let i=o(t,e.x,e.width),r=o(n,e.y,e.height);return`${i} ${r}`}(x,void 0!==c?c:.5,void 0!==d?d:.5)),void 0!==t&&(v.x=t),void 0!==n&&(v.y=n),void 0!==l&&(v.scale=l),void 0!==u&&function(e,t,n=1,i=0,o=!0){e.pathLength=1;let l=o?a:s;e[l.offset]=r.px.transform(-i);let c=r.px.transform(t),d=r.px.transform(n);e[l.array]=`${c} ${d}`}(v,u,h,p,!1)}},15926:function(e,t,n){"use strict";n.d(t,{s:function(){return i}});let i=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"])},28610:function(e,t,n){"use strict";n.d(t,{a:function(){return i}});let i=e=>"string"==typeof e&&"svg"===e.toLowerCase()},14852:function(e,t,n){"use strict";n.d(t,{K:function(){return a}});var i=n(56010),r=n(22337),o=n(15926);function a(e,t,n,a){for(let n in(0,r.N)(e,t,void 0,a),t.attrs)e.setAttribute(o.s.has(n)?n:(0,i.D)(n),t.attrs[n])}},94752:function(e,t,n){"use strict";n.d(t,{U:function(){return a}});var i=n(13546),r=n(5981),o=n(10726);function a(e,t){let n=(0,r.U)(e,t);for(let r in e)if((0,i.i)(e[r])||(0,i.i)(t[r])){let t=-1!==o._.indexOf(r)?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[t]=e[r]}return n}},89672:function(e,t,n){"use strict";n.d(t,{G:function(){return a},M:function(){return s}});var i=n(92292),r=n(65177),o=n(27410);function a(e){return(0,i.H)(e.animate)||o.V.some(t=>(0,r.$)(e[t]))}function s(e){return!!(a(e)||e.variants)}},65177:function(e,t,n){"use strict";function i(e){return"string"==typeof e||Array.isArray(e)}n.d(t,{$:function(){return i}})},87936:function(e,t,n){"use strict";n.d(t,{x:function(){return r}});var i=n(21197);function r(e,t,n){let r=e.getProps();return(0,i.o)(r,t,void 0!==n?n:r.custom,function(e){let t={};return e.values.forEach((e,n)=>t[n]=e.get()),t}(e),function(e){let t={};return e.values.forEach((e,n)=>t[n]=e.getVelocity()),t}(e))}},21197:function(e,t,n){"use strict";function i(e,t,n,i={},r={}){return"function"==typeof t&&(t=t(void 0!==n?n:e.custom,i,r)),"string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t&&(t=t(void 0!==n?n:e.custom,i,r)),t}n.d(t,{o:function(){return i}})},92291:function(e,t,n){"use strict";n.d(t,{GJ:function(){return g},P$:function(){return b},CD:function(){return m}});var i=n(30032),r=n(44345),o=n(89497),a=n(39029),s=n(75740),l=n(21637),c=n(70447),d=n(67155),u=n(33244);let h=[...d.$,c.$,s.P],p=e=>h.find((0,u.l)(e));var f=n(87936);function m(e,t){let n=(0,f.x)(e,t),{transitionEnd:i={},transition:r={},...s}=n?e.makeTargetAnimatable(n,!1):{};for(let t in s={...s,...i}){let n=(0,o.Y)(s[t]);e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,(0,a.BX)(n))}}function g(e,t,n){var o,c;let d=Object.keys(t).filter(t=>!e.hasValue(t)),u=d.length;if(u)for(let h=0;h<u;h++){let u=d[h],f=t[u],m=null;Array.isArray(f)&&(m=f[0]),null===m&&(m=null!==(c=null!==(o=n[u])&&void 0!==o?o:e.readValue(u))&&void 0!==c?c:t[u]),null!=m&&("string"==typeof m&&((0,i.P)(m)||(0,r.W)(m))?m=parseFloat(m):!p(m)&&s.P.test(f)&&(m=(0,l.T)(u,f)),e.addValue(u,(0,a.BX)(m,{owner:e})),void 0===n[u]&&(n[u]=m),null!==m&&e.setBaseTarget(u,m))}}function b(e,t,n){let i={};for(let r in e){let e=function(e,t){if(!t)return;let n=t[e]||t.default||t;return n.from}(r,t);if(void 0!==e)i[r]=e;else{let e=n.getValue(r);e&&(i[r]=e.get())}}return i}},27410:function(e,t,n){"use strict";n.d(t,{V:function(){return r},e:function(){return i}});let i=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],r=["initial",...i]},6251:function(e,t,n){"use strict";function i(e,t){-1===e.indexOf(t)&&e.push(t)}function r(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}n.d(t,{cl:function(){return r},y4:function(){return i}})},34314:function(e,t,n){"use strict";n.d(t,{u:function(){return i}});let i=(e,t,n)=>Math.min(Math.max(n,e),t)},28256:function(e,t,n){"use strict";n.d(t,{K:function(){return r},k:function(){return o}});var i=n(59472);let r=i.Z,o=i.Z},84593:function(e,t,n){"use strict";n.d(t,{s:function(){return C}});var i=n(28256),r=n(70447),o=n(34314),a=n(86725);function s(e,t,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}var l=n(33074),c=n(20302),d=n(65411);let u=(e,t,n)=>{let i=e*e;return Math.sqrt(Math.max(0,n*(t*t-i)+i))},h=[l.$,c.m,d.J],p=e=>h.find(t=>t.test(e));function f(e){let t=p(e);(0,i.k)(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`);let n=t.parse(e);return t===d.J&&(n=function({hue:e,saturation:t,lightness:n,alpha:i}){e/=360,n/=100;let r=0,o=0,a=0;if(t/=100){let i=n<.5?n*(1+t):n+t-n*t,l=2*n-i;r=s(l,i,e+1/3),o=s(l,i,e),a=s(l,i,e-1/3)}else r=o=a=n;return{red:Math.round(255*r),green:Math.round(255*o),blue:Math.round(255*a),alpha:i}}(n)),n}let m=(e,t)=>{let n=f(e),i=f(t),r={...n};return e=>(r.red=u(n.red,i.red,e),r.green=u(n.green,i.green,e),r.blue=u(n.blue,i.blue,e),r.alpha=(0,a.C)(n.alpha,i.alpha,e),c.m.transform(r))};var g=n(66631),b=n(75740);let v=(e,t)=>n=>`${n>0?t:e}`;function y(e,t){return"number"==typeof e?n=>(0,a.C)(e,t,n):r.$.test(e)?m(e,t):e.startsWith("var(")?v(e,t):k(e,t)}let x=(e,t)=>{let n=[...e],i=n.length,r=e.map((e,n)=>y(e,t[n]));return e=>{for(let t=0;t<i;t++)n[t]=r[t](e);return n}},w=(e,t)=>{let n={...e,...t},i={};for(let r in n)void 0!==e[r]&&void 0!==t[r]&&(i[r]=y(e[r],t[r]));return e=>{for(let t in i)n[t]=i[t](e);return n}},k=(e,t)=>{let n=b.P.createTransformer(t),r=(0,b.V)(e),o=(0,b.V)(t),a=r.numVars===o.numVars&&r.numColors===o.numColors&&r.numNumbers>=o.numNumbers;return a?(0,g.z)(x(r.values,o.values),n):((0,i.K)(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),v(e,t))};var _=n(35546),E=n(59472);let S=(e,t)=>n=>(0,a.C)(e,t,n);function C(e,t,{clamp:n=!0,ease:a,mixer:s}={}){let l=e.length;if((0,i.k)(l===t.length,"Both input and output ranges must be the same length"),1===l)return()=>t[0];e[0]>e[l-1]&&(e=[...e].reverse(),t=[...t].reverse());let c=function(e,t,n){let i=[],o=n||function(e){if("number"==typeof e);else if("string"==typeof e)return r.$.test(e)?m:k;else if(Array.isArray(e))return x;else if("object"==typeof e)return w;return S}(e[0]),a=e.length-1;for(let n=0;n<a;n++){let r=o(e[n],e[n+1]);if(t){let e=Array.isArray(t)?t[n]||E.Z:t;r=(0,g.z)(e,r)}i.push(r)}return i}(t,a,s),d=c.length,u=t=>{let n=0;if(d>1)for(;n<e.length-2&&!(t<e[n+1]);n++);let i=(0,_.Y)(e[n],e[n+1],t);return c[n](i)};return n?t=>u((0,o.u)(e[0],e[l-1],t)):u}},56992:function(e,t,n){"use strict";n.d(t,{j:function(){return i}});let i="undefined"!=typeof document},30032:function(e,t,n){"use strict";n.d(t,{P:function(){return i}});let i=e=>/^\-?\d*\.?\d+$/.test(e)},52041:function(e,t,n){"use strict";function i(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}n.d(t,{I:function(){return i}})},44345:function(e,t,n){"use strict";n.d(t,{W:function(){return i}});let i=e=>/^0[^.\s]+$/.test(e)},5931:function(e,t,n){"use strict";function i(e){let t;return()=>(void 0===t&&(t=e()),t)}n.d(t,{X:function(){return i}})},86725:function(e,t,n){"use strict";n.d(t,{C:function(){return i}});let i=(e,t,n)=>-n*e+n*t+e},59472:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});let i=e=>e},58408:function(e,t,n){"use strict";n.d(t,{Y:function(){return r}});var i=n(44199);function r(e){let t=[0];return(0,i.c)(t,e.length-1),t}},44199:function(e,t,n){"use strict";n.d(t,{c:function(){return o}});var i=n(86725),r=n(35546);function o(e,t){let n=e[e.length-1];for(let o=1;o<=t;o++){let a=(0,r.Y)(0,t,o);e.push((0,i.C)(n,1,a))}}},66631:function(e,t,n){"use strict";n.d(t,{z:function(){return r}});let i=(e,t)=>n=>t(e(n)),r=(...e)=>e.reduce(i)},35546:function(e,t,n){"use strict";n.d(t,{Y:function(){return i}});let i=(e,t,n)=>{let i=t-e;return 0===i?1:(n-e)/i}},93842:function(e,t,n){"use strict";n.d(t,{A:function(){return o}});var i=n(56992),r=n(3318);function o(){if(r.O.current=!0,i.j){if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>r.n.current=e.matches;e.addListener(t),t()}else r.n.current=!1}}},3318:function(e,t,n){"use strict";n.d(t,{O:function(){return r},n:function(){return i}});let i={current:null},r={current:!1}},89497:function(e,t,n){"use strict";n.d(t,{Y:function(){return o},p:function(){return r}});var i=n(47087);let r=e=>!!(e&&"object"==typeof e&&e.mix&&e.toValue),o=e=>(0,i.C)(e)?e[e.length-1]||0:e},58856:function(e,t,n){"use strict";n.d(t,{L:function(){return r}});var i=n(6251);class r{constructor(){this.subscriptions=[]}add(e){return(0,i.y4)(this.subscriptions,e),()=>(0,i.cl)(this.subscriptions,e)}notify(e,t,n){let i=this.subscriptions.length;if(i){if(1===i)this.subscriptions[0](e,t,n);else for(let r=0;r<i;r++){let i=this.subscriptions[r];i&&i(e,t,n)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}},50003:function(e,t,n){"use strict";n.d(t,{X:function(){return r},w:function(){return i}});let i=e=>1e3*e,r=e=>e/1e3},38787:function(e,t,n){"use strict";n.d(t,{h:function(){return r}});var i=n(7653);function r(e){let t=(0,i.useRef)(null);return null===t.current&&(t.current=e()),t.current}},20323:function(e,t,n){"use strict";n.d(t,{L:function(){return o}});var i=n(7653),r=n(56992);let o=r.j?i.useLayoutEffect:i.useEffect},70998:function(e,t,n){"use strict";function i(e,t){return t?e*(1e3/t):0}n.d(t,{R:function(){return i}})},39029:function(e,t,n){"use strict";n.d(t,{BX:function(){return c},S1:function(){return s}});var i=n(58856),r=n(70998),o=n(86564);let a=e=>!isNaN(parseFloat(e)),s={current:void 0};class l{constructor(e,t={}){this.version="10.16.5",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(e,t=!0)=>{this.prev=this.current,this.current=e;let{delta:n,timestamp:i}=o.frameData;this.lastUpdated!==i&&(this.timeDelta=n,this.lastUpdated=i,o.Wi.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()),t&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>o.Wi.postRender(this.velocityCheck),this.velocityCheck=({timestamp:e})=>{e!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=a(this.current),this.owner=t.owner}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new i.L);let n=this.events[e].add(t);return"change"===e?()=>{n(),o.Wi.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,n){this.set(t),this.prev=e,this.timeDelta=n}jump(e){this.updateAndNotify(e),this.prev=e,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return s.current&&s.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?(0,r.R)(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),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 c(e,t){return new l(e,t)}},33074:function(e,t,n){"use strict";n.d(t,{$:function(){return o}});var i=n(20302),r=n(23427);let o={test:(0,r.i)("#"),parse:function(e){let t="",n="",i="",r="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),i=e.substring(5,7),r=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),i=e.substring(3,4),r=e.substring(4,5),t+=t,n+=n,i+=i,r+=r),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:r?parseInt(r,16)/255:1}},transform:i.m.transform}},65411:function(e,t,n){"use strict";n.d(t,{J:function(){return s}});var i=n(69353),r=n(5231),o=n(55272),a=n(23427);let s={test:(0,a.i)("hsl","hue"),parse:(0,a.d)("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:a=1})=>"hsla("+Math.round(e)+", "+r.aQ.transform((0,o.Nw)(t))+", "+r.aQ.transform((0,o.Nw)(n))+", "+(0,o.Nw)(i.Fq.transform(a))+")"}},70447:function(e,t,n){"use strict";n.d(t,{$:function(){return s}});var i=n(55272),r=n(33074),o=n(65411),a=n(20302);let s={test:e=>a.m.test(e)||r.$.test(e)||o.J.test(e),parse:e=>a.m.test(e)?a.m.parse(e):o.J.test(e)?o.J.parse(e):r.$.parse(e),transform:e=>(0,i.HD)(e)?e:e.hasOwnProperty("red")?a.m.transform(e):o.J.transform(e)}},20302:function(e,t,n){"use strict";n.d(t,{m:function(){return c}});var i=n(34314),r=n(69353),o=n(55272),a=n(23427);let s=e=>(0,i.u)(0,255,e),l={...r.Rx,transform:e=>Math.round(s(e))},c={test:(0,a.i)("rgb","red"),parse:(0,a.d)("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:i=1})=>"rgba("+l.transform(e)+", "+l.transform(t)+", "+l.transform(n)+", "+(0,o.Nw)(r.Fq.transform(i))+")"}},23427:function(e,t,n){"use strict";n.d(t,{d:function(){return o},i:function(){return r}});var i=n(55272);let r=(e,t)=>n=>!!((0,i.HD)(n)&&i.mj.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),o=(e,t,n)=>r=>{if(!(0,i.HD)(r))return r;let[o,a,s,l]=r.match(i.KP);return{[e]:parseFloat(o),[t]:parseFloat(a),[n]:parseFloat(s),alpha:void 0!==l?parseFloat(l):1}}},12780:function(e,t,n){"use strict";n.d(t,{h:function(){return l}});var i=n(75740),r=n(55272);let o=new Set(["brightness","contrast","saturate","opacity"]);function a(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[i]=n.match(r.KP)||[];if(!i)return e;let a=n.replace(i,""),s=o.has(t)?1:0;return i!==n&&(s*=100),t+"("+s+a+")"}let s=/([a-z-]*)\(.*?\)/g,l={...i.P,getAnimatableNone:e=>{let t=e.match(s);return t?t.map(a).join(" "):e}}},75740:function(e,t,n){"use strict";n.d(t,{P:function(){return g},V:function(){return h}});var i=n(25995),r=n(59472),o=n(70447),a=n(69353),s=n(55272);let l={regex:i.Xp,countKey:"Vars",token:"${v}",parse:r.Z},c={regex:s.dA,countKey:"Colors",token:"${c}",parse:o.$.parse},d={regex:s.KP,countKey:"Numbers",token:"${n}",parse:a.Rx.parse};function u(e,{regex:t,countKey:n,token:i,parse:r}){let o=e.tokenised.match(t);o&&(e["num"+n]=o.length,e.tokenised=e.tokenised.replace(t,i),e.values.push(...o.map(r)))}function h(e){let t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&u(n,l),u(n,c),u(n,d),n}function p(e){return h(e).values}function f(e){let{values:t,numColors:n,numVars:i,tokenised:r}=h(e),a=t.length;return e=>{let t=r;for(let r=0;r<a;r++)t=r<i?t.replace(l.token,e[r]):r<i+n?t.replace(c.token,o.$.transform(e[r])):t.replace(d.token,(0,s.Nw)(e[r]));return t}}let m=e=>"number"==typeof e?0:e,g={test:function(e){var t,n;return isNaN(e)&&(0,s.HD)(e)&&((null===(t=e.match(s.KP))||void 0===t?void 0:t.length)||0)+((null===(n=e.match(s.dA))||void 0===n?void 0:n.length)||0)>0},parse:p,createTransformer:f,getAnimatableNone:function(e){let t=p(e),n=f(e);return n(t.map(m))}}},69353:function(e,t,n){"use strict";n.d(t,{Fq:function(){return o},Rx:function(){return r},bA:function(){return a}});var i=n(34314);let r={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},o={...r,transform:e=>(0,i.u)(0,1,e)},a={...r,default:1}},5231:function(e,t,n){"use strict";n.d(t,{$C:function(){return d},RW:function(){return o},aQ:function(){return a},px:function(){return s},vh:function(){return l},vw:function(){return c}});var i=n(55272);let r=e=>({test:t=>(0,i.HD)(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),o=r("deg"),a=r("%"),s=r("px"),l=r("vh"),c=r("vw"),d={...a,parse:e=>a.parse(e)/100,transform:e=>a.transform(100*e)}},55272:function(e,t,n){"use strict";n.d(t,{HD:function(){return s},KP:function(){return r},Nw:function(){return i},dA:function(){return o},mj:function(){return a}});let i=e=>Math.round(1e5*e)/1e5,r=/(-)?([\d]*\.?[\d])+/g,o=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,a=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function s(e){return"string"==typeof e}},1540:function(e,t,n){"use strict";n.d(t,{L:function(){return r}});var i=n(13546);function r(e){return!!((0,i.i)(e)&&e.add)}},13546:function(e,t,n){"use strict";n.d(t,{i:function(){return i}});let i=e=>!!(e&&e.getVelocity)},84594:function(e,t,n){"use strict";n.d(t,{Dv:function(){return d},KO:function(){return h},b9:function(){return u},oR:function(){return a},zt:function(){return s}});var i=n(7653),r=n(32732);let o=(0,i.createContext)(void 0),a=e=>{let t=(0,i.useContext)(o);return(null==e?void 0:e.store)||t||(0,r.K7)()},s=({children:e,store:t})=>{let n=(0,i.useRef)();return t||n.current||(n.current=(0,r.MT)()),(0,i.createElement)(o.Provider,{value:t||n.current},e)},l=e=>"function"==typeof(null==e?void 0:e.then),c=i.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;if("rejected"===e.status)throw e.reason;throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e});function d(e,t){let n=a(t),[[r,o,s],d]=(0,i.useReducer)(t=>{let i=n.get(e);return Object.is(t[0],i)&&t[1]===n&&t[2]===e?t:[i,n,e]},void 0,()=>[n.get(e),n,e]),u=r;(o!==n||s!==e)&&(d(),u=n.get(e));let h=null==t?void 0:t.delay;return(0,i.useEffect)(()=>{let t=n.sub(e,()=>{if("number"==typeof h){setTimeout(d,h);return}d()});return d(),t},[n,e,h]),(0,i.useDebugValue)(u),l(u)?c(u):u}function u(e,t){let n=a(t),r=(0,i.useCallback)((...t)=>{if(!("write"in e))throw Error("not writable atom");return n.set(e,...t)},[n,e]);return r}function h(e,t){return[d(e,t),u(e,t)]}},32732:function(e,t,n){"use strict";let i;n.d(t,{K7:function(){return T},MT:function(){return P},cn:function(){return o}});let r=0;function o(e,t){let n=`atom${++r}`,i={toString(){return this.debugLabel?n+":"+this.debugLabel:n}};return"function"==typeof e?i.read=e:(i.init=e,i.read=a,i.write=s),t&&(i.write=t),i}function a(e){return e(this)}function s(e,t,n){return t(this,"function"==typeof n?n(e(this)):n)}let l=(e,t)=>e.unstable_is?e.unstable_is(t):t===e,c=e=>"init"in e,d=e=>!!e.write,u=Symbol("CONTINUE_PROMISE"),h="pending",p=e=>"object"==typeof e&&null!==e&&u in e,f=new WeakMap,m=(e,t,n)=>{if(!f.has(e)){let i;let r=new Promise((o,a)=>{let s=e,l=e=>t=>{s===e&&(r.status="fulfilled",r.value=t,o(t),n())},c=e=>t=>{s===e&&(r.status="rejected",r.reason=t,a(t),n())};e.then(l(e),c(e)),i=(e,n)=>{e&&(f.set(e,r),s=e,e.then(l(e),c(e)),t(),t=n)}});r.status=h,r[u]=i,f.set(e,r)}return f.get(e)},g=e=>"function"==typeof(null==e?void 0:e.then),b=e=>"v"in e||"e"in e,v=e=>{if("e"in e)throw e.e;if(!("v"in e))throw Error("[Bug] atom state is not initialized");return e.v},y=e=>{let t=e.v;return p(t)&&t.status===h?t:null},x=(e,t,n)=>{n.p.has(e)||(n.p.add(e),t.then(()=>{n.p.delete(e)},()=>{n.p.delete(e)}))},w=()=>[new Map,new Map,new Set],k=(e,t,n)=>{e[0].has(t)||e[0].set(t,new Set),e[1].set(t,n)},_=(e,t,n)=>{let i=e[0].get(t);i&&i.add(n)},E=(e,t)=>e[0].get(t),S=(e,t)=>{e[2].add(t)},C=e=>{for(;e[1].size||e[2].size;){e[0].clear();let t=new Set(e[1].values());e[1].clear();let n=new Set(e[2]);e[2].clear(),t.forEach(e=>{var t;return null==(t=e.m)?void 0:t.l.forEach(e=>e())}),n.forEach(e=>e())}},P=()=>{let e;let t=new WeakMap;e=new Set;let n=e=>{let n=t.get(e);return n||(n={d:new Map,p:new Set,n:0},t.set(e,n)),n},i=(e,t,i,r=()=>{},o=()=>{})=>{let a="v"in t,s=t.v,l=y(t);if(g(i)){if(l)l!==i&&(l[u](i,r),++t.n);else{let a=m(i,r,o);if(a.status===h)for(let i of t.d.keys()){let t=n(i);x(e,a,t)}t.v=a,delete t.e}}else l&&l[u](Promise.resolve(i),r),t.v=i,delete t.e;(!a||!Object.is(s,t.v))&&++t.n},r=(e,t,i,r)=>{var o;if(i===t)throw Error("[Bug] atom cannot depend on itself");let a=n(t);a.d.set(i,r.n);let s=y(a);s&&x(t,s,r),null==(o=r.m)||o.t.add(t),e&&_(e,i,t)},o=(e,t,a)=>{let s,u;let h=n(t);if(!(null==a?void 0:a(t))&&b(h)&&(h.m||Array.from(h.d).every(([t,n])=>o(e,t,a).n===n)))return h;h.d.clear();let m=!0;try{let g=t.read(s=>{if(l(t,s)){let e=n(s);if(!b(e)){if(c(s))i(s,e,s.init);else throw Error("no atom init")}return v(e)}let d=o(e,s,a);if(m)r(e,t,s,d);else{let e=w();r(e,t,s,d),f(e,t,h),C(e)}return v(d)},{get signal(){return s||(s=new AbortController),s.signal},get setSelf(){return d(t)||console.warn("setSelf function cannot be used with read-only atom"),!u&&d(t)&&(u=(...e)=>{if(m&&console.warn("setSelf function cannot be called in sync"),!m)return p(t,...e)}),u}});return i(t,h,g,()=>null==s?void 0:s.abort(),()=>{if(h.m){let e=w();f(e,t,h),C(e)}}),h}catch(e){return delete h.v,h.e=e,++h.n,h}finally{m=!1}},a=(e,t)=>{let i=t=>{var i,r;let o=n(t),a=new Set(null==(i=o.m)?void 0:i.t);for(let e of o.p)a.add(e);return null==(r=E(e,t))||r.forEach(e=>{a.add(e)}),a},r=[],a=new Set,s=e=>{if(!a.has(e)){for(let t of(a.add(e),i(e)))e!==t&&s(t);r.push(e)}};s(t);let l=new Set([t]),c=e=>a.has(e);for(let t=r.length-1;t>=0;--t){let i=r[t],s=n(i),d=s.n,u=!1;for(let e of s.d.keys())if(e!==i&&l.has(e)){u=!0;break}u&&(o(e,i,c),f(e,i,s),d!==s.n&&(k(e,i,s),l.add(i))),a.delete(i)}},s=(e,t,...r)=>{let d=t.write(t=>v(o(e,t)),(r,...o)=>{let d;if(l(t,r)){if(!c(r))throw Error("atom not writable");let t=n(r),s="v"in t,l=t.v,d=o[0];i(r,t,d),f(e,r,t),s&&Object.is(l,t.v)||(k(e,r,t),a(e,r))}else d=s(e,r,...o);return C(e),d},...r);return d},p=(e,...t)=>{let n=w(),i=s(n,e,...t);return C(n),i},f=(e,t,n)=>{if(n.m&&!y(n)){for(let i of n.d.keys())if(!n.m.d.has(i)){let r=P(e,i);r.t.add(t),n.m.d.add(i)}for(let i of n.m.d||[])if(!n.d.has(i)){n.m.d.delete(i);let r=T(e,i);null==r||r.t.delete(t)}}},P=(t,i)=>{let r=n(i);if(!r.m){for(let e of(o(t,i),r.d.keys())){let n=P(t,e);n.t.add(i)}if(r.m={l:new Set,d:new Set(r.d.keys()),t:new Set},e.add(i),d(i)&&i.onMount){let e=r.m,{onMount:n}=i;S(t,()=>{let r=n((...e)=>s(t,i,...e));r&&(e.u=r)})}}return r.m},T=(t,i)=>{let r=n(i);if(r.m&&!r.m.l.size&&!Array.from(r.m.t).some(e=>{var t;return null==(t=n(e).m)?void 0:t.d.has(i)})){let n=r.m.u;for(let o of(n&&S(t,n),delete r.m,e.delete(i),r.d.keys())){let e=T(t,o);null==e||e.t.delete(i)}let o=y(r);o&&o[u](void 0,()=>{});return}return r.m},O={get:e=>v(o(void 0,e)),set:p,sub:(e,t)=>{let n=w(),i=P(n,e);C(n);let r=i.l;return r.add(t),()=>{r.delete(t);let n=w();T(n,e),C(n)}}};return Object.assign(O,{dev4_get_internal_weak_map:()=>t,dev4_get_mounted_atoms:()=>e,dev4_restore_atoms:e=>{let t=w();for(let[r,o]of e)if(c(r)){let e=n(r),s="v"in e,l=e.v;i(r,e,o),f(t,r,e),s&&Object.is(l,e.v)||(k(t,r,e),a(t,r))}C(t)}}),O},T=()=>(i||(i=P(),globalThis.__JOTAI_DEFAULT_STORE__||(globalThis.__JOTAI_DEFAULT_STORE__=i),globalThis.__JOTAI_DEFAULT_STORE__!==i&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044")),i)},18935:function(e,t,n){"use strict";n.d(t,{O4:function(){return p},kv:function(){return c},qs:function(){return d},td:function(){return r},xu:function(){return o}});var i=n(32732);let r=Symbol("RESET");function o(e,t){let n=null,i=new Map,r=o=>{let a;if(void 0===t)a=i.get(o);else for(let[e,n]of i)if(t(e,o)){a=n;break}if(void 0!==a){if(null==n||!n(a[1],o))return a[0];r.remove(o)}let s=e(o);return i.set(o,[s,Date.now()]),s};return r.remove=e=>{if(void 0===t)i.delete(e);else for(let[n]of i)if(t(n,e)){i.delete(n);break}},r.setShouldRemove=e=>{if(n=e)for(let[e,t]of i)n(t[1],e)&&i.delete(e)},r}let a=(e,t,n)=>(t.has(n)?t:t.set(n,e())).get(n),s=new WeakMap,l=(e,t,n,i)=>{let r=a(()=>new WeakMap,s,t),o=a(()=>new WeakMap,r,n);return a(e,o,i)};function c(e,t,n=Object.is){return l(()=>{let r=Symbol(),o=([e,i])=>{if(i===r)return t(e);let o=t(e,i);return n(i,o)?i:o},a=(0,i.cn)(t=>{let n=t(a),i=t(e);return o([i,n])});return a.init=r,a},e,t,n)}function d(e){let t=Symbol(),n=(0,i.cn)(t);n.debugPrivate=!0;let o=(0,i.cn)((i,r)=>{let o=i(n);return o!==t?o:e(i,r)},(e,i,a)=>{if(a===r)i(n,t);else if("function"==typeof a){let t=e(o);i(n,a(t))}else i(n,a)});return o}let u=e=>"function"==typeof(null==e?void 0:e.then),h=function(e=()=>{try{return window.localStorage}catch(e){"undefined"!=typeof window&&console.warn(e);return}},t){var n,i;let r,o,a;let s={getItem:(n,i)=>{var a,s;let l=e=>{if(r!==(e=e||"")){try{o=JSON.parse(e,null==t?void 0:t.reviver)}catch(e){return i}r=e}return o},c=null!=(s=null==(a=e())?void 0:a.getItem(n))?s:null;return u(c)?c.then(l):l(c)},setItem:(n,i)=>{var r;return null==(r=e())?void 0:r.setItem(n,JSON.stringify(i,null==t?void 0:t.replacer))},removeItem:t=>{var n;return null==(n=e())?void 0:n.removeItem(t)}};try{a=null==(n=e())?void 0:n.subscribe}catch(e){}return!a&&"undefined"!=typeof window&&"function"==typeof window.addEventListener&&window.Storage&&(a=(t,n)=>{if(!(e() instanceof window.Storage))return()=>{};let i=i=>{i.storageArea===e()&&i.key===t&&n(i.newValue)};return window.addEventListener("storage",i),()=>{window.removeEventListener("storage",i)}}),a&&(s.subscribe=(i=a,(e,t,n)=>i(e,e=>{let i;try{i=JSON.parse(e||"")}catch(e){i=n}t(i)}))),s}();function p(e,t,n=h,o){let a=null==o?void 0:o.getOnInit,s=(0,i.cn)(a?n.getItem(e,t):t);s.debugPrivate=!0,s.onMount=i=>{let r;return i(n.getItem(e,t)),n.subscribe&&(r=n.subscribe(e,i,t)),r};let l=(0,i.cn)(e=>e(s),(i,o,a)=>{let l="function"==typeof a?a(i(s)):a;return l===r?(o(s,t),n.removeItem(e)):l instanceof Promise?l.then(t=>(o(s,t),n.setItem(e,t))):(o(s,l),n.setItem(e,l))});return l}},32786:function(e,t,n){"use strict";n.r(t),n.d(t,{Bounce:function(){return M},Flip:function(){return N},Icons:function(){return R},Slide:function(){return j},ToastContainer:function(){return z},Zoom:function(){return D},collapseToast:function(){return d},cssTransition:function(){return u},toast:function(){return O},useToast:function(){return k},useToastContainer:function(){return w}});var i=n(7653),r=function(){for(var e,t,n=0,i="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=function e(t){var n,i,r="";if("string"==typeof t||"number"==typeof t)r+=t;else if("object"==typeof t){if(Array.isArray(t)){var o=t.length;for(n=0;n<o;n++)t[n]&&(i=e(t[n]))&&(r&&(r+=" "),r+=i)}else for(i in t)t[i]&&(r&&(r+=" "),r+=i)}return r}(e))&&(i&&(i+=" "),i+=t);return i};let o=e=>"number"==typeof e&&!isNaN(e),a=e=>"string"==typeof e,s=e=>"function"==typeof e,l=e=>a(e)||s(e)?e:null,c=e=>(0,i.isValidElement)(e)||a(e)||s(e)||o(e);function d(e,t,n){void 0===n&&(n=300);let{scrollHeight:i,style:r}=e;requestAnimationFrame(()=>{r.minHeight="initial",r.height=i+"px",r.transition=`all ${n}ms`,requestAnimationFrame(()=>{r.height="0",r.padding="0",r.margin="0",setTimeout(t,n)})})}function u(e){let{enter:t,exit:n,appendPosition:r=!1,collapse:o=!0,collapseDuration:a=300}=e;return function(e){let{children:s,position:l,preventExitTransition:c,done:u,nodeRef:h,isIn:p,playToast:f}=e,m=r?`${t}--${l}`:t,g=r?`${n}--${l}`:n,b=(0,i.useRef)(0);return(0,i.useLayoutEffect)(()=>{let e=h.current,t=m.split(" "),n=i=>{i.target===h.current&&(f(),e.removeEventListener("animationend",n),e.removeEventListener("animationcancel",n),0===b.current&&"animationcancel"!==i.type&&e.classList.remove(...t))};e.classList.add(...t),e.addEventListener("animationend",n),e.addEventListener("animationcancel",n)},[]),(0,i.useEffect)(()=>{let e=h.current,t=()=>{e.removeEventListener("animationend",t),o?d(e,u,a):u()};p||(c?t():(b.current=1,e.className+=` ${g}`,e.addEventListener("animationend",t)))},[p]),i.createElement(i.Fragment,null,s)}}function h(e,t){return null!=e?{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}:{}}let p=new Map,f=[],m=new Set,g=e=>m.forEach(t=>t(e)),b=()=>p.size>0;function v(e,t){var n;if(t)return!(null==(n=p.get(t))||!n.isToastActive(e));let i=!1;return p.forEach(t=>{t.isToastActive(e)&&(i=!0)}),i}function y(e,t){c(e)&&(b()||f.push({content:e,options:t}),p.forEach(n=>{n.buildToast(e,t)}))}function x(e,t){p.forEach(n=>{null!=t&&null!=t&&t.containerId?(null==t?void 0:t.containerId)===n.id&&n.toggle(e,null==t?void 0:t.id):n.toggle(e,null==t?void 0:t.id)})}function w(e){let{subscribe:t,getSnapshot:n,setProps:r}=(0,i.useRef)(function(e){let t=e.containerId||1;return{subscribe(n){let r=function(e,t,n){let r=1,d=0,u=[],p=[],f=[],m=t,g=new Map,b=new Set,v=()=>{f=Array.from(g.values()),b.forEach(e=>e())},y=e=>{p=null==e?[]:p.filter(t=>t!==e),v()},x=e=>{let{toastId:t,onOpen:r,updateId:o,children:a}=e.props,l=null==o;e.staleId&&g.delete(e.staleId),g.set(t,e),p=[...p,e.props.toastId].filter(t=>t!==e.staleId),v(),n(h(e,l?"added":"updated")),l&&s(r)&&r((0,i.isValidElement)(a)&&a.props)};return{id:e,props:m,observe:e=>(b.add(e),()=>b.delete(e)),toggle:(e,t)=>{g.forEach(n=>{null!=t&&t!==n.props.toastId||s(n.toggle)&&n.toggle(e)})},removeToast:y,toasts:g,clearQueue:()=>{d-=u.length,u=[]},buildToast:(t,p)=>{var f,b;if((t=>{let{containerId:n,toastId:i,updateId:r}=t,o=g.has(i)&&null==r;return(n?n!==e:1!==e)||o})(p))return;let{toastId:w,updateId:k,data:_,staleId:E,delay:S}=p,C=()=>{y(w)},P=null==k;P&&d++;let T={...m,style:m.toastStyle,key:r++,...Object.fromEntries(Object.entries(p).filter(e=>{let[t,n]=e;return null!=n})),toastId:w,updateId:k,data:_,closeToast:C,isIn:!1,className:l(p.className||m.toastClassName),bodyClassName:l(p.bodyClassName||m.bodyClassName),progressClassName:l(p.progressClassName||m.progressClassName),autoClose:!p.isLoading&&(f=p.autoClose,b=m.autoClose,!1===f||o(f)&&f>0?f:b),deleteToast(){let e=g.get(w),{onClose:t,children:r}=e.props;s(t)&&t((0,i.isValidElement)(r)&&r.props),n(h(e,"removed")),g.delete(w),--d<0&&(d=0),u.length>0?x(u.shift()):v()}};T.closeButton=m.closeButton,!1===p.closeButton||c(p.closeButton)?T.closeButton=p.closeButton:!0===p.closeButton&&(T.closeButton=!c(m.closeButton)||m.closeButton);let O=t;(0,i.isValidElement)(t)&&!a(t.type)?O=(0,i.cloneElement)(t,{closeToast:C,toastProps:T,data:_}):s(t)&&(O=t({closeToast:C,toastProps:T,data:_}));let A={content:O,props:T,staleId:E};m.limit&&m.limit>0&&d>m.limit&&P?u.push(A):o(S)?setTimeout(()=>{x(A)},S):x(A)},setProps(e){m=e},setToggle:(e,t)=>{g.get(e).toggle=t},isToastActive:e=>p.some(t=>t===e),getSnapshot:()=>m.newestOnTop?f.reverse():f}}(t,e,g);p.set(t,r);let d=r.observe(n);return f.forEach(e=>y(e.content,e.options)),f=[],()=>{d(),p.delete(t)}},setProps(e){var n;null==(n=p.get(t))||n.setProps(e)},getSnapshot(){var e;return null==(e=p.get(t))?void 0:e.getSnapshot()}}}(e)).current;r(e);let d=(0,i.useSyncExternalStore)(t,n,n);return{getToastToRender:function(e){if(!d)return[];let t=new Map;return d.forEach(e=>{let{position:n}=e.props;t.has(n)||t.set(n,[]),t.get(n).push(e)}),Array.from(t,t=>e(t[0],t[1]))},isToastActive:v,count:null==d?void 0:d.length}}function k(e){var t,n;let[r,o]=(0,i.useState)(!1),[a,s]=(0,i.useState)(!1),l=(0,i.useRef)(null),c=(0,i.useRef)({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:d,pauseOnHover:u,closeToast:h,onClick:f,closeOnClick:m}=e;function g(){o(!0)}function b(){o(!1)}function v(t){let n=l.current;c.canDrag&&n&&(c.didMove=!0,r&&b(),c.delta="x"===e.draggableDirection?t.clientX-c.start:t.clientY-c.start,c.start!==t.clientX&&(c.canCloseOnClick=!1),n.style.transform=`translate3d(${"x"===e.draggableDirection?`${c.delta}px, var(--y)`:`0, calc(${c.delta}px + var(--y))`},0)`,n.style.opacity=""+(1-Math.abs(c.delta/c.removalDistance)))}function y(){document.removeEventListener("pointermove",v),document.removeEventListener("pointerup",y);let t=l.current;if(c.canDrag&&c.didMove&&t){if(c.canDrag=!1,Math.abs(c.delta)>c.removalDistance)return s(!0),e.closeToast(),void e.collapseAll();t.style.transition="transform 0.2s, opacity 0.2s",t.style.removeProperty("transform"),t.style.removeProperty("opacity")}}null==(n=p.get((t={id:e.toastId,containerId:e.containerId,fn:o}).containerId||1))||n.setToggle(t.id,t.fn),(0,i.useEffect)(()=>{if(e.pauseOnFocusLoss)return document.hasFocus()||b(),window.addEventListener("focus",g),window.addEventListener("blur",b),()=>{window.removeEventListener("focus",g),window.removeEventListener("blur",b)}},[e.pauseOnFocusLoss]);let x={onPointerDown:function(t){if(!0===e.draggable||e.draggable===t.pointerType){c.didMove=!1,document.addEventListener("pointermove",v),document.addEventListener("pointerup",y);let n=l.current;c.canCloseOnClick=!0,c.canDrag=!0,n.style.transition="none","x"===e.draggableDirection?(c.start=t.clientX,c.removalDistance=n.offsetWidth*(e.draggablePercent/100)):(c.start=t.clientY,c.removalDistance=n.offsetHeight*(80===e.draggablePercent?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function(t){let{top:n,bottom:i,left:r,right:o}=l.current.getBoundingClientRect();"touchend"!==t.nativeEvent.type&&e.pauseOnHover&&t.clientX>=r&&t.clientX<=o&&t.clientY>=n&&t.clientY<=i?b():g()}};return d&&u&&(x.onMouseEnter=b,e.stacked||(x.onMouseLeave=g)),m&&(x.onClick=e=>{f&&f(e),c.canCloseOnClick&&h()}),{playToast:g,pauseToast:b,isRunning:r,preventExitTransition:a,toastRef:l,eventHandlers:x}}function _(e){let{delay:t,isRunning:n,closeToast:o,type:a="default",hide:l,className:c,style:d,controlledProgress:u,progress:h,rtl:p,isIn:f,theme:m}=e,g=l||u&&0===h,b={...d,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused"};u&&(b.transform=`scaleX(${h})`);let v=r("Toastify__progress-bar",u?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${m}`,`Toastify__progress-bar--${a}`,{"Toastify__progress-bar--rtl":p}),y=s(c)?c({rtl:p,type:a,defaultClassName:v}):r(v,c);return i.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":g},i.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${m} Toastify__progress-bar--${a}`}),i.createElement("div",{role:"progressbar","aria-hidden":g?"true":"false","aria-label":"notification timer",className:y,style:b,[u&&h>=1?"onTransitionEnd":"onAnimationEnd"]:u&&h<1?null:()=>{f&&o()}}))}let E=1,S=()=>""+E++;function C(e,t){return y(e,t),t.toastId}function P(e,t){return{...t,type:t&&t.type||e,toastId:t&&(a(t.toastId)||o(t.toastId))?t.toastId:S()}}function T(e){return(t,n)=>C(t,P(e,n))}function O(e,t){return C(e,P("default",t))}O.loading=(e,t)=>C(e,P("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),O.promise=function(e,t,n){let i,{pending:r,error:o,success:l}=t;r&&(i=a(r)?O.loading(r,n):O.loading(r.render,{...n,...r}));let c={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},d=(e,t,r)=>{if(null==t)return void O.dismiss(i);let o={type:e,...c,...n,data:r},s=a(t)?{render:t}:t;return i?O.update(i,{...o,...s}):O(s.render,{...o,...s}),r},u=s(e)?e():e;return u.then(e=>d("success",l,e)).catch(e=>d("error",o,e)),u},O.success=T("success"),O.info=T("info"),O.error=T("error"),O.warning=T("warning"),O.warn=O.warning,O.dark=(e,t)=>C(e,P("default",{theme:"dark",...t})),O.dismiss=function(e){var t,n;b()?null==e||a(t=e)||o(t)?p.forEach(t=>{t.removeToast(e)}):e&&("containerId"in e||"id"in e)&&((null==(n=p.get(e.containerId))?void 0:n.removeToast(e.id))||p.forEach(t=>{t.removeToast(e.id)})):f=f.filter(t=>null!=e&&t.options.toastId!==e)},O.clearWaitingQueue=function(e){void 0===e&&(e={}),p.forEach(t=>{!t.props.limit||e.containerId&&t.id!==e.containerId||t.clearQueue()})},O.isActive=v,O.update=function(e,t){void 0===t&&(t={});let n=((e,t)=>{var n;let{containerId:i}=t;return null==(n=p.get(i||1))?void 0:n.toasts.get(e)})(e,t);if(n){let{props:i,content:r}=n,o={delay:100,...i,...t,toastId:t.toastId||e,updateId:S()};o.toastId!==e&&(o.staleId=e);let a=o.render||r;delete o.render,C(a,o)}},O.done=e=>{O.update(e,{progress:1})},O.onChange=function(e){return m.add(e),()=>{m.delete(e)}},O.play=e=>x(!0,e),O.pause=e=>x(!1,e);let A="undefined"!=typeof window?i.useLayoutEffect:i.useEffect,I=e=>{let{theme:t,type:n,isLoading:r,...o}=e;return i.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:"colored"===t?"currentColor":`var(--toastify-icon-color-${n})`,...o})},R={info:function(e){return i.createElement(I,{...e},i.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return i.createElement(I,{...e},i.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return i.createElement(I,{...e},i.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return i.createElement(I,{...e},i.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return i.createElement("div",{className:"Toastify__spinner"})}},$=e=>{let{isRunning:t,preventExitTransition:n,toastRef:o,eventHandlers:a,playToast:l}=k(e),{closeButton:c,children:d,autoClose:u,onClick:h,type:p,hideProgressBar:f,closeToast:m,transition:g,position:b,className:v,style:y,bodyClassName:x,bodyStyle:w,progressClassName:E,progressStyle:S,updateId:C,role:P,progress:T,rtl:O,toastId:A,deleteToast:I,isIn:$,isLoading:L,closeOnClick:M,theme:j}=e,D=r("Toastify__toast",`Toastify__toast-theme--${j}`,`Toastify__toast--${p}`,{"Toastify__toast--rtl":O},{"Toastify__toast--close-on-click":M}),N=s(v)?v({rtl:O,position:b,type:p,defaultClassName:D}):r(D,v),F=function(e){let{theme:t,type:n,isLoading:r,icon:o}=e,a=null,l={theme:t,type:n};return!1===o||(s(o)?a=o({...l,isLoading:r}):(0,i.isValidElement)(o)?a=(0,i.cloneElement)(o,l):r?a=R.spinner():n in R&&(a=R[n](l))),a}(e),z=!!T||!u,B={closeToast:m,type:p,theme:j},H=null;return!1===c||(H=s(c)?c(B):(0,i.isValidElement)(c)?(0,i.cloneElement)(c,B):function(e){let{closeToast:t,theme:n,ariaLabel:r="close"}=e;return i.createElement("button",{className:`Toastify__close-button Toastify__close-button--${n}`,type:"button",onClick:e=>{e.stopPropagation(),t(e)},"aria-label":r},i.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},i.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}(B)),i.createElement(g,{isIn:$,done:I,position:b,preventExitTransition:n,nodeRef:o,playToast:l},i.createElement("div",{id:A,onClick:h,"data-in":$,className:N,...a,style:y,ref:o},i.createElement("div",{...$&&{role:P},className:s(x)?x({type:p}):r("Toastify__toast-body",x),style:w},null!=F&&i.createElement("div",{className:r("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!L})},F),i.createElement("div",null,d)),H,i.createElement(_,{...C&&!z?{key:`pb-${C}`}:{},rtl:O,theme:j,delay:u,isRunning:t,isIn:$,closeToast:m,hide:f,type:p,style:S,className:E,controlledProgress:z,progress:T||0})))},L=function(e,t){return void 0===t&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},M=u(L("bounce",!0)),j=u(L("slide",!0)),D=u(L("zoom")),N=u(L("flip")),F={position:"top-right",transition:M,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function z(e){let t={...F,...e},n=e.stacked,[o,a]=(0,i.useState)(!0),c=(0,i.useRef)(null),{getToastToRender:d,isToastActive:u,count:h}=w(t),{className:p,style:f,rtl:m,containerId:g}=t;function b(){n&&(a(!0),O.play())}return A(()=>{if(n){var e;let n=c.current.querySelectorAll('[data-in="true"]'),i=null==(e=t.position)?void 0:e.includes("top"),r=0,a=0;Array.from(n).reverse().forEach((e,t)=>{e.classList.add("Toastify__toast--stacked"),t>0&&(e.dataset.collapsed=`${o}`),e.dataset.pos||(e.dataset.pos=i?"top":"bot");let n=r*(o?.2:1)+(o?0:12*t);e.style.setProperty("--y",`${i?n:-1*n}px`),e.style.setProperty("--g","12"),e.style.setProperty("--s",""+(1-(o?a:0))),r+=e.offsetHeight,a+=.025})}},[o,h,n]),i.createElement("div",{ref:c,className:"Toastify",id:g,onMouseEnter:()=>{n&&(a(!1),O.pause())},onMouseLeave:b},d((e,t)=>{let o=t.length?{...f}:{...f,pointerEvents:"none"};return i.createElement("div",{className:function(e){let t=r("Toastify__toast-container",`Toastify__toast-container--${e}`,{"Toastify__toast-container--rtl":m});return s(p)?p({position:e,rtl:m,defaultClassName:t}):r(t,l(p))}(e),style:o,key:`container-${e}`},t.map(e=>{let{content:t,props:r}=e;return i.createElement($,{...r,stacked:n,collapseAll:b,isIn:u(r.toastId,r.containerId),style:r.style,key:`toast-${r.key}`},t)}))}))}},16389:function(e,t,n){"use strict";function i(e,t){if(!e)throw Error("Invariant failed")}n.d(t,{Z:function(){return i}})},44192:function(e,t,n){"use strict";function i(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)0>t.indexOf(i[r])&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n}n.d(t,{_T:function(){return i}}),"function"==typeof SuppressedError&&SuppressedError}}]);